Support Forums

Price formatting/weblink

This is a discussion on Price formatting/weblink within the Technical Support forums, part of the Technical Support Forums category; Just setting up V4 - I'm not particularly techy but am working on it ! I'd like to make the ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-26-2008, 01:36 PM   #1
Junior Member
 
 
Join Date: Apr 2008
Posts: 26
Rep Power: 14
Chooser is on a distinguished road
Default Price formatting/weblink

Just setting up V4 - I'm not particularly techy but am working on it !

I'd like to make the Price a different colour and larger than the surrounding text.

Web url's entered in the Listing Details do not become live on the ad.

Can someone point me in the right direction, thanks.
Chooser is offline  
Old 05-26-2008, 01:45 PM   #2
Junior Member
 
 
Join Date: Apr 2008
Posts: 26
Rep Power: 14
Chooser is on a distinguished road
Default

And........

I'd like to delete most of the countries, is there a quicker way than one by one in admin?
Chooser is offline  
Old 05-26-2008, 02:08 PM   #3
Senior Member
 
Join Date: Sep 2006
Posts: 236
Rep Power: 24
Tim_A is on a distinguished road
Default

web urls only become active if you prefix them with http://
__________________
V4.0.9 Developer
Tim_A is offline  
Old 05-27-2008, 02:52 AM   #4
Junior Member
 
 
Join Date: Apr 2008
Posts: 26
Rep Power: 14
Chooser is on a distinguished road
Default

Ah, yes of course, thanks.

Any ideas on the Price formatting?
Chooser is offline  
Old 05-27-2008, 01:29 PM   #5
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 134
Eric Barnes is just really nice Eric Barnes is just really nice
Default

What I am thinking is you would have to find the price in the templates. Then add a span tag around it. <span class="price">{$entry.price}</span> Then create a new style for price in the style sheet.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-27-2008, 03:45 PM   #6
Junior Member
 
 
Join Date: Apr 2008
Posts: 26
Rep Power: 14
Chooser is on a distinguished road
Default

Great, thanks for that - works fine in /viewlisting.php;

I also took a look at:
/category.php
/toplisting.php and
/searchresults.php

to do the same but the code looks like its not to be messed with !

Is there a way to format the price field on these pages?
Chooser is offline  
Old 05-27-2008, 03:51 PM   #7
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 134
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Those files all use the template showlistings.tpl so you should open it and find:
{$entry.price|format_money}

Then just add the code around that.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-27-2008, 04:14 PM   #8
Junior Member
 
 
Join Date: Apr 2008
Posts: 26
Rep Power: 14
Chooser is on a distinguished road
Default

Blimey, that was quick !

Thanks for the tip, sorted
Chooser is offline  
Old 05-28-2008, 04:39 PM   #9
Junior Member
 
 
Join Date: Apr 2008
Posts: 26
Rep Power: 14
Chooser is on a distinguished road
Default

Back again...

I have all the prices formatted except for the Featured Listings on the Homepage. Been looking through again but can't see what I've missed...
Chooser is offline  
Old 05-28-2008, 04:49 PM   #10
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 134
Eric Barnes is just really nice Eric Barnes is just really nice
Default

That section calls a smarty plugin. I believe you will want to look at includes/classes/smarty/plugins/function.featured_listings_horizontal.php or vertical depending on which one you are accessing.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  

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