View Full Version : Sponsored List Problems
Mayur Saparia
07-15-2006, 08:46 AM
I have lots of doubts with Sponsored Link. Please help me out friends
1. While submiting new URL if i select "Sponsored Links" option it is asking for "Reciprocal Url". How to Disable Reciprocal Url for Paid Submission. [i wanted to use "Reciprocal Url" for free submission only]
Try Yourself : http://www.goofydirectory.com/suggest-link.php?id=29
2. After Sumiting a link under "Sponsored Links" when i go to Admin panel it will show new link in "suspended". When i click there to see details it is showing under Plan:"Not Sponsored".
3. How to delete Image Verification part in Suggest Link?
4. If i define Sponsored under this category "http://www.goofydirectory.com/arts/design/" Why it is coming under "Sponsored" Window Left side in all other categories. I think it should come only in "ART" Categories. Like PHPld n other Directory sites.
Website Url: http://www.goofydirectory.com
Waiting for reply...:batz:
Mayur Saparia
07-17-2006, 06:09 AM
I want some one to help me...
For #3 disable "captcha" in the admin panel...
Mayur Saparia
07-17-2006, 06:19 AM
3. How to delete Image Verification part in Suggest Link?
Problem Solved... waiting for other questions... thanks a lot WTM :)
Sai_dallas
07-17-2006, 12:45 PM
You can disable this in the admin.
You do not have to delete that.
Mayur Saparia
07-17-2006, 12:47 PM
i wanted other answers?
1. While submiting new URL if i select "Sponsored Links" option it is asking for "Reciprocal Url". How to Disable Reciprocal Url for Paid Submission. [i wanted to use "Reciprocal Url" for free submission only]
Try Yourself : http://www.goofydirectory.com/suggest-link.php?id=29
2. After Sumiting a link under "Sponsored Links" when i go to Admin panel it will show new link in "suspended". When i click there to see details it is showing under Plan:"Not Sponsored".
4. If i define Sponsored under this category "http://www.goofydirectory.com/arts/design/" Why it is coming under "Sponsored" Window Left side in all other categories. I think it should come only in "ART" Categories. Like PHPld n other Directory sites.
Mayur Saparia
07-18-2006, 06:10 AM
please waiting for some urgent reply.....
Vasily B.
07-18-2006, 09:28 AM
please let's be some more patient:
here is the mod for your first issue:
*** open suggest-link.tpl and find the following code ***
<input type="radio" name="plan" value="0" id="p0" {if not $smarty.post.plan}checked="checked"{/if}/>
*** change it to the following ***
<input type="radio" name="plan" value="0" id="p0" {if not $smarty.post.plan}checked="checked"{/if} onClick="document.getElementById('reciprocal').style.displa y='none';"/>
*** find the following code ***
<input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}" {if $smarty.post.plan eq $plan.id}checked="checked"{/if} />
*** change to the following ***
<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='block';"/>
*** save changes ***
Now when you click on FREE on your suggest link page - your reciprocal link field becomes invisible.
Mayur Saparia
07-18-2006, 12:47 PM
1. While submiting new URL if i select "Sponsored Links" option it is asking for "Reciprocal Url". How to Disable Reciprocal Url for Paid Submission. [i wanted to use "Reciprocal Url" for free submission only]
Still same problem if i select "Sponsored Links - $10" It still ask for back links.
getting this message "Please input correct reciprocal link."
have a look there i have changed as u said.
http://www.goofydirectory.com/suggest-link.php?id=88
Please reply me when u get time. Hope my issue will get solved. I'll have patient this time :(
Mayur
Sergey Ten
07-18-2006, 08:30 PM
Hello Mayur Saparia,
Hope this helps. Please follow directives:
*** Open your suggest-link.php ***
*** Find this code ***
/** reciprocal link checking **/
if ($gDirConfig['reciprocal_check'])
{
if ($gDirConfig['reciprocal_domain'])
{
if (get_domain($_POST['reciprocal']) != $link['domain'])
{
$error =true;
$msg .= "<li>{$gDirLang['error_reciprocal_domain']}</li>";
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
*** Replace with ***
/** reciprocal link checking **/
if($_POST['plan'] != 0)
{
if ($gDirConfig['reciprocal_check'])
{
if ($gDirConfig['reciprocal_domain'])
{
if (get_domain($_POST['reciprocal']) != $link['domain'])
{
$error =true;
$msg .= "<li>{$gDirLang['error_reciprocal_domain']}</li>";
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
}
*** Save change ***
Mayur Saparia
07-19-2006, 06:23 AM
I think u didn't check my problem..
1. While submiting new URL if i select "Sponsored Links" option it is asking for "Reciprocal Url". How to Disable Reciprocal Url for Paid Submission. [i wanted to use "Reciprocal Url" for free submission only]
Sergey Ten ur code work but it is working in Free infact it should work with Sponsored Links - $10 link
once again i'll try to explain wat problem i m having .
Go to url first
http://www.goofydirectory.com/suggest-link.php?id=88
There are 2 options Right now...
=====> Free
=====> Sponsored Links - $10
I'll put one more option leter.
But i want that when some one select "Free" submission option. script should check "Reciprocal Url:"
I want to give Free link only with Reciprocal Url back to my site.
But when User select "Sponsored Links - $10" it should not check "Reciprocal Url:" Coz they r paying me.
after trying Sergey Ten's code "Free" option not asking for "Reciprocal Url:" But it should ask when some one select "Free".
and it should not ask for "Reciprocal Url:" when some one use "Sponsored Links - $10" option.
I hope u get my point. i will wait for some help... sorry for all these troubles... :cry:
Thanks
Mayur
Sergey Ten
07-19-2006, 08:51 AM
Hello Mayur Saparia,
Ok, please follow this directives:
*** open suggest-link.tpl and find the following code ***
<input type="radio" name="plan" value="0" id="p0" {if not $smarty.post.plan}checked="checked"{/if}/>
*** change it to the following ***
<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';"/>
*** find the following code ***
<input type="radio" name="plan" value="{$plan.id}" id="p{$plan.id}" {if $smarty.post.plan eq $plan.id}checked="checked"{/if} />
*** change to the following ***
<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';"/>
*** save changes ***
*** Open your suggest-link.php ***
*** Find this code ***
/** reciprocal link checking **/
if ($gDirConfig['reciprocal_check'])
{
if ($gDirConfig['reciprocal_domain'])
{
if (get_domain($_POST['reciprocal']) != $link['domain'])
{
$error =true;
$msg .= "<li>{$gDirLang['error_reciprocal_domain']}</li>";
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
*** Replace with ***
/** reciprocal link checking **/
if($_POST['plan'] == 0)
{
if ($gDirConfig['reciprocal_check'])
{
if ($gDirConfig['reciprocal_domain'])
{
if (get_domain($_POST['reciprocal']) != $link['domain'])
{
$error =true;
$msg .= "<li>{$gDirLang['error_reciprocal_domain']}</li>";
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
else
{
$link['recip_valid'] = check_reciprocal($tmp['reciprocal']);
if (!$link['recip_valid'])
{
$error = true;
$msg .= "<li>{$gDirLang['error_reciprocal_link']}</li>";
}
}
}
}
*** Save change ***
Mayur Saparia
07-20-2006, 04:30 AM
1. While submiting new URL if i select "Sponsored Links" option it is asking for "Reciprocal Url". How to Disable Reciprocal Url for Paid Submission. [i wanted to use "Reciprocal Url" for free submission only]
Try Yourself : http://www.goofydirectory.com/suggest-link.php?id=29
2. After Sumiting a link under "Sponsored Links" when i go to Admin panel it will show new link in "suspended". When i click there to see details it is showing under Plan:"Not Sponsored".
3. How to delete Image Verification part in Suggest Link?
4. If i define Sponsored under this category "http://www.goofydirectory.com/arts/design/" Why it is coming under "Sponsored" Window Left side in all other categories. I think it should come only in "ART" Categories. Like PHPld n other Directory sites.
Thanks a lot Sergey Ten :friends:
Problem 1 Solved
2nd one is not so important you may keep a note for that in next version.:kovarstvo2:
3rd one also fine now :dance2:
Now please have a look at 4th one. The last
4. If i define Sponsored under this category "http://www.goofydirectory.com/arts/design/" Why it is coming under "Sponsored" Window Left side in all other categories. I think it should come only in "ART" Categories. Like PHPld n other Directory sites.
Please try to find some solution for it. Coz most of the directory script show sponsored link only in selected category.
Waiting for reply... Take ur time :poisk:
Bye thanks once again to great devloper Sergey Ten
Mayur
Sergey Ten
07-20-2006, 05:17 AM
Hello Mayur Saparia,
I will investigate this problem. I will post solution a little bit later.
Thank you for patience.
Mayur Saparia
07-20-2006, 05:30 AM
thanks... i'll wait for ur reply :)
Dave Baker
07-20-2006, 07:29 AM
Hello Mayur Saparia,
Make the following:
***Open file classes\Dir.php***
***find block of code:***
function getSponsoredLinks($aCategory = 0, $aStart =0, $aLimit = 0)
{
$sql = "SELECT t2.*, t3.`name` plan ";
$sql .= "FROM `{$this->mPrefix}sponsored` t1 ";
$sql .= "LEFT JOIN `{$this->mPrefix}links` t2 ";
$sql .= "ON t1.`id_link` = t2.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}plans` t3 ";
$sql .= "ON t1.`id_plan` = t3.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}link_comments` t5 ";
$sql .= "ON t5.`id_link` = t2.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}link_clicks` t6 ";
$sql .= "ON t6.`id_link` = t2.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}link_categories` t7 ";
$sql .= "ON t7.`id_link` = t2.`id` ";
$sql .= $aCategory ? "WHERE t7.`id_category` <> '{$aCategory}' " : '';
$sql .= "GROUP BY t2.`id` ";
$sql .= "ORDER BY RAND() ";
$sql .= $aLimit ? "LIMIT {$aStart}, {$aLimit}" : '';
return $this->mDb->getAll($sql);
}
***Replace with the following code:***
function getSponsoredLinks($aCategory = 0, $aStart =0, $aLimit = 0)
{
$sql = "SELECT t2.*, t3.`name` plan ";
$sql .= "FROM `{$this->mPrefix}sponsored` t1 ";
$sql .= "LEFT JOIN `{$this->mPrefix}links` t2 ";
$sql .= "ON t1.`id_link` = t2.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}plans` t3 ";
$sql .= "ON t1.`id_plan` = t3.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}link_comments` t5 ";
$sql .= "ON t5.`id_link` = t2.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}link_clicks` t6 ";
$sql .= "ON t6.`id_link` = t2.`id` ";
$sql .= "LEFT JOIN `{$this->mPrefix}link_categories` t7 ";
$sql .= "ON t7.`id_link` = t2.`id` ";
$sql .= "WHERE t7.`id_category` = '{$aCategory}' ";
$sql .= "GROUP BY t2.`id` ";
$sql .= "ORDER BY RAND() ";
$sql .= $aLimit ? "LIMIT {$aStart}, {$aLimit}" : '';
return $this->mDb->getAll($sql);
}
***Save file.***
Sponsored link will be shown only in their category.
Mayur Saparia
07-22-2006, 11:52 AM
thankssssssssssssssssssssssssssssssssssss a lottttttttt Dave Baker
it's working fine yahoooooo :) now let me start good template design
see u soon bye thanks everyone :)
i'll be back in other section when i'll finish my designing part :)
Vincent Wright
07-24-2006, 04:50 AM
to Mayur
please use REGULAR font when posting in the forum. Bold text is really hard to read.
Thanks.
Mayur Saparia
07-24-2006, 05:47 AM
okay sir i'll make a note of it
vBulletin® v3.7.0, Copyright ©2000-2013, Jelsoft Enterprises Ltd.