![]() |
External Javascript Syndication System
So I'm using this Javascript to list the newest threads on the front page of my site, except I've noticed that longer thread titles end up pushing the entire site off.
So how do i limit the thread title characters and how do i have the poster instead of time of the post display ? I currently use this code: Code:
<script type="text/javascript" src="http://www.My-Site.net/forum/external.php?type=js"></script> -GE |
Try this:
Code:
<script type="text/javascript" src="http://localhost/forum4/external.php?type=js"></script> of course you should change maxlen to whatever you want. |
Thank you very much!
--------------- Added [DATE]1311974969[/DATE] at [TIME]1311974969[/TIME] --------------- I found an error with your code, it cuts off the first letter off the thread :/ http://img600.imageshack.us/img600/9133/errorvc.png It's supposed to say 'ReQ is done and..' Also how to make it output the first 200 characters of a thread ? Is there a online document with all the "threads[i]['poster']" things ? Cause the one from vBulletin lacks a LOT of information... |
Sorry about that - there should be a '0' instead of '1' in the substr call:
Code:
<script type="text/javascript" src="http://localhost/forum4/external.php?type=js"></script> Quote:
I just look at the external.php file to see what it's doing. In the case of a javascript output it only provides threadid, title, poster, date, time. You could probably modify external.php to provide more (I don't think it can be done with plugins, you'd havew to edit the file. In any case, the JS output section is around line 403. |
All times are GMT. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|