Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-24-2012, 11:49 AM   #1
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Dump HTML CSV using CSV?

Hey

How could I change a CSV and output to another CSV with html?

For example, if I have a csv in this form:
URL|Title|img|descr

But I want to output it like this:
<a href="[URL]" title="[Title]><img src="[img]" /> | [descr]

How could I do this without typing something custom in Java or anything like that?

Thanks
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-24-2012, 11:52 AM   #2
lucas131
¯\_(ツ)_/¯
 
Industry Role:
Join Date: Aug 2004
Posts: 11,475
textpad and macro action, easy to use, learn it once and thank me in future thousand times
lucas131 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-24-2012, 11:56 AM   #3
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Thanks, I'll give that a try
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-24-2012, 12:52 PM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
Quote:
Originally Posted by Colmike7 View Post
Hey

How could I change a CSV and output to another CSV with html?

For example, if I have a csv in this form:
URL|Title|img|descr

But I want to output it like this:
<a href="[URL]" title="[Title]><img src="[img]" /> | [descr]

How could I do this without typing something custom in Java or anything like that?

Thanks
could do it via php

example links.txt

Code:
http://www.google.com|google|http://i.imgur.com/uwti0.jpg|google search engine
php

Code:
<?

$linkfile = dirname(__FILE__). "/links.txt";
$links = file($linkfile);
$result = array();

for ($i=0; $i<count($links); $i++) {
  $link = explode("|", $links[$i]);
  $result[] = '<a href="' . $link[0] . ' title="' . $link[1] . '"><img src="'.$link[2].'"></a> <span>'.trim($link[3]).'</span>';
  echo $result[$i];
}

?>
final output

Code:
[fris@fris ~]$ php test.php
<a href="http://www.google.com title="google"><img src="http://i.imgur.com/uwti0.jpg"></a> <span>google search engine</span>
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2012, 02:26 PM   #5
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,372
this help any?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2012, 02:37 PM   #6
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384

Quote:
Originally Posted by Colmike7 View Post
Hey

How could I change a CSV and output to another CSV with html?

For example, if I have a csv in this form:
URL|Title|img|descr

But I want to output it like this:
<a href="[URL]" title="[Title]><img src="[img]" /> | [descr]

How could I do this without typing something custom in Java or anything like that?

Thanks
This free app will do the trick: http://www.fhgstore.com/wmtools.html#FHG2HTML

__________________
Obey the Cowgod

Last edited by just a punk; 03-25-2012 at 02:38 PM..
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2012, 06:36 PM   #7
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Quote:
Originally Posted by fris View Post
this help any?
Thanks. It did but CyberSEOs suggestion is exactly what I'm looking for..
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2012, 06:36 PM   #8
Colmike9
(>^_^)b
 
Colmike9's Avatar
 
Industry Role:
Join Date: Dec 2011
Posts: 7,223
Quote:
Originally Posted by CyberSEO View Post
This free app will do the trick: http://www.fhgstore.com/wmtools.html#FHG2HTML

YES! Thank you!
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.
I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..
Colmike9 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2012, 06:43 PM   #9
bns666
Confirmed Fetishist
 
bns666's Avatar
 
Industry Role:
Join Date: Mar 2005
Location: Fetishland
Posts: 11,526
useful tool
__________________
CAM SODASTRIPCHAT
CHATURBATEX LOVE CAM
bns666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-25-2012, 06:57 PM   #10
Dirty D
Confirmed User
 
Dirty D's Avatar
 
Join Date: May 2002
Location: Paying Webmasters Millions Since 1999
Posts: 4,044
Yep, we have used this tool for a few years.
Highly recommended.
Dirty D is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2012, 01:41 AM   #11
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,384
You are welcome!
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-26-2012, 01:51 AM   #12
martinsc
Too lazy to set a custom title
 
Industry Role:
Join Date: Jun 2005
Location: 127.0.0.1
Posts: 27,047
Quote:
Originally Posted by CyberSEO View Post
This free app will do the trick: http://www.fhgstore.com/wmtools.html#FHG2HTML

nice....
__________________
Make Money
martinsc is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.