Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases

Reply
 
Thread Tools
[vB3.0.3]+[vBIndex + Links 1.x] Addon: Tie-in for Links Directory beta and vBIndex Details »»
[vB3.0.3]+[vBIndex + Links 1.x] Addon: Tie-in for Links Directory beta and vBIndex
Version: 1.00, by Natch Natch is offline
Developer Last Online: Apr 2022 Show Printable Version Email this Page

Version: 3.0.1 Rating:
Released: 02-07-2004 Last Update: Never Installs: 5
 
No support by the author.

NOTE: this has been integrated into the Links Directory hack - this version will noit be kept up to date!

WHAT THIS DOES:

It combines the excellent Links Directory 0.95 beta created by AndrewD and the unparalelled vBIndex by NTLDR to give you a "Hottest Downloads" customblock for your vBIndex powered homepage.

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.php or 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_1 or 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):
PHP Code:
    $hotlinks = require('forums/get_hotlinks.php'); 
Or (for the one specific category):
PHP Code:
    $hotlinks = require('forums/get_hotlinks_cat.php'); 
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:
PHP Code:
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%">
    <
tr>
        <
td>
            <
table cellpadding="$stylevar[cellpadding]cellspacing="$stylevar[cellspacing]border="0" width="100%">
                <
tr>
                    <
td colspan="2" class="tcat" style="text-align: center">
                        <
a name="hotties" style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('vbindex_customblock$box')"><img id="collapseimg_vbindex_customblock$boxsrc="$stylevar[imgdir_button]/collapse_tcat$collapseimg_vbindex_customblock.gif" alt="" border="0" /></a>
                        <
strong><a href="$vboptions[bburl]/local_links.php" title="Visit the Downloads section">Hottest Downloads</a></strong>
                    </
td>
                </
tr>
                <
tbody id="collapseobj_vbindex_customblock$boxstyle="$collapseobj_vbindex_customblock">
                    
$hotlinks
                
</tbody>
            </
table>
        </
td>
    </
tr>
</
table>
<
br /> 
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:
PHP Code:
<tr>
<
td class="alt1">
<if 
condition="$linkstatus==1">
<
a href="$vboptions[bburl]/local_links.php?action=jump&id=$linkidtarget="_blank">
<
span class="smallfont">$linkname</span></a>
</if>
<if 
condition="$linkstatus>1">
<
a href="$vboptions[bburl]/local_links.php?action=jump&id=$linkidtarget="_blank">$linkname</a> [size$linkstatus kb]
</if>
<if 
condition="$linkstatus<=0">
<
span class="smallfont">$linkname (not available)</span></a>
</if>
</
td>
<
td class="alt2">
<
span class="smallfont">[$linkhits]</span>
</
span>
</
td>
</
tr
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.

Comments
  #22  
Old 02-25-2004, 05:39 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hoffi
It works with the actual Version.
There is a small Bug in the Category Version. If a Link/Download is in two Categories It will show twice in the Box. Just Add a distinct in the SELECT clause.
Thx Hoffi I'll rectify the original post to include both versions and instructions on how to use them ....
Reply With Quote
  #23  
Old 02-25-2004, 05:52 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack updated @ 25-02: upgrade to 0.95 - the only thing you need to do is re-upload the get_hotlinks.php and/or get_hotlinks_cat.php files, and re-add the links_hotlinks template and you should be back up and running ...
Reply With Quote
  #24  
Old 03-03-2004, 06:50 AM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Should work just fine with V1.00 thanks to AndrewD for the inttegration of the hotlinks template
Reply With Quote
  #25  
Old 03-04-2004, 02:44 AM
achtungbaby achtungbaby is offline
 
Join Date: Jul 2002
Location: Los Angeles CA
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thumbs up
Reply With Quote
  #26  
Old 03-06-2004, 06:47 PM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Natch,

I converted this over to vbAdvanced, and also added an option to order the lists by latest date rather than number of hits.

It's rather large, so I'll post it separately, with all credit to you of course. Please let me know if you mind me doing this.
Reply With Quote
  #27  
Old 03-07-2004, 09:20 PM
refertech refertech is offline
 
Join Date: May 2002
Location: Atlanta, Georgia
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone help to tell me what i did wrong. I keep getting the following error.

Warning: main(forum/get_hotlinks.php): failed to open stream: No such file or directory in /home/plmtech/public_html/forum/vbindex.php on line 1040

Fatal error: main(): Failed opening required 'forum/get_hotlinks.php' (include_path='/usr/local/lib/php:.') in /home/plmtech/public_html/forum/vbindex.php on line 1040
Reply With Quote
  #28  
Old 03-07-2004, 09:57 PM
ixian's Avatar
ixian ixian is offline
 
Join Date: Oct 2001
Location: Denver, CO
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by refertech
Can someone help to tell me what i did wrong. I keep getting the following error.

Warning: main(forum/get_hotlinks.php): failed to open stream: No such file or directory in /home/plmtech/public_html/forum/vbindex.php on line 1040

Fatal error: main(): Failed opening required 'forum/get_hotlinks.php' (include_path='/usr/local/lib/php:.') in /home/plmtech/public_html/forum/vbindex.php on line 1040
Looks like you got the path to get_hotlinks.php wrong - you have it as "forum" where it should be the full path to the forum directory.
Reply With Quote
  #29  
Old 03-07-2004, 10:43 PM
refertech refertech is offline
 
Join Date: May 2002
Location: Atlanta, Georgia
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yea, I'm silly. I got it.

Thanks for your help thou.

But for some reason 3 of the links are showing not available but I know they are good cause they work fine in my links section. Anyone got any ideas why 2 of them work and the last 3 dont. I'm scratching my head.

Thanks.

Mark
Reply With Quote
  #30  
Old 03-09-2004, 07:03 PM
refertech refertech is offline
 
Join Date: May 2002
Location: Atlanta, Georgia
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by refertech
But for some reason 3 of the links are showing not available but I know they are good cause they work fine in my links section. Anyone got any ideas why 2 of them work and the last 3 dont. I'm scratching my head.


Mark
Any one got any ideas on this one yet?

Thanks,

Mark
Reply With Quote
  #31  
Old 03-09-2004, 07:39 PM
Natch's Avatar
Natch Natch is offline
 
Join Date: Nov 2002
Location: Australia
Posts: 851
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check this one out with the author of the Links hack ... AndrerwD supports his hack - I'm not as up-to-speed with how his hack works to support it fully ....
Reply With Quote
Reply

Thread Tools

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:41 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.07917 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)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