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.
  #61  
Old 06 Apr 2010, 14:21
BlackThorn BlackThorn is offline
 
Join Date: Aug 2009
Gread job! installed.
Reply With Quote
  #62  
Old 06 Apr 2010, 18:42
murekhalir murekhalir is offline
 
Join Date: Oct 2006
I can't get the widt to work, do i enter it as a php direct execution?

Also - do i just copy and paste the code on the OP literally? without any changes?

Or... would i have to add forum sections / ids in there.
Reply With Quote
  #63  
Old 16 Apr 2010, 01:03
graphicnut graphicnut is offline
 
Join Date: Jan 2010
Great widget Where do we edit the styles for it? Thanks in advance

Sorry see it now in the actual code.

How would i make the title larger and bold, sorry for noob Q
Reply With Quote
  #64  
Old 17 Apr 2010, 16:10
GONUMBER6's Avatar
GONUMBER6 GONUMBER6 is offline
 
Join Date: Jan 2010
Real name: Lisa
Can this widget be placed on a regular site page (not in vb)? I would like a widget of recent threads on my home page at www.englishbulldognews.com

Thanks!
Reply With Quote
  #65  
Old 18 Apr 2010, 19:25
Inflikted Inflikted is offline
 
Join Date: Mar 2002
Originally Posted by GONUMBER6 View Post
Can this widget be placed on a regular site page (not in vb)? I would like a widget of recent threads on my home page at www.englishbulldognews.com

Thanks!
to do that just read this http://www.freefrag.com/guides-tutor...ge-script.html

The script I posted you can throw that into its own php file as well as externally use it on another site if you know how ofcourse. That script should work for CMS and vBA CMPS and also should work outside vbulletin forums

Example: http://www.freefrag.com
Outside Example: http://freefrag.com/outsidesample.php (no css on this one :P but you can stylize it still)
Reply With Quote
  #66  
Old 20 Apr 2010, 08:42
axix20xx axix20xx is offline
 
Join Date: Mar 2009
Real name: RealUnknown
many tahnx installed but onle showed the date
Reply With Quote
  #67  
Old 20 Apr 2010, 23:58
Inflikted Inflikted is offline
 
Join Date: Mar 2002
axix you put the coding in the description that means, go back into your widgets and make sure you click on configure to add the code in the proper area.
Reply With Quote
  #68  
Old 27 Apr 2010, 09:27
AnthemToGod AnthemToGod is offline
 
Join Date: Aug 2008
How to hide some forums id ?

widget displays all forum threads but I have some invisible area on my forum... how to except some id's ?
Reply With Quote
  #69  
Old 27 Apr 2010, 09:44
AnthemToGod AnthemToGod is offline
 
Join Date: Aug 2008
Originally Posted by AnthemToGod View Post
How to hide some forums id ?

widget displays all forum threads but I have some invisible area on my forum... how to except some id's ?
find them

sql:

FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "forum AS forum ON ( forum.forumid = thread.forumid )
WHERE NOT ISNULL(threadid) and forum.forumid not in(82,41,159) AND visible = '1' AND open!='10'
ORDER BY lastpost DESC
LIMIT 0, 15
Reply With Quote
  #70  
Old 27 Apr 2010, 14:42
sKippah sKippah is offline
 
Join Date: Oct 2008
Can anybody replace "Last Post By: - Forum: and Posted:" with the vbhrase code?
Thx
Reply With Quote
  #71  
Old 27 Apr 2010, 15:01
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Originally Posted by AnthemToGod View Post
How to hide some forums id ?

widget displays all forum threads but I have some invisible area on my forum... how to except some id's ?
You have incorrectly used the code in the first post instead of reading through the thread and using the code in http://www.vbulletin.org/forum/showp...7&postcount=25 that includes an exclusion array.

I have no idea why the author hasn't yet updated the first post or at least mentioned the exclusion option.
Reply With Quote
  #72  
Old 27 Apr 2010, 15:54
cory_booth cory_booth is offline
 
Join Date: Jul 2006
Originally Posted by Videx View Post
You have incorrectly used the code in the first post instead of reading through the thread and using the code in http://www.vbulletin.org/forum/showp...7&postcount=25 that includes an exclusion array.

I have no idea why the author hasn't yet updated the first post or at least mentioned the exclusion option.
Sorry ya'll...

I will get that updated... I am currently retiring from the military, establishing a new home, and looking for a J.O.B. while also trying to finish up my degree. LOL... I miss a lot of the posts sometimes.
Reply With Quote
  #73  
Old 27 Apr 2010, 17:39
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Thanks! Yes, we all understand B.U.S.Y.! But while you're updating, you may also want to mention that removing the ! from that line will make it an inclusion list.
Reply With Quote
  #74  
Old 27 Apr 2010, 22:33
Dr.osamA's Avatar
Dr.osamA Dr.osamA is offline
 
Join Date: Aug 2004
Location: Syrie
Real name: Dr.osama
thanxx installed + 5 stars
__________________
Reply With Quote
  #75  
Old 13 May 2010, 09:38
janaf janaf is offline
 
Join Date: Dec 2009
Thumbs up Great! Thanks!!

Installed! Worknig out of the box!

(Yes, to use this widget, your create a new PHP direct execusion widget, save it, open Configure link for it, copy and past the code (may 13:th 2010) unchanged)

Someone with more vB knowledge than me could surely change the SQL query so that only the postings that the current user has rigts to see, will be displayed. Then members of restricted forums could also see those postings from those forums.
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 15:38.

Layout Options | Width: Wide Color: