Results 1 to 8 of 8

Thread: Removing URLs from description

  1. #1
    Join Date
    Sep 2005
    Location
    Poland - Warsaw
    Posts
    342

    Default Removing URLs from description

    Is this possible to remove URL's from all descriptions automatically (not manually?) for all submitted sites ?

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Do you mean that you want to remove any URL's thats in the description section of the details page??

    or

    Do you want to remove the URL from the details page?

    If its the last one, you should just be able to remove from /templates/<your_template>/detail_list.html where it calls the URL field to display.
    Last edited by FSGDAG; 08-05-2009 at 12:26 PM. Reason: wrote wrong file name
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Sep 2005
    Location
    Poland - Warsaw
    Posts
    342

    Default

    as I wrote: from all descriptions submitted to directory

    you have i.e. blahahahaha <a href="sth">anchor</a> - how to remove all except anchor text

  4. #4
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    The easiest way I would think this could be done would be to export your database. Maybe not the entire database, but the idx_links table. Then use a program to find and replace. You could do a find for "<a href" and have the replacement be blank
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  5. #5
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    You can use strip_tag from php function. It is not only removing links, but all HTML code.

  6. #6
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Quote Originally Posted by dody View Post
    You can use strip_tag from php function. It is not only removing links, but all HTML code.
    Dody...

    You might want to give a more detailed instruction than this. I'm not sure about everyone else, but since I'm not a programmer, I really dont understand how this could help me
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  7. #7
    Join Date
    Sep 2005
    Location
    Poland - Warsaw
    Posts
    342

    Default

    At the moment for 150 submitted sites I am removing 5-10 daily

    But I wil take a look on strip_tag ... or substr - because I have one dir (imported from qlweb) with 4000 URLs so manual correcting is possible but ... won;t die before I finish )

  8. #8
    Join Date
    Aug 2001
    Location
    Indonesia
    Posts
    3,732

    Default

    It will involved a programming work. With a small fee, we can create a small script that do:
    1) checking description in the existing database
    2) altering add.php and modify.php so the submitter won't enter html code / anchor text

    Please pm me if you are interested.

Similar Threads

  1. Replies: 2
    Last Post: 01-14-2008, 01:41 AM
  2. Too many URLS in Sitemap1
    By FSGDAG in forum v5.x
    Replies: 15
    Last Post: 11-09-2007, 10:22 AM
  3. Check URLs MOD
    By esm in forum Blocks and Modification
    Replies: 0
    Last Post: 01-19-2007, 09:13 AM
  4. URLs with errors?
    By CEC in forum v5.x
    Replies: 54
    Last Post: 09-06-2006, 12:56 PM
  5. Dashes instead of Undercores in URLs
    By Chief in forum v5.x
    Replies: 2
    Last Post: 12-21-2004, 09:46 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •