vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Miscellaneous Hacks - Forum-wide Search For Unanswered Threads (https://vborg.vbsupport.ru/showthread.php?t=201100)

Mosh 07-02-2009 09:57 PM

Quote:

Originally Posted by jilly (Post 1841619)
Thanks Mosh - I tried installing, and of course I have customized my navbar (LOL) - how can I add the link manually?

The best thing I can suggest is for you to look at the default/original vBulletin navbar template, locate $template_hook[navbar_buttons_left] or $template_hook[navbar_buttons_right] are normally located and put either of those hooks in the appropriate position in your customised navbar template and select the appropriate navbar placement option in this hack's vBulletin options for it to display. I can not be any more specific than that, because as you said, it is a customised template.

jilly 07-04-2009 01:28 PM

Quote:

Originally Posted by Mosh (Post 1841656)
The best thing I can suggest is for you to look at the default/original vBulletin navbar template, locate $template_hook[navbar_buttons_left] or $template_hook[navbar_buttons_right] are normally located and put either of those hooks in the appropriate position in your customised navbar template and select the appropriate navbar placement option in this hack's vBulletin options for it to display. I can not be any more specific than that, because as you said, it is a customised template.

well, I can put the code into the navbar myself, that's not an issue, just need to know what exactly to put in - like whatever the code is that makes the link.. for example my user cp link, the code is:

<td class="vbmenu_control"><a href="usercp.php">User CP</a></td>

so I can add in the link myself, if I now what to put between the two TD's - for example:

<td class="vbmenu_control"> Mosh's Unanswered Thread Info Goes Here</td>

Mosh 07-04-2009 09:49 PM

Quote:

Originally Posted by jilly (Post 1842667)
well, I can put the code into the navbar myself, that's not an issue, just need to know what exactly to put in - like whatever the code is that makes the link.. for example my user cp link, the code is:

<td class="vbmenu_control"><a href="usercp.php">User CP</a></td>

so I can add in the link myself, if I now what to put between the two TD's - for example:

<td class="vbmenu_control"> Mosh's Unanswered Thread Info Goes Here</td>

Cool :)

Here you go, everything in the below HTML tags including the tds, just copy and paste where you need it:
HTML Code:

REMOVED, DOES NOT WORK

jilly 07-06-2009 12:32 PM

Okay, I tried to add it into my navbar template, and got this error message:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jilly/public_html/forums/includes/adminfunctions_template.php(3938) : eval()'d code on line 162

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and line 162 in my template is where I tried to put the code from above.

Mosh 07-06-2009 12:42 PM

Quote:

Originally Posted by jilly (Post 1843713)
Okay, I tried to add it into my navbar template, and got this error message:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jilly/public_html/forums/includes/adminfunctions_template.php(3938) : eval()'d code on line 162

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and line 162 in my template is where I tried to put the code from above.

I know where I went wrong with this. Try this:
HTML Code:

REMOVED, DOES NOT WORK

jilly 07-06-2009 01:08 PM

tried the new one, but still got the same error.. D'oh!

Mosh 07-06-2009 10:00 PM

Quote:

Originally Posted by jilly (Post 1843726)
tried the new one, but still got the same error.. D'oh!

OK, the below is tested and working, so for the last time, copy and paste the below :)

HTML Code:

<!-- Forum-wide Search For Unanswered Threads (c) Mosh Shigdar 2008 --><td class="vbmenu_control"><a href="{$vbulletin->options['bburl']}/search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;exclude={$vbulletin->options['fwsfut_exclude_forums']}&amp;nocache={$vbulletin->options['fwsfut_cache_enable']}">$vbphrase[forum_wide_unanswered]</a></td><!-- end of Forum-wide Search For Unanswered Threads -->

jilly 07-08-2009 01:34 AM

yay, it worked! Thanks Mosh, awesome!

Bubble #5 10-01-2009 04:39 AM

How (or where) do we remove the title 'Unanswered Threads' from the search drop down. It looks redundant. We need it to look more like what is used on this site...

Thanks :)

Mosh 10-01-2009 08:08 AM

Quote:

Originally Posted by Bubble #5 (Post 1893158)
How (or where) do we remove the title 'Unanswered Threads' from the search drop down. It looks redundant. We need it to look more like what is used on this site...

Thanks :)

This change is not supported, but should work.

Edit the Forum-wide Search For Unanswered Threads plugin, find:
PHP Code:

        $template_hook['navbar_search_menu'] .= '<!-- Forum-wide Search For Unanswered Threads (c) Mosh Shigdar 2008 - 2009 --><tr><td class="thead">'.$vbphrase['forum_wide_unanswered'].'</td></tr><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/search.php?'.$session['sessionurl'].'do=process&replyless=1&replylimit=0&exclude='.$vbulletin->options['fwsfut_exclude_forums'].'&nocache='.$vbulletin->options['fwsfut_cache_enable'].'">'.$vbphrase['forum_wide_unanswered'].'</a></td></tr><!-- end of Forum-wide Search For Unanswered Threads -->'

Change to:
PHP Code:

        $template_hook['navbar_search_menu'] .= '<!-- Forum-wide Search For Unanswered Threads (c) Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/search.php?'.$session['sessionurl'].'do=process&replyless=1&replylimit=0&exclude='.$vbulletin->options['fwsfut_exclude_forums'].'&nocache='.$vbulletin->options['fwsfut_cache_enable'].'">'.$vbphrase['forum_wide_unanswered'].'</a></td></tr><!-- end of Forum-wide Search For Unanswered Threads -->'



All times are GMT. The time now is 12:59 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.01072 seconds
  • Memory Usage 1,761KB
  • 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
  • (3)bbcode_html_printable
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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