PDA

View Full Version : UUgghhh --- Creating new Module Woes


Webber
09-21-2004, 07:09 PM
I hope someone can help me with this.... I am having a devil of a time.

- I created a new template named: adv_portal_donate using this:http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=5#generictemp)


- I create a php file named donate.php and uploaded it to the modules directory :

<?php

$collapseobj_custom_1 = $vbcollapse['collapseobj_custom_1'];
$collapseimg_custom_1 = $vbcollapse['collapseimg_custom_1'];

eval('$home[$mods[\'modid\']][\'content\'] .= "' . fetch_template('adv_portal_donate') . '";');

?>

- I added this to the portal page (index.php) at the top: define('VBA_PAGE', 'donate');

- I created the module in CP vBa CMPS settings as:
Module title= donate
Module Identifier= donate
file to include = none
or Template to include= donate

I have also tried it this way:
Module title= donate
Module Identifier= donate
file to include = donate.php
or Template to include= blank

I activated it and put in in the left column of the site.

What I get is not showing up at all. Please see http://www.yourlincolnpark.com/lpsforum/index.php. The module should be below the Poll and above the Online Buddies module on the left.

What I need to add is a module for PayPal donations... I tried to put the PayPal code in the header but it doesn't show.

Can someone save the last few hairs on my head and explain what I am doing wrong?


Also when you are in the actual forums, this error occurs when the module is activated:

Warning: Cannot modify header information - headers already sent by (output started at d:\cust\rlyson\YourLincolnParkcom\web\LPSForum\modules\donate.php:10) in d:\cust\rlyson\YourLincolnParkcom\web\LPSForum\includes\functions.php on line 2809
Warning: Cannot modify header information - headers already sent by (output started at d:\cust\rlyson\YourLincolnParkcom\web\LPSForum\modules\donate.php:10) in d:\cust\rlyson\YourLincolnParkcom\web\LPSForum\includes\functions.php on line 2809

Any help is greatly appreicated.

tomshawk
09-21-2004, 08:04 PM
Delete the module you created and try this
http://www.vbadvanced.com/forum/showthread.php?t=960 ;)

Our Sponsors
 

Brian
09-22-2004, 11:55 AM
Are you sure the module was active on that specific page?