PDA


View Full Version : How to add/update custom modules (based on forum content)


Xil Ze
06-04-2005, 07:23 PM
I've been messing with this all day. If you simply create a new PHP modules, you'll be giving up all the control (which is the best part). The best way I've found to add a custom module is as follows:

Grab news.php from your ftp. Replace 'adv_portal_newsbits' with whichever custom template you wish to use. Make sure your preexisting templates have been updated with the new variables (replies, attatchment, etc.) Rename it whatever and upload it to the modules dir.

Copy an existing and working module (probably news). Choose the module from the drop down menu and fix the cache and settings to your liking. If things went correctly (and if this works for anyone else), your module should now appear.

If you're having trouble copying a module, you may have a dysfunctional 'GO' button. Check http://www.vbadvanced.com/forum/showpost.php?p=48197&postcount=7 for the proper coding.

LEAD_WEIGHT
06-04-2005, 07:30 PM
U have a site so I can see your modules.
Thanks in advance if it works. :)

Xil Ze
06-04-2005, 07:31 PM
Sure, there are five on the page.

http://www.thenappycat.com/

LEAD_WEIGHT
06-04-2005, 07:36 PM
Your gallery seems not to work. unless it is not on just yet.

Xil Ze
06-04-2005, 07:44 PM
d'oh thanks for letting me know

LEAD_WEIGHT
06-04-2005, 07:46 PM
U also have overlapping words. That could just be me unless it is a game u have to unscramble the text. :D

All this is on one line?
Early one mornin' the sun was shinin', I was layin' in bed wond'rin' if she'd changed at all if her hair was still red. Her folks they said our lives together sure was gonna be rough they never
did like Mama's homemade dress Papa's bankbook wasn't big enough.

Xil Ze
06-04-2005, 07:55 PM
yeah those are meant as section breaks ;)

Brian
06-04-2005, 07:55 PM
Why not just use the 'Copy Module' feature instead? Even if you needed to change some stuff in the templates that could still be done with some pretty simple if conditions.

Xil Ze
06-04-2005, 08:02 PM
If the template changes are minimal, that would be ideal. But grouping together multiple conditionals within a table is far too confusing for me.