vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Unanswered Threads Hack v1.3 (https://vborg.vbsupport.ru/showthread.php?t=63008)

Boofo 04-24-2004 04:12 AM

From the install file in this thread:

Quote:

For each forum individually, add the following code to the templates below wherever you want it to show. (A good place is right after the forum title, if you are using an image).

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post


With an image:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid"><img src="http://www.yoursite.com/forums/images/misc/unanswered_threads.gif" border="0" alt="View Unanswered Threads"></a>
</if>


As a link:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<div class="smallfont">
<a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid">View Unanswered Threads</a>
</div>
</if>
And here is your Forum Tools link, since you really can't live without it. ;)

Quote:

Forum Tools Menu (for each forum individually)

In the forumdisplay template, find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></td></tr>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BELOW that ADD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))"><tr><td class="vbmenu_option"><a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid">View Unanswered Threads</a></td></tr></if>

welo 04-24-2004 06:27 AM

Wow man. I was in the middle of tracking all this down and you beat me to it :). Everything works like a charm. The only thing I did differently was remove all the

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">

...stuff because I wanted this available to everyone (one of the first things I do when surfing other boards is look for zero-reply topics in hopes of finding a way to jump in; I'm probably not the only one).

Anyway, thanks a lot. Nice little hack indeed. :cool:

Boofo 04-24-2004 07:15 AM

Did the semi-colon fix do what you wanted?

welo 04-24-2004 07:29 AM

Quote:

Originally Posted by Boofo
Did the semi-colon fix do what you wanted?

lol, yep, it worked. Sorry to sound nitpicky on that. Like I said, it was trivial yet annoying. I'm just not quite familiar enough with the different templates yet to have tracked that down efficiently.

Thanks again.

Boofo 04-24-2004 07:37 AM

Quote:

Originally Posted by welo
lol, yep, it worked. Sorry to sound nitpicky on that. Like I said, it was trivial yet annoying. I'm just not quite familiar enough with the different templates yet to have tracked that down efficiently.

Thanks again.

All I did was do a template search for Key Word(s) and found it in one of the search templates and went from there. ;)

Oblivion Knight 04-27-2004 08:44 AM

Thanks for the semi-colon fix Boofo.. :)

Boofo 04-27-2004 03:38 PM

You're very welcome, sir. ;)

SHalliday 05-20-2004 05:34 PM

Guys, a hand here, i need some help to filter out some forums from the query, i want to open the search to all users but dont want them to see some admin/moderator specific posts.

Help appreciated
www.AllfordMustangs.com

Boofo 05-20-2004 09:43 PM

Quote:

Originally Posted by SHalliday
Guys, a hand here, i need some help to filter out some forums from the query, i want to open the search to all users but dont want them to see some admin/moderator specific posts.

Help appreciated
www.AllfordMustangs.com

The install file tells you how to have just certain forums selected.

You might want to click the install button in case there are ever any updates to this hack.

tamarian 05-25-2004 04:04 PM

Boofo, I just clicked install, but I've only used template changes, and did not change the search.php file. Are there any advantages to editing search.php?


All times are GMT. The time now is 05:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01095 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete