Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[WIDGET] Recent Threads Details »
[WIDGET] Recent Threads
Mod Version: 1.00, by cory_booth (Coder) cory_booth is offline
Developer Last Online: Jun 2013 I like it Show Printable Version Email this Page

vB Version: 4.0.2 Rating: (13 votes - 4.77 average) Installs: 129
Released: 20 Feb 2010 Last Update: Never Downloads: 0
Not Supported Re-usable Code Is in Beta Stage  

In an attempt at mirroring an old ASP website I used to have, I modified the recent threads display to show a bit more information in a bit more compressed format.

Feel free to use/hack/slash this code for your own needs...

Navigate to AdminCP -> CMS -> Widgets.
Create a PHP Type Widget and paste the below code.

READ BELOW THE CODE FOR AN UPDATE


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


Updated to reflect contribution from Inflikted:
http://www.vbulletin.org/forum/showp...7&postcount=25

Be SURE to update the following line:if (!in_array($recent_thread[forumid], array(105,83,121,110,82,112,109,101,102,72))), to group the forumids you wish to NOT have included in the query results.

Download Now

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

Screenshots

Click image for larger version

Name:	forum.jpg
Views:	5642
Size:	83.4 KB
ID:	112675  

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.
Comments
  #2  
Old 20 Feb 2010, 15:59
tort tort is offline
 
Join Date: Apr 2007
Where do you put this in?
Reply With Quote
  #3  
Old 20 Feb 2010, 15:59
cory_booth cory_booth is offline
 
Join Date: Jul 2006
PHP Widget in the CMS
Reply With Quote
  #4  
Old 20 Feb 2010, 15:59
zbosskiller zbosskiller is offline
 
Join Date: Sep 2007
Create a new CMS PHP Widget mate.
Reply With Quote
  #5  
Old 20 Feb 2010, 16:05
zbosskiller zbosskiller is offline
 
Join Date: Sep 2007
Great little widget Cody, thx.

Any chance you could make this so it works as a centre widget? i.e. above the Articles?

At the moment it is all right sided, which is correct for a sideblock.

If you have any time to do it I'd appreciate it.

Thx

Z
Reply With Quote
  #6  
Old 20 Feb 2010, 16:11
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Originally Posted by zbosskiller View Post
Great little widget Cody, thx.

Any chance you could make this so it works as a centre widget? i.e. above the Articles?

At the moment it is all right sided, which is correct for a sideblock.

If you have any time to do it I'd appreciate it.

Thx

Z
Hmmm....
You mean just center all the text?


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


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

Reply With Quote
  #7  
Old 20 Feb 2010, 16:32
zbosskiller zbosskiller is offline
 
Join Date: Sep 2007
It more so something like a block that has a header, in the header it shows

'Thread' | 'Posted By' | 'Views' | 'Last Post''

This is probably a lot of work but thought I would ask as its what I was used to with VB 3.8.4
Reply With Quote
  #8  
Old 20 Feb 2010, 16:49
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Oh, gotcha - I know what you mean...

And believe it or not, I had something like that running but dumped it a long time ago.
(just experimenting)...

I'll see what I can scratch up...
Reply With Quote
  #9  
Old 20 Feb 2010, 16:57
zbosskiller zbosskiller is offline
 
Join Date: Sep 2007
Thx, really appreciate it!
Reply With Quote
  #10  
Old 20 Feb 2010, 18:50
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Hey I was thinking....
What if you put this in as a Widget...

http://www.vbulletin.org/forum/showthread.php?t=235841

You could turn off some of the areas and it would act as a threads module...

I don't have it installed, but try making a JS Enhanced Widget
Make a new template and insert:

{vb:raw vsatopstats}
Reply With Quote
  #11  
Old 21 Feb 2010, 02:33
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Thanks. Installed.

For those that want to make it a little smaller (or larger), just edit the "LIMIT 0, 15" line. I dunno what the 0 means, but if I change 15 to 5, I only see 5 newest threads.
Reply With Quote
  #12  
Old 22 Feb 2010, 08:37
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Cant show date....
Reply With Quote
  #13  
Old 22 Feb 2010, 16:52
cory_booth cory_booth is offline
 
Join Date: Jul 2006
You may wish to check here:
$recent_thread[lastpostdate] = vbdate('M jS', $recent_thread[lastpost], 1);

I suppose this hard-coded date format (M jS) might mess with other country formats.
Reply With Quote
  #14  
Old 22 Feb 2010, 19:07
sqzdog sqzdog is offline
 
Join Date: Apr 2005
Hey Cory- nice widget. I would like to use this but have it show latest posts instead of threads. Is there an easy way to do this?
Reply With Quote
  #15  
Old 22 Feb 2010, 20:58
klyde's Avatar
klyde klyde is offline
 
Join Date: Sep 2005
Originally Posted by RedHacker View Post
Cant show date....
Replace:


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

by:


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

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 13:50.

Layout Options | Width: Wide Color: