Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-29-2012, 02:08 PM
benzwm02 benzwm02 is offline
 
Join Date: Nov 2012
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Have vBulletin not open a new window when links are clicked

Does anyone know how to edit vbulletin 5 so when links are clicked they do not open a new browser page?
Reply With Quote
Благодарность от:
TTayfun
  #2  
Old 11-29-2012, 02:33 PM
In Omnibus's Avatar
In Omnibus In Omnibus is offline
 
Join Date: Apr 2010
Location: Inside A Blade Server
Posts: 840
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you wanting the links to open in the same window or are you wanting the links not to open?
Reply With Quote
  #3  
Old 11-29-2012, 02:33 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Change the link property in the css (i think) and add target="_parent" or "_self"
Reply With Quote
  #4  
Old 11-29-2012, 05:02 PM
benzwm02 benzwm02 is offline
 
Join Date: Nov 2012
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ProSportsForums View Post
Are you wanting the links to open in the same window or are you wanting the links not to open?
The links to open in the same window, not to open a new browser page.

--------------- Added [DATE]1354212204[/DATE] at [TIME]1354212204[/TIME] ---------------

Quote:
Originally Posted by Simon Lloyd View Post
Change the link property in the css (i think) and add target="_parent" or "_self"
Could you or someone show me specifically where? I am not a coder
Reply With Quote
  #5  
Old 11-29-2012, 05:22 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You cannot do it via CSS (unless this is something I have never heard of). You could use javascript to make all external links open in the same window (google it - "javascript external link same window"), I believe.
Reply With Quote
  #6  
Old 11-29-2012, 05:30 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol didnt even realise i'd typed css - forget i spoke

--------------- Added [DATE]1354214100[/DATE] at [TIME]1354214100[/TIME] ---------------

It might sound daft but try this https://vborg.vbsupport.ru/showthread.php?t=239918 the code in it is simple, it's a plugin to replace target="_blank" so links open in the same window, if you cant import the product just copy the plugin code and create your own with the same hook.
Reply With Quote
  #7  
Old 11-29-2012, 06:05 PM
nhawk nhawk is offline
 
Join Date: Jan 2011
Posts: 1,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
lol didnt even realise i'd typed css - forget i spoke

--------------- Added [DATE]1354214100[/DATE] at [TIME]1354214100[/TIME] ---------------

It might sound daft but try this https://vborg.vbsupport.ru/showthread.php?t=239918 the code in it is simple, it's a plugin to replace target="_blank" so links open in the same window, if you cant import the product just copy the plugin code and create your own with the same hook.
You do realize that most, if not all of the hooks are gone in vB5? And that those that do exist don't work the same as vB4 hooks.
Reply With Quote
  #8  
Old 11-29-2012, 06:52 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nhawk View Post
You do realize that most, if not all of the hooks are gone in vB5? And that those that do exist don't work the same as vB4 hooks.
No i didnt, i dont have vb5, all the same the plugin code will work it's just a matter of finding the right trigger for parsed bbcode/links
Reply With Quote
  #9  
Old 11-30-2012, 02:15 AM
benzwm02 benzwm02 is offline
 
Join Date: Nov 2012
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
No i didnt, i dont have vb5, all the same the plugin code will work it's just a matter of finding the right trigger for parsed bbcode/links
I went to that link and imported it as a product. However, it did not work.

How do I make it make it into a product that will?

--------------- Added [DATE]1354245534[/DATE] at [TIME]1354245534[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
You cannot do it via CSS (unless this is something I have never heard of). You could use javascript to make all external links open in the same window (google it - "javascript external link same window"), I believe.
Do you mean something like this:

https://vborg.vbsupport.ru/showthread.php?t=286030

--------------- Added [DATE]1354245738[/DATE] at [TIME]1354245738[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
You cannot do it via CSS (unless this is something I have never heard of). You could use javascript to make all external links open in the same window (google it - "javascript external link same window"), I believe.
Do you mean something like this:

https://vborg.vbsupport.ru/showthread.php?t=286030
Reply With Quote
  #10  
Old 11-30-2012, 02:30 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I mean something like what is in that mod thread. However, it is for vB4, so you'll have to just add it to your template in vb5 if you don't know how to upgrade a vb4 mod to vb5.
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 09:40 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.09103 seconds
  • Memory Usage 2,265KB
  • Queries Executed 13 (?)
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
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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