News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

pagerank bbcode v1.5

Started by rd, May 31, 2008, 09:32:55 PM

Previous topic - Next topic

rd



Pagerank bbcode v1.5
By: royalduke

ex Developer:  130860



Introduction
Enables 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 versions


Features
- 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 languages
o 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 ;)


Installation
Simply 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



Support
Please 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 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

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 

msvdm

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

SA™

yes i am currrently updating it to smf2

sry i dont know how to put pagranks on topics sry
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

msvdm


b33z

hmm... interesting.. anybody have a screenshot??

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

b33z


SA™

ill have a look see what i can do for you
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Apllicmz

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>



SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Angie on Dialysis


yetj

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>

SA™

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

No-Half-Measures

#13
Im Getting this Error  :(


Table '####_smf1.smf_pagerank' doesn't exist
File: /home/####/public_html/forum/Sources/Subs.php
Line: 3751

mirahalo

@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!

mirahalo

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 who pretty much do all the code for me :P  many thanks!


to upgrade, please uninstall the previous version en install the new one ;)

mirahalo

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


impreza

Very cool modification, thank you very much for her to build
Portal ToTemat.pl - Filmy i Artykuły

shubha

This will be update for 2.0.2 or we have to leave as it is.


Shrink

Can you please tell me how page rank is obtained??

Advertisement: