![]() |
|
|
Mod Options |
How to create a Ajax Sidebar with Recent Posts Details »»
|
|||||||||||||||||||||||
|
How to create a Ajax Sidebar with Recent Posts
Developer Last Online: Dec 2006
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:
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:
The above code will fetch the sidebar just once. To make it update, you must have it run through intervals:
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
No members have liked this post.
|
|||||||||||||||||||||||
|
#16
|
|||
|
|||
|
Originally Posted by Mauu
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:
No members have liked this post.
Last edited by Illustrious : 03 Nov 2006 at 08:04. |
|
#17
|
||||
|
||||
|
All you need is to add a left/right comun code, and add the code in there. That`s it.
No members have liked this post.
|
|
#18
|
|||
|
|||
|
Where do we add it?
which template?? No members have liked this post.
|
|
#19
|
||||
|
||||
|
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 .No members have liked this post.
|
|
#20
|
|||
|
|||
No members have liked this post.
|
|
#21
|
|||
|
|||
|
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? No members have liked this post.
|
|
#22
|
||||
|
||||
|
Any chance this can be used toadd ajax latest threads without external?
Like inferno shoutbox does - updates new threads as they're posted No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
| Mod Options | |
|
|
| New To Site? | Need Help? |
All times are GMT. The time now is 05:02.






