Results 1 to 5 of 5

Thread: How can we remove the "URL:http://" displayed without a URL?

  1. #1
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    How can we remove the "URL:http://" displayed without a URL?

    I just began testing 2.9.3 and would like to upgrade my site to this version.

    One issue I found is that ads display "http://" when no URL is included in the ad. This lonely "http://" is hyperlinked to nowhere.

    You can see what I mean in this screen-capture:
    http://i417.photobucket.com/albums/pp26 ... cphttp.png" onclick="window.open(this.href);return false;



    How can we prevent the entire URL field from being displayed if the person did not enter a URL into their ad? I don't want the "URL: http://" to show at all when there is nothing to link to.

    I think there was a change in 2.9.3 that was meant to fix the problem of people forgetting to include the "http://" part when entering their URL into the post-form (a fix I had requested, lol). But this present issue with the empty http:// being shown is even more of an issue.

  2. #2
    pepsi's Avatar
    Join Date
    Mar 2009
    Location
    New Zealand
    Posts
    14,883
    Thanks
    91
    Thanked 804 Times in 718 Posts

    Re: How can we remove the "URL:http://" displayed without a URL?

    In the changelog info it mentions the following which could help you:

    -added new function to check for http:// in new ad URL field submission. If it's missing, automatically add it. (form_process.php line 41 & functions.php line 418)

  3. #3
    Thread Starter
    Senior Member herb_'s Avatar
    Join Date
    May 2009
    Posts
    230
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: How can we remove the "URL:http://" displayed without a URL?

    Thanks Pepsi,

    I solved this by removing the following line from form_process.php (didn't have to touch functions.php) -

    Code:
    	if ( validLink($cp_adURL) != true ) {$cp_adURL='http://'.$cp_adURL;};

  4. #4
    Junior Member
    Not a Verified Customer
    hewitt's Avatar
    Join Date
    Apr 2009
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How can we remove the "URL:http://" displayed without a URL?

    To herb: That didn't work for me. The URL http:// is still in the ad although the user did not specify a URL.

    I think what David added was the function that if the user specific no URL, it will still show http:// but it will link to the ad's permalink. However, what I want to happen is if there's no website provided by the user, I want that http:// to disappear from the ad post itself. How can it be done?

  5. #5
    Junior Member jaxforfun's Avatar
    Join Date
    Feb 2010
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: How can we remove the "URL:http://" displayed without a URL?

    Hi,
    I am new here and new to classipress. I am just about ready to launch my site, but I have the same issue. If someone doesn't insert a website it shows like this
    URL: http://
    the http is a link that opens a new page and says- URL is not valid and cannot be loaded.
    Has anyone figured out a way to fix this?

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Add "SOLD" to items that are gone
    By tiffany in forum ClassiPress General Discussion
    Replies: 3
    Last Post: May 29th, 2009, 01:32 AM