Pagerank bbcode v1.5
By: royalduke
ex Developer: 130860 (http://oharascans.com)
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1227) | Comment On This Mod (http://www.simplemachines.org/community/index.php?topic=242252.0)
IntroductionEnables you to show the pagerank of urls in posts using either
[pagerank=http://www.simplemachines.org/]simplemachines.org[/pagerank]
or
[pagerank]http://www.simplemachines.org/[/pagerank]
For SMF 1.1.10 and 2.0 RC2 versionsFeatures- Admin/Features and Options for 1.1.x
- Admin->Configuration->Modifications for 2.0
- Enable PageRank on Profiles (for users websites)
o BBCode Button
o Caches pageranks in the database for 7 days
- For faster performance (and since PR changes very rarely)
- Automatically clears old pageranks for efficiency
Supported languageso english/utf8
o english/utf8
o spanish_es/utf8
o spanish_latin/utf8
o portuguese_pt/utf8 thanks to Joomlamz
o polish/utf8 thanks to yetj
o turkish/utf8 thanks to Kapadokyali
I welcome translations, please post it on the support topic ;)
InstallationSimply install the package to install on the SMF Default Core / Babylon / Classic Themes AND any other theme which does NOT have a custom Profile.template.php
SupportPlease use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)
Credits-Special thanks to Arantor (http://www.simplemachines.org/community/index.php?action=profile;u=53626) who pretty much do all the code for me :P many thanks!
The PageRank code/API is modified from original public domain code/api
http://www.devpapers.com/article/326
http://www.googlecommunity.com/scripts/google-pagerank.php
http://www.searchengineengine.com/files/pagerank-code.txt
http://www.hm2k.com/projects/pagerank
Changelog1.0 - 17th August 2007
o Initial release.
1.1 - 9th October 2007
o Added Turkish/Turkish-utf8 language support (Thanks to Kapadokyali)
1.2 - 8th December 2007
o Added table to cache pagerank data for 7 days
o Changed to use smf fetch_web_data to try to overcome host restrictions
o Added script to drop the pagerank cache table on uninstall
o Re-wrote most of the pagerank functions
1.3 - 9th January 2008
o New readme
o Fixed a minor error
1.4 - 24th October 2009
o take over by 130860
o upgrade to work with 2.0 RC1.2
o added polish and Portuguese languages
1.5 - 11th November2009
o Added support for 2.0RC2
thanks for the mod lets hope you will find time to update the version to work with SMF 2, also,i have one question can you explane me how i can put pageranks on the forum topics, i see that on some custom themes :) and look pretty cool i love the look :P
yes i am currrently updating it to smf2
sry i dont know how to put pagranks on topics sry
thanks
hmm... interesting.. anybody have a screenshot??
demo
http://www.adrevenueshare.com/index.php?topic=17.0
Quote from: wdm2005 on July 11, 2008, 08:27:04 AM
demo
http://www.adrevenueshare.com/index.php?topic=17.0
thanks!
i noticed in the demo, that the PR img is clickable... anyway to turn that off??
ill have a look see what i can do for you
When update dont forget portuguese_pt
<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['usepagerankonprofiles'] = 'Utilizar PageRank no Perfil';
$txt['pr'] = 'PR:';
$txt['pagerank'] = 'PageRank #';
$txt['pagerank_desc'] = 'Google PageRank';
$txt['pagerank_outof'] = 'fora de 10';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['usepagerankonprofiles'] = 'Utilizar PageRank no Perfil';
$txt['pr'] = 'PR:';
$txt['pagerank'] = 'PageRank #';
$txt['pagerank_desc'] = 'Google PageRank';
$txt['pagerank_outof'] = 'fora de 10';
]]></add>
</operation>
</file>
thanks ;)
Quote from: wdm2005 on July 11, 2008, 08:27:04 AM
demo
http://www.adrevenueshare.com/index.php?topic=17.0
Doesn't work anymore so a screenshot would be well worth it ..
QuoteFirefox can't find the server at www.adrevenueshare.com.
Hello, below are Polish translate ;D
<file name="$themedir/languages/Modifications.polish.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['usepagerankonprofiles'] = 'Użyj PageRanku na Profilach';
$txt['pr'] = 'PR:';
$txt['pagerank'] = 'PageRank #';
$txt['pagerank_desc'] = 'Google PageRank';
$txt['pagerank_outof'] = 'poza 10';
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.polish-utf8.php">
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['usepagerankonprofiles'] = 'Użyj PageRanku na Profilach';
$txt['pr'] = 'PR:';
$txt['pagerank'] = 'PageRank #';
$txt['pagerank_desc'] = 'Google PageRank';
$txt['pagerank_outof'] = 'poza 10';
]]></add>
</operation>
</file>
thansk
Im Getting this Error :(
Table '####_smf1.smf_pagerank' doesn't exist
File: /home/####/public_html/forum/Sources/Subs.php
Line: 3751
@No-Half-Measures if you still want help:
run this query in to your phpmyadmin:
CREATE TABLE IF NOT EXISTS `{$db_prefix}pagerank` (
`url` varchar(32) NOT NULL,
`pr` tinyint(2) NOT NULL default '0',
`timestamp` int(10) NOT NULL default '0',
PRIMARY KEY (`url`) )
replace {$db_prefix} with the prefix or your tables ;)
greetings!
ok, this mod is officially take it by me ;) its now compatible for 2.0RC1.2 and 1.1.10, heres the changelog:
Changelog
1.0 - 17th August 2007
o Initial release.
1.1 - 9th October 2007
o Added Turkish/Turkish-utf8 language support (Thanks to Kapadokyali)
1.2 - 8th December 2007
o Added table to cache pagerank data for 7 days
o Changed to use smf fetch_web_data to try to overcome host restrictions
o Added script to drop the pagerank cache table on uninstall
o Re-wrote most of the pagerank functions
1.3 - 9th January 2008
o New readme
o Fixed a minor error
1.4 - 24th October 2009
o take over by 130860
o upgrade to work with 2.0 RC1.2
o added polish and Portuguese languages
-Special thanks to Arantor (http://www.simplemachines.org/community/index.php?action=profile;u=53626) who pretty much do all the code for me :P many thanks!
to upgrade, please uninstall the previous version en install the new one ;)
quick update to work with 2.0RC2, did a minor change to create the table and a change in profile.template.php, heres de changelog:
Changelog
1.0 - 17th August 2007
o Initial release.
1.1 - 9th October 2007
o Added Turkish/Turkish-utf8 language support (Thanks to Kapadokyali)
1.2 - 8th December 2007
o Added table to cache pagerank data for 7 days
o Changed to use smf fetch_web_data to try to overcome host restrictions
o Added script to drop the pagerank cache table on uninstall
o Re-wrote most of the pagerank functions
1.3 - 9th January 2008
o New readme
o Fixed a minor error
1.4 - 24th October 2009
o take over by 130860
o upgrade to work with 2.0 RC1.2
o added polish and Portuguese languages
1.5 - 11th November2009
o Added support for 2.0RC2
this version is only for 1.1.10 and 2.0RC2
Very cool modification, thank you very much for her to build
This will be update for 2.0.2 or we have to leave as it is.
Can you please tell me how page rank is obtained??