The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
vBTopSite Details »» | |||||||||||||||||||||||||
vBTopSite - Used from 2.2.9 - 2.3.3, should work on all 2.x
Description: Topsites script for people who's sites revolve around vbulletin. This script I actually wrote several months ago, and now I finally decided to release them on vb.org. There are some things which I have not included in this version, but they will be released here as I am satisfied with them: All functions appearing in 'Useful Admin Functions' in the ACP Everything else works. ^_^ now anyway, features... Topsites Features: [in no order, partial list]
Admin Features: [in no order, partial list]
** = Will be appearing on vb.org shortly. It is advised anyone who uses this hack, to click install, because of the nice updating thing i can do, and like i said, there will be updates in a little while. LIVE VERSION: http://forums.ffgon.com/topsites.php Feel free to join if you are a Final Fantasy site ^_^ [ignore the popups, they dont appear if you are logged into the forums] MORE: http://www.animationation.net/community/topsites.php http://www.bluelaguna.net/forum/topsites.php http://www.orbsydia.com/forum/topsites.php anyway, i might post screenshots, but the admin stuff isnt much to see, i basically just explained it up there ^ :-p If you have any questions, etc, post them FYI: a more advanced script is in the works by me, which will be free from vbulletin and including many more features, like a user rating/comment system. This will be 10$ or so, and more details are available if you pm me (dont discuss it here) Thank you for using this hack! i know i dont usually post my stuff, well here you go ^_^ Show Your Support
|
Comments |
#52
|
||||
|
||||
This should satisfy you, and no I havent tested it :-p
put this in any file which has access to the forums' global.php to call it, use this: $variable = topsites_stats(); and this creates a variable with 17 bits of information, in the following format $variable[rank][info] so, to get the 1st site's title, its $variable[1][site_title] make sense? for details on what is made available, look at the function yourself. ADDS TWO QUERIES to the place you call it. also, it does as many sites as you have in your perpage option. so, if you have 5 sites per page, itll have up to 5 ranks. i have mine set to 10, so i would have 10 ranks available. to use this to create a link on the title, it would look something like this: 1) <a href='topsites_hit.php?action=out&siteid=$variable[1][siteid]' target='_blank'>$variable[1][site_title]</a> |
#53
|
|||
|
|||
Database error in vBulletin Control Panel 2.3.3:
Invalid SQL: UPDATE topsites_options SET display='2',active='0',require='1',hitson='0',butt ons='http://YOURSITE/topsites/buttons',arrows='http://YOURSITE/topsites',perpage='10',totalbuttons='10',daytime=' 1',htmlallowed='<b><u><i>',bhe ight='31',bwidth='88',bborder='0',resolve='0',rank by='todayunique' mysql error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'require='1',hitson='0',buttons='http://YOURSITE/topsites/button mysql error number: 1064 i have this problem.. any idea??? |
#54
|
||||
|
||||
where does the code for function.txt go?
|
#55
|
||||
|
||||
one of the sites on my top list keeps saying -=bad url=- in site url in acp and also how do i change who the email is sent by for registration and emails?
|
#56
|
||||
|
||||
5GB, you are probably using a newer version of mysql and need a better query :-p
find in topsites_admin.php PHP Code:
PHP Code:
you get the idea |
#57
|
||||
|
||||
if its listing a bad url, then the person who set it set a url which does not exist.
and the email is the $technicalemail var set in config.php, if you want to change it to something else, look through topsites_member.php and topsites_admin.php for $technicalemail, and replace it with "whatever@somewhere.com" |
#58
|
||||
|
||||
well the url the member is putting is correct. its http://www.gamersxtc.net
|
#59
|
||||
|
||||
well it checks the url using fopen()
it doesnt remove the url from the account, only replaces it with 'bad url' in the acp when you look at the account. sometimes if your site is slow, fopen will time out and just return false to the opening of the site. |
#60
|
||||
|
||||
ok thanks darkwaltz4 but im getting confused with the virtual stats. do i put the code in functions.txt in global.php?
|
#61
|
||||
|
||||
:-p you put them wherever you plan to use them...
if you wanted to have use of the function on the index page, then place the function in index.php, and also in there, put this line $variable = topsites_stats(); then, in your templates, you can list the top 5 sites like this: <b>Top 5 Sites!</b><br> 1) <b><a href='$variable[1][site_url]' target='_blank'>$variable[1][site_title]</a></b><br> 2) <b><a href='$variable[2][site_url]' target='_blank'>$variable[2][site_title]</a></b><br> 3) <b><a href='$variable[3][site_url]' target='_blank'>$variable[3][site_title]</a></b><br> 4) <b><a href='$variable[4][site_url]' target='_blank'>$variable[4][site_title]</a></b><br> 5) <b><a href='$variable[5][site_url]' target='_blank'>$variable[5][site_title]</a></b><br> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|