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:	5641
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.
  #31  
Old 04 Mar 2010, 06:56
adreen adreen is offline
 
Join Date: Jul 2007
where is CMS in admincp?
Reply With Quote
  #32  
Old 04 Mar 2010, 13:40
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Originally Posted by adreen View Post
where is CMS in admincp?
It should appear in the left menu. Mine is just below blogs and just above advertising.
Reply With Quote
  #33  
Old 04 Mar 2010, 14:51
alkrida alkrida is offline
 
Join Date: Sep 2008
the arabic for it is :


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

Reply With Quote
  #34  
Old 04 Mar 2010, 16:16
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Originally Posted by alkrida View Post
the arabic for it is :
Be very careful. You have translated the broken one. This one will show ALL forums, regardless of a user's permissions. Better to use the second one which gives you an exclusion array.
Reply With Quote
  #35  
Old 04 Mar 2010, 16:34
Inflikted Inflikted is offline
 
Join Date: Mar 2002
im going to try my luck with vbadvanced for vbulletin 4.0. it seems there is alot more support and actual useful modules for it. buying the CMS package for vbulletin was a waste of money considering the lack of support for it.
Reply With Quote
  #36  
Old 06 Mar 2010, 18:09
RedHacker RedHacker is offline
 
Join Date: Jan 2009
Show the hidden threads... Can show the Unregisters\Registers usergroups....
Reply With Quote
  #37  
Old 07 Mar 2010, 18:20
Burnt Burnt is offline
 
Join Date: Oct 2002
What if I wanted this to just take from one forum? What would I add/change to get that done?
__________________
Play with a t0aster, you will get burned!
Reply With Quote
  #38  
Old 07 Mar 2010, 18:32
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
It only has an exclusion array, so you would have to list all your other forums. Or just edit it and make the list inclusive. Take out the ! in "if (!in_array".
Reply With Quote
  #39  
Old 07 Mar 2010, 21:51
Fifth Dimension Fifth Dimension is offline
 
Join Date: Jan 2010
This isn't working on my site. What I have done wrong? I copied and pasted the info into a new PHP widget, but all I see on the webpage is the text "03-07-2010" in the widget box.

Any ideas?
Reply With Quote
  #40  
Old 08 Mar 2010, 01:33
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Originally Posted by Fifth Dimension View Post
This isn't working on my site. What I have done wrong? I copied and pasted the info into a new PHP widget, but all I see on the webpage is the text "03-07-2010" in the widget box.

Any ideas?
There's nothing in this code that should print a date without printing the hard coded word "Replies:". But who knows - you haven't even given us a link to look at. Can we assume you have no trouble putting up the default "Recent Posts" widget?
Reply With Quote
  #41  
Old 08 Mar 2010, 01:34
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Real name: Lisa
Originally Posted by Inflikted View Post
is there an easy way to block out private forums from this?

nevermind figured it out... for those others who wanted to know how

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

to the proper forumid's you would like to block

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
I tried to change it, but must be doing something wrong. What exactly do I change?

I pasted this into the widget where you placed it:
if (!in_array($recent_thread[forumid], array(105,83,121,110,82,112,109,101,102,72))) {

and then changed the forum id to the forum I want hidden:

if (!in_array($recent_thread[Moderators Area], array(105,83,121,110,82,112,109,101,102,72))) {

How do I do it the right way??? Thank you in advance cuz I really like this widget!!!
Reply With Quote
  #42  
Old 08 Mar 2010, 01:44
AURFSCAN AURFSCAN is offline
 
Join Date: Jan 2008
If you want forum id's 1,2,3,4 hidden then it would look like this

if (!in_array($recent_thread[forumid], array(1,2,3,4))) {
Reply With Quote
  #43  
Old 08 Mar 2010, 02:31
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Real name: Lisa
Awesome, but it did not work for me. I tried 3 times.

Here is the error I am getting:


Parse error: syntax error, unexpected $end in /home/content/32/5565332/html/forums/packages/vbcms/widget/execphp.php(177) : eval()'d code on line 39
Reply With Quote
  #44  
Old 08 Mar 2010, 02:36
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Real name: Lisa
Thanks, I finally got it.
Reply With Quote
  #45  
Old 08 Mar 2010, 02:57
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Real name: Lisa
I am sorry to bug you all again, but now the "last post by:" is white, which does not show on the white background of this widget.

Can you tell me what sylvars or coding to change the background (not the font) to the same color as my board? Thanks in advance....

Here is my CMS page: http://www.englishbulldognews.com/forums/content.php

I have the new widget on the bottom of the page until I get it up and running properly to replace the 4.02 standard one, so scroll down plz...
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:37.

Layout Options | Width: Wide Color: