Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[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
Mod Version: 1.00, by ixian (Member) ixian is offline
Developer Last Online: Dec 2012 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: Rating: (0 vote - 0 average) Installs: 5
Released: 06 Mar 2004 Last Update: Never Downloads: 8
Not Supported  

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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Change To:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Under:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Add Under:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View 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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

OR, if you are using Natch's original get_hotlinks*.php files and want to order them by hits, use this instead so you get a hit count column:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Create a new template called index_linklist and populate it with:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Edit Index Templates -> index and add the following

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Wherever you want the hotlinks box to show up (I put it under $custom2 myself; just search for that in your index template if you want a starting point).


Thanks once again to Natch for the original hack, AndrewD for the Links hack in the first place, and of course Tigga for vbAdvanced.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	latestd.jpg
Views:	684
Size:	8.7 KB
ID:	17152  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
[vbadvanced Gallery & Links] Number of contributed pics & links in profile Lea Verou vBulletin 3.5 Add-ons 60 25 Nov 2006 23:26
Profile Enhancements vbadvanced Links 2.0beta Number of contributed links in profile Spikeman vBulletin 3.6 Add-ons 4 09 Oct 2006 08:28
scrolling news block addon for vbAdvanced tomshawk vBulletin 3.0 Full Releases 28 25 Nov 2004 07:07

Comments
  #2  
Old 06 Mar 2004, 21:02
Kwak Kwak is offline
 
Join Date: Sep 2003
Awesome job man! I am going to get this installed sometime next week.
Reply With Quote
  #3  
Old 14 Mar 2004, 22:27
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
great hack very pleased with it
Reply With Quote
  #4  
Old 16 Mar 2004, 15:49
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Can this also list a brief description with each link? IE take the first X number of characters from the full description? How hard would that be to add, if it's not already possible?
Reply With Quote
  #5  
Old 16 Mar 2004, 18:12
ixian's Avatar
ixian ixian is offline
 
Join Date: Nov 2001
Originally Posted by Arkham
Can this also list a brief description with each link? IE take the first X number of characters from the full description? How hard would that be to add, if it's not already possible?
With php just about anything is possible - if it's in the database, you can pull it out and display it wherever you want.

The problem with this approach is you wouldn't be able to fit that many characters in the block without it looking extremely cluttered, and "snipping" the text from the main description, while very do-able, means you would have to cram as much info as possible in the first 10 or so characters - not very elegant.

A better way would be to have a short "description" field in addition to the regular description in the Links/File hack itself. I'm actually working on a mod for it - I am adding an "listing" page for files and links so you can display a lot more of them in a more organized fashion. The listing page will then take you to a page that's just for that file/link, where it makes more sense to add much longer descriptions, screen shots, etc. The "listing" page will have the new short description field I am talking about.

Once that is done (I will post it here in the addons section) it will be trivial to add a var that pulls the simple description and displays it in the block.
__________________
Ixian
Maximum Gamer
Reply With Quote
  #6  
Old 16 Mar 2004, 20:22
Arkham's Avatar
Arkham Arkham is offline
 
Join Date: Nov 2001
Originally Posted by ixian
With php just about anything is possible - if it's in the database, you can pull it out and display it wherever you want.

The problem with this approach is you wouldn't be able to fit that many characters in the block without it looking extremely cluttered, and "snipping" the text from the main description, while very do-able, means you would have to cram as much info as possible in the first 10 or so characters - not very elegant.

A better way would be to have a short "description" field in addition to the regular description in the Links/File hack itself. I'm actually working on a mod for it - I am adding an "listing" page for files and links so you can display a lot more of them in a more organized fashion. The listing page will then take you to a page that's just for that file/link, where it makes more sense to add much longer descriptions, screen shots, etc. The "listing" page will have the new short description field I am talking about.

Once that is done (I will post it here in the addons section) it will be trivial to add a var that pulls the simple description and displays it in the block.
Thanks, looks like you're working on exactly what I need. I wasn't intending to cram it all in a small box, but I needed to know if this would be possible in the current or future version.

I appreciate your quick response. That's one more check in the plus-column for vBadvanced. I've pretty much decided that will be my next step.

Cheers.
Reply With Quote
  #7  
Old 21 Mar 2004, 14:23
SB2002's Avatar
SB2002 SB2002 is offline
 
Join Date: Dec 2002
Real name: Stu
I've hacked and rehacked this now several times, but everytime i do the table on vba is never populated. It just shows the header and that is all. I don't know why, because everything is hacked correctly

I've just checked again, seems that no one can make a hack truely idiot proof

As the saying goes read the f**king manual
__________________
Online Gaming Community

Last edited by SB2002; 21 Mar 2004 at 14:27.
Reply With Quote
  #8  
Old 22 Mar 2004, 03:08
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
I got it install no problem on the gold release, it is just the $linkhits that does not display on VB_advanced page. I get []. All permissions are set and it does display on main page.
Reply With Quote
  #9  
Old 28 Mar 2004, 18:22
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Sweet ass, just installed this. Thanks.
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #10  
Old 02 Apr 2004, 19:57
milkmycow milkmycow is offline
 
Join Date: Mar 2002
question, how do you specify the catagory to pull from?
Reply With Quote
  #11  
Old 07 Apr 2004, 19:45
ixian's Avatar
ixian ixian is offline
 
Join Date: Nov 2001
Originally Posted by milkmycow
question, how do you specify the catagory to pull from?
Use my get_hotlinks_cat_date.php or the get_hotlinks_cat.php that comes with the hack - they both have a string near the top where you can edit the category numbers you want to use.
__________________
Ixian
Maximum Gamer
Reply With Quote
  #12  
Old 08 Apr 2004, 06:02
Morrus Morrus is offline
 
Join Date: Jan 2002
Originally Posted by Lionel
I got it install no problem on the gold release, it is just the $linkhits that does not display on VB_advanced page. I get []. All permissions are set and it does display on main page.
Same problem here. It started when I upgraded to Links Directory 1.01, so maybe there's a change in the original links hack which affects this one?
Reply With Quote
  #13  
Old 14 Apr 2004, 16:54
ixian's Avatar
ixian ixian is offline
 
Join Date: Nov 2001
I am taking a look at the links changes now. They probably just changed a variable.
__________________
Ixian
Maximum Gamer
Reply With Quote
  #14  
Old 20 Apr 2004, 14:36
ixian's Avatar
ixian ixian is offline
 
Join Date: Nov 2001
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.
__________________
Ixian
Maximum Gamer
Reply With Quote
  #15  
Old 24 Apr 2004, 20:42
r00t3d r00t3d is offline
 
Join Date: Feb 2004
any way to display the number of downloads and file size in the latest download block?
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 22:15.

Layout Options | Width: Wide Color: