Webmastersite.net
Register Log In

How to active only

Comments on How to active only

Tariq2009
Member

Usergroup: Customer
Joined: Aug 08, 2005

Total Topics: 21
Total Comments: 46
Posted May 24, 2006 - 12:40 PM:

Hi how to active only Sponsor link instead of regular,reciprocal.Because i dont want people to submit the link free any help please thanks
RedstoneMG
Member

Usergroup: Customer
Joined: Jun 15, 2005
Location: Ontario, Canada

Total Topics: 7
Total Comments: 33
Posted May 24, 2006 - 2:13 PM:

There is lots of helpful information in the WSN Manual. You could start here: scripts.webmastersite.net/w...inks/wsnmanual/articles/21

Also search for articles on 'sponsor'
Tariq2009
Member

Usergroup: Customer
Joined: Aug 08, 2005

Total Topics: 21
Total Comments: 46
Posted May 24, 2006 - 5:04 PM:

RedstoneMG wrote:
There is lots of helpful information in the WSN Manual. You could start here: scripts.webmastersite.net/w...inks/wsnmanual/articles/21

Also search for articles on 'sponsor'



Thanks for that link i have read that but it does not mention anywhere there how to active only sponsor and deactive ragular and reciprocal .So who will submit link will have to pay for it not free thanks
rolij
Member

Usergroup: Customer
Joined: May 19, 2005

Total Topics: 18
Total Comments: 42
rolij
Posted May 25, 2006 - 4:31 AM:

According the manual: When you only want to use one link type, go to the 'switches' area of your admin panel and turn off link types.
Tariq2009
Member

Usergroup: Customer
Joined: Aug 08, 2005

Total Topics: 21
Total Comments: 46
Posted May 25, 2006 - 5:19 AM:

rolij wrote:
According the manual: When you only want to use one link type, go to the 'switches' area of your admin panel and turn off link types.

When you turn off the link type from swtiches then you got only option is avilibale is ragular link i dont want that i want just sponsor option to be active when someone add link so they have to pay thanks
rolij
Member

Usergroup: Customer
Joined: May 19, 2005

Total Topics: 18
Total Comments: 42
rolij
Posted May 25, 2006 - 4:29 PM:

Well, then send the sponsored link type as hidden field in the suggestlink template:
<input type="hidden" name="type" value="sponsored">
Of course you have to set the value name (sponsored) according your settings in the sponsorship section.
You can also add the following if you want to directly redirect to the buy sponsorhip page:
<input type="hidden" name="sponsorthis" value="1">
Tariq2009
Member

Usergroup: Customer
Joined: Aug 08, 2005

Total Topics: 21
Total Comments: 46
Posted May 28, 2006 - 8:25 PM:

Hi rolij, <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for help i am posting the code of suggestlink.tpl can you please guide me in code where exactly I need to put this code (<input type="hidden" name="type" value="MYLINKGROUP">

<SPAN style="FONT-FAMILY: " New Times size='3"' Roman?><input type="hidden" name="MYLINKGROUP" value="1">wink

<SPAN style="FONT-FAMILY: " New Times size='3"' Roman?>

<SPAN style="FONT-FAMILY: " New Times size='3"' Roman?>And one thing more after adding this code when someone add new link it will forwarded to sponsor page but will that work normally like the sponsorship is working now and i want sponsor link to show in category like normal link not like sponsor at top Thanks


<script type="text/javascript" language="JavaScript">

<!-- Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
}
// End -->
</script>

<div class="nav"><a href="https://www.webmastersite.net/forums/">{LANG_NAVORIGIN}</a>{NAVIGATION} > {LANG_TITLE_SUGGESTNEWLINK}</div>

<IF {PREVIEWING}>
<div class="comment">{PREVIEW}</div>
</IF>

<span class="important">{INCOMPLETE}</span>

<form name="submitform" <IF {THISMEMBERWYSIWYGDESCRIP}>onsubmit="return submitForm();"</IF> enctype="multipart/form-data" action="suggest.php?action=addlink&amp;amp;filled=1" method="post">
<table>
<tr><td colspan="2" class="tableheader"><img src="templates/default/images/icon_general.gif"> {LANG_TITLE_SUGGESTNEWLINK}</td></tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_CATEGORY}:</span></td>
<td class="optionscolumn"><IF {SWITCH_CATSELECTOR}><select name="catid">{CATSELECTOR}</select><ELSE><input type="hidden" name="catid" value="{CATID}">{CATNAME}</IF></td>
</tr>
<IF {THISMEMBERGROUPCANALIAS}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_ALIAS}:</span><br>{LANG_SUGGESTLINK_ALIASHELP}</td>
<td class="optionscolumn">
<IF {SWITCH_CATSELECTOR}>
<select multiple name="aliasids[]" size="5">{ALIASOPTIONS}</select><input type="hidden" name="aliassubmited" value="1">
<ELSE>
{LANG_SUGGESTCAT_TYPEIDS} <br> <input type="text" name="aliasids" value="{LINKALIASIDVALUES}" size="{STANDARDSIZE}">
</IF>
</td>
</tr>
</IF>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_NAME}:</span></td>
<td class="optionscolumn"><input type="text" name="title" size="{STANDARDSIZE}" value="{LINKTITLE}" maxlength="{TITLELENGTH}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_URL}:</span></td>
<td class="optionscolumn"><input type="text" name="url" size="{STANDARDSIZE}" value="{LINKURL}"> <IF {SWITCH_GETMETA}><input type="submit" name="getmeta" value="{LANG_SUGGEST_GETMETADESCRIPTION}" class="button"></IF></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_DESCRIPTION}:</span>
<IF {SWITCH_WYSIWYGDESCRIP}>
<p align="center">
<IF {THISMEMBERPOSTEDITOR} is WYSIWYG><input type="submit" name="switcheditor" value="{LANG_EDITCOM_SWITCHPLAIN}" class="button"></IF>
<IF {THISMEMBERPOSTEDITOR} is plain><input type="submit" name="switcheditor" value="{LANG_EDITCOM_SWITCHWYSI}" class="button"></IF>
</p>
</IF>
</td>
<td class="optionscolumn">
<IF {THISMEMBERWYSIWYGDESCRIP}>
<script language="JavaScript" type="text/javascript" src="https://www.webmastersite.net/forums/templates/default/richtext.js"></script>
<script language="JavaScript" type="text/javascript">
function submitForm() { updateRTEs(); return true; }
initRTE("templates/default/images/posteditor/", "templates/default/", "{DIRURL}/templates/styles/{STYLESHEET}.css");
</script>
<script language="JavaScript" type="text/javascript">
writeRichText('description', '{LINKDESCRIPTIONWYSIWYG}', 400, 100, true, false);
</script>
<OTHERWISE>
<textarea name="description" rows="5" cols="45" onKeyDown="textCounter(submitform.description,submitform.remLen,{DESCRIPLENGTH});" onKeyUp="textCounter(submitform.description,submitform.remLen,{DESCRIPLENGTH});">{LINKDESCRIPTION}</textarea>
<br><input readonly type="text" name="remLen" size="4" maxlength="4" value="{DESCRIPLENGTH}"> {LANG_SUGGESTLINK_CHARSLEFT}
</IF>
</td>
</tr>
<IF {THISMEMBERGROUPCANUPLOAD}>
<tr>
<td class="labelscolumn" width="20%"><span class="labels">{LANG_SUGGESTLINK_ATTACH}:</span>
<br>{LANG_SUGGESTLINK_ALLOWEDTYPES}: {ALLOWEDEXTENSIONS}</td>
<td class="optionscolumn" width="80%">
<IF {LINKNUMATTACHMENTS} is less than {THISMEMBERGROUPATTACHPERLINK}><input type="file" name="filefield"> <input type="submit" name="uploadattachment" value="{LANG_SUGGESTLINK_ATTACHBUTTON}" class="button"></IF>

<IF {LINKNUMATTACHMENTS}>
<br>{LANG_SUGGESTLINK_CURRENTATTACH}:<br>
<!-- BEGIN LINK ATTACHMENTS -->
<input type="checkbox" name="attachdelete[]" value="{ATTACHID}"> {ATTACHFILETITLE} ({ATTACHKB} KB)<br>
<!-- END LINK ATTACHMENTS -->
<input type="submit" name="attachdeletion" value="{LANG_GENERAL_DELETESELECTED}" class="button">
</IF>
</td>
</tr>
</IF>
<IF {SWITCH_TOPICTYPES}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_TYPEOFLINK}:</span></td>
<td class="optionscolumn"><select name="type">{TYPEOPTIONS}</select></td>
</tr>
</IF>
<IF {ISALBUM} is 0>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_RECIPROCALLINK}:</span></td>
<td class="optionscolumn"><input type="text" name="recipurl" size="{STANDARDSIZE}" value="{LINKRECIPURL}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_EMAIL}:</span></td>
<td class="optionscolumn"><input type="text" name="email" size="{STANDARDSIZE}" value="{LINKEMAIL}">
<IF {SWITCH_COMMENTS}><br><input type="checkbox" name="notify" {LINKNOTIFY}> {LANG_SUGGESTLINK_NOTIFYME}</IF></td>
</tr>
</IF>

<!-- INSERT NEW FIELDS HERE -->

<IF {THISMEMBERGROUPCANDOFULLEDIT}>
<IF {SWITCH_RATINGS}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_RATING}:</span></td>
<td class="optionscolumn"><input type="text" name="rating" size="5" value="{LINKRATING}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_VOTES}:</span></td>
<td class="optionscolumn"><input type="text" name="votes" size="5" value="{LINKVOTES}"></td>
</tr>
</IF>
<IF {SWITCH_HITS}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_HITSOUT}:</span></td>
<td class="optionscolumn"><input type="text" name="hits" value="{LINKHITS}" size="5"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_HITSIN}:</span></td>
<td class="optionscolumn"><input type="text" name="hitsin" size="5" value="{LINKHITSIN}"></td>
</tr>
</IF>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_EDITLINK_OWNER}:</span></td>
<td class="optionscolumn"><input type="text" name="ownerid" size="5" value="{LINKOWNERID}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_EXPIRE}:</span><br>{LANG_SUGGESTLINK_EXPIREHELP}</td>
<td class="optionscolumn"><input type="text" size="5" name="expire" value="{LINKEXPIRE}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_FUNDS}:</span><br>{LANG_SUGGESTLINK_FUNDSHELP}</td>
<td class="optionscolumn"> £<input type="text" name="funds" size="5" value="{LINKFUNDS}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_RECIPWITH}:</span><br>{LANG_SUGGESTLINK_RECIPWITHHELP}</td>
<td class="optionscolumn"><input type="text" name="recipwith" size="{STANDARDSIZE}" value="{LINKRECIPWITH}"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_RELATED}:</span><br>{LANG_SUGGESTLINK_RELATEDHELP}</td>
<td class="optionscolumn"><input type="text" size="{STANDARDSIZE}" value="{LINKRELATED}" name="related"></td>
</tr>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGEST_ALLOWCOMMENTS}</span></td>
<td class="optionscolumn"><select name="threadclosed"><option value="0">yes</option><option value="1">no</option></select></td>
</tr>
</IF>
<IF {THISMEMBERGROUPCANHIDEOWNLINKS}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_EDITLINK_HIDE}</span></td>
<td class="optionscolumn"><select name="hide">{LINKHIDESELECTOR}</select></td>
</tr>
</IF>
<IF {SPONSORUSELINK} is yes>
<tr>
<td class="labelscolumn" colspan="2"><input type="checkbox" name="sponsorthis" vlaue="1"> {LANG_SUGGESTLINK_SPONSORIT}</td>
</tr>
</IF>
<IF {MEMBERUSERGROUP} is 1 and {SWITCH_MEMBERS}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_REGISTER}:</span>
<br>{LANG_SUGGESTLINK_REGISTER_EXPLAIN}</td>
<td class="optionscolumn">{LANG_REGISTRATION_USERNAME}: <input type="text" name="name" size="{STANDARDSIZE}"> <br>
{LANG_REGISTRATION_PASSWORD}: <input type="text" name="password" size="{STANDARDSIZE}"> <td>
</tr>
</IF>
<input type="hidden" name="isalbum" value="{ISALBUM}">
<IF {SECURITYIMAGE} and {THISMEMBERISGUEST}>
<tr>
<td class="labelscolumn"><span class="labels">{LANG_GENERAL_SECURITYIMAGE}:</span>
<br>{LANG_GENERAL_SECURITYIMAGEHELP}</td>
<td class="optionscolumn"><img src="securityimage.php" class="bullet"> <input type="text" name="securityimage" size="4" maxlength="4"> </td>
</tr>
</IF>
</table>
<input type="hidden" name="customwrapper" value="{CUSTOMWRAPPER}">
<input type="hidden" name="redirectto" value="{REDIRECTTO}">
<input type="submit" value="{LANG_SUBMITLINK_SUBMIT}" class="button"> <input type="submit" name="preview" value="{LANG_PM_PREVIEW}" class="button">
</form>








rolij wrote:
Well, then send the sponsored link type as hidden field in the suggestlink template:
<input type="hidden" name="type" value="sponsored">
Of course you have to set the value name (sponsored) according your settings in the sponsorship section.
You can also add the following if you want to directly redirect to the buy sponsorhip page:
<input type="hidden" name="sponsorthis" value="1">


rolij
Member

Usergroup: Customer
Joined: May 19, 2005

Total Topics: 18
Total Comments: 42
rolij
Posted May 31, 2006 - 11:35 AM:

It doesn't matter where you put it into your code, as long as it is somewhere between the <form> and </form> tag. I recommend to put it in just before the </form> tag:

<input type="hidden" name="type" value="sponsored">
<input type="hidden" name="sponsorthis" value="1">
</form>


If you only offer sponsored links, remove the link type pull-down menu:

<IF {SWITCH_TOPICTYPES}> 
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_TYPEOFLINK}:</span></td>
<td class="optionscolumn"><select name="type">{TYPEOPTIONS}</select></td>
</tr>
</IF>


and maybe you'd like to remove the reciprocal url as well:

<tr> 
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_RECIPROCALLINK}:</span></td>
<td class="optionscolumn"><input type="text" name="recipurl" size="{STANDARDSIZE}" value="{LINKRECIPURL}"></td>
</tr>


If you'd like to redirect directly to the payment page after submission and if you use the hidden sponsorthis value (as I mentioned above) then you should also remove the following:

<IF {SPONSORUSELINK} is yes> 
<tr>
<td class="labelscolumn" colspan="2"><input type="checkbox" name="sponsorthis" vlaue="1"> {LANG_SUGGESTLINK_SPONSORIT}</td>
</tr>
</IF>


Good luck wink
Tariq2009
Member

Usergroup: Customer
Joined: Aug 08, 2005

Total Topics: 21
Total Comments: 46
Posted Jun 26, 2006 - 2:47 PM:

rolji i have tried all this method you told but not working can someone please give me quote for setting this option for me thanks what i need is 2 options for link to be listed on site 1st : Sponsorship 2nd : Reagular but both are control able from admin panel if i choose 1st option so the user want be able to list until they pay for it thanks and 2nd option normal if i dont want 1st option thanks




rolij wrote:
It doesn't matter where you put it into your code, as long as it is somewhere between the <form> and </form> tag. I recommend to put it in just before the </form> tag:


<input type="hidden" name="type" value="sponsored">
<input type="hidden" name="sponsorthis" value="1">
</form>


If you only offer sponsored links, remove the link type pull-down menu:

<IF 0> 
<tr>
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_TYPEOFLINK}:</span></td>
<td class="optionscolumn"><select name="type">{TYPEOPTIONS}</select></td>
</tr>
</IF>


and maybe you'd like to remove the reciprocal url as well:

<tr> 
<td class="labelscolumn"><span class="labels">{LANG_SUGGESTLINK_RECIPROCALLINK}:</span></td>
<td class="optionscolumn"><input type="text" name="recipurl" size="30" value="{LINKRECIPURL}"></td>
</tr>


If you'd like to redirect directly to the payment page after submission and if you use the hidden sponsorthis value (as I mentioned above) then you should also remove the following:

<IF no is yes> 
<tr>
<td class="labelscolumn" colspan="2"><input type="checkbox" name="sponsorthis" vlaue="1"> {LANG_SUGGESTLINK_SPONSORIT}</td>
</tr>
</IF>


Good luck wink

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#10 - Quote - Permalink
Posted Jun 27, 2006 - 6:34 AM:

You'll need to use punctuation before someone can help.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.