Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 08-08-2010, 07:22 PM
BUDIMAN BUDIMAN is offline
 
Join Date: Jun 2010
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How To Open Forum Link In New Windows ? (Subforum With Link)

hi, I'm using vb4.0.5

i have a question here about subforum that redirect to another link

so, my question is, how to make it opens in new windows when we click it ?

i know there is a modification for vb3

but in vb4, which one template that I need to edit ?

please see my photo attachment

please guys :-(
Attached Images
File Type: png 11.png (10.4 KB, 0 views)
File Type: png 2222.png (4.5 KB, 0 views)
Reply With Quote
  #2  
Old 08-08-2010, 08:14 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BUDIMAN View Post
hi, I'm using vb4.0.5


i have a question here about subforum that redirect to another link


so, my question is, how to make it opens in new windows when we click it ?

i know there is a modification for vb3


but in vb4, which one template that I need to edit ?


please see my photo attachment


please guys :-(


At forumhome_forumbit_level2_post template, find the following code:

HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>

and change it to:

HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" target="_blank">{vb:raw forum.title}</a></h2>
Reply With Quote
  #3  
Old 08-08-2010, 11:46 PM
BUDIMAN BUDIMAN is offline
 
Join Date: Jun 2010
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi borbole ... do you understand my question ? that's the wrong way.. i dont want to open in new windows for all..but sub-forum that contain redirect link only

the html code should be in condition. (<vb:if></vb:if> condition)

argghhh..why vb4 is so different..in vb3, i can do this easily...
Reply With Quote
  #4  
Old 08-09-2010, 01:26 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BUDIMAN View Post
hi borbole ... do you understand my question ? that's the wrong way.. i dont want to open in new windows for all..but sub-forum that contain redirect link only

the html code should be in condition. (<vb:if></vb:if> condition)


argghhh..why vb4 is so different..in vb3, i can do this easily...


Sorry for the misunderstanding. I thought you wanted to open all the forums. Try this. It should do what you want

Same template, find the same code

HTML Code:
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
And replace it with this code:

HTML Code:
<vb:if condition="$forum['link']">
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}" target="_blank">{vb:raw forum.title}</a></h2>
<vb:else />
<h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
</vb:if>
Reply With Quote
  #5  
Old 08-10-2011, 04:19 PM
thedvs thedvs is offline
 
Join Date: May 2002
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great in 4.1.5pl1 thanks borbole
Reply With Quote
Reply

Thread Tools
Display Modes

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 06:05 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.05368 seconds
  • Memory Usage 2,222KB
  • Queries Executed 14 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (5)postbit
  • (2)postbit_attachment
  • (5)postbit_onlinestatus
  • (5)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete