293841
MaxIT
Re: Account re-activation required on Profile email changes
  • 2002/8/7 11:13

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


Quote:
perhaps a rc3 hack

yes, you're right

I took a look at RC3's edituser.php but it's a lot different from previous version. I still didn't understand the logic. I bet a dev could give a suggest without spending too much time.



293842
netwize
Re: Account re-activation required on Profile email changes
  • 2002/8/6 20:16

  • netwize

  • Just popping in

  • Posts: 89

  • Since: 2002/1/20


perhaps a rc3 hack



293843
MaxIT
Re: Account re-activation required on Profile email changes
  • 2002/8/6 19:29

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


Quote:
any ideas on how to make email field on edit profile to "read only"?

if you read the whole thread you'll see I published this hack

Quote:
In the waiting for this useful fix, I've skipped this problem by removing the option to change the email by XOOPS users (RC2-only hack)
etc.




293844
netwize
Re: Account re-activation required on Profile email changes
  • 2002/8/6 19:13

  • netwize

  • Just popping in

  • Posts: 89

  • Since: 2002/1/20


email should not be touch by members, just like nickname.


any ideas on how to make email field on edit profile to "read only"?




293845
Kon
Re: Is XOOPS used for business applications?
  • 2002/8/3 22:05

  • Kon

  • Just popping in

  • Posts: 1

  • Since: 2002/7/31


I use XOOPS to run a development portal for developers working on interactive tv and HDTV apps. We're a part of News Corp. I've got CVS, Xoopsforge and other hacks running with 3.0.4. Its an intranet site, but it works pretty well :)) I'm not even part of the IT department, but I wanted something easy to setup and easy to hack/add our own features to, and XOOPS rocks for this!



293846
TheGuru
Re: Is XOOPS used for business applications?
  • 2002/8/3 21:40

  • TheGuru

  • Just popping in

  • Posts: 1

  • Since: 2002/7/16


I am also using XOOPS for my business. Although I am not a programmer, I was able to modify it to fit my needs (most of them). For example, I pretty much altered the Sections module. The only trace of it being the section module is by the URL for it. (modules/sections/)

http://guruhost.net

Although it isn't a "huge corporate" business, none the less, it is a business to say the least. I am finding the one type of site this system seems to be hard to outfit for are gaming groups (squads,clans, etc.). I am currently working on extreme modification to get that down.



293847
Herko
Re: How can I create a page with product names and descriptions in Xoops?
  • 2002/8/3 11:26

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


As a fellow-non-coder I must congratulate you on your efforts I tried once myself, but got stuck somewhere (tried to add an expriy date to news posts, and failed). Keep at it

Herko



293848
mikey
Re: How can I create a page with product names and descriptions in Xoops?
  • 2002/8/3 11:22

  • mikey

  • Just popping in

  • Posts: 5

  • Since: 2002/6/8 1


MaxIT, ur a star, will give it a go on testsite now.

Thanks for ur quick and generous help.

Mike



293849
MaxIT
Re: How can I create a page with product names and descriptions in Xoops?
  • 2002/8/3 10:45

  • MaxIT

  • Just popping in

  • Posts: 65

  • Since: 2002/11/8


Quote:

rows:xoops_version.php
$$modversion['name ' ] = _ MI_PRODUCTS_NAME;
$$modversion['version ' ] = 1.00;
$$modversion['description ' ] = _ MI_PRODUCTS_DESC;

$modversion['dirname'] = "products";

rows: modinfo.php
// The name of this module
define("_MI_2SECTIONS_NAME", "products");
// To brief description of this module
define("_MI_2SECTIONS_DESC", "To add Products to the Product Catalogue.");


if you use MI_PRODUCTS_NAME and MI_PRODUCTS_DESC, define them instead than MI_2SECTIONS_ ones who are only an example for a constant name for a 'clone'

Quote:

// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "product";
$modversion['tables'][1] = "products";

This seems to fall over for me cos it wont create the new tables for some reason - I could have manually created them in phpmyAdmin but wasnt sure what the field values where...



go in /modules/sections/sql/mysql.sql: here's the script to build tables neeeded from sections module. If you change it in your new products module, when you 'install' it via XOOPS administration, tables will be automatically created. So instead of 'morphing' sections, try duplicating the whole directory /modules/sections, change MySQL files according to your new module scope (table name, primary, leave fields as they are at now) and iInstall it: XOOPS will create new tables for you.

Quote:

Do I not also need to edit admin\index.php because it has references in lines to:

function sections() { ////does this need to change?


better to change it ( to clear code) and all its calling in all your files under the /modules/YOURMODULENAME/ structure. Look and replace for "sections()" instead than "sections", otherwise you will get noyt only function but variable and cookie. You should change them too but make it step by step:


Quote:

$result = $xoopsDB->query("select secid, secname, image from ".$xoopsDB->prefix("sections")." order by secname") /////what does this change to?


if you didn't change fields name on mysql.sql file, you don't need to change anything here (at now: but if you decide to create a 'serious' module you should change them in mysql.sql and here too)

Quote:

Will also need to change line to include new module location name:

echo _MD_URLFORTHIS."

sections/index.php?op=viewarticle&artid=$artid\">".XOOPS_URL."/modules/sections/index.php?op=viewarticle&artid=$artid

Variables in \language\english\main.php and modinfo.php are easily changed.

It installed ok and worked to point where tried to add product but it didnt list it - the tables didnt create for xoops_product and xoops_products which is i suppose the problem - so I have what I want now but I want the above to work properly so the Products module is seperate from the sections module so if u have any ideas would appreciate it.



surely your problem is due to undefined constants for table names: if you define:

$modversion['tables'][0] = "product";
$modversion['tables'][1] = "products";

then modify mysql.sql changing
CREATE TABLE seccont
to
CREATE TABLE product
and changing
CREATE TABLE sections
to
CREATE TABLE products

Quote:


Sorry for the poor descriptions here....I am exhausted and know bugger all about PHP as you can tell i guess

This is the best way to learn programming: 'unmounting' code is funny exactly like destroying toys when you're children, just to discover how they're built



293850
mikey
Re: How can I create a page with product names and descriptions in Xoops?
  • 2002/8/3 9:32

  • mikey

  • Just popping in

  • Posts: 5

  • Since: 2002/6/8 1


Ok Guys, info very helpful - well i was up for a while last night and hacked into the Sections module of xoops, (roughly translating italian - I'll keep my day job i think) - and I now have a new Product Catalog module running - nice cos I can put products into categories and looks nice and neat.

I have by doing it this way 'lost' the sections module as it has now become 'Products' but still using the xoops_sections and xoops_seccont tables which I tried to work around as per your advice - I am going to work some more to create the 'Products' module seperate from the 'sections' module but I had a few problems and you could probably tell me whats wrong -this is what I did initially which didnt work but I would like it to:


rows:xoops_version.php
$$modversion['name ' ] = _ MI_PRODUCTS_NAME;
$$modversion['version ' ] = 1.00;
$$modversion['description ' ] = _ MI_PRODUCTS_DESC;

$modversion['dirname'] = "products";

rows: modinfo.php
// The name of this module
define("_MI_2SECTIONS_NAME", "products");
// To brief description of this module
define("_MI_2SECTIONS_DESC", "To add Products to the Product Catalogue.");

So far so good....

In xoops_version.php:

// Tables created by sql file (without prefix!)
$modversion['tables'][0] = "product";
$modversion['tables'][1] = "products";

This seems to fall over for me cos it wont create the new tables for some reason - I could have manually created them in phpmyAdmin but wasnt sure what the field values where...

Also changed in admin_header.php:

$xoopsModule = XoopsModule::getByDirname("products");



Do I not also need to edit admin\index.php because it has references in lines to:

function sections() { ////does this need to change?

$result = $xoopsDB->query("select secid, secname, image from ".$xoopsDB->prefix("sections")." order by secname") /////what does this change to?

Will also need to change line to include new module location name:

echo _MD_URLFORTHIS."

sections/index.php?op=viewarticle&artid=$artid\">".XOOPS_URL."/modules/sections/index.php?op=viewarticle&artid=$artid

Variables in \language\english\main.php and modinfo.php are easily changed.

It installed ok and worked to point where tried to add product but it didnt list it - the tables didnt create for xoops_product and xoops_products which is i suppose the problem - so I have what I want now but I want the above to work properly so the Products module is seperate from the sections module so if u have any ideas would appreciate it.

Sorry for the poor descriptions here....I am exhausted and know bugger all about PHP as you can tell i guess







Login

Who's Online

185 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 185


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits