Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-02-2015, 06:24 AM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Need simple "URL field" with "Go" button.. Please help..

Hey, I was wondering if someone could help me. I'm looking to add a simple field at the bottom of my forum where users can type or paste in the URL to another site, and hit a "Go" button which will open a new window with the site they typed in. That's all, should be simple I would think.

Can anyone show me the code to do something like that? Would really, truly appreciate it.

Thanks!
Reply With Quote
  #2  
Old 12-03-2015, 04:56 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone know where I might be able to find the code for this? Would appreciate any leads.. thanks!
Reply With Quote
  #3  
Old 12-10-2015, 01:26 AM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone? I'll PayPal ya $10 for a working code!
Reply With Quote
  #4  
Old 12-10-2015, 02:04 PM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default


DEMO


don't forget http://

paypal=detoxxx[at]mail.ru
Reply With Quote
  #5  
Old 12-10-2015, 02:19 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome! Thank you so much! But, can you make the site open in a new window? Also, how would I make the field 'longer' if I needed to?
Reply With Quote
  #6  
Old 12-10-2015, 02:28 PM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

klick demo again, size="50"


[edit] new window now too

http://www.arcade-syndicate.net/gobutton.html
Reply With Quote
  #7  
Old 12-10-2015, 05:40 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great, thanks! It opens in a new window, however the other page also goes to the new site also. Any way to keep that on the original page?

Oh, and one more question... how hard would it be if I wanted to add some 'greyed' out text in the field (something like "type URL here") that disappears after they click in the field?

Thanks again, you're a life saver! PayPal payment on the way!
Reply With Quote
  #8  
Old 12-10-2015, 06:10 PM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

at first thank you

Quote:
however the other page also goes to the new site also. Any way to keep that on the original page?
how do you mean that

do you use internet explorer?

in chrome it works fine, even in a new tab as usual.
Reply With Quote
  #9  
Old 12-10-2015, 06:46 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by shibby2 View Post
Oh, and one more question... how hard would it be if I wanted to add some 'greyed' out text in the field (something like "type URL here") that disappears after they click in the field?
in the input tag add a placeholder as such:
Code:
<input type="text" name="webseite"  size="50" placeholder="Type URL here" />
Reply With Quote
  #10  
Old 12-10-2015, 08:27 PM
shibby2 shibby2 is offline
 
Join Date: Jul 2005
Posts: 303
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ArcadeSyndicate View Post
at first thank you



how do you mean that

do you use internet explorer?

in chrome it works fine, even in a new tab as usual.
I'm using FireFox. It opens the URL in a new window, but the page that the field is on also changes to the new URL, so you have two pages open with the URL. Just tried it in IE also, and it does the same thing.

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

Quote:
Originally Posted by Dragonsys View Post
in the input tag add a placeholder as such:
Code:
<input type="text" name="webseite"  size="50" placeholder="Type URL here" />
Thanks, I'll give it a try!

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

Does anyone else have this problem? If you click the link above, and input a URL in the field, does it open that URL in BOTH windows, or just the 'new' window?

It loads and opens the URL in BOTH windows for me in FireFox and IE.
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 04:29 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.04421 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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
  • (2)bbcode_code
  • (4)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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