The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[VB3 RC4] [vbAdvanced - Links 1.00] Addon: Latest Links block for vbAdvanced Details »» | |||||||||||||||||||||||||||
[VB3 RC4] [vbAdvanced - Links 1.00] Addon: Latest Links block for vbAdvanced
Developer Last Online: Dec 2012
UPDATED March 6th:
Whoops. Stupid me forgot to add in a template into the global var adv_index.php uses, as a result there was one uncached template. We don't like those, do we precious. The instructions to modify adv_index.php have been updated accordingly. First things first - The majority of the credit for this hack goes to Natch, who did the original version for vbIndex. I've converted it over to vbAdvanced, which has a (very) different way of handling custom blocks, and has a different template style as well. I also took the liberty of modifying Natch's original get_hotlinks_cat.php file so that it orders the list by most recent addition, instead of most popular. You can of course use the original get_hotlinks*.php files from Natches hack if you want to order them that way - those files require no modification to work with this hack. The attached file includes these instructions and my get_hotlinks_cat_date.php file. Download Natch's hack for the other two files, should you need them. WHAT THIS HACK DOES: It combines the Links Directory 1.0 addon created by AndrewD and the vbAdvanced portal by Tigga to give you a "Latest Downloads" block for your vbAdvanced Homepage. New Files: 1 (3): get_hotlinks_cat_date.php << To have links/downloads ordered by newest, from specific categories (The next two files can be used as-is from Natch's original hack, linked above) get_hotlinks.php << to have top # of all links / downloads get_hotlinks_cat.php << To have top # from a specific category(s) Files to Edit: 1 adv_index.php or whatever you renamed it to New Templates: 2 links_hotlinks index_linklist Templates to edit: 1 Index Templates --> index ============= INSTRUCTIONS: ============= In adv_index.php (or whatever you have renamed it to): Find: Code:
'bbcode_quote' PHP Code:
Find: Code:
$custom2 = ''; PHP Code:
PHP Code:
PHP Code:
Save and close your adv_index.php file. Upload after you've added the new templates, below. Upload the file get_hotlinks_cat_date.php or Natch's original files get_hotlinks.php and get_hotlinks_cat.php if you are using one of them instead to your forumhome folder NOTE: if you want more than 5 links listed, please edit the $limit variable at the top of those files. NOTE: If you are using the standard Links 1.0 TABLE PREFIX or the VB table prefix, make the appropraite alrterations @ the top of your new files as well Create a new template called links_hotlinks and populate it with: PHP Code:
PHP Code:
PHP Code:
PHP Code:
Thanks once again to Natch for the original hack, AndrewD for the Links hack in the first place, and of course Tigga for vbAdvanced. Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
|
#13
|
|||
|
|||
Quote:
|
#14
|
||||
|
||||
I am taking a look at the links changes now. They probably just changed a variable.
|
#15
|
||||
|
||||
I've updated the files in this hack to reflect some minor fixes. This works perfectly for me with vb 3.0.1/Links 1.10 now.
|
#16
|
|||
|
|||
any way to display the number of downloads and file size in the latest download block?
|
#17
|
||||
|
||||
Quote:
|
#18
|
|||
|
|||
anybody?
|
#19
|
|||
|
|||
Hmmz, very new to vbulletin, infact about a day in. ive installed the advanced portal, and downloads & links hack 1.21, and just now tried to install your hack, im not sure what ive done wrong... so ill post up my stuff in the hopes someone will see something silly
first off: i have, get_hotlinks_cat_date.php get_hotlinks.php get_hotlinks_cat.php in www.mydomain.com/forums/ and index.php (adv_index.php) in www.mydomain.com then, i made all the changes to index.php (odly enough i got returned an error about an unexpected < , removing a comment fixed it <!--- or whichever of the 3 files you wish to order the links by --!> ) next goto links_hotlinks Code:
<tr> <td class="alt1"><span class="smallfont"> <if condition="$linkstatus==1"> <a href="$vboptions[bburl]/local_links.php?action=jump&id=$linkid" target="_blank">$linkname</a> </if> <if condition="$linkstatus>1"> <a href="$vboptions[bburl]/local_links.php?action=jump&id=$linkid" target="_blank">$linkname</a> [size: $linkstatus kb] </if> <if condition="$linkstatus<=0"> $linkname (not available) </if> </span> </td> <td class="alt2"> <span class="smallfont">[$linkhits]</span> </td> </tr> next index_linklist Code:
<table align="center" border="0" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" width="100%"> <tr> <td align="$stylevar[left]" class="tcat"> <span class="smallfont"><b>$vboptions[blockbullet] Latest Downloads:</b></span> <tr> <tr><td class="alt2"> $hotlinks </td></tr> </table> <br> put it all together and i get a block or rather the header to a block but no content, ive linked a file to see if it will appear, but still no list im stuck anyone have any ideas? |
#20
|
||||
|
||||
Quote:
|
#21
|
||||
|
||||
is this being supported anymore?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|