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)

gldtn 04-02-2004 06:47 AM

Quote:

Originally Posted by Boofo
Right now it is set up for Admins, Super Mods and Mods to see the link. But you can add whatever usergroups you want to see it very easily. ;)

I'm very dumb when it comes to hacking, could you show me an example on how to add other usergroups to the list?

Thanks in advance

Boofo 04-02-2004 06:55 AM

Find this:

HTML Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
and add what usergroups you want to the 5,6,7 part of it. ;)

msimplay 04-02-2004 08:16 AM

Quote:

Originally Posted by Boofo
Find this:

HTML Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
and add what usergroups you want to the 5,6,7 part of it. ;)

for my forums i removed the if condition because i want people to answer the 0 replies :D and it bumps old threads that should have got a look

Slave 04-03-2004 05:02 AM

Nice hack .. :) .. installed

welo 04-24-2004 01:42 AM

Just installed and works great. You know what would be nice though? If we could find some way to add this to the "Forum Tools" dropdown for individual forums rather than having to edit a link in somewhere. That'd sure be a nice, convenient place to have it.

[edit]
You know something though? The more I look at it the less I'm finding a viable place to add a link to the forumhome_forumbit_levelx templates. Where is everyone else putting it? I added it to FORUMDISPLAY and everything seems to work fine.
[/edit]

welo 04-24-2004 02:51 AM

Here's something minor I just noticed: The search results for VB3 have a title bar that reads:

Quote:

Search: Key Word(s): [blah] ; Forum: [this forum] and child forums
...where [blah] = whatever search words you used. In the case of this hack however, no keywords are used and you see:

Quote:

Search: ; Forum: [this forum]
...instead. Took me a couple of tries to figure out where that stray semicolon was coming from. Is there any way to insert something before the semicolon when links for this hack are clicked, like "Unanswered Posts" or something? The way it currently renders makes it look like a bug. Obviously nothing major but it is kind of annoying.

Boofo 04-24-2004 02:57 AM

Quote:

Originally Posted by welo
Here's something minor I just noticed: The search results for VB3 have a title bar that reads:



...where [blah] = whatever search words you used. In the case of this hack however, no keywords are used and you see:



...instead. Took me a couple of tries to figure out where that stray semicolon was coming from. Is there any way to insert something before the semicolon when links for this hack are clicked, like "Unanswered Posts" or something? The way it currently renders makes it look like a bug. Obviously nothing major but it is kind of annoying.

I'm not sure why that semi-colon is there, but I have not found a way to get rid of it as yet. That has been there since the beginning of this hack. If you come up with a way to get rid of it, I'm all ears. ;)

The install file tells you where to add the link in these 2 templates:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

welo 04-24-2004 03:28 AM

Quote:

Originally Posted by Boofo
I'm not sure why that semi-colon is there, but I have not found a way to get rid of it as yet. That has been there since the beginning of this hack. If you come up with a way to get rid of it, I'm all ears. ;)

The semicolon is supposed to be there. The thing about this hack is it feeds no keywords to place before it, so the semicolon just hangs there by itself once the query is run. I'm looking into it.

Quote:

Originally Posted by Boofo
The install file tells you where to add the link in these 2 templates:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post

Sorry bud; nope, it doesn't. What it says is:

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).
My point is, I dont think right after the forum title is appropriate, I'm not using an image, and I don't see anywhere else in these templates to add it as a link. All they do is overview the content and stats for each forum without providing any real additional navigation. FORUMDISPLAY gives a better set of options, and is one template to edit rather than two. I even looked on your board to see where you put it and curiously can't find it anywhere.

Boofo 04-24-2004 03:55 AM

Ok, I fixed the semi-colon cosmetic problem. Try the following code and let me know if this works for you.

Quote:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the search_results template

Find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

; $vbphrase[forum]: $displayForums <if condition="$childforums">$vbphrase[and_child_forums]</if>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REPLACE it with
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<if condition="$dontcache=1">
Unanswered Threads --
<else />
;
</if>
$vbphrase[forum]: $displayForums <if condition="$childforums">$vbphrase[and_child_forums]</if>

Boofo 04-24-2004 04:08 AM

Quote:

Originally Posted by welo
The semicolon is supposed to be there. The thing about this hack is it feeds no keywords to place before it, so the semicolon just hangs there by itself once the query is run. I'm looking into it.


Sorry bud; nope, it doesn't. What it says is:


My point is, I dont think right after the forum title is appropriate, I'm not using an image, and I don't see anywhere else in these templates to add it as a link. All they do is overview the content and stats for each forum without providing any real additional navigation. FORUMDISPLAY gives a better set of options, and is one template to edit rather than two. I even looked on your board to see where you put it and curiously can't find it anywhere.

You won't find it on my board unless you are an Admin or Moderator. I don't have it available to registered users. I use the question_mark image right after the forum title. I had it as a link under the forum description (where Moderated By is now on my site) but I like the image better. I also have a link for Unanswered Threads fior the whole site next to View Forum Leaders and Mark Forum Read links, but again, only for staff.


All times are GMT. The time now is 05:31 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.01191 seconds
  • Memory Usage 1,752KB
  • 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
  • (2)bbcode_html_printable
  • (10)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