mattmcc
07-31-2009, 04:20 PM
I'm new to vBulletin so this may be easy.
I'm trying to make a Product and as part of this product want to add another table on the forum's index page below all the forums. This wouldn't be a forum but would have the same style as the other tables with a link to another page with the Product functionality.
I figured I would need to create a plugin for this but I'm having trouble figuring out how I can insert code into the FORUMHOME template below the forums list. Is there a way to do this?
Edit: Ok, I found $ad_location[ad_forumhome_afterforums] which seems to be what I'm looking for. If I ad a plugin at the hook "forumhome_complete" with the code of
$ad_location[ad_forumhome_afterforums] = "<table...my table code ...</table>' . $ad_location[ad_forumhome_afterforums];
is that considered a bad way to do it? Or is there a better way?
I'm trying to make a Product and as part of this product want to add another table on the forum's index page below all the forums. This wouldn't be a forum but would have the same style as the other tables with a link to another page with the Product functionality.
I figured I would need to create a plugin for this but I'm having trouble figuring out how I can insert code into the FORUMHOME template below the forums list. Is there a way to do this?
Edit: Ok, I found $ad_location[ad_forumhome_afterforums] which seems to be what I'm looking for. If I ad a plugin at the hook "forumhome_complete" with the code of
$ad_location[ad_forumhome_afterforums] = "<table...my table code ...</table>' . $ad_location[ad_forumhome_afterforums];
is that considered a bad way to do it? Or is there a better way?