Bookmark Us   |   Today's Posts  
Forum search: Power Search  |  Member list
Navigation
Marketplace
  Members Login:
Lost password?
Not registered?
  Forum Statistics:
Forum Members: 21,639
Total Threads: 63,294
Total Posts: 501,994
There are 45 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Talkfreelance Design     HTML/XHTML/DHTML/CSS :

Vbulletin latest posts

Thread title: Vbulletin latest posts
Reply    
    Forum 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:
 
Posts: 863
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.

Reply With Quote
03-15-2007, 11:33 PM
#2
Garyrae is online now Garyrae
Garyrae's Avatar
Status: BreeBreeBree
Join date: Dec 2005
Location: Colchester, UK
 
Posts: 4,171
iTrader: 14 / 100%
 

Garyrae is on a distinguished road

  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.

Reply With Quote
03-16-2007, 10:54 AM
#3
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
 
Posts: 863
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.

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

Garrett is on a distinguished road

  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?

Reply With Quote
03-16-2007, 03:07 PM
#5
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
 
Posts: 863
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!

Reply With Quote
03-16-2007, 03:30 PM
#6
Garyrae is online now Garyrae
Garyrae's Avatar
Status: BreeBreeBree
Join date: Dec 2005
Location: Colchester, UK
 
Posts: 4,171
iTrader: 14 / 100%
 

Garyrae is on a distinguished road

  Old

Oops, sorry. I missed out a line.

Fixed.

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

Reply With Quote
03-16-2007, 04:43 PM
#7
sketchie is offline sketchie
sketchie's Avatar
Status: Senior Member
Join date: Jul 2005
Location:
 
Posts: 863
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.

Reply With Quote
03-16-2007, 05:19 PM
#8
Garyrae is online now Garyrae
Garyrae's Avatar
Status: BreeBreeBree
Join date: Dec 2005
Location: Colchester, UK
 
Posts: 4,171
iTrader: 14 / 100%
 

Garyrae is on a distinguished road

  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.^^

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

sketchie is on a distinguished road

  Old

Woot got it working, thanks Indy!

Reply With Quote
Reply    


Thread Tools
Display Modes

  Posting Rules  
vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed