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
  #32  
Old 05-09-2006, 08:59 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
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.
does the bburl contain 'http://www.' if so it would have to be
PHP Code:
$YourWebsite preg_replace('#http://www.#s'''$vbulletin->options['bburl']); 
wow, i look at the product you made . Learned alot, I think its time for me to update my other hack.
Reply With Quote
  #33  
Old 05-10-2006, 06:18 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow just what I want. Thanks!
Reply With Quote
  #34  
Old 05-10-2006, 10:21 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok updated it,

thanks to me and Aurous, now all you need to do is really 3 steps (4 if installing a plugin counts)
Reply With Quote
  #35  
Old 05-10-2006, 10:40 PM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice! You should also update the mod version in the product file with the one in this thread (2.337) just so people dont get confused when they look at their products. Not that we'll be updating this hack any further, but just a good practice for future upgrades to your hacks. :up:
Reply With Quote
  #36  
Old 05-10-2006, 10:42 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
Nice! You should also update the mod version in the product file with the one in this thread (2.337) just so people dont get confused when they look at their products. Not that we'll be updating this hack any further, but just a good practice for future upgrades to your hacks. :up:
my bad

*off-topic: how would I make a product also install a plugin?*
Reply With Quote
  #37  
Old 05-10-2006, 11:05 PM
Aurous Aurous is offline
 
Join Date: Apr 2004
Posts: 138
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by chatbum
my bad

*off-topic: how would I make a product also install a plugin?*

Just before:
Code:
</product>
Add this for custom plugins and templates:
Code:
	<plugins>
		<plugin active="1">
			<title>Plugin Title</title>
			<hookname>hook_name</hookname>
			<phpcode><![CDATA[

			//Active Plugin Code Here

			]]>
			</phpcode>
		</plugin>
		<plugin active="0">
			<title>Plugin2 Title</title>
			<hookname>hook_name</hookname>
			<phpcode><![CDATA[

			//Inactive Plugin2 Code Here

			]]>
			</phpcode>
		</plugin>
	</plugins>


	<templates>
		<template name="template_name1" templatetype="template" date="1234567890" username="Aurous" version="3.5.4"><![CDATA[

		<!-- Insert Template Here -->

		]]>
		</template>
		<template name="template_name2" templatetype="template" date="1234567890" username="Aurous" version="3.5.4"><![CDATA[

		<!-- Insert Template Here -->

		]]>
		</template>
	</templates>
Hope this helps.
Reply With Quote
  #38  
Old 05-15-2006, 04:09 PM
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Location: West London
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is not updating automatically, I have to run it manually. Any ideas please?

Bob
Reply With Quote
  #39  
Old 05-16-2006, 09:31 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 firstrebel
This is not updating automatically, I have to run it manually. Any ideas please?

Bob
did you delete the schduled task?
Reply With Quote
  #40  
Old 05-17-2006, 02:15 PM
firstrebel's Avatar
firstrebel firstrebel is offline
 
Join Date: Dec 2005
Location: West London
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not only is it in the scheduled tasks listing, but it there twice ??? I will delete one and see what happens, though that should not make a difference.

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

You might get a better Alexa rating if you get users to download and use the Alexa toolbar. I put this is my navbar template -
After
Quote:
<!-- / PAGENAV POPUP -->
</if>
add
Quote:
<div align="center">This web site is world ranked by <a href="http://www.alexa.com" target="_blank">Alexa</a> at position: {$vbulletin->alexarank}<br /><br /><a href="http://download.alexa.com/index.cgi"><img src="../banners/alexa_toolbar.gif" alt="Download Alexa Toolbar" border="0" /></a><br /><a href="http://download.alexa.com/index.cgi">Download Alexa toolbar</a></div>
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:57 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06621 seconds
  • Memory Usage 2,325KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (1)bbcode_html
  • (4)bbcode_php
  • (6)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_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