Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Latest announcement on forum home Details »
Latest announcement on forum home
Mod Version: 1.2, by tantawi (Member) tantawi is offline
Developer Last Online: Oct 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 50
Released: 02 Oct 2005 Last Update: 11 Jan 2006 Downloads: 121
Not Supported Uses Plugins Template Edits  

This is my first hack which I created out of necessity. It's is so simple, it adds "Last Announcement" in the forums home. This is done by selecting the latest thread created in a given forum to be displayed.

See the screenshot attached.

1.2 Update:
- The hack now uses the plugin system, no more code changes .

1.1 Update:
- Code is now more optimized, compatible with non-cookied and clustered boards. (Thanks for KirbyDE)

1.01 Update:
- Now it works if you use prefix in database.

Enjoy

Download Now

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

Screenshots

Click image for larger version

Name:	screenshot.gif
Views:	1320
Size:	5.5 KB
ID:	35140  

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
Forum Home Announcement rogersnm vBulletin 3.6 Add-ons 51 02 May 2010 07:56
Forum Home Announcement rogersnm vBulletin 3.5 Add-ons 24 20 Jun 2007 12:06

Comments
  #2  
Old 02 Oct 2005, 22:52
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Nice work, I shall most certainly use it.
__________________
AndroidETC.com :: Android, and other stuff.
Reply With Quote
  #3  
Old 03 Oct 2005, 00:03
illusions illusions is offline
 
Join Date: Feb 2005
I get this error when I made the changes...any1 know what the problem is?

Parse error: parse error, unexpected T_WHILE in /home/illusion/public_html/forums/index.php on line 101
Reply With Quote
  #4  
Old 03 Oct 2005, 00:42
thedvs thedvs is offline
 
Join Date: May 2002
Works great thanks. *installed*
Reply With Quote
  #5  
Old 03 Oct 2005, 06:28
tantawi tantawi is offline
 
Join Date: Sep 2002
Originally Posted by illusions
I get this error when I made the changes...any1 know what the problem is?

Parse error: parse error, unexpected T_WHILE in /home/illusion/public_html/forums/index.php on line 101
Are you sure you have vB 3.5 Final installed? I never tested this code on any Betas or RCs. And try the updated hack, as your problem may be with table prefix?

Welcome FleaBag & thedvs

Last edited by tantawi; 03 Oct 2005 at 08:27.
Reply With Quote
  #6  
Old 03 Oct 2005, 13:15
swantonio's Avatar
swantonio swantonio is offline
 
Join Date: Aug 2004
and possible to have it of different color more and than an announcement

:squareeyed:
Attached Images
File Type: png Immagine 1.png (10.6 KB, 141 views)
Reply With Quote
  #7  
Old 03 Oct 2005, 15:14
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
Nice hack. Installed!
Reply With Quote
  #8  
Old 03 Oct 2005, 21:34
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
Some suggestions
- Use Hook forumhome_complete to avoid file edits
- Use query_read instead of just query to avoid overhead and make the hack compatible with splitted (master/slave) mySQL servers
- Use $db->fetch_array instead of mysql_fetch_array() to make the hack compatible with vBulletins Database Abstraction Layer
- The generated link is missing the Session ID ($vbulletin->session->vars['sessionurl']), so it might not work for non-cookied users
- ++$lnsnbsp; seems to be unnecessary

Furthermore, if you just want 1 record, it's easier to use $db->query_first()

Last but not least: A setting to select the Forum ID (rather than having the User edit the Plugin) would be perfect
Reply With Quote
  #9  
Old 03 Oct 2005, 22:04
tantawi tantawi is offline
 
Join Date: Sep 2002
Thanks a lot KirbyDE!

I have updated the hack following your suggestions, but I really don't know how to make a plugin and I don't really have time to , I'm not considering myself a pro vb coder or something just created this little hack out of necessity and liked to share it. Anyone is welcome to port this hack into a plugin without crediting me even

Thank you again for your valuable tips.
Reply With Quote
  #10  
Old 05 Oct 2005, 05:13
csidlernet csidlernet is offline
 
Join Date: Apr 2003
Real name: chad
Thankyou i've been looking for something like this!
/me installs
Reply With Quote
  #11  
Old 06 Oct 2005, 04:18
Alien's Avatar
Alien Alien is offline
 
Join Date: Oct 2001
So this adds 1 query to forumhome? Or more?
__________________
-Jason / WTF!?
Reply With Quote
  #12  
Old 06 Oct 2005, 07:12
tantawi tantawi is offline
 
Join Date: Sep 2002
Originally Posted by Alien
So this adds 1 query to forumhome? Or more?
Only one.
Reply With Quote
  #13  
Old 10 Oct 2005, 05:53
vibe's Avatar
vibe vibe is offline
 
Join Date: Jan 2005
nice work
Reply With Quote
  #14  
Old 14 Oct 2005, 08:04
goodwillstacy goodwillstacy is offline
 
Join Date: Sep 2005
Real name: Stacy
Thanks! I've always wanted something like this... why don't users ever read the annoucement forum, anyway???
But this fixes that...
*goodwillstacy clicks install
Reply With Quote
  #15  
Old 17 Oct 2005, 19:05
JagFan JagFan is offline
 
Join Date: Jul 2002
Thanks! Installed!
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 06:08.

Layout Options | Width: Wide Color: