GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Best tool to turn links into html code? (https://gfy.com/showthread.php?t=1034641)

Markul 08-18-2011 02:53 AM

Best tool to turn links into html code?
 
Say I need 200 links and turn them into <a href= bla bla or something like that, anyone have a good tool to do that? Besides search and replace :)

seeandsee 08-18-2011 02:59 AM

Mass search and replace :)

really not sure, maybe some mass editor can help you

Markul 08-18-2011 03:03 AM

I was hoping there was an application out there where you - for example - could input three rows:

Row One:
<li><a href="

Row Two:
the url

Row Three:
" rel="blabla etc

Inter-Sex 08-18-2011 03:08 AM

Every php developper will be able to code you this under the 20 minutes.

bns666 08-18-2011 03:14 AM

ultraedit should do the job

Paul&John 08-18-2011 03:42 AM

Just do it via find&replace (for example with Notepad++ or any other text editor).. first you replace 'http..' with '<a href="http...' then the ending :)

Konda 08-18-2011 03:45 AM

find and replace with regex, very easy

over38 08-18-2011 09:52 AM

FHG Link Generator might work for you:

http://www.fhglink.com/

Paul&John 08-18-2011 10:07 AM

Quote:

Originally Posted by over38 (Post 18364102)
FHG Link Generator might work for you:

http://www.fhglink.com/

hm this one looks pretty useful

Sly 08-18-2011 10:12 AM

Quote:

Originally Posted by Markul (Post 18363504)
I was hoping there was an application out there where you - for example - could input three rows:

Row One:
<li><a href="

Row Two:
the url

Row Three:
" rel="blabla etc

You could do that in a spreadsheet. Would be pretty easy actually. All copy and paste. And then you concatenate the final cell.

Info1 Info2 Info3 concat

woj 08-18-2011 10:23 AM

if you want, I can code you something like that for a few bucks... icq: 33375924 or woj#at#wojfun#.#com to discuss details

Markul 08-18-2011 10:31 AM

Yea thanks for all the input :thumbsup

I just used Excel as always

fris 08-18-2011 11:17 AM

easy to do, but how would you select the link text?

turning links into a hrefs is easy, but unless you have the proper link text that you want, unless you just want to turn them into a generic text.

Webmazter 08-18-2011 11:23 AM

Well, notepad does job for me, ++ of course.

Markul 08-18-2011 11:36 AM

Quote:

Originally Posted by fris (Post 18364358)
easy to do, but how would you select the link text?

turning links into a hrefs is easy, but unless you have the proper link text that you want, unless you just want to turn them into a generic text.

Yea what I really wanted (and I see now that I was a bit unclear) is to take something like:

title, description, url

and turn that into

<li><a href="url" relation="the same for all" title="description">title</a></li>

And imagine I have a big ass list of urls I wanted to do this with. It's ok though, I'll ring up a mate and have him write me an application that'll do that.

fris 08-18-2011 11:42 AM

Quote:

Originally Posted by Markul (Post 18364405)
Yea what I really wanted (and I see now that I was a bit unclear) is to take something like:

title, description, url

and turn that into

<li><a href="url" relation="the same for all" title="description">title</a></li>

And imagine I have a big ass list of urls I wanted to do this with. It's ok though, I'll ring up a mate and have him write me an application that'll do that.

would be easy to do in php load a text file, and the 3 variables

fris 08-18-2011 12:02 PM

Quote:

Originally Posted by Markul (Post 18364405)
Yea what I really wanted (and I see now that I was a bit unclear) is to take something like:

title, description, url

and turn that into

<li><a href="url" relation="the same for all" title="description">title</a></li>

And imagine I have a big ass list of urls I wanted to do this with. It's ok though, I'll ring up a mate and have him write me an application that'll do that.

something like this maybe?

Code:

<?

// title,description,url

$fcontents = file('links.txt');

while (list ($line_num, $line) = each ($fcontents)) {
    $c[$count] = $line;
    $count++;
}

shuffle($c);

for($i = 0; $i < $count; $i++) {
    $ln = explode (',', $c[$i]);
    $title = $ln[0];
    $desc = $ln[1];
    $url = trim($ln[2]);
    echo '<li><a href="'.$url.'" title="'.$title.'" rel="external">'.$desc.'</a></li>';
}

?>

exmaple of links.txt

Code:

google,search engine,http://www.google.com
yahoo,shitty search engine,http://www.yahoo.com
bing,lame attempt at google,http://www.bing.com

:thumbsup


All times are GMT -7. The time now is 03:16 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123