|
|
#1 |
|
Junior Member
Join Date: Jan 2009
Posts: 17
Rep Power: 1 ![]() |
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 |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,133
Rep Power: 34 ![]() ![]() |
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. |
|
|
|
|
|
#3 |
|
Moderator
Join Date: Mar 2008
Posts: 633
Rep Power: 17 ![]() |
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. |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2009
Posts: 17
Rep Power: 1 ![]() |
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 |
|
|
|
|
|
#5 |
|
Moderator
Join Date: Mar 2008
Posts: 633
Rep Power: 17 ![]() |
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.
|
|
|
|
|
|
#6 |
|
68 Classifieds Staff
Join Date: Mar 2006
Location: Belmont, NC
Posts: 4,466
Rep Power: 102 ![]() |
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |