Log in

View Full Version : Creating a plugin for a custom page


AzzidReign
08-20-2007, 04:08 PM
I have a custom page (custom_affiliate) and I'm trying to create a plugin but it's not working. This is what I have:

$search_text = '<!-- links -->';
$vbulletin->templatecache['custom_affiliate'] = str_replace($search_text,
$search_text.fetch_template('affiliate_sites'),$vb ulletin->templatecache['custom_affiliate']);

I'm almost certain that code should work but I'm not sure what the hook location should be set to. Can I get some help? :confused:

EnIgMa1234
08-20-2007, 04:13 PM
What hook are you using?

AzzidReign
08-20-2007, 04:22 PM
How do I figure that out? :S

The page I'm referring to is:
http://www.layeredgfx.com/forums/layeredgfx-affiliates.html

Without the rewrite it would be:
http://www.layeredgfx.com/forums/misc.php?do=page&template=affiliate

I'm not sure if that will help.