PDA

View Full Version : latest announcement (formated for v2.x)


scr2000ge
10-04-2005, 08:24 AM
you can find the original here http://www.vbadvanced.com/forum/showthread.php?t=2670

edit the announcements.php file to your liking and change the urls from mine to yours :p

dleblanc
10-06-2005, 06:27 PM
I install the module and not working. I get this error below:

Fatal error: Call to a member function on a non-object in /home/cajunfol/public_html/forum/modules/announements.php on line 44

This is what on line 44 - $announcements = $DB_site->query("........

I'm using vBadvanced 2.0 and vBulletin 3.5

Went into my Admincp and uploaded module though the upload in the vBa CMPS and then followed the instructions for in the announce_instructions.txt on the orginal post and created the tow adv_Portal announcemetns and announcementbit.

After I made sure it was active in the mod that I download from you post then went into my vBa CMPS > Edit page and made sure the mod was check as active.

Then try it out and get the error indicated on line 44.

One more thing can you explain your statement here: edit the announcements.php file to your liking and change the urls from mine to yours. Change what urls?????

Our Sponsors
 

scr2000ge
10-08-2005, 06:14 PM
i'm using v3.0.7

i dont think it will work with your version without some modifications

PyroMarkus
12-26-2005, 02:24 PM
Nice hack, thank you, but I have some problems:

I created the 2 new templates and put the html from the original thread (instructions.txt) in id.
I create a "PHP-File"-module, chose the new file, listed the 2 templates but I get the following errors:

In the headline above all of my pages I have this listed:

a:2:{s:6:"module";s:387:"a:12:{s:5:"title";s:19:"Latest Announcement";s:10:"identifier";s:14:"moduleannounce";s:8:"filename";s:16:"announements.php";s:7:"inctype";s:8:"php_file";s:6:"parent";s:0:"";s:12:"templatelist";s:52:"adv_portal_announcements adv_portal_announcementbit";s:7:"colspan";s:1:"0";s:8:"formcode";s:0:"";s:11:"cleanoutput";s:1:"0";s:7:"options";s:0:"";s:8:"useshell";s:1:"1";s:4:"link";s:0:"";}";s:4:"file";s:3217:"";}

And the table structure of the pages which include the modules are destroyed.

Any idea what I am doing wrong?!

Thanks in advance,
Pyro

Our Sponsors
 

PyroMarkus
12-26-2005, 02:30 PM
I am pretty sure, that I am not allowed to remove this from the PHP-File:

a:2:{s:6:"module";s:387:"a:12:{s:5:"title";s:19:"Latest Announcement";s:10:"identifier";s:14:"moduleannounce";s:8:"filename";s:16:"announements.php";s:7:"inctype";s:8:"php_file";s:6:"parent";s:0:"";s:12:"templatelist";s:52:"adv_portal_announcements
adv_portal_announcementbit";s:7:"colspan";s:1:"0";s:8:"formcode";s:0:"";s:11:"cleanoutput";s:1:"0";s:7:"options";s:0:"";s:8:"useshell";s:1:"1";s:4:"link";s:0:"";}";s:4:"file";s:3217:"

But this helps a little, it removes the things from above. but the table structure is still affected...