Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 12:56:42 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149636 Posts in 21099 Topics by 7563 Members
Latest Member: bal410kano
* Home Help Search Login Register
Pages: 1 [2] 3 4   Go Down
Print
Author Topic: Hello World Module  (Read 38657 times)
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #25 on: March 28, 2006, 11:46:30 PM »

@argos

Try the reload addons from settings - advanced settings (at the bottom). It seems that it is installed and only the entries in the addons table fails.

Matthias
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #26 on: March 28, 2006, 11:49:26 PM »

@argos

Try the reload addons from settings - advanced settings (at the bottom). It seems that it is installed and only the entries in the addons table fails.

Matthias

Nope, doesn't make a difference. It is still invisible in the admin.
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #27 on: March 28, 2006, 11:58:33 PM »

@argos

Did you use the modul from here

http://forum.websitebaker.org/index.php/topic,1472.msg17845.html#msg17845

or did you use the modul from the first thread in the post. The modul from the first thread is made for WB 2.5.x and is not shown in WB 2.6.x.

Matthias
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #28 on: March 29, 2006, 12:01:08 AM »

I used the latest version, the one for 2.6. Weird problem eh?
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #29 on: March 29, 2006, 10:19:18 AM »

Hmmm,

try to install the modul a second time. Had a similar problem on one of my servers. After first install no entries in the addons table. After second install all was ok. Uninstalling and reinstalling the worked without problems.

I know this is only a workaround not the solution. Will look at the code maybe there is an issue i've overseen.

Matthias
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #30 on: March 29, 2006, 12:46:15 PM »

I installed the module multiple times already, and it makes no difference... So not even the workaround works  cry
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
Guest
« Reply #31 on: March 29, 2006, 02:11:41 PM »

Try changing this line in install.php:


Code:
include('info.php');
to
Code:
include('./info.php');

or replace it with
Code:
$module_directory = 'simple';

I think here lies the troubles.

John
Logged
Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #32 on: March 29, 2006, 02:37:02 PM »

Adding the ./ didn't change a thing, but replacing it with
Code:
$module_directory = 'simple';
, then using the Reload function in the advanced admin and then deinstall and reinstall again did the trick!

Thanks John!

By the way, do you happen to know the solution to the problem with the Download Gallery module not accepting updates to the items? See http://forum.websitebaker.org/index.php/topic,1849.80.html
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
pcwacht
Guest
« Reply #33 on: March 29, 2006, 06:19:00 PM »

Will look into it sometime tomorrow (downloadmod - update - savebutton not working)
Logged
frrobert

Offline Offline

Posts: 4


« Reply #34 on: April 04, 2006, 12:50:35 AM »

I had the same problem with the install.  For some reason the install did not add the module to the addon table.  I manually created an enty for it and it seems to work now.


Fr. Robert
Logged
skidrash

Offline Offline

Posts: 70


« Reply #35 on: April 06, 2006, 08:12:02 PM »

I'm having the same problem.  Like frrobert, I manually add it in mysql and it works.  None of the workarounds seem to work for me.  The thing is, I wrote a whole module based off this one, and now it doesn't work either.  Does anyone have any more suggestions?
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #36 on: April 06, 2006, 08:44:34 PM »

Hello,

i think pcwacht's solution goes to the wright way. At the install procedure the modules gets temporaly in the temp folder. As long as it is there, the path to info.php is anotherone then when the modul is ready installed in the modules directory. So if info.php is used we should have to ways to includ this file with different pathes.

The way to take the modulname always from info.php is an easy way for to create a modul, because you only have to change the modulname in one file. On the other hand as this variable is in all module files the same, its no big problem with a good editor (notepad++) to replace all variables in all files with the hardcoded modulname. Then the modules should install and work without problems.

I know, this is not the solution, but a workaround wich is easy and fast to realize.

Matthias
Logged
skidrash

Offline Offline

Posts: 70


« Reply #37 on: April 06, 2006, 11:01:42 PM »

Alright, I will try that.  Thanks Matthias!  When I have some time I will try hard-coding and reply back here to say how I made out.

~skidrash
Logged
skidrash

Offline Offline

Posts: 70


« Reply #38 on: April 07, 2006, 05:27:27 PM »

So I hard coded the directory name in the Install.ph p and it didn't change anything.  When I install the module, I still have it install but it doesn't show up in the admin.  It looks like the only problem is that it doesn't get added to the addons table.

The module that I made that is based off this module has a slightly different problem.  When I install it, the admin interface just goes to a blank page (like when you try to install a template where the directory is actually zipped instead of just the files...)  When I look on the server I see that the zip file has been uploaded and is still sitting in the temp directory, and there is an 'unzip' folder in the temp directory as well, containing all the files from the zip file.  At this point I can't install any other modules until I manually delete the 'unzip' folder.  My module consistantly acts this way, and I've also tried hard-coding the module directory.

Any other ideas?  We've looked at the Install.ph p rather closely, is there any way one of the other files could actually be the culprit?

~skidrash



**Update
So with these thoughts in mind, I looked at my new module and changed some stuff in the info.ph p.  I commented out the '$module_type' and '$module_designed_for' lines (sorry 2.5.x users), and significantly shortened the '$module_description' line.  This makes it so that it will actually install just like the simple module (I'll mess with is more later to see if I can narrow in on the specific problem).  But just like the simple module, it doesn't get entered into the addons table either.
« Last Edit: April 07, 2006, 05:51:30 PM by skidrash » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #39 on: April 07, 2006, 06:08:36 PM »

Hello,

Quote
So I hard coded the directory name in the Install.ph p

I meant hardcode it not only in install.php i meant hardcode it in all modul files.  wink

Matthias
Logged
skidrash

Offline Offline

Posts: 70


« Reply #40 on: April 08, 2006, 03:54:49 PM »

Alright, I hard coded the module directory in every file and it still doesn't load on the admin end.  I did the same with my new module and it is doing something strange now too...  When I install it, the screen goes blank(like I described earlier), and if I install it again it'll say "upgraded successfully".  It still doesn't show up, but when I "reload addons" it does show up.  At that point I can't create a page with it(WB gives an error saying "module not installed"), but I can uninstall it. 

I have no idea what could be wrong at this point.  I deleted the install directory for WB and created a new database, and installed WB again from scratch (2.6.2).  And it made no difference.  I attached a zip here with my install.ph p and my info.ph p(I suspect the problem is in one of them).  Would someone mind taking a look at them and telling me if you see anything wrong?

~skidrash
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #41 on: April 08, 2006, 04:10:51 PM »

Hello,

i think the install.php was the problem. Attached you find a changed install.php wich should work. Deleted the default values for INT fields. Give the default values at the add.php wich you also find a the zippe package. Pleas post, if this works.

Matthias
Logged
skidrash

Offline Offline

Posts: 70


« Reply #42 on: April 08, 2006, 05:30:50 PM »

Beautiful!  Thank you so much Matthias!  That did it.  Now it installs and uninstalls perfectly(now I just have to fix all MY bugs!).
Logged
nepo77

Offline Offline

Posts: 8



« Reply #43 on: April 26, 2006, 10:53:44 PM »

Hello,

Thanks for this module, it really helps undertsanding how to make a module. There just is one thing im missing -how to ass language file support -basically i wanted to write a language file for pickel but could find no documentation how to add languages to modules. I couldnt find anything in forum,i would really apreciate it if you could point me to the right information.

Thanks!

Greetings
Nepo77
Logged
YeShakka

Offline Offline

Posts: 146



« Reply #44 on: June 08, 2006, 02:21:45 PM »

Hi,
in order to create a new module I installed the newmod.zip

It sets up folders and database-tables correctly.

But I have no option to create a new page with this module.
May someone give me hint on howto use it?

Thanks.
Logged
kickarse

Offline Offline

Posts: 64


« Reply #45 on: July 26, 2006, 07:44:28 PM »

Recompiled with latest files that were posted.

 grin
Logged
Egon

Offline Offline

Posts: 9


« Reply #46 on: August 26, 2006, 09:21:58 AM »

It seems the last file is corrupted, the Simple Module doesnt appear anywhere because the entry in the "addons"-database is missing.

You can add it manually:

Code:
INSERT INTO `addons` ( `addon_id` , `type` , `directory` , `name` , `description` , `function` , `version` , `platform` , `author` , `license` )
VALUES (
NULL , 'module', 'simple', 'Simple Module', 'This modul should help you create your own modules for WB', 'page', '0.3', '2.6.x', 'Travis Huizenga, Matthias Gallas', 'GNU General Public License'
);

I can't find the error in the last module-package, any hints how to solve  the problem?
Logged
nightingale2k1

Offline Offline

Posts: 8


« Reply #47 on: October 12, 2006, 03:28:28 AM »

I Install simple.zip into WB 2.6.4
and it didnt appear on the module list.

I tried with Egon SQL Insert into addons ... but when I create new page for calendar .. it doesnt work instead it display
Code:
Column 'pc2_enable' specified twice 

So, is there any solutions for this ? Thank you !
Logged

./me
adwin

<img src="http://e-rhema.net/signature/">
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7661



WWW
« Reply #48 on: October 12, 2006, 05:17:41 AM »

Hello,

after there are too much buggy versions of "Simple Modul" or "Newmod Modul" I created ha hopefully bugfree actualy version of the "Hello World Modul" wich you find attached to this post. Please only use this as basis for new modules.

Have fun

Matthias
Logged
nightingale2k1

Offline Offline

Posts: 8


« Reply #49 on: October 12, 2006, 08:56:50 AM »

It worked Smiley

Thank you !
Logged

./me
adwin

<img src="http://e-rhema.net/signature/">
Pages: 1 [2] 3 4   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!