Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
Not registered?
  Forum Statistics:
Forum Members: 24,437
Total Threads: 71,042
Total Posts: 536,773
There are 125 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

Vbulletin latest posts

Thread title: Vbulletin latest posts
Closed Thread    
    Thread tools Search this thread Display Modes  
03-15-2007, 10:48 PM
#1
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old  Vbulletin latest posts

Wasn't too sure where to post this, but there was another vB thread in here so I thought why not? :P

Anyway to the point!

I have been looking everywhere for how to list latest/recent posts in a side bar on a vBulletin forum (I know how to get the sidebar). I'm not new to skinning vB, and I'm fairly good at it, but I can't find out how to do this specifically anywhere. I've found similar things that will show threads at the bottom of the home page, or an AJAX one like on youngcoders.com (Though I don't want to use AJAX with it for now, I just want to learn the basics of it first).

I know there are alot of talented vB skinners on here so I thought I would ask!

Example of what I mean:
http://www.adminfusion.com/forums/ (latest posts)


Thanks in advanced,
sketchie.

03-15-2007, 11:33 PM
#2
Garyrae is online now Garyrae
Garyrae's Avatar
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,598
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae

  Old

This will display them basically the same as TFL's:

Code:
<script type="text/javascript" src="external.php?type=js"></script> 
<script language="" type="text/javascript">
<!--
for (x = 0; x < 4; x++)
{
document.writeln("<strong><a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a></strong><br /> Posted By: "+threads[x].poster+"<br /><br />");
}
//-->
</script>
Then:
vBulletin Options > External Data Provider > Enable External Javascript

The downside to this option is that it will only display threads viewable by guests, and it doesn't update immediately.

03-16-2007, 10:54 AM
#3
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

Ah cool I'll give that a go in a second!

I never noticed TFL had it before to be fair :S.

03-16-2007, 02:13 PM
#4
Garrett is offline Garrett
Status: Waving
Join date: Aug 2005
Location:
Expertise:
Software:
 
Posts: 2,692
iTrader: 11 / 100%
 

Garrett is on a distinguished road

Send a message via MSN to Garrett

  Old

Indy, that doesn't work on:
http://www.360shock.com/index.php

When you say, viewable by guests, does that mean we have to be logged out?

03-16-2007, 03:07 PM
#5
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

I have to confirm what Garrett said, no such luck with it .

Any help would be greatly appreciated because I'd really like to know how to do this!

03-16-2007, 03:30 PM
#6
Garyrae is online now Garyrae
Garyrae's Avatar
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,598
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae

  Old

Oops, sorry. I missed out a line.

Fixed.

@Garrett: No, it means threads in private forums, etc, won't be displayed.

03-16-2007, 04:43 PM
#7
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

Woot works! I love you Indy :D.

You have no idea how hard I've been looking for this sort of code xD.

Edit:
One question though!

threads[x].poster seems to show the topic starter, how do I show the last person that posted in the topic instead? var name?

Edit 2:
I see what you mean by it being slow to update.. Know of any faster ways?
Also is this displaying recently created threads or threads that have been posted in recently? I was looking for something that did the latter xD.

03-16-2007, 05:19 PM
#8
Garyrae is online now Garyrae
Garyrae's Avatar
Status: Request a custom title
Join date: Dec 2005
Location: Colchester, UK
Expertise:
Software:
 
Posts: 4,598
iTrader: 16 / 100%
 

Garyrae is on a distinguished road

Send a message via MSN to Garyrae

  Old

I'm not sure how to display the last poster to be honest.

I'm relatively sure the only options are: Title; Original poster; Date; Time; and ThreadID.

If you can display the last poster, the vBulletin Documentation will hold the answer.^^

03-16-2007, 05:35 PM
#9
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
Expertise:
Software:
 
Posts: 835
iTrader: 1 / 100%
 

sketchie is on a distinguished road

  Old

Woot got it working, thanks Indy!

Closed Thread    


Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed