68 Classifieds Forums  

Go Back   68 Classifieds Forums > v3.1.x Help & Support > v3.1 Modifications
Register Projects FAQ Members List Calendar Search Today's Posts Mark Forums Read

v3.1 Modifications Questions on modifying 68 Classifieds. Please note these are not supported by 68 Classifieds, and may make future updates more difficult.

 
Thread Tools Display Modes
  #1  
Old 06-15-2006, 06:42 AM
calaf6 calaf6 is offline
Senior Member
 
Join Date: Mar 2006
Location: UK
Posts: 321
Default Memberships

Not sure if this is possible, but will whizz it past you php experts!!

When a member purchases a membership, and goes to place an ad, they have the choice of using the membership OR the listing package that relates to the membership.

Is it possible for the listing package not to show, so that there is only a membership option?

Knowing me its a major recode!!
Reply With Quote
  #2  
Old 06-15-2006, 08:22 AM
sleepy sleepy is offline
Senior Member
 
Join Date: Mar 2006
Posts: 110
Default

calaf6,

Check this thread ....
http://www.68classifieds.com/forums/...read.php?t=895

sleepy
Reply With Quote
  #3  
Old 06-15-2006, 08:47 AM
calaf6 calaf6 is offline
Senior Member
 
Join Date: Mar 2006
Location: UK
Posts: 321
Default

Thanks,

That thread (if I read it correctly) takes the option to place an ad without a membership away. I need to show the listing package if someone does not have a membership, but not show it if they do - if that makes sense
Reply With Quote
  #4  
Old 06-15-2006, 10:05 AM
juven14's Avatar
juven14 juven14 is offline
Moderator
 
Join Date: Mar 2006
Location: NJ/NYC Area
Posts: 1,886
Default

If they have a membership they can place membership adds through the membercheckout process. If you want to only allow membership ads to be placed (which will show the packages availible once you are into the membercheckout) then you can edit the template as suggested in that thread or remove the links to usercheckout.php.

Or, are you making them buy a membership to place ads? I think within the membercheckout.php they can still jump to usercheckout.php and place regular ads. If this is the case just remove the links to usercheckout.php. If you have people guessing the link we could place a check in usercheckout.php which gives them the boot if they don't have a membership.
__________________
Regards,

John
mods.auscity.com

�By perseverance, study, and eternal desire, any man can become great.� George S. Patton
Reply With Quote
  #5  
Old 06-15-2006, 10:10 AM
Lhotch's Avatar
Lhotch Lhotch is offline
Moderator
 
Join Date: Mar 2006
Posts: 1,884
Default

Quote:
Originally Posted by calaf6
Thanks,

That thread (if I read it correctly) takes the option to place an ad without a membership away. I need to show the listing package if someone does not have a membership, but not show it if they do - if that makes sense
Ok, try this. Based on Ver 3.1.3 backup the template file /checkout/step2.tpl.php

At approx line 46 you should have a smarty if closing tag ie...{/if}

change that to an {else}

then simply goto the very bottom of the file and ad an if closing tag ...ie {/if}

What this will do is if there is a membership it will display it but NOT the normal ad packages. if there is no membership it will display just the normal ad packages.
__________________
Larry.
(Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free)

68 Classifieds Important Links
Customer Area | Issue Tracker | Knowledge Base | User Manuals
Reply With Quote
  #6  
Old 06-15-2006, 10:39 AM
calaf6 calaf6 is offline
Senior Member
 
Join Date: Mar 2006
Location: UK
Posts: 321
Default

Quote:
Originally Posted by Lhotch
Ok, try this. Based on Ver 3.1.3 backup the template file /checkout/step2.tpl.php

At approx line 46 you should have a smarty if closing tag ie...{/if}

change that to an {else}

then simply goto the very bottom of the file and ad an if closing tag ...ie {/if}

What this will do is if there is a membership it will display it but NOT the normal ad packages. if there is no membership it will display just the normal ad packages.
Thanks,
I did try that last night, and somehow managed to get the listing to show but not the membership Will try again tonight I must have done something daft or put the last {/if} in the wrong place
Reply With Quote
  #7  
Old 11-11-2007, 09:31 AM
paulsra paulsra is offline
Member
 
Join Date: Oct 2007
Location: victoria, Australia
Posts: 46
Default

Quote:
Originally Posted by Lhotch View Post
Ok, try this. Based on Ver 3.1.3 backup the template file /checkout/step2.tpl.php

At approx line 46 you should have a smarty if closing tag ie...{/if}

change that to an {else}

then simply goto the very bottom of the file and ad an if closing tag ...ie {/if}

What this will do is if there is a membership it will display it but NOT the normal ad packages. if there is no membership it will display just the normal ad packages.
im trying to achive exactly this and im having a little trouble changing the corect tags..

i have {/if} at line 41 and 51 which one do i change to {else}?

also where exactly do i put the {/if} at the end of file?
iv tried exactly as described with both {/if} on line 41 and 51 and get errors.

thanks so much
Reply With Quote
  #8  
Old 11-12-2007, 12:55 PM
calaf6 calaf6 is offline
Senior Member
 
Join Date: Mar 2006
Location: UK
Posts: 321
Default

This is my templates/default/checkout/step2.tpl.php file if it helps, you should be able to copy and paste it straight in (I think)
PHP Code:
{* $Id: step2.tpl.php,v 1.2 2006/04/10 15:20:20 Eric Exp $ *}
<!--
Step 2 of Checkout -->

{*
Memberships *}

{if
$membership}
<
table class="tableborder">
    <
tr>
      <
th colspan="2"><strong>{$smarty.const.LANG_ADD_LISTING}</strong></th>
    </
tr>
        <
tr>
            <
td class="formstrip">{$smarty.const.LANG_AVAILABLE_MEMBERSHIP_PACKAGES}</td>
        </
tr>
    {foreach
from=$results item="entry" name="mem"}
        {if
$entry.free=="Y"}
        <
tr>
              <
td align="center">
                   <
form method="post" action="membercheckout.php" name="purchase" id="purchase">
                       <
strong>{$entry.title}</strong><br />
                        <
span class="norm">
                        {
$entry.description}<br />
        <
br />
        <
strong>Use subscription, no payment required</strong><br />
                        <
input type="hidden" name="step" value="2.5" />
                        <
input type="hidden" name="membership" value="Y" />
                        <
input name="productid" type="hidden" id="productid" value="{$entry.id}" />
                        <
input name="section" type="hidden" id="section" value="{$entry.section}" />
                        <
input type="submit" name="Submit" value="{$smarty.const.LANG_SELECT_THIS_PACKAGE}" />
                    </
span>
                   </
form>
            </
td>
        </
tr>
        {/if}
    {
foreachelse}
    <
tr>
        <
td>{$smarty.const.LANG_SORRY_MEMBERSHIP_NOT_AVAILABLE}</td>
    </
tr>
    {/foreach}
    {if
$smarty.foreach.mem.total<1}
    <
tr>
        <
td>{$smarty.const.LANG_SORRY_MEMBERSHIP_NOT_AVAILABLE}</td>
    </
tr>    
    {/if}
</
table>
<
br />
{else}

{*
Normal Single Ad Purchases *}
<
table class="tableborder">
    <
tr>
      <
th colspan="2"><strong>{$smarty.const.LANG_ADD_LISTING}</strong></th>
    </
tr>
    <
tr>
         <
td class="formstrip">{$smarty.const.LANG_ADD_LISTING_PACKAGE}</td>
    </
tr>
    {foreach
from=$results item="entry"}
    <
tr>
          <
td align="center">
               <
form method="post" action="usercheckout.php" name="purchase" id="purchase">
                   <
strong>{$entry.title}</strong><br />
                    <
span class="norm">
                    {
$entry.description}<br />
                        {if
$entry.showlistprice}
                           <!--  <
strong>PRICE:</strong><strike>{$entry.listprice}</strike><br />  -->
        {/if} <
strong>FREE OF CHARGE </strong>{$entry.price}<br />
                    <
input type="hidden" name="step" value="3" />
                    <
input name="productid" type="hidden" id="productid" value="{$entry.id}" />
                    <
input name="section" type="hidden" id="section" value="{$entry.section}" />
                    <
input type="submit" name="Submit" value="{$smarty.const.LANG_SELECT_THIS_PACKAGE}" />
                </
span>
               </
form>
        </
td>
    </
tr>
    {
foreachelse}
    <
tr>
        <
td class="formstrip">{$smarty.const.LANG_NO_PACKAGE_DEFINED}</td>
    </
tr>
    {/foreach}{/if}
</
table>
Reply With Quote
  #9  
Old 11-13-2007, 05:56 AM
paulsra paulsra is offline
Member
 
Join Date: Oct 2007
Location: victoria, Australia
Posts: 46
Thumbs up

Thanks Calaf6,

that code appears to have done exactly what i was trying to do.

i havnt done full testing as yet but i believe that file only affects that page so it should be ok.

i very much apreciate your time with this so again, THANKS
Reply With Quote


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Groups - Memberships dawyatt v3.1 Questions & Support 0 05-22-2006 10:44 PM
Disable Memberships? zman78 v3.1 Questions & Support 3 05-09-2006 02:20 PM
Memberships - not active Chaslie v3.1 Questions & Support 4 04-11-2006 09:57 PM
multiple memberships juven14 v3.1 Questions & Support 1 04-07-2006 11:43 AM


All times are GMT -4. The time now is 04:53 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.