Ive also setup a subscription recurring item in paypal, its set as item 3.
Ive setup this in the sponsorship settings:
Deduct the incrimental fee every 30 days (to make it a one time fee, just set this to a large number). Incrimental Fee (in USD): $1 Item Number: 3 Sponsor Link Type: Sponsored Separate sponsored links from other types and don't count towards per page total? yes Maximum sponsored links of each level to display per category (applies only if above is 'yes'): Maximum sponsored links to display in search results: 4 Require all link submissions from non-admins to be sponsored? no
I have a link type setup called "Sponsored" in "links" in admin:
Official names (for use in templates): regular,recip,sponsored Display names: regular,recip,sponsored Mix link types? yes
Inside the "show listings in category" template, i have :
<IF {THISMEMBERUSERGROUP} is greater than 1 and {THISMEMBERID} is {LINKOWNERID}> <IF {SWITCH_RATINGS}><br><br><a href="index.php?action=getvotingcode&id={LINKID}">Get voting code to place on your site</a> </IF> <IF {SPONSORUSELINK} is yes><br><a href="link.php?action=sponsor&id={LINKID}">Move your link to the top: sponsor this category</a><br></IF> </IF>
<IF {LINKFILEFIELD}><br>Attached files:<br> <!-- BEGIN LINK ATTACHMENTS --> <a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} KB, {ATTACHDOWNLOADS} downloads)<br> <!-- END LINK ATTACHMENTS --> </IF>
<br>Submitted {LINKDATE}<IF {LINKLASTEDIT} is greater than {LINKTIME}>, edited {LINKLASTEDITDATE}</IF> </td> <!-- END SPONSORED LINKS --> </table>
This appears BEFORE recip and regular. Notice i have bgcolor="#CCFF99", i just did that to try and make it appear differantly to see whether it worked.
Now i have just tested this setup, and im 3/4 of the way there...the sponsor button in listings works, the paypal payment is subtracted, it sets it up as an active subscription within paypal, it redirects to the correct page telling the user they have subscribed. The user gets all the relevant emails....everything appears correct, BUT it doesnt show the new sponsored link at the top of the category...it shows it completely normal, and if i write up another link, or anyone else does, that new link appears above it..or before it.
So while the processes appear to work smoothly, its not changing the appearance or position of the link...any help is really appreciated..im so close yet so far.
Comments on Sponsored Listings - So Close
Beginner
Usergroup: Customer
Joined: Oct 25, 2005
Total Topics: 3
Total Comments: 8
Ok im trying to set up a sponsored listing.
I want to charge $x amount for 30 days.
I have the sponsorship template looking like this:
***Intro up here, you are sponsoring listing for 30 days blah blah**
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="business" value="{PAYPALEMAIL}">
<input type="hidden" name="undefined_quantity" value="1">
<input type="hidden" name="item_name" value="{SITETITLE} Sponsorship">
<input type="hidden" name="item_number" value="{SPONSORITEM3}">
<input type="hidden" name="amount" value="{SPONSORCHARGE1}">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="{DIRURL}">
<input type="hidden" name="cancel_return" value="{DIRURL}">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<table><tr><td><input type="hidden" name="on0" value="linkid"></td><td><input type="hidden" name="os0" value="{LINKID}" maxlength="200"></td></tr></table>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but20.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----***the encrypted codes***
Ive also setup a subscription recurring item in paypal, its set as item 3.
Ive setup this in the sponsorship settings:
Deduct the incrimental fee every 30 days (to make it a one time fee, just set this to a large number).
Incrimental Fee (in USD): $1
Item Number: 3
Sponsor Link Type: Sponsored
Separate sponsored links from other types and don't count towards per page total? yes
Maximum sponsored links of each level to display per category (applies only if above is 'yes'):
Maximum sponsored links to display in search results: 4
Require all link submissions from non-admins to be sponsored? no
I have a link type setup called "Sponsored" in "links" in admin:
Official names (for use in templates): regular,recip,sponsored
Display names: regular,recip,sponsored
Mix link types? yes
Inside the "show listings in category" template, i have :
<table width="96%" cellpadding="5" cellspacing="10" bgcolor="#CCFF99">
<!-- BEGIN SPONSORED LINKS -->
<td {LINKWIDTH} valign="top" class="link">
<img src="templates/default/images/star.gif" alt="">
<IF {LINKURL}>
<a href="{TRACKLINKURL}" class="reciplink" {EXTERNALLINKS}>{LINKTITLE}</a>
<OTHERWISE>
{LINKTITLE}
</IF>
{LINKNEW} {LINKISUPDATED} {LINKADMIN}
<IF {LINKISREAD}><img src="templates/default/images/viewed.png"></IF>
<IF {SWITCH_PAGERANK}><br><a href="http://www.huebit.ws/tools/page_rank.php" target="_blank"><img src="http://www.huebit.ws/pagerank_dispenser.php?url={LINKURL}&type=1&op=1" alt="Google Pagerank Tool" border="0"></a></IF>
<br>{LINKDESCRIPTION}
<IF {SWITCH_RATINGS} and {LINKRATING}><br>Rating: {LINKSTARS} ({LINKRATING}/{MAXVOTE} based on {LINKVOTES} votes)</IF>
<IF {SWITCH_HITS}><br>Hits Out: {LINKHITS} | Hits In: {LINKHITSIN}</IF>
<br>
<IF {SWITCH_RATINGS}><a href="vote.php?id={LINKID}">Rate</a> | </IF><IF {SWITCH_REPORTS}><a href="report.php?id={LINKID}">Report</a> | </IF><IF {THISMEMBERGROUPCANEMAIL}><a href="email.php?id={LINKID}">E-mail</a> | </IF><a href="javascript:window.external.AddFavorite('{LINKURL}', '{LINKBOOKMARKTITLE}')">Bookmark</a>
<IF {SWITCH_ALBUMS} and {THISMEMBERISREGISTERED}> | <a href="albums.php?add={LINKID}">Add to List</a></IF>
| <a href="{LINKDETAILSURL}">Details</a> <IF {SWITCH_COMMENTS}> | <a href="comments.php?id={LINKID}">Comments (<IF {LINKCOMMENTSREAD}>{LINKNUMCOMMENTS}<OTHERWISE><b>{LINKNUMCOMMENTS}</b></IF>)</a></IF>
<IF {THISMEMBERUSERGROUP} is greater than 1 and {THISMEMBERID} is {LINKOWNERID}>
<IF {SWITCH_RATINGS}><br><br><a href="index.php?action=getvotingcode&id={LINKID}">Get voting code to place on your site</a> </IF>
<IF {SPONSORUSELINK} is yes><br><a href="link.php?action=sponsor&id={LINKID}">Move your link to the top: sponsor this category</a><br></IF>
</IF>
<IF {THISMEMBERGROUPCANVIEWVOTES}><br><a href="showvotes.php?id={LINKID}">Show Individual Votes</a></IF>
<IF {LINKFILEFIELD}><br>Attached files:<br>
<!-- BEGIN LINK ATTACHMENTS -->
<a href="download.php?id={LINKID}&attachid={ATTACHID}">{ATTACHFILETITLE}</a> ({ATTACHKB} KB, {ATTACHDOWNLOADS} downloads)<br>
<!-- END LINK ATTACHMENTS -->
</IF>
<br>Submitted {LINKDATE}<IF {LINKLASTEDIT} is greater than {LINKTIME}>, edited {LINKLASTEDITDATE}</IF>
</td>
<!-- END SPONSORED LINKS -->
</table>
This appears BEFORE recip and regular. Notice i have bgcolor="#CCFF99", i just did that to try and make it appear differantly to see whether it worked.
Now i have just tested this setup, and im 3/4 of the way there...the sponsor button in listings works, the paypal payment is subtracted, it sets it up as an active subscription within paypal, it redirects to the correct page telling the user they have subscribed. The user gets all the relevant emails....everything appears correct, BUT it doesnt show the new sponsored link at the top of the category...it shows it completely normal, and if i write up another link, or anyone else does, that new link appears above it..or before it.
So while the processes appear to work smoothly, its not changing the appearance or position of the link...any help is really appreciated..im so close yet so far.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Settings:
Template:
Result:
Attached Files: