31
burfodus
Re: Writing a module
  • 2009/3/23 3:53

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


no stress, got it working, it was the XOOPS installation i was using for testing that was broken, not the tutorial.

after many many attempts i tried installing a system module which also failed, lol. moved to a new test site and works fine, thanks anyway.

steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



32
burfodus
Re: Writing a module
  • 2009/3/23 2:55

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Any Clues to why I can install a basic variation on the tutorial module locally (apache 2.2) and it works fine, but uploading the same tutorial and testing on my server does not.

both XOOPS 2.3.x

server details
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.5
MySQL Version - 5.0.67.d7-ourdelta-log
Server API Version - cgi-fcgi
OS Version - WINNT

im thinking it is a problem with the sql code, as it seemed different, i removed commas from around the table and field names to be consistent with the tutorials example, but when i try to load it online, after clicking the install module button it takes me back to the module page of XOOPS admin.

CREATE TABLE tutorial_myform (
tt_id int(5unsigned NOT NULL auto_increment,
namesql varchar(30NOT NULL default '',
addresssql varchar(30NOT NULL default '',
telephonesql varchar(30NOT NULL default '',
emailsql varchar(30NOT NULL default '',
PRIMARY KEY (tt_id),
KEY name (namesql)
TYPE=MyISAM;

CREATE TABLE venueuser (
userID tinyint(4NOT NULL auto_increment,
userEmail varchar(80NOT NULL,
userRef varchar(16NOT NULL,
userPassword varchar(28NOT NULL,
PRIMARY KEY  (userID),
UNIQUE KEY userEmail (userEmailuserRef)
ENGINE=MyISAM  DEFAULT CHARSET=utf8 AUTO_INCREMENT=;


you will see the first half is from the tutorial with the sql added to the names.

thanks
steve
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



33
burfodus
Re: Writing a module
  • 2009/3/23 1:57

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Very Useful Noob, thanks.

I agree they are very scattered, i had done the first 2 kaotic tutorials from the XOOPS site, but only found the rest of them once you posted the link.

maybe these extra ones you sent through will enable me to learn the admin side. its all learning, and i feel more comfortable with it every day.

cheers
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



34
burfodus
Re: Writing a module
  • 2009/3/22 13:02

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Thanks for your help noob.

im working through the kaotik tutorials a few times from beginning to end, as im learning code as well as xoops, it will take me more time than most but its all making pretty good sence so far.

what im aiming for in the endo however is a module that displays data, but is mostly entered in the admin area, none of the tutorials i can find touch on adding admin pages, and im copying some from other modules to play with them but could probably do with some guidence.

do you know of a tutorial that includes an admin page/menu

thanks again.
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



35
burfodus
Writing a module
  • 2009/3/21 2:53

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Hello Guys and Gals.

Im slowly trying to learn how to program, so I can write my own module (and not rely on you guys for help all the time hehe).

And I learnt alot this weekend doing the basic module tutorial, and then the smarty template tutorial (however the code at the end of this tutorial crashes 2 local XOOPS 2.3 installs, wont even show up in modules page, page half loads)

But now I want to have a crack at constructing one, but (like i do with most code) I like to edit existing code to learn how it works.

Can someone think of and suggest a simple module for me to pick apart, not too advanced code wise, that has an admin page, data entry area in back end, form and display in front end, and some use of smarty templates so I can analyse the files and play with it.

PS I think its great how promptly and accuratelty the guys on this forum help out people like me, I just wish I had the knowledge or skills to return the favour.

Steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



36
burfodus
Re: Parse error with new theme
  • 2009/3/21 2:41

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


thanks zyspec.

yes this fixed teh problem, sorry for late reply, cleared those folders and it went back to normal - phew.

sorry i missed the /modules/ from the url above.
sb..
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



37
burfodus
Re: columns not dissapearing when no blocks on page
  • 2009/3/21 2:39

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Bingo,

nice job Ghia once again, yes you were right, in the dummy module turn the columns on and off as needed.

thank you.
steve
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



38
burfodus
columns not dissapearing when no blocks on page
  • 2009/3/17 3:44

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Hi guys n gals,

there is probably a very simple fix for this that i just dont know. in the new theme i have loaded for my site www.endoforums.com most of the pages display propoerly, but click store and the left and right column are still there, even though there are no blocks in these columns.

the forums and other pages dont have a right column and display fine, so im not sure why this is like this.

your help is greatly appreciated.
steve
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



39
burfodus
Re: Parse error with new theme
  • 2009/3/6 12:22

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Thank you zyspec, however it has not worked.

if you go to www.endoforums.com/endometriosis you will see the theme changer, select the old theme, and it works, go back to the new theme and it doesnt.

I really would appreciate any help you can offer.
I have performed all the modifications on the thread you referred me to, and updated the moduele, there were no files in templates_c to clear out.

thanks
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT



40
burfodus
Parse error with new theme
  • 2009/3/3 12:58

  • burfodus

  • Just popping in

  • Posts: 94

  • Since: 2008/9/2 1


Hello all,

I have just changed themes on a live site, and it appeared to be working fine, except one module, mx directory is showing returning the following error.


Parse error: syntax error, unexpected ';' in D:\Hosting\3181099\html\adsense\endoforums\xoops_data\caches\smarty_compile\first+clone-xpro_057_prisma^%%4B^4B3^4B3E9984%%db%3Axdir_index.html.php on line 3

does someone know an explanation and fix for this, im hoping it is nothing major.

the site is www.endoforums.com and it is live.

thanks alot
steve.
XOOPS Version - XOOPS 2.3.2
PHP Version - 5.2.6
MySQL Version - 5.0.67-community
Server API Version - apache2handler
OS Version - WINNT




TopTop
« 1 2 3 (4) 5 6 7 ... 10 »



Login

Who's Online

64 user(s) are online (36 user(s) are browsing Support Forums)


Members: 0


Guests: 64


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