vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Forum Home Enhancements - Latest X Posts on Forum Home (https://vborg.vbsupport.ru/showthread.php?t=142759)

Michael Biddle 03-21-2007 10:00 PM

Latest X Posts on Forum Home
 
Latest X Posts on Forum Index
by: whitemike
Demo: Here

What this does?

This will add the latest x posts onto your forum index

What version does it work on?

This modification should work on any version 3.6.0 and up! Including the new 3.7

Features?
  1. Enable/Disable - Master Switch to Turn Latest Posts on or off
  2. Title - Change the title of the Site News
  3. Posts to Show - Number of Last Posts to show
  4. Cutoff Length - How many characters to show before the ... at the end
  5. Exclude Forums - Choose what forums you do not want to be listed
  6. Thread Title Width - Width of Title Table
  7. User Title Width - Width of User Table
  8. Forum Title Width - Width of Forum Table
  9. Auto Location - Enable/Disable auto location
  10. Location - Gives Options for Under navbar, above forum, or below forum
Added?
  1. 2 Template
  2. 3 Plugins
  3. 10 Settings
  4. 27 Phrases
Installation?
  1. Import Product
Thats It!

Fixes?

2.3
  1. Fixed the cutoff bug

2.2
  1. Fixed Bug

2.1
  1. Changed variables, so that you can see this, and latest X Threads on forumhome.

2.0
  1. Feature Added: Time and Date
  2. Added feature where if Cut Off is 0, then it will not display the row

1.9
  1. XHTML and CSS Compliant

1.8
  1. For some reason a phrase didn't save so I uploaded it with it.

1.7
  1. Added option to enable/disable auto location
  2. Added 3 automatic locations

1.6
  1. Added Permissions based on forums
1.5
  1. Fixed Look - Made Link Thread Title, with text under it

1.4
  1. Fixed Bug - Was showing up hidden/moderated posts

1.3
  1. Fixed Bug - Didn't display threads in excluded forums
  2. Added Check Version

1.2
  1. Cached Templates
  2. Moved Plugin Location to allow global use of $latest
1.1
  1. Added default value to excluded, which was causing an error if null
  2. Made Collapsible
Please Click Install if you use

Smoothie 03-22-2007 12:32 AM

I noticed it says "Site News" and "Latest 5 Posts" on your site. Is it possible to be able to have these as user configurable settings?

Michael Biddle 03-22-2007 01:42 AM

Yes I could set that up for ya, as a temporary fix you can just edit the phrases. Will do in next small update

EDIT: By the way, the "Latest 5 Posts" Changes to like "latest 10 Posts" and so on. How ever many you have it grabbing, it changes that number

Smoothie 03-22-2007 01:58 AM

Quote:

Originally Posted by whitemike (Post 1209299)
Yes I could set that up for ya, as a temporary fix you can just edit the phrases. Will do in next small update

EDIT: By the way, the "Latest 5 Posts" Changes to like "latest 10 Posts" and so on. How ever many you have it grabbing, it changes that number

Thanks, I noticed that. Will wait for the update.

Michael Biddle 03-22-2007 02:00 AM

think i might just make the "Site News" Changable, doing that now

Michael Biddle 03-22-2007 02:26 AM

Ok done, redownload

ThorstenA 03-22-2007 09:10 AM

You can grab the last # posts on forumhome by just adding some code in functions_forumlist.php without adding any query, I think !

Subah 03-22-2007 09:27 AM

Thanks :)

taxick 03-22-2007 10:43 AM

Hey nice hack..

I get the sql error, on my forum index page

Database error in vBulletin 3.6.5:

Invalid SQL:

SELECT post.postid, post.pagetext, post.userid, post.username, thread.forumid, forum.forumid, forum.title
FROM post as post
LEFT JOIN thread as thread on (post.threadid = thread.threadid)
LEFT JOIN forum as forum on (thread.forumid = forum.forumid)
WHERE thread.forumid not in ()
ORDER BY postid DESC
LIMIT 5;

MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')
ORDER BY postid DESC
LIMIT 5' at line 5
Error Number : 1064
Date : Thursday, March 22nd 2007 @ 12:42:24 PM
Script : *********************
Referrer :
IP Address : ******************
Username : ******************
Classname : vB_Database

KEKforce 03-22-2007 11:01 AM

Same error here!

sportsoutlaw 03-22-2007 03:15 PM

I got the database error as well.

Michael Biddle 03-22-2007 03:37 PM

Fixed, reason being if you did not fill out any forumid's to be excluded, then it would give you this error

g00gl3r 03-22-2007 03:38 PM

Has this been fixed yet?

Michael Biddle 03-22-2007 03:43 PM

yes, just fixed

Vierie 03-22-2007 03:50 PM

Would it be possible to use that in the header or a sidebar instead of forumhome?

Michael Biddle 03-22-2007 03:51 PM

just go ahead and delete the str_replace at the bottom of plugin, then move $latest where you want it to go

taxick 03-22-2007 04:33 PM

Ok. Now i get this error

Quote:

Parse error: syntax error, unexpected T_VARIABLE in D:\Program Files\xampp\htdocs\******\forum\index.php(536) : eval()'d code on line 256
And it dont show up at forumhome!

giotmuadong 03-22-2007 05:36 PM

how come i get this error?

Parse error: parse error in c:\Inetpub\vhosts\babienhu.com\httpdocs\index.php( 536) : eval()'d code on line 83

Michael Biddle 03-22-2007 07:52 PM

fixed error, thanks

BuzuL 03-22-2007 08:05 PM

Thanks But ; It should be seen only by admins ?

Michael Biddle 03-22-2007 08:08 PM

what do you mean? All members can view it, thats why you exclude the forums that you dont want shown

bacanze 03-22-2007 08:17 PM

Going to give this a try now, thanks.

BuzuL 03-22-2007 08:17 PM

This only a request if you can do that i'd be happy...

Michael Biddle 03-22-2007 09:41 PM

just add a condition to the if is_member_of($user, 6); for admins only

taxick 03-22-2007 10:31 PM

Hey...

It not show up at my forumhome!

Can you post the temple edits, so i can install manuel

Thx for you time - I love this hack!!!!!!!!!

Sry for my VERY bad english!!!

Michael Biddle 03-22-2007 11:24 PM

Not a problem, on forumhome it *should* show up under navbar. so just put $latest where you want it

ubblite 03-22-2007 11:52 PM

Does this mod inherit usergroup permissions or do you have to manually enter the forum ID to exclude private forums?

shaynehammy 03-23-2007 12:17 AM

Can you modify this hack so that it has a loop marquee funtion where it will scroll vertically through the last 30 posts? Once the user hovers his mouse over the box it stops scrolling.

Thanks

Smoothie 03-23-2007 12:20 AM

Before I do, who's has success installing this? Link?

Michael Biddle 03-23-2007 12:23 AM

I have it running on 2 sites. white-projects.com, and carutopia.net

Smoothie 03-23-2007 12:29 AM

Would it be possible to get this to collapse like the rest of forum_home?

Michael Biddle 03-23-2007 12:36 AM

was mentioned already, ill put that out with next release. soon more hten likely

Smoothie 03-23-2007 12:43 AM

Problemo!

Quote:

Page generated in 0.15297 seconds with 12 queries (2 queries for uncached templates)

Uncached templates: forumhome_latest (1)
Uncached templates: forumhome_latest_bit (5)

Michael Biddle 03-23-2007 12:48 AM

It is not cached becuase its constantly updated, at every page refresh, but not even a noticiable load IMO

g00gl3r 03-23-2007 01:21 AM

How can i stick it at the bottom of the forum?

g00gl3r 03-23-2007 01:24 AM

Quote:

Originally Posted by whitemike (Post 1209629)
just go ahead and delete the str_replace at the bottom of plugin, then move $latest where you want it to go

Where's the str?

Michael Biddle 03-23-2007 01:48 AM

Inside of plugin forumhome_latest

Find:

Code:

        //adds location to forumhome template
        $vbulletin->templatecache['FORUMHOME'] = str_replace(
                '$navbar',
                '$navbar $latest',
                $vbulletin->templatecache['FORUMHOME']

And Remove it.

Then place:

$latest

Where you want it :D

Also updated so now it collapses

ubblite 03-23-2007 01:51 AM

Mike, did you see my post above regarding permissions?

Michael Biddle 03-23-2007 03:02 AM

Just read your message, sorry, must of read over, anyways it does not use permissions, I designed this mod for a customer this way, because he wanted it, he recently bailed on me, so I decided to release it to the public. Will think about doing that in the near future :D. Thanks and sorry

-whitemike

g00gl3r 03-23-2007 01:38 PM

I'm trying to stick $latest in my footer, will that work or what? It seems to not do anything when I stick it anywhere in the footer, tried a few places.


All times are GMT. The time now is 09:30 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01982 seconds
  • Memory Usage 1,809KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete