Help: FHG exporter tool (text to HTML)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • loreen
    myadultdesign.com
    • May 2004
    • 12558

    #1

    Help: FHG exporter tool (text to HTML)

    Hello,

    I'm looking for a software / script to replace the one from www.fhglink.com (that stopped working about 1 year ago on all my computers).

    Basically, I want to enter FHG data like description|url|thumb and get the HTML code out of it.

    Anyone?
    Banners, logos, headers, peels, FHGs, ads, paysites, photo retouching etc: my adult design portfolio
    My logo portfolio: PornLogos.com

  • GrouchyAdmin
    Now choke yourself!
    • Apr 2006
    • 12085

    #2
    That's pretty easy. Here's a really dumb throwaway nearly-one-liner.
    PHP Code:
    <?php
    $data=explode("\n",file_get_contents("anus.txt"));
    if ($data)
      foreach ($data as $lines) {
        $what = explode("|", $lines);
        echo '<img src="'.$what[2].'"><br><a href="'.$what[1].'">'.$what[0].'</a>'
      }
    ?>

    Comment

    • loreen
      myadultdesign.com
      • May 2004
      • 12558

      #3


      Thank you (after adding a missing ; it worked like a charm)!
      Banners, logos, headers, peels, FHGs, ads, paysites, photo retouching etc: my adult design portfolio
      My logo portfolio: PornLogos.com

      Comment

      • GrouchyAdmin
        Now choke yourself!
        • Apr 2006
        • 12085

        #4
        D'awww, thanks.

        I wouldn't consider that production quality; it was just a quick hack.
        Actual error, bounds checking, and fgetcsv() would be much better.

        Comment

        • fatfoo
          ICQ:649699063
          • Mar 2003
          • 27763

          #5
          yeah, GrouchyAdmin has the solution......
          Send me an email: [email protected]

          Comment

          Working...