vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Optionally open thread in new window (https://vborg.vbsupport.ru/showthread.php?t=103225)

ericgtr 12-17-2005 10:00 PM

Optionally open thread in new window
 
This is something my users really enjoy. Appended to the end of each thread title in the forumdisplay is an image that they can click on to open it in a new window.

In your threadbit template find:
Code:

<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>
Add this underneath:
Code:

<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="New Window" width="16" height="16" border="0"></a>
Now upload this image to your forums/images/misc directory http://www.guitars101.com/vb/images/...new_window.gif

That's it! :)

rb290 12-18-2005 07:00 PM

good stuff!
i shall click install.

GoNz00 12-18-2005 07:09 PM

thanks :)

works on 3.5.2

ericgtr 12-18-2005 07:37 PM

Quote:

Originally Posted by GoNz00
thanks :)

works on 3.5.2

Good to know, thanks. Glad it's getting some use :)

Mark.B 12-18-2005 08:40 PM

Nice idea, I've adapted this to work in 3.0 and used it there.

Allan 12-18-2005 10:45 PM

Nice idea :)

click install

The Realist 12-19-2005 07:51 PM

Dont show up on my forums.

ericgtr 12-19-2005 08:25 PM

Quote:

Originally Posted by The Realist
Dont show up on my forums.

Did you upload the image to your board/images/misc directory? If you have a special theme you may have to upload it there.

The Realist 12-20-2005 08:38 AM

yep and still no show.

ericgtr 12-20-2005 02:54 PM

Quote:

Originally Posted by The Realist
yep and still no show.

Hmm.. Are you using 3.5.0? (it says that under your avatar) I am not sure what (if any) differences there are between the two versions. I would doulbe check your threadbit template and look for similarities.


All times are GMT. The time now is 11:11 AM.

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.01020 seconds
  • Memory Usage 1,728KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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