View Full Version : Pagerank for the links on category page
Paras Shah
04-27-2006, 05:27 AM
Hello Everyone,
Can anyone tell me, where can I find the code to retrive the pagerank on the category page.. ie: pagerank on http://www.esyndicat.com/demo/business/
Do i need to look at any .tpl file or it will be in the .php file? if its in .tpl file, can I call the function implemented in .php?
I fix the pagerank issue for the link detail page, but still couldnt fix the problem(dont know where to change.. may be thats why) related to pagerank on category page.
Please advise.
Thanks,
Paras Shah
http://www.pixel4less.com
Nick Collins
04-27-2006, 06:06 AM
Hi,
make sure that you have "Google PageRank display" enabled in script General configuration.
Paras Shah
04-27-2006, 06:10 AM
Thanks nick.
I have that option enabled. But the problem i am facing is kinda weird. I can see the pagerank on the Link Detail page. But i cannot see the pagerank for the links under category page.
Can you tell me where to look in to fix the issue. Do i have to look into .tpl file or .php file and which file?
Thanks,
Paras Shah
Nick Collins
04-27-2006, 06:15 AM
Could you please give me your ftp and admin panel credentials?
Paras Shah
04-27-2006, 06:16 AM
I can provide you the specific file if you wanna have a look.
Thanks,
Paras Shah
Nick Collins
04-27-2006, 06:19 AM
Make sure that you have the following code in your link-display.tpl file:
{if $config.pagerank}
{$lang.pagerank}: {$link.pagerank};
{/if}
Paras Shah
04-27-2006, 06:36 AM
I have something like following in my link-display.tpl:
{if $config.pagerank eq "1"}{$lang.pagerank}: {$link.pagerank};{/if}
also i just tried checking the value of $link.pagerank and its showing 0 always. And config.pagerank variable is set to "1". So that part is working fine. But seems like link.pagerank value is not coming properly.
Can you tell me where are we setting the value of link.pagerank? Because its a strange issue. When i click on Link Detail, and it opens the link page, and there its showing the proper pagerank bar. But its just the category page where its always showing pagerank=0.
Hope this might help resolving the issue.
Thanks,
Paras Shah
Paras Shah
04-27-2006, 06:56 AM
I think i figured out the problem. It wasnt showing the pagerank for old submissions. Today i submit the new link and now its showing the pagerank properly.
:yahoo:
Now that solution leads me to the next question. Can i display the pagerank bar for all the links under category/top links/new links/popular links/admin section... like how we are displaying in the link detail page?
Thanks for your help.
Regards,
Paras Shah
Nick Collins
04-27-2006, 08:08 AM
Can i display the pagerank bar for all the links under category/top links/new links/popular links/admin section... like how we are displaying in the link detail page?
We will display PR bar under category/top links/new links/popular links/ in our new version. I'am not sure about admin section.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.