Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Your Current Alexa Rank (Integrated With VB) Details »»
Your Current Alexa Rank (Integrated With VB)
Version: 2.337, by Mr Chad Mr Chad is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.5.4 Rating:
Released: 05-08-2006 Last Update: 05-10-2006 Installs: 30
Uses Plugins Template Edits
Additional Files  
No support by the author.

If you like it click


Installation Time: <2 mins
Template Edits: 1
Uploads: 1
VB Version: This actually works on 3.5.0 - 3.5.4
Live Example (Look at my footer): http://beasttoast.com

Description:
This hack will make your site go to alexa.com once a day and grab your current alexa rank. You can place your rank anywhere by using $alexarank.

Installation Instructions:
  1. Open your 'includes/config.php' and Find:
    PHP Code:
    ?> 
    Replace With:
    PHP Code:
    global $specialtemplates;
    $specialtemplates array_merge(
    $specialtemplates, array(
    'alexarank',
    ));  
    ?> 
  2. Upload Product!
  3. Now add this in any template where ever you want to show the rank:
    PHP Code:
    {$vbulletin->alexarank

    For example in footer page:
    HTML Code:
    <br /> Alexa Rank: {$vbulletin->alexarank} <br />
  4. Run the schedulted task:
    'Alexa Rank'
Screen Shot:




FAQ:- NONE
If you like it click

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-09-2006, 06:28 AM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is storing the result in a txt file better than storing in database? (most preferably datastore). If interested, I can help you convert this hack to store the results in db instead of a txt file. It wont even cost you a query as it will be stored in datastore. Will wait for your reply. Plus large sites with multiple webservers that deserve to show off their Alexa rank wont be too happy with storing text in a file.
Reply With Quote
  #23  
Old 05-09-2006, 09:00 AM
murrtex murrtex is offline
 
Join Date: May 2002
Location: izmir
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try this in the footer

HTML Code:
<center>
Alexa Rank: <a href="http://www.alexa.com/data/details/traffic_details?q=&url=www.yoursite.com" target="_blank">$alexarank</a></center>
Reply With Quote
  #24  
Old 05-09-2006, 11:48 AM
Developer's Avatar
Developer Developer is offline
 
Join Date: Sep 2005
Location: EgYpT
Posts: 662
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack m8,
btw: many users use the same avatar
Reply With Quote
  #25  
Old 05-09-2006, 12:26 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aurous
Is storing the result in a txt file better than storing in database? (most preferably datastore). If interested, I can help you convert this hack to store the results in db instead of a txt file. It wont even cost you a query as it will be stored in datastore. Will wait for your reply. Plus large sites with multiple webservers that deserve to show off their Alexa rank wont be too happy with storing text in a file.
Yea but then on every page view it has to pull it from the database im scared lol :P
Reply With Quote
  #26  
Old 05-09-2006, 12:37 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by murrtex
try this in the footer

HTML Code:
<center>
Alexa Rank: <a href="http://www.alexa.com/data/details/traffic_details?q=&url=www.yoursite.com" target="_blank">$alexarank</a></center>
I like once i actually release a template edit ill prolly use your if you dont mind
Reply With Quote
  #27  
Old 05-09-2006, 12:52 PM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As I said earlier, you can store it in datastore and it will not affect the number of queries on your database (it will remain the same for all pages). Let me update your hack to work with database real quick and then you can see the results.

Also, larger sites using rsync or different filesystem on multiple webservers will have to update the text file too, which is quite unnecessary.
Reply With Quote
  #28  
Old 05-09-2006, 01:03 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow this sounds good now, cant wait to see what you come up with

(this will eliminate the text file)
Reply With Quote
  #29  
Old 05-09-2006, 02:49 PM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, created product this time instead of plugin and can be uninstalled easily.

Product file adds scheduled tasks automatically and also adds row in datastore for alexarank.

You can edit the files anyway you like and update your script in this thread if you wish.

Also, I was thinking, instead of asking users to add website url, why not use bburl stored in database? I didnt test this yet, but you can try it out.

Code:
$YourWebsite = $vbulletin->options['bburl'];
Aurous

ps. file updated. added instructions in zip.
Reply With Quote
  #30  
Old 05-09-2006, 03:06 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice mod, thx
Reply With Quote
  #31  
Old 05-09-2006, 07:37 PM
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Location: West London
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

chatbum and Aurous, very nice. *clicks install*

Bob
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:44 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07266 seconds
  • Memory Usage 2,313KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_html
  • (3)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete