View Full Version : Help: How to remove url from View Listing and Listing?
jj123
03-22-2009, 10:46 PM
Hello Guys
Am using Omega 1.6 version. Pls. help me with:
1. How to add listing without url? or make it optional to add url
2. How to remove url from the listing title in "View Listing" and "Listing"
Example for #2
title with url => www.example.com (but I want to remove url)
Description1
Telp: (xxx) xxx-xxxx
Thanks in advance:sos:
Alex B.
04-01-2009, 07:25 PM
Hello jj123,
AFAIK it's not possible in omega version
jj123
04-03-2009, 02:07 PM
Hi Alex,
Thanks for your reply.
The directory below is using Omega version and they can remove the url from "Listing"
housefusion dot com/Alaska/Anchorage/
How to do that? because some of my listings have no websites.
Alex B.
04-03-2009, 05:57 PM
The problem is that you could hide this filed from "listing view" and "listing" pages, but when submiting listings this field is requiered and cannot be deleted.
So if you want I can tell you how to hide the url field, but cannot help you with "submitting without URL". BTW, if you go to http://housefusion.com/suggest-listing.php?id=0 you'll see the URL field.
jj123
04-03-2009, 10:50 PM
Oh I understand now.
Would you please tell me how to hide the url field?
Thanks in advance
Rgds,
Jane
Alex B.
04-04-2009, 12:28 AM
of course.
You should edit /templates/current_template/view-listing.tpl
replace next lines:
<h1><a href="{$listing.url}" id="l{$listing.id}" {if $config.new_window}target="_blank"{/if}>{$listing.title}</a></h1>
with
<h1>{$listing.title}</h1>
and also edit /templates/current_template/listing-display.tpl
replace next lines
<div class="title">
<a href="{if $config.use_redirects}go.php?url={$listing.url|esc ape:"url"}{else}{$listing.url}{/if}" class="title" id="l{$listing.id}" {if $config.new_window}target="_blank"{/if} {if $listing.no_follow eq 1}rel="nofollow"{/if}>{$listing.title}</a> {section name=star loop=$listing.rank}<img src="{$img}star.png" alt="" />{/section} </div>
with
<div class="title">
{$listing.title}{section name=star loop=$listing.rank}<img src="{$img}star.png" alt="" />{/section} </div>
and
delete or comment
<div class="url">{$listing.url}</div>
do not forget to backup these files before editing
jj123
04-04-2009, 01:14 AM
Hi Alex,
Thanks very much for your help. Everything working very well now.
Have a great day!
Best Regards,
Jane
Alex B.
04-04-2009, 01:32 AM
you're welcome! ;)
Feel free to contact us if you have any problem!
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.