Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Last X Posts Titles on Non-VB page Details »»
Last X Posts Titles on Non-VB page
Version: 1.00, by RobinHood RobinHood is offline
Developer Last Online: Mar 2007 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 03-17-2004 Last Update: Never Installs: 92
 
No support by the author.

Hi everyone,

Well, here is my first full release to the vB.org community. It's a small little script I just whipped up a few minutes ago. I already have this on my webpage for months now and thought I'd share it with the rest of you.

Description:
This script will display the titles, poster's names, and times of the last X's posts. It's fully customizable. Should be very easy to understand so enjoy!

Instructions:
1) Download the script below.
2) Change the settings in the script.
3) Insert include("/path/to/lastposts3.php"); anywhere in a non-VB page.

If you like to check out a live demo, you may go visit one of my sites: http://www.generazn.com.

If you have any problems, questions, or comments regarding this, feel free to post them here or send me an email to tre@phase1media.com.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 01-17-2006, 04:24 PM
digitalSite's Avatar
digitalSite digitalSite is offline
 
Join Date: Nov 2003
Location: Gator Nation
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by malfuncion
i have it working in 3.5.2

alternating colors and excluding forums also works fine.
malfunction: Did you just install the script on your 3.5.2, or did you have to make some changes? I would like to know if I can install the script, since I am using 3.5.3, but I don't want to break something. Thanks!
Reply With Quote
  #83  
Old 02-06-2006, 06:22 PM
croportal's Avatar
croportal croportal is offline
 
Join Date: Oct 2005
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if this work witih 3.5.3
Reply With Quote
  #84  
Old 02-27-2006, 08:33 PM
IanM IanM is offline
 
Join Date: Sep 2003
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This works great on a clean 3.5.4 install Great job, thanks!
Reply With Quote
  #85  
Old 03-17-2006, 01:36 PM
mchaos mchaos is offline
 
Join Date: Jan 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have hidden forums for mods and such. Is there any way to keep these forums from being included on the latest posts?
Reply With Quote
  #86  
Old 04-17-2006, 05:15 AM
Oleks Oleks is offline
 
Join Date: Apr 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
Is any chance how to display the post title/link and “posted by Name mm/dd/yy time” in one line?

Thank you.
Reply With Quote
  #87  
Old 04-19-2006, 02:23 PM
Oleks Oleks is offline
 
Join Date: Apr 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
lastposts3.php works well as a separate page.
Is any chance how to include this script into vBulletin 3.0.1 home page?

Can somebody help with this?

Thank you.
Reply With Quote
  #88  
Old 08-04-2006, 01:37 AM
pcwfreak pcwfreak is offline
 
Join Date: Mar 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you get the last new thread instead of the last new post (like a new post wouldn't bump it up)? And make the link go to the topic instead of a specific post?

Hopefully, it's just some simple modifications...
Reply With Quote
  #89  
Old 08-04-2006, 03:00 AM
Ryan McBain's Avatar
Ryan McBain Ryan McBain is offline
 
Join Date: Feb 2002
Location: Earth
Posts: 221
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nevermind
Reply With Quote
  #90  
Old 12-28-2006, 02:45 PM
datruth55 datruth55 is offline
 
Join Date: Aug 2004
Location: North Carolina
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'd like to try and use this as an archive to my news posts on a specific forum on a non-VB page. Is there a way to get it to show say 5 posts after the first 5 posts?

Let me try to be a little clearer. I have vBAdvanced pulling from a specific forum to show on the portal. That forum is my "news" forum. It shows the last 5 articles. I want to display the previous 5 articles in an archive on a non-VB page. I know I need to loop through and then start counting on post number 6 from the database but not sure how to do it.
Reply With Quote
  #91  
Old 12-29-2006, 05:30 PM
datruth55 datruth55 is offline
 
Join Date: Aug 2004
Location: North Carolina
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind I figured it out. I added another number to the end of the query.

In other words after $limited I added , 5. This means that the query will return the limited number of posts after the 5th row.

I also had to add an array to convert bbcode to html code so that I could display the text on a non-VB page.
Reply With Quote
  #92  
Old 03-24-2008, 08:19 AM
DPtheGod's Avatar
DPtheGod DPtheGod is offline
 
Join Date: May 2007
Location: Everett, WA
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I love your hack, it's wonderful! I have a question, though.

Is it possible to restrict the hack from getting latest posts in boards only certain usergroups can see, such as staff boards?
Reply With Quote
  #93  
Old 08-08-2008, 04:52 PM
CEO TaYloR? CEO TaYloR? is offline
 
Join Date: Aug 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where do you upload the script?
Reply With Quote
  #94  
Old 11-01-2008, 02:36 AM
dragoncub dragoncub is offline
 
Join Date: Feb 2008
Location: NYC
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Oblivion Knight View Post
Here's an addon to exclude forums that I've quickly thrown together..

Find:
Code:
$limit = "10"; // Number of posts displayed.
Add below:
Code:
$excludeforums = ""; // The forums you want to exclude from being displayed, put their ID here.
Find:
Code:
if ($limit) {
	$limited = "LIMIT $limit";
}
Add below:
Code:
if ($excludeforums == "" or $excludeforums <= "0") {
	$quarter = "no";
} else {
	$excfid = explode(",",$excludeforums); $i = 0; $a = count($excfid);
	while ($i < $a) {
		$wheresql .= " AND thread.forumid!='$excfid[$i]'";	++$i;
	}
}
Find:
Code:
SELECT threadid,title,lastpost,lastposter
Add on the same line:
Code:
,forumid
Find:
Code:
WHERE visible=1
Add on the same line:
Code:
$wheresql
All done..
I followed these instructions to exclude a private forum, but its not working, its still showing the post on the homepage. Any ideas why?
BTW, I'm running 3.7.3
Reply With Quote
  #95  
Old 11-01-2008, 11:12 PM
dragoncub dragoncub is offline
 
Join Date: Feb 2008
Location: NYC
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another thing, the list of the recent post does not automatically update when I load my homepage, I have to press the refress button in order to update the list. Is there a fix for this?
Reply With Quote
  #96  
Old 11-02-2008, 12:24 AM
dragoncub dragoncub is offline
 
Join Date: Feb 2008
Location: NYC
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dragoncub View Post
I followed these instructions to exclude a private forum, but its not working, its still showing the post on the homepage. Any ideas why?
BTW, I'm running 3.7.3
nevermind, I figure it out, I was putting the wrong forum id number, I was putting the id of the parent forum not the actual child forum.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10310 seconds
  • Memory Usage 2,357KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete