![]() |
|
Okay, line 258 in vb_spy.js should read:
Code:
post_url = 'showthread.php?p=' + postid + '#post' + spyid; |
Hmm. It's the correct link now, but for some reason I'm being bumped back to post #1. ??
|
Oh, I think I know. The link doesn't specify a page #. It's sending me to page 1, and then looking for a post that's on page 2+.
|
Well, wait, now that I tried it on a thread with only one page, it still doesn't work. It sends me to the correct post, but then I'm immediately back at post #1.
|
Try:
Code:
post_url = 'showthread.php?p=' + spyid + '#post' + spyid; |
Yea that worked.
|
Okay, I modified the vaispy.php script accordingly and posted it here.
|
Yep, that did it! Thank you very much for all of your work!
|
Another minor thing.
If nothing is returned, you should return the Xml with an empty root node of <events /> This will avoid invalid Xml errors being silently thrown in the JavaScript. Simply change this in the .php file: PHP Code:
PHP Code:
Code:
try { Code:
try { |
Excellent, well done, i was watching that thread in anticipation,
Thanks alot m8 :) |
No new posts show for me, getting this error in java console....
Quote:
|
Would be good if there was a way to stop guests viewing this.
|
Quote:
Indeed the line in the PHP file is: PHP Code:
|
Quote:
Add this: PHP Code:
PHP Code:
|
Quote:
|
Hi m8 is there away to change the amount of posts show please?
Perhaps to something like 30, or would this cause a lot more server load? |
Very cool modification. Thumbsup
|
Thanks, Floris; I have something really neat in store for people who use this modification that I should be ready to show shortly.
Thank you, buro9; I'll add that to the code immediately. |
What line would I change to slow down how quick the posts display? I don't mean the database check time, but rather the time that each update is fed downwards.
|
Quote:
|
Quote:
PHP Code:
|
And MPDev... fantastic hack :)
Don't mind me helping support it... I know from experience it can be a chore answering hack support questions, and I like this one a lot so I've already delved through most of the code and figured out a few tweaks here and there. I'll stick to sharing tips though :) One thing that did come to mind... a way of caching according to usergroups. I haven't yet opened this up to guests as I'm wary of additional database load, but if I put in a per usergroup cache mechanism based on a users primary usergroup... then this would solve any potential load issue on large boards :) |
Are you kidding? I don't mind at all, in fact it's why I put it out here so that (hopefully) we could all enjoy it and improve it.
vBIspy.com is nearing ready for launch; once it's ready it'll be a fun way to see what people are talking about and promote our websites. (You just register your vbispy.php and vBIspy.com grabs a few threads on a polling cycle to promote your site). |
Holy crap! This works great :D :D Mine is here
|
BTW.. Could it be possible to add a external version to this one? A include version that I could post on an external website or the main portal page? ( non-vb-portal )
|
Quote:
Right on!!! I hope to get this up and running today... Darn Real World and Work!! :p ****edit - that was too easy!! Works a trick!!!!!!!!!!!!!!!!!!!!!! Cheers Mate! |
This is a great mod. I installed it on my site and set it up with a link under the actual post.
This way after someone replies to a post, all they need to do is click on "Realtime New Posts" and they are brought right back to the ajax page, which make's this very functional on my site. Thanks hotwheels of insanemustangs.com :D See the pic for my example: |
Sweet mod. Thanks again, MPDev. :) *Clicked Install*
|
This is a really awesome hack and I'd love to see it developed further. (like a module for vbadvanced hehehehe)
Is there anything that can be done for the whos online page? When its viewed and people are on that page they are reported like this: Unknown Location /forum/vaispy.php?do=xml&last=993718&r=0.4711818012095664 3&_= |
Hi m8, thanks but changing that actually stops it displaying any posts!! :(
Its this ya need to change ;) PHP Code:
PHP Code:
Quote:
|
EDIT:
To change the amount of posts to show: Find and change the 50 to the amount you require [phpORDER BY lastpost DESC LIMIT 50");[/php] Find and change the 50 to the amount you require PHP Code:
[php] PHP Code:
PHP Code:
|
All the credit goes to TECK ( Floren )
In order to optimize the code Replace Code:
$getthreads = $db->query_read(" Code:
// The number of days to scan the table for ... |
Just curious about adding that to the query; does that speed up the query or is it to just make sure you only grab something from the past day?
|
Problem here.
The query is going correctly, it has valid information in it: http://yourconvo.com/forums/vaispy.php?do=xml However, The actual page is not filling up with data. http://www.yourconvo.com/forums/vaispy.php |
Quote:
It seems to be working for me... |
yeah me too
|
I just figured out what's wrong.
It won't work when there is no www. |
I made an update with some minor changes to the JavaScript to remove the split strings.
I'm not sure what to do about Opera; I just dont use it to know enough what might need to be done. I wonder if it works like IE and we need: Code:
if (is_ie || is_opera) |
Quote:
|
All times are GMT. The time now is 04:22 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:
|