PDA

View Full Version : Custom Module, No theme?


FPSChris
06-14-2008, 03:15 PM
So yea, i managed to create a custom module, using the standard template for modules.

I wrote some code (Image, and centering + text), and then a code to show the date using php.

I got it working on site with the clean code mode.

But somehow the module doesnt got an ending and the template inside is missing, how would i correct or add that.?

Difference: (Attachments)


EDIT: Okay i created a new module, now using "[Template Module]", and i got the theme with, but now the PHP doesnt work... what could i do now?

EDIT2: I tried using javascript instead and that works as a temporary solution ofcourse, but i'd still like to know how i could use php and with theme on...

EDIT3: Annoying thing: When i put my module at the top (right column) there's a little space between where its supposed to be and where it is now, (look 3 attachment)

EDIT4: Annoying = fixed, had to remove some "<br>" at the bottom, dont really know why that caused it :p , real question now = How to get [Template Module] and PHP to work together :p


Thank you in advance :p

dbirosel
06-15-2008, 04:17 PM
I would like to know the solution also. If you check my site www.1904ryderz.com, the template is not working in the box. It is solid black and not showing the text. What am I doing wrong?

Our Sponsors
 

Brian
06-16-2008, 03:44 PM
FPSChris - For issues with 3rd party modules you would need to post in the thread that you downloaded the module from and see if the author can assist you.

dbirosel - You need to remove the black color formatting from the BB code you've entered for the module.

FPSChris
06-16-2008, 05:09 PM
"I managed to create a custom module, using the standard template for modules."

I didnt download it, its just a regular module with text and images in it...

and what i want is: a module with template in, and also possible to run php through..

Our Sponsors
 

Brian
06-16-2008, 05:29 PM
Then you would need to create a PHP file module with your PHP code and then call the template like this:
eval('$home["$mods[modid]"][\'content\'] = "' . fetch_template('adv_portal_yourtemplatename') . '";');

FPSChris
06-21-2008, 01:40 PM
Thank you, hope ill get it sorted ^^