Support Forums


Go Back   68 Classifieds Forums > Help & Support > v4 Questions & Support

 
LinkBack Thread Tools Display Modes
Old Yesterday, 08:14 AM   #1
Junior Member
 
Join Date: Jan 2009
Posts: 17
Rep Power: 1
sunshinemike is on a distinguished road
Default External website links only showing as text not links

Hi

I'm probably doinf something very silly but my site at Wedding Yellow Pages has just gone 'live' and I have noticed a problem.

When a customer places a listing their website URL is shown in the ad but not as a clickable link - just a text string.

Have a done something wrong or do I need to change some code.

Many thanks

Mike McCann
__________________
V4.09 Developer
sunshinemike is offline   Reply With Quote
Old Yesterday, 08:36 AM   #2
Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,133
Rep Power: 34
Mike-N-Tosh is just really niceMike-N-Tosh is just really nice
Default

That most likely reason for this is that the end user is not putting in the "http://" at the beginning of the URL which is what tells the browser that this is a full clickable link.

-Mike
__________________
Mike-N-Tosh
v3.1.10 Developer IndianaPC.org - A community website
Sandbox v4.0.9, 4.1RC4
Templates, Mods & Docs for sale | My blog with much content for 68 Classifieds.
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out

Last edited by Mike-N-Tosh; Yesterday at 12:56 PM.
Mike-N-Tosh is offline   Reply With Quote
Old Yesterday, 12:40 PM   #3
Moderator
 
 
Join Date: Mar 2008
Posts: 633
Rep Power: 17
seymourjames has a spectacular aura about
Default

I just looked at your site and I do not see the problem as most links appear to have been entered correctly.

Links should take this form when you look at the source:

<a href="http://www.thedomain.com" title="some title text" >some more text</a>

This is a correctly formatted link with minimum attributes. Often you and in your case you will see it like this

<a href="http://www.thedomain.com" title="www.thedomain.com" target="_blank">http://www.thedomain.com</a>

It is the first http:// part of the code that does the work.
__________________
TemplateCodes.com
seymourjames is online now   Reply With Quote
Old Yesterday, 01:46 PM   #4
Junior Member
 
Join Date: Jan 2009
Posts: 17
Rep Power: 1
sunshinemike is on a distinguished road
Default

Thanks

That is exactly the problem ! I think the user should be warned when entering a website URL that it MUST start with http://

I wanted to change the text displayed in userjoin.tpl (via english.php - LANG_EXT_URL") to say Please ensure link starts with http:// but then realised this text is also displayed in viewlisting.tpl so have had to add an extra line in english.php

define("LANG_EXT_URL", "Link to your website - must start http://");
define("LANG_EXT_URL2","Link to your website");

... and call the first in userjoin.tpl and the second in viewlisting.tpl

Works fine now
__________________
V4.09 Developer
sunshinemike is offline   Reply With Quote
Old Yesterday, 02:02 PM   #5
Moderator
 
 
Join Date: Mar 2008
Posts: 633
Rep Power: 17
seymourjames has a spectacular aura about
Default

That is a very good idea. Well done. Many do not realize that they can add new constants to their language file and use them throughout in their templates.
__________________
TemplateCodes.com
seymourjames is online now   Reply With Quote
Old Yesterday, 02:29 PM   #6
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,466
Rep Power: 102
Eric Barnes is a jewel in the rough
Default

Just to add to this in v4.1.0 we have included better checking that they enter a full url. To prevent this.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter
Eric Barnes is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
external url not showing Adam Waxler v4 Questions & Support 8 01-01-2009 07:51 PM
Website links goyadi v4 Questions & Support 2 06-06-2008 10:32 AM
Google showing internal links calaf6 HTML, CSS, and Design Help 3 02-22-2008 06:57 PM
Changing text/links on search.php, searchresults.php and viewlisting.php kpax808 v3.1 Questions & Support 2 02-14-2008 12:25 AM
how can i replace the nav box with simple text links? paulsra v3.1 Questions & Support 4 11-12-2007 04:47 PM


All times are GMT -4. The time now is 06:12 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0