dxlwebs |
09-19-2008 08:29 AM |
Quote:
Originally Posted by Bio-Con
(Post 1625476)
ok have been using this mod for almost a year now...it works great on my 3.7.2 board...was wondering how would you make it show up in certain forums...saw this on the other sotw mod and trying to configure it with yours...if it can't or won't be able to be done then im sorry but i will have to uninstall after a year of using it and install the other one...this is the script edit for the other one..
i tried changing the $hs_sotw to $sotw...doesn't work...any ideas
|
hey yeah its possible and pretty easy to do to get it to display in forum display and after that your if code should work
step one in your admincp go to add new plugin,
product = vb area - SOTW Hack
Hook Location = forumdisplay - complete
Title = i called it SOTWinfodis but its upto you
Execution Order = 5
Plugin PHP Code =
Code:
//Pull info from the database
$query = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "sotw ORDER BY dateline DESC Limit 1");
while($sig = $vbulletin->db->fetch_array($query))
{
$snumber = $sig['id'];
$stitle = $sig['title'];
$threadurl = $sig['thread'];
$votes = $sig['votes'];
$susername = $sig['username'];
$suserid = $sig['userid'];
$imageurl = $sig['image'];
$date = vbdate($vbulletin->options['dateformat'], $sig['dateline']);
$next = $sig['next'];
$prize = $sig['prize'];
$adminrating = $sig['adminrating'];
}
eval('$sotw .= "' . fetch_template('enig_sotw') . '";');
Plugin is Active = yes
and save now you can do what you want with the SOTW in your forumdisplay.php file
hope this helps
if code
Code:
<if condition="in_array($forumid, array(88))">$sotw</if>
|