Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 23, 2012, 10:32:28 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
155402
Posts in
21698
Topics by
7729
Members
Latest Member:
adnan
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Pb creating a module - (for developers)
Pages: [
1
]
Go Down
Author
Topic: Pb creating a module - (for developers) (Read 554 times)
Shooye
Offline
Posts: 14
Pb creating a module - (for developers)
«
on:
July 07, 2008, 06:30:57 PM »
Hello everybody,
I am actullay trying to create a module into websitebaker.
my file install.php successfully install databases tables and files are well copied into the modules/"mymodule" folder.
When i add a "mymodule" section on a page the module file add.php seems to work (a line is successfully added in the database) but when I arrive to the modify.php page i have a blank page with no php error instead of what i would have.
Anyone had this problem ?
Any idea ?
Logged
doc
Guest
Re: Pb creating a module - (for developers)
«
Reply #1 on:
July 07, 2008, 07:01:32 PM »
Hello,
enable error reporting via the php.ini (display_errors = on; error_reporting = E_ALL). Remeber to set WB error handler to E_All (WB options, advanced settings). Search for any error messages displayed.
When adding more than one section on a single page, remember to make use of function_exist to avoid that functions are declared twice.
Christian
Logged
Shooye
Offline
Posts: 14
Re: Pb creating a module - (for developers)
«
Reply #2 on:
July 08, 2008, 10:28:44 AM »
Hello doc, thanks for your help.
I'v set up error reporting but it seems ther is no difference...
The modify.php seems not to be included as well, because when I add exit("test); or echo "<javascript>alert('test')</javascript>" at the beginning of the file nothing is shown.
I have really no idea of what it could be...
Logged
doc
Guest
Re: Pb creating a module - (for developers)
«
Reply #3 on:
July 08, 2008, 11:30:32 AM »
Hello,
have you read through the information available on the WB Help website (section Advanced docu).
Depending on the module type you have choosen, different files (e.g. include.php, tool.php or modify.php) are expected. Details see help page.
In addition please check out the Hello world module available from the addons repository which provides some basic information about creating own modules.
Regards Christian
Logged
Shooye
Offline
Posts: 14
Re: Pb creating a module - (for developers)
«
Reply #4 on:
July 08, 2008, 11:57:40 AM »
RE doc,
i'v already download and seen the hello world module and advanced documentation.
I'm using a page module type and i have an info.php page and a modify.php page (for this module type i don't need include.php or tool.php if i have understand as well).
... i don't think i'v a problem with my modify.php page code, it must be some include error but i really don't know why.
I know i't note easy for you to view the problem ^^ but I'm really interested about creating my own modules so if ever you have an idea, it would be fine.
When I arrive on my modify.php page I just have a blank page...
Regards, Rémi
Logged
Shooye
Offline
Posts: 14
Re: Pb creating a module - (for developers)
«
Reply #5 on:
July 08, 2008, 12:50:09 PM »
Sorry but i'v finally find the problem ^^
It was that i had replaced the original WB modify.php file by my module's modify.php file by error..
Thanks for your help !
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
=> Security Announcements
=> Documentation
=> WebsiteBaker Website Showcase
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
=====> Modules / Extensions
===> Suggestions
===> Software bugs
=> Help & Support
=> Modules
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
=> jQuery
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
=> Archive (posts up to 2007)
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
=====> Module / Extensions
===> Vorschläge
===> Softwarefehler
===> Erfahrungs und Testberichte
=> Hilfe/Support
=> Module & Snippets
=> Templates & Design
=> Tutorials
=> jQuery
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...