vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vBISpy - AJAX real-time feed of new posts/threads (for vB3.5) (https://vborg.vbsupport.ru/showthread.php?t=126027)

The Chief 09-11-2006 12:52 AM

For some reason, Ajax is not working...

When there is a new post it doesn't automatically updating...did I miss something?

djwins 09-11-2006 02:25 AM

Quote:

Originally Posted by MPDev
I'm not sure - can you give me a link to look at?

In case you were talking to me:
http://www.cheapassgamer.com/forums/vaispy.php


Also, I really like the idea of vbispy.com network and website. I think the key here will be to make this mod as server load friendly as possible, so you can have lots of good forums feeding your vbispy page.

MPDev 09-11-2006 12:22 PM

djwins,

Update your clientscript/va_spy.js file from the download - you still have the "old" one that has init() defined and the new code uses spyinit() to prevent any conflicts with other JavaScript.

Gizmo5h1t3 09-11-2006 02:38 PM

Quote:

Originally Posted by MPDev
Some people are suing rewrites of URLs and the links wont always work to take you to the last post. In these cases, you might try rewriting line 262 in va_spy.js to:

Code:

                post_url = 'showthread.php?t=' + threadid + '&goto=lastpost';
Which tells the link to take you to the last post in the thread and seems to get rewritten correctly on the system I tested it on.


thats working fine now m8...nice work!!

djwins 09-11-2006 05:41 PM

Quote:

Originally Posted by The Chief
For some reason, Ajax is not working...

When there is a new post it doesn't automatically updating...did I miss something?

Mine also pulls the 10 latest threads and then doesnt update (unless I refresh the browser).

MPDev 09-11-2006 06:05 PM

I'll take a look.

MPDev 09-11-2006 06:28 PM

The problem is in your postid's - for some reason your post ids are all over the place - <id>393555</id> in the last post made, but <id>2182585</id> the post just before that.

So what I do not understand is, why are the postids so out of whack? They should be incremental given they are new posts added to the post table.

MPDev 09-11-2006 06:34 PM

You can try the change from this post:

https://vborg.vbsupport.ru/showpost....8&postcount=42

And see if that makes a difference.

djwins 09-11-2006 06:34 PM

Really? Seems ok to me...

Could it have somethingt o do with people editing old posts?

MPDev 09-11-2006 06:37 PM

No, must be the query I am using; I only have one 3.5 site to test on and the query works using the moficiation in the link above.

I use the postid as a marker for the last post I grabbed; but when those number are so out of whack, then it never sees anything else because that first record id was so high. We might need to switch to using a datestamp variable.


All times are GMT. The time now is 11:52 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01268 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete