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: 128
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:	5644
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.
  #121  
Old 02 Oct 2011, 14:55
peterkohar peterkohar is offline
 
Join Date: Aug 2011
why i have space above my first post in this widget ?
how to remove that.




thanks for the help, will appreciate it much
Reply With Quote
  #122  
Old 03 Oct 2011, 00:48
Wordplay Wordplay is offline
 
Join Date: Nov 2001
how do you change how old the threads can be before they stop showing there, and the number of threads to show in this widget?
__________________
nothing left to say
Reply With Quote
  #123  
Old 06 Oct 2011, 01:53
Wordplay Wordplay is offline
 
Join Date: Nov 2001
Originally Posted by Wordplay View Post
how do you change how old the threads can be before they stop showing there, and the number of threads to show in this widget?
anything anybody?
__________________
nothing left to say
Reply With Quote
  #124  
Old 06 Oct 2011, 02:16
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Originally Posted by Wordplay View Post
how do you change how old the threads can be before they stop showing there, and the number of threads to show in this widget?
Did you look at the code? It's been a while for me, but there's a line "LIMIT 0, 10" that sure sounds like it's setting the output to 10; just lower it.

I don't think you can set a cutoff date easily. If you set the output to 5, it will get 5 regardless of dates.
Reply With Quote
  #125  
Old 06 Oct 2011, 04:23
bada_bing's Avatar
bada_bing bada_bing is offline
 
Join Date: Feb 2004
anyway to make this ajax ?
__________________
A Leader and initiator.
Reply With Quote
  #126  
Old 06 Oct 2011, 04:44
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Originally Posted by bada_bing View Post
anyway to make this ajax ?
Depends on how skillful you are. Let us know if you manage it.
Reply With Quote
  #127  
Old 08 Nov 2011, 16:08
Lazorbeam Lazorbeam is offline
 
Join Date: Aug 2010
Originally Posted by peterkohar View Post
why i have space above my first post in this widget ?
how to remove that.




thanks for the help, will appreciate it much
Link me to your forum and I can fix this. I had the same issue and resolved it, but I can't remember what I had to change. I will have to inspect your page.
Reply With Quote
  #128  
Old 09 Nov 2011, 19:10
tonjohn tonjohn is offline
 
Join Date: Sep 2008
The exclusion list should simply be added to the query, no?

Just move the line where you build the list before the query and add it to the WHERE clause.
Reply With Quote
  #129  
Old 30 Jan 2012, 01:30
pportuese pportuese is offline
 
Join Date: Jul 2010
This work on 4.1.10?
Reply With Quote
  #130  
Old 30 Jan 2012, 05:08
tsac tsac is offline
 
Join Date: Nov 2011
Originally Posted by pportuese View Post
This work on 4.1.10?
I'm running 4.1.10 and It's working just fine for Me.
Reply With Quote
  #131  
Old 12 Feb 2012, 03:08
ibwt's Avatar
ibwt ibwt is offline
 
Join Date: Feb 2012
how to do it to show for specific forums only ?
Reply With Quote
  #132  
Old 29 Mar 2012, 23:52
PowerboatNation PowerboatNation is offline
 
Join Date: Mar 2012
I apologize for bumping this but does anyone know if it would be possible to pull off showing the forums instead of the threads? I've provided a roughly photoshoped image to explain.

Reply With Quote
  #133  
Old 03 Aug 2012, 07:11
John Lester's Avatar
John Lester John Lester is offline
 
Join Date: Nov 2004
Works for me on 4.1.12
Reply With Quote
  #134  
Old 08 Aug 2012, 16:15
barnsi barnsi is offline
 
Join Date: Dec 2011
Prefix

Great Work, thank you!

To get the prefix to be shown to the recent thread add:

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

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

Attached Images
File Type: png Themen.png (26.5 KB, 58 views)

Last edited by barnsi; 15 Aug 2012 at 05:09.
Reply With Quote
  #135  
Old 24 Oct 2012, 23:16
Draffi Draffi is offline
 
Join Date: Oct 2011
Please, have somebody an idea how to put the last posts (not topics) inside this widget and have somebody a version what shows the avatars?

Thank you in advance
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 08:42.

Layout Options | Width: Wide Color: