Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Optionally open thread in new window Details »»
Optionally open thread in new window
Version: 1.00, by ericgtr ericgtr is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.5.1 Rating:
Released: 12-17-2005 Last Update: Never Installs: 27
Template Edits
 
No support by the author.

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

That's it!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 04-30-2006, 06:25 AM
Titania Titania is offline
 
Join Date: Feb 2006
Location: Geelong, Australia
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's cool

I combined macgyver24 and virtualno's tweaks and added a new image (attached) to my forum/images/misc directory to have the option of both

I've attached a screen grab from my board as an example too.


<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>
<a href="showthread.php?goto=lastpost&$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window_last.gif" alt="New Window" width="16" height="16" border="0"></a>
Reply With Quote
  #23  
Old 04-30-2006, 07:17 PM
filmking filmking is offline
 
Join Date: Apr 2006
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Titania and Virtualno... finally got it working. And thanks to original author too
Reply With Quote
  #24  
Old 05-01-2006, 05:06 PM
fib fib is offline
 
Join Date: Nov 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just an addition -it needs done for both a new post (strong) thread and a read thread.

This may be a longer way around (I am no expert but this worked for me)
Thank you to the original poster and the others.

Mine turned out like this
Code:
			<if condition="$show['gotonewpost']"><a href="showthread.php?$session[sessionurl]goto=newpost&amp;t=$thread[threadid]"><img class="inlineimg" src="$stylevar[imgdir_button]/firstnew.gif" alt="$vbphrase[go_to_first_new_post]" border="0" /></a></if>
			$thread[movedprefix]
			$thread[typeprefix]
			$thread[moderatedprefix]
			<if condition="$show['gotonewpost']">
				<strong><a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a></strong>

<!-- 1st entry for post in new window -->
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="open this thread in a new window" width="16" height="16" border="0"></a>
<!-- end 1st -->
			<else />
				<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>

<!-- 2nd entry for post in new window -->
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" target="_blank"><img src="$stylevar[imgdir_misc]/new_window.gif" alt="open this thread in a new window" width="16" height="16" border="0"></a>
<!-- end 2nd -->

			</if>
I have added the start of the if so you can see how it falls in.
I realise that I am no expert so be gentle.
Reply With Quote
  #25  
Old 05-10-2006, 08:00 PM
ar2 ar2 is offline
 
Join Date: Jan 2006
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've got a little problem, "open in new window" icon appears only next to unread threads, when the subject have been read already there is no icon.

any suggestions ?

forum.hdtv.com.pl
Reply With Quote
  #26  
Old 05-23-2006, 08:40 AM
mcyates mcyates is offline
 
Join Date: Jan 2003
Location: Middlesbrough, Cleveland
Posts: 798
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by macgyver24
I could not make it work with the instructions so here is what worked for me on the latest version of vb. Find the line bellow in the same place the original instructions say to in the threadbit template but instead look for the line bellow and add the code above or bellow it. If you add above it the icon will be to the left if you add bellow it the icon will be to the right. I have attached my threadbit for admin or anyone else to see.

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

Here is mine to the right:

<else />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]">$thread[threadtitle]</a>
<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>
</if>


Admin/Mod ... Please edit my post accordingly I know you want it your way so please make changes as you see fit. I hope this helps anyone else with problems.
Thank You very much ,this works for my forum which is version 3.5.4

Thanks again
Reply With Quote
  #27  
Old 05-29-2006, 12:12 PM
Darat Darat is offline
 
Join Date: Aug 2004
Posts: 329
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by fib
Just an addition -it needs done for both a new post (strong) thread and a read thread.

This may be a longer way around (I am no expert but this worked for me)
Thank you to the original poster and the others.

Mine turned out like this

...snip...

I have added the start of the if so you can see how it falls in.
I realise that I am no expert so be gentle.
Since you want it to appear which ever condition is met by the IF statement just put the code either above or below the IF ELSE section code depending whether you want it to display to the right or left of the thread title.

________________

I found the original icon a bit too vibrant on my board so I toned it down, I also cut the original icon down to make it very small (but it's not now as clear as the original icon as to what it does.) If anyone wants to use these versions feel free to do so.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04383 seconds
  • Memory Usage 2,273KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete