PDA

View Full Version : How do i make Sponsored Link not to require reciprocal link


parisp
05-10-2006, 10:51 AM
Hi

I want to have the following setup on my directory


Free - Which required and needs to validate reciprocal url

Sponsored - Which does not require reciprocal url and states that is does not and hides the reciprocal url field.

Anyone could help me on implementing this setup?

hiding the reciprocal url field could be done via css or javascript i suppose if the sponsored box is selected.

Simon Gooffin
05-11-2006, 04:38 PM
Hi,
I will try to advise you how to make this modification:

*** open suggest-link.tpl ***

*** find the following code ***
<p class="field"><input type="radio" name="plan" value="0" id="p0" {if not $smarty.post.plan}checked="checked"{/if}/>
<label for="p0">{$lang.free}</label></p>
{foreach from=$plans item=plan}
<p class="field"><input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}" {if $smarty.post.plan eq $plan.id}checked="checked"{/if}/>
<label for="p{$plan.id}">{$lang[$plan.name]} - {$config.currency_symbol}{$plan.cost}</label></p>
{/foreach}

*** change it to the following ***
<p class="field"><input type="radio" name="plan" value="0" id="p0" {if not $smarty.post.plan}checked="checked"{/if} onclick="document.getElementById('reciprocal').style.displa y='block';"/>
<label for="p0">{$lang.free}</label></p>
{foreach from=$plans item=plan}
<p class="field"><input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}" {if $smarty.post.plan eq $plan.id}checked="checked"{/if} onclick="document.getElementById('reciprocal').style.displa y='none';"/>
<label for="p{$plan.id}">{$lang[$plan.name]} - {$config.currency_symbol}{$plan.cost}</label></p>
{/foreach}

*** save changes ***

Let me know if it works

parisp
05-17-2006, 12:49 PM
thanks you are a time saver.

althought i changed it to
document.getElementById('reciprocal').disabled=fal se
and
document.getElementById('reciprocal').disabled=tru e

so that the field is still there but its disabled ;)

Ed Dunham
11-02-2006, 11:03 PM
Hello,

I was wondering if this would work for the new 2.0?

If so where do you find *** open suggest-link.tpl ***
I found open suggest-link.php

Thanks,
Ed

John Turner
11-03-2006, 04:23 AM
Hi Ed Dunham and welcome.

All *.tpl files are situated in the '../templates/{YOUR TEMPLATE}/' directory

Please check it using 2.0 version and post your results.

tingirablue
11-15-2006, 02:28 AM
I was about to make this modification in v2.0 and I suddenly thought "why?"

It crossed my mind that all links in were valuable not just to me but to the linker as well - and if i allow links out that are unreciprocated it's my PR that's getting leached, which doesn;t make a great deal of sense.

So it struck me that from a SEM point of view insisting on a reciprocal might not be a bad idea at all. It just seems to be a convention to allow non-reciprocal links and I'm not sure it's all that smart.

Views anyone?

John Turner
11-15-2006, 06:23 AM
Hi tingirablue and welcome.

As I understood, Reciprocal checks availability link to your site in visitor's site if he want to add his link to your site.

Number of site is refered to your site would be increased.

tingirablue
11-15-2006, 07:43 PM
That's my understanding too, John, but I've hit a snag. I've just set up my directory and I ran a test submission. Despite the fact that I put a reciprocal link on my site's home page, the esyndicat software insists I haven't and won't accept the submission.

I have v2.0. Any ideas?

Tech25
11-15-2006, 09:22 PM
I had the same issue and I've found that I have to have the full URL in the reciprocal link address box

http://www.linkurl.com/index.html for example and not just http://www.linkurl.com although I have no idea why this is so.

Seems to work so I made mention of this in the submission guidelines to let people know they need to be page specific, at least until I figure out why this is happening.

hope it helps a little

Roy H.

Dave Baker
11-15-2006, 10:24 PM
Maybe it will help you
http://www.esyndicat.com/forum/about7734.html
or it
http://www.esyndicat.com/forum/about7665.html

tingirablue
11-16-2006, 01:47 AM
Maybe it will help you
http://www.esyndicat.com/forum/about7734.html
or it
http://www.esyndicat.com/forum/about7665.html

I would like to see these, but when I click on them I get told I don't have permission to access the pages. This is getting more and more frustrating by the minute.

This reciprocal link probelm an issue which has been raised time and again in this forum, yet there is still no fix other than to turn off reciprocal link checking completely. Come on guys, we are busy too. Pay some attention!

Hi Roy,

Yes, your idea works for the home page and thanks for the suggestion, but it doesn't seem to work for any internal pages. Since many people have a links page and most won't link from their index pages, the problem still remains.

I'm wondering if the posts here are being fully understood by the programmers. Some of the replies seem to be being made using translation software with the usual problematic results.

Tech25
11-16-2006, 12:40 PM
hmmm odd, it should work for any internal pages as well as long as the page name is specified. The example I gave was merely an example. At present without research, there are only 2 ways I can see it not working for an internal page


The page containing the link reciprocal link cannot be access due to beingin a protected area
The link was placed on the page in a way that is not readable by the directory script, such as a flash or DHTML menu that pulls URL's from a datafile, or an image that displays the url but is not clickable.My undesrtanding is that the script actually visits the page they submit as containing the recip link and does it's version of "View page source" scanning for the URL to your site... which brings me to the next crazy idea...

Just a side thought here I am going to throw out to ponder. Have you ensured that in your link checking options in the admin panel you have specified the URL that the script is supposed to look for? by default the field is labeled "Reciprocal checking for the following URL" and contains something like http://esc and should contain the full URL to where submitters are supposed to link to. http://www.mydirectorysite.com for example if they are to link to your main page.


Just my two cents. IF you PM me the link to your site, I"ll take a look and see if I can spot anything that might be the cause :)

All the best

tingirablue
11-16-2006, 09:46 PM
Thanks, and I will PM you. For the time being I have switched link checking off. I have tried any number of combinations to get it to work, including the suggestions you made above, but nothing seems to fix it.