vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Need simple "URL field" with "Go" button.. Please help.. (https://vborg.vbsupport.ru/showthread.php?t=320955)

shibby2 12-02-2015 06:24 AM

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! :)

shibby2 12-03-2015 04:56 PM

Anyone know where I might be able to find the code for this? Would appreciate any leads.. thanks!

shibby2 12-10-2015 01:26 AM

Anyone? I'll PayPal ya $10 for a working code! :D

ArcadeSyndicate 12-10-2015 02:04 PM


DEMO


don't forget http:// ;)

paypal=detoxxx[at]mail.ru :D

shibby2 12-10-2015 02:19 PM

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?

ArcadeSyndicate 12-10-2015 02:28 PM

klick demo again, size="50"


[edit] new window now too

http://www.arcade-syndicate.net/gobutton.html

shibby2 12-10-2015 05:40 PM

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!

ArcadeSyndicate 12-10-2015 06:10 PM

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 :confused:

do you use internet explorer?

in chrome it works fine, even in a new tab as usual.

Dragonsys 12-10-2015 06:46 PM

Quote:

Originally Posted by shibby2 (Post 2560138)
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" />

shibby2 12-10-2015 08:27 PM

Quote:

Originally Posted by ArcadeSyndicate (Post 2560142)
at first thank you :)



how do you mean that :confused:

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 (Post 2560145)
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. :(


All times are GMT. The time now is 06:49 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.01069 seconds
  • Memory Usage 1,738KB
  • 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
  • (4)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