PDA

View Full Version : Hacks from vBadvanced > CMPS


Intex
06-06-2004, 05:34 AM
Brian

Although I've only ever installed vB CMPS rather than vBadvanced, I notice there are quite a few hacks created for vBAdvanced over at vB.org. I wondered whether you could provide us with a brief guide as to where core modifications should be made so we can get these other hacks working (example below). In vBadvanced I can see there is a main index.php file that really controlled the whole thing, but now the cmps_index.php file contains relatively little.

As an example, I wanted to use Logician's dynamic announcements on the CMPS homepage. The instructions for this were simply:

>>>

Edit vbadvanced's index.php

Find:

'bbcode_quote'
);


Add under


// Logician Hack: Dynamic Forum Announcements Hack
$globaltemplates[] = 'dfh_announcement';
$globaltemplates[] = 'dfh_announcement_headercode';
$globaltemplates[] = 'dfh_announcement_popup';
// Logician Hack: Dynamic Forum Announcements Hack



Find

######################### News #########################


Add ABOVE


// Logician Hack: Dynamic Forum Announcements Hack
if ($vboptions['dynamic_fha'] OR $vboptions['dynamic_popup']) {require_once('./includes/functions_bbcodeparse.php');}

if ($vboptions['dynamic_fha'])
{
eval('$dynamic_fha = "' . addslashes($vboptions['dynamic_fha']) . '";');
$dynamic_fha=str_replace("\\'", "'", $dynamic_fha);
$dfh_announcement_announcementtopaste = dynamic_a($dynamic_fha);
if (trim($dfh_announcement_announcementtopaste)) {eval('$dfh_announcement = "' . fetch_template('dfh_announcement') . '";');}
}

if ($vboptions['dynamic_popup'])
{
eval('$dynamic_popup = "' . addslashes($vboptions['dynamic_popup']) . '";');
$dynamic_popup=str_replace("\\'", "'", $dynamic_popup);
$dfh_announcement_popuptopaste = dynamic_a($dynamic_popup);
if (trim($dfh_announcement_popuptopaste))
{
eval('$dfh_announcement_headercode = "' . fetch_template('dfh_announcement_headercode') . '";');
eval('$dfh_announcement_popup = "' . fetch_template('dfh_announcement_popup') . '";');
}
}

// Logician Hack: Dynamic Forum Announcements Hack


The template stuff is pretty much self-explanatory, so it's just where you change the relevant code as above. There are quite a lot of other hacks out there that were written for vBadvanced, so some general guidelines would be good and very much appreciated :).

Thanks

Brian
06-06-2004, 10:50 AM
These two links should help you to get going in the right direction. :)

http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=5
http://www.vbadvanced.com/forum/showthread.php?t=850

Our Sponsors
 

The Sandman
06-06-2004, 11:11 AM
I'm a little confused... I'm also running Logician's Dynamic Forum Announcements hack and I wouldn't mind being having the announcements show on the vBa CMPS Homepage. But these instructions don't seem to apply... :confused:

Brian
06-06-2004, 11:26 AM
"Hello Tigga - You have not yet activated your account! You will not be able to post, search, or use many of our features until you are activated. If you are having any difficulty with this us the "Contact Us" link on the bottom of every page to let us know."

Is that part of the hack on your site right there? I've never really looked at it, so I wanted to make sure that I was looking at the right thing.

Our Sponsors
 

The Sandman
06-06-2004, 12:26 PM
Yep, that's part of it...

Intex
06-06-2004, 03:29 PM
Thx. Brian. I'll check them out.

In the meantime, if anybody sorts out the Logician hack, let me know ;).


These two links should help you to get going in the right direction. :)

http://www.vbadvanced.com/membersarea.php?do=viewmanual&productid=4&pageid=5
http://www.vbadvanced.com/forum/showthread.php?t=850

katilkuzu
02-16-2006, 11:16 AM
hi where can i find this file : product-lh_dynamic_fhannouncement.xml i need this one. i found one but it did not work :(