PDA

View Full Version : New Post with Pull down for 24, 48, 1wk, 1 mo, etc


93Corvette
02-28-2009, 03:08 AM
I was looking at an old hack, which didn't work, and wonder if there is anything else out there that does "Active Forums". I like this one since you can do the last 24, 48, 1wk, 1mo, 1yr.
---------------------

http://www.vbulletin.com/forum/showthread.php?t=89080
(thread 26)

It says to find:
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>

and replace it with:
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td id="navbar_activetopics" class="vbmenu_control">
<a href="search.php?$session[sessionurl]&do=getdaily&days=1">Active Topics</a>
<script type="text/javascript">vbmenu_register("navbar_activetopics"); </script></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>



When I try to save this code, it says it has a /if error

DieselMinded
02-28-2009, 04:19 AM
im not a coder but it looks like you have 3 open if's and only 1 closing if

add </if></if> to the end and see if that dont crash your site

:D

93Corvette
02-28-2009, 04:27 AM
im not a coder but it looks like you have 3 open if's and only 1 closing if

add </if></if> to the end and see if that dont crash your site

:D


Thank-you!!! I will try it....