Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
How to create a Ajax Sidebar with Recent Posts Details »»
How to create a Ajax Sidebar with Recent Posts
Mod Version: 1.00, by Mauu (Contributor) Mauu is offline
Developer Last Online: Dec 2006 I like it Show Printable Version Email this Page

vB Version: 3.6.0 Rating: (1 vote - 5.00 average) Installs: 19
Released: 13 Sep 2006 Last Update: Never Downloads: 143
Not Supported Template Edits Additional Files Is in Beta Stage  

At YoungCoders, I recently wrote an ajax enabled recent posts widget, and I thought I would post it here. I do not recommended this for high traffic forums, as you'll be running a lot of queries.

I'm going to forget to check back here and update this with any changes. So, please see here, which is where I will maintain and try to provide support.

I) Setting up the Feed
1) First, you need the improved external.php file from vBulletin.org. The link is here: http://www.vbulletin.org/forum/showt...t=fps_external

2) This new external file lacks some of the documented features, and the feature we need is the latest posts (not latest threads). The attached file resolves that and may only be used if you have a valid vBulletin license. The reason we may not use the built-in one is because it does not have support for permissions and will therefore treat every user as a guest. Credit for fps_external.php goes to the original authors; my revision was trivial.

3) Upload fps_external.php into your forum directory.

II) Setting up the Ajax
1) Our threads are going to appear in an unordered list. So, let's setup our default list:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

We have to throw in the please wait to make our page validate and also to notify our users that we're fetching the feed.

2) You then need some JavaScript. I'm not going to document this as it's pretty self-explanatory:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

The above code will fetch the sidebar just once. To make it update, you must have it run through intervals:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Terms of Use: For each site you deploy this on, you must tell one friend about YoungCoders.com

For a preview and more discussion: http://www.youngcoders.com/showthrea...288&styleid=19

Download Now

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

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.
  #16  
Old 03 Nov 2006, 08:02
Illustrious Illustrious is offline
 
Join Date: Dec 2005
Originally Posted by Mauu
It really can't get much simpler: upload patched fps_external, stick HTML in, stick JavaScript in, done. Granted, basic web-design knowledge is required.
The problem is where do you "stick HTML/JavaScript in" and how do you link this to the sidebar. A guide does that, explain what you have to do in reasonably simple terms so that people who are unable to do it without the guide can. One way you could go about is write up the guide so that you give one generic example solution of how to install it.

Judging by the replies on your own website, it seems like a lot of others are confused.

For example, I can easily point out:

II) Setting up the Ajax
1) Our threads are going to appear in an unordered list. So, let's setup our default list:
Set up the default list where?

2) You then need some JavaScript. I'm not going to document this as it's pretty self-explanatory:
And where does this javascript go?

Last edited by Illustrious : 03 Nov 2006 at 08:04.
Reply With Quote
  #17  
Old 03 Nov 2006, 15:35
t3nt3tion's Avatar
t3nt3tion t3nt3tion is offline
 
Join Date: Aug 2005
Real name: Adrian A.
All you need is to add a left/right comun code, and add the code in there. That`s it.
Reply With Quote
  #18  
Old 24 Nov 2006, 03:17
AMD_Warrior AMD_Warrior is offline
 
Join Date: Jul 2006
Real name: Gurilla Admin
Where do we add it?
which template??
Reply With Quote
  #19  
Old 24 Nov 2006, 16:36
ManagerJosh's Avatar
ManagerJosh ManagerJosh is offline
 
Join Date: Feb 2002
While I'm no coder, I took a look at the code and it appears you put it in the header template. That's my best guess.

Either way, I'm echoing the same problems with this template release and that the installation is rather vague. Moreso, you didn't release any code for your AJAX sidebar I'd like to point out .
__________________
Latest News:

Nothing Going On here...just hanging around vBulletin.com
Reply With Quote
  #20  
Old 25 Nov 2006, 17:38
fatwillie fatwillie is offline
 
Join Date: Oct 2002
How to create a Ajax Sidebar
I don't see any ajax code nor do I see sidebar code...
Reply With Quote
  #21  
Old 25 Nov 2006, 22:54
category category is offline
 
Join Date: Jul 2005
very confused so i put the fps that i download here to the forum directory

than i put the java in my column with style tags which i did but how does it load the posts? do i need to specify somewhere what forum ids?
Reply With Quote
  #22  
Old 26 Aug 2008, 17:34
Jezlad's Avatar
Jezlad Jezlad is offline
 
Join Date: Apr 2007
Any chance this can be used toadd ajax latest threads without external?

Like inferno shoutbox does - updates new threads as they're posted
Reply With Quote
  #23  
Old 29 Aug 2008, 17:25
GDA GDA is offline
 
Join Date: Feb 2005
how come I can't download the fps file?
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:02.

Layout Options | Width: Wide Color: