Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 23rd Nov 2013, 03:46 PM   #1
Banned
War Room Member
 
Join Date: 2013
Location: Deep South, USA
Posts: 62
Thanks: 11
Thanked 7 Times in 7 Posts
Default
Brain Fart...How to code a text input that will output a social icon with redirect to page on click?
Share on: 
fb share twitter share gplus share more share

Hey everyone!

Fairly simple or not so simple question. It's been a while since I've done so but I'm having a hard time coding a text input field that a user can add their social url into (twitter, facebook, pinterest, etc.) that will output the icon on their wordpress page with the page redirect when they click. How?

HELP!! Pretty please and thank you!
Jordan Hunter is offline  
Unread 24th Nov 2013, 12:00 PM   #2
Active Warrior
War Room Member
 
Join Date: 2011
Posts: 39
Thanks: 5
Thanked 4 Times in 4 Posts
Default
Re: Brain Fart...How to code a text input that will output a social icon with redirect to page on cl
Share on: 
fb share twitter share gplus share more share

that's really a broad question.

you can do this with a multitude of programming languages.

infact you need to follow the link. get the html code of the page. either use an xhtml parser if you know it's valid, or either use regular expressions to find the image tag. then once you get the image tag. get the source property (again, either with a parser or regex, or a split function).

neutralhatter is offline  
The Following User Says Thank You to neutralhatter For This Useful Post:
Unread 26th Nov 2013, 02:57 PM   #3
Banned
War Room Member
 
Join Date: 2013
Location: Deep South, USA
Posts: 62
Thanks: 11
Thanked 7 Times in 7 Posts
Default
Re: Brain Fart...How to code a text input that will output a social icon with redirect to page on cl
Share on: 
fb share twitter share gplus share more share

Hi neutralhatter thanks for your reply, I know it was a bit broad and I think I've figured it all out! Your advice sparked a little clarity in my brain fart moment! Thanks again
Jordan Hunter is offline  
Closed Thread


Bookmarks

Tags
brain, click, code, farthow, icon, input, output, page, redirect, social, text


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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:05 AM.