Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 20, 2013, 08:37:00 am

Login with username, password and session length
Members
Total Members: 10761
Latest: Feingewinde
Stats
Total Posts: 32357
Total Topics: 5476
Online Today: 54
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 2
Guests: 45
Total: 47
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Delete the '0 bids', and currency issue  (Read 793 times)
Maloxan
SMF Classifieds Customer
Inline PM Customer
*****
Offline Offline

Posts: 31


View Profile
« on: June 18, 2012, 01:03:09 pm »

How do I delete the "0 Bids" after the price in a list? I deleted the PayPal opportunity anyway
How do I make Danish Krone the only currency available? (As there's no dropdown menu)
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10989


View Profile
« Reply #1 on: June 18, 2012, 01:06:04 pm »

What SMF version are you using?
Logged
Maloxan
SMF Classifieds Customer
Inline PM Customer
*****
Offline Offline

Posts: 31


View Profile
« Reply #2 on: June 18, 2012, 01:09:28 pm »

The newest :-)
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10989


View Profile
« Reply #3 on: June 18, 2012, 01:14:43 pm »

Ok so SMF 2.0.2 will require a couple edits

Quote
How do I delete the "0 Bids" after the price in a list? I deleted the PayPal opportunity anyway
Can be changed under -> Admin -> Classifieds Settings -> Layout Settings  ->  "Show number of bids"
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10989


View Profile
« Reply #4 on: June 18, 2012, 01:17:30 pm »

For
Quote
How do I make Danish Krone the only currency available? (As there's no dropdown menu)

You would want to edit themes/default/classifieds2.template.php
Find
Code:
  <option value="USD">',$txt['class_cur_USD'],'</option>
<option value="AUD">',$txt['class_cur_AUD'],'</option>
<option value="BRL">',$txt['class_cur_BRL'],'</option>
<option value="CAD">',$txt['class_cur_CAD'],'</option>
<option value="CZK">',$txt['class_cur_CZK'],'</option>
<option value="DKK">',$txt['class_cur_DKK'],'</option>
<option value="EUR">',$txt['class_cur_EUR'],'</option>
<option value="HKD">',$txt['class_cur_HKD'],'</option>
<option value="HUF">',$txt['class_cur_HUF'],'</option>
<option value="ILS">',$txt['class_cur_ILS'],'</option>
<option value="INR">',$txt['class_cur_INR'],'</option>
<option value="MYR">',$txt['class_cur_MYR'],'</option>
<option value="MXN">',$txt['class_cur_MXN'],'</option>
<option value="NZD">',$txt['class_cur_NZD'],'</option>
<option value="NOK">',$txt['class_cur_NOK'],'</option>
<option value="PHP">',$txt['class_cur_PHP'],'</option>
<option value="PLN">',$txt['class_cur_PLN'],'</option>
<option value="GBP">',$txt['class_cur_GBP'],'</option>
<option value="SGD">',$txt['class_cur_SGD'],'</option>
<option value="ZAR">',$txt['class_cur_ZAR'],'</option>
<option value="SEK">',$txt['class_cur_SEK'],'</option>
<option value="CHF">',$txt['class_cur_CHF'],'</option>
<option value="TWD">',$txt['class_cur_TWD'],'</option>
<option value="THB">',$txt['class_cur_THB'],'</option>
<option value="JPY">',$txt['class_cur_JPY'],'</option>
Change to
Code:
<option value="DKK">',$txt['class_cur_DKK'],'</option>
Logged
Maloxan
SMF Classifieds Customer
Inline PM Customer
*****
Offline Offline

Posts: 31


View Profile
« Reply #5 on: June 18, 2012, 01:51:15 pm »

None of that works. I unmarked 'Show Bids' in Manage Layout of the Classifieds, but it still shows in the list.

And I tried deleting all the other lines with the values in classifieds2, so that only dkk was left but again without luck. And yes, ofcourse I have uploadet it.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10989


View Profile
« Reply #6 on: June 18, 2012, 01:57:14 pm »

There are a couple spots in classified2.template.php for currency code


For
Quote
None of that works. I unmarked 'Show Bids' in Manage Layout of the Classifieds, but it still shows in the list.
What page is that shown on.
Logged
Maloxan
SMF Classifieds Customer
Inline PM Customer
*****
Offline Offline

Posts: 31


View Profile
« Reply #7 on: June 18, 2012, 01:58:41 pm »

There are a couple spots in classified2.template.php for currency code


For
Quote
None of that works. I unmarked 'Show Bids' in Manage Layout of the Classifieds, but it still shows in the list.
What page is that shown on.

http://rc-forum.dk/index.php?action=classifieds;sa=view;id=9 <-- 0 Bud (danish translation)

currency issue nailed!
« Last Edit: June 18, 2012, 02:01:53 pm by Maloxan » Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 10989


View Profile
« Reply #8 on: June 18, 2012, 02:06:00 pm »

In classifieds2.template.php
Find and remove the following
Code:
if (empty($modSettings['class_hidebidhistory_all']) || $g_manage == true ||  $context['class_listing']['ID_MEMBER'] == $user_info['id'])
echo '<a href="',$scripturl, '?action=classifieds;sa=viewbids;id=',$context['class_listing']['ID_LISTING'],'">',$context['class_listing']['totalbids'], $txt['class_view_bids2'],'</a>';

Logged
Maloxan
SMF Classifieds Customer
Inline PM Customer
*****
Offline Offline

Posts: 31


View Profile
« Reply #9 on: June 18, 2012, 02:09:08 pm »

In classifieds2.template.php
Find and remove the following
Code:
if (empty($modSettings['class_hidebidhistory_all']) || $g_manage == true ||  $context['class_listing']['ID_MEMBER'] == $user_info['id'])
echo '<a href="',$scripturl, '?action=classifieds;sa=viewbids;id=',$context['class_listing']['ID_LISTING'],'">',$context['class_listing']['totalbids'], $txt['class_view_bids2'],'</a>';


That did it! Thanks!!
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 10:01:19 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 15, 2013, 11:31:24 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 1.39 seconds with 19 queries.