New Files: 2 forumhome/get_hotlinks.php << to have top # of all links / downloads forumhome/get_hotlinks_cat.php << To have top # from one specific category
Files to Edit: 1 vbindex.phpor whatever you renamed it to
DEPRECATED @1.00 - THIS TEMPLATE NOW INCLUDED IN THE LINKS HACK
New Templates: 1 links_hotlinks
Templates to edit: 1 vbindex_customblock_1or whatever your first free customblock is
DEPRECATED @0.95 THIS QUERY NO LONGER NEEDED
SQL Queries to run: 1
This is simply to alter a field from "TEXT" to "MEDIUMINT(8)" for storing the hit-tracker
=============
INSTRUCTIONS:
============= In vbindex.php (or whatever you have renamed it):
Find:
Code:
// ####################### GENERATE SIDE BAR ##########################
// ## CUSTOM BLOCKS
if (!empty($vbindex['customboxes'])) {
Add After: (if your forums are not in the "forums" directory, you will need to alter this.
Either (for the original style):
Upload the files get_hotlinks.php and get_hotlinks_cat.php to your forumhome folder
NOTE: if you want more than 5 links listed, please edit the $limit variable at the top of this file.
NOTE: If you are using the standard 0.95 TABLE PREFIX or the VB table prefix, make the appropraite alrterations @ the top of your new files Edit vbindex_customblock_1 (or your chosen customblock) to match the contents of the text file in the attachment
Contents here for the hell of it:
DEPRECATED @1.00 - THIS TEMPLATE NOW INCLUDED IN THE LINKS HACK Create a new template called links_hotlinks and populate it with the contents of the text file in the attachment
Contents here for the hell of it:
DEPRECATED - IF YOU HAVE INSTALLED 0.95, THIS IS NO LONGER NECESSARY Run the query that is contained in the SQL_QUERY.txt file in the attachment
Contents here for the hell of it:[sql]ALTER TABLE `local_linkslink` CHANGE `linkhits` `linkhits` MEDIUMINT( 8 ) UNSIGNED DEFAULT '0' NOT NULL;[/sql]
UPDATED 25-02-2004:
Fixed a bug pointed out by Hoffi in the category specific file which caused multimples to appear - both files now use a DISTINCT select for the query.
Enjoy y'all
! MAKE SURE YOU HAVE THE LATEST VERSIONS OF BOTH INSTALLED !
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
On looking into it further, it looks unlikely to be related to php version or sql version ...
If you have tried uninstalling both hacks, then reinstalling from scratch, please let me know and I'll get access details to take a look @ your files / templates.
I know this is taking some time to get resolved, but there is no simple answer ..
What exactly does this do? A download page linker?
Not sure what this does completely.
The Links/Files database in the Major Additions provides a full system for handling file downloads + web links database. This provides an interface between that hack and VBindex. It is now integrated into Links/Files