vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - vBISpy - AJAX real-time feed of new posts/threads (https://vborg.vbsupport.ru/showthread.php?t=233759)

Eric 01-24-2010 03:53 PM

Quote:

Originally Posted by ahmedbehiry (Post 1965331)
http://haridy.com/ib/vaispy.php
sorry, it's in Arabic.. but you can see that the posts are not changing..

You're using jQuery - jQuery and Prototype(what this mod uses) do not play nice with each other.

ahmedbehiry 01-24-2010 04:01 PM

:S is there a way to disable jquery inthis page with vb conditionals?

New Joe 01-25-2010 01:12 AM

Quote:

Originally Posted by SecondV (Post 1964396)


This seems to be because of vB4's new "Friendly URL's" - I've not found a way to be able to generate them in Javascript.

So do you think it can be done?

compuminus 01-25-2010 01:30 AM

Quote:

Originally Posted by SecondV (Post 1964400)
Updated to 2.0.2

2.0.2 - January 23, 2010
- Added alternate row colors.

Ideally the alternate row colors would be drawn from the stylevars, as opposed to being hard-coded into the php. I have a light and dark style for my forums, so as it stands now, vBISpy won't look right with one of them. Perhaps alt1 could correspond to threadbit_background and alt2 could be threadbit_alt_background ? Thanks for porting this to vB4!

compuminus 01-25-2010 01:38 AM

Also, perhaps you would want to use the new thread status icons for vB4...? You'd mentioned that these were too large to fit in the line of vBISpy test, so they weren't used -- but how about using the 16x16px versions? This would just change the vaispy.php code from:

Code:

$thread['statusicon'] = vB_Template_Runtime::fetchStylevar('imgdir_statusicon') . '/thread' . $thread['statusicon'] . '.gif';
to:

Code:

$thread['statusicon'] = vB_Template_Runtime::fetchStylevar('imgdir_statusicon') . '/thread' . $thread['statusicon'] . '-16.png';

ahmedbehiry 01-25-2010 02:56 AM

I've disabled jquery in the page using vb conditional <vb:if condition="THIS_SCRIPT != 'vaispy'">
and I'm checking it right now

ahmedbehiry 01-25-2010 05:21 AM

still not working even though jquery is disabled.

phil801 01-25-2010 06:18 AM

I'm so glad you fixed this mod for 4.0! I was in the process of paying to have it customized.

Installed fast and easy and WORKS!

Viewable here: http://www.ldspreppers.com/recentposts.php

Eric 01-27-2010 12:33 AM

Quote:

Originally Posted by compuminus (Post 1965749)
Ideally the alternate row colors would be drawn from the stylevars, as opposed to being hard-coded into the php. I have a light and dark style for my forums, so as it stands now, vBISpy won't look right with one of them. Perhaps alt1 could correspond to threadbit_background and alt could be threadbit_alt_background ? Thanks for porting this to vB4!

Yeah, it just slipped my mind when I added that in. The threadbit backgrounds probably would be best for it.

Quote:

Originally Posted by compuminus (Post 1965752)
Also, perhaps you would want to use the new thread status icons for vB4...? You'd mentioned that these were too large to fit in the line of vBISpy test, so they weren't used -- but how about using the 16x16px versions? This would just change the vaispy.php code from:

Code:

$thread['statusicon'] = vB_Template_Runtime::fetchStylevar('imgdir_statusicon') . '/thread' . $thread['statusicon'] . '.gif';
to:

Code:

$thread['statusicon'] = vB_Template_Runtime::fetchStylevar('imgdir_statusicon') . '/thread' . $thread['statusicon'] . '-16.png';

Ahh, thanks for that - will implement that in the next release :)

Quote:

Originally Posted by ahmedbehiry (Post 1965805)
I've disabled jquery in the page using vb conditional <vb:if condition="THIS_SCRIPT != 'vaispy'">
and I'm checking it right now

Sorry, not sure what else to tell you. It could be an RTL issue, I'm not sure.
Quote:

Originally Posted by New Joe (Post 1965744)
So do you think it can be done?

Still looking into the friendly URL situation...

compuminus 01-27-2010 01:10 AM

Quote:

Originally Posted by SecondV (Post 1967554)
Ahh, thanks for that - will implement that in the next release :)

Great. It's not a perfect icons coding though, since it does not always correctly use the thread_dot_16-right.png or thread-16-right.png as opposed to thread_dot_16.png or thread-16.png, respectively (when appropriate), but it's pretty close.

Look forward to the new release! Thanks!


All times are GMT. The time now is 06:36 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.01225 seconds
  • Memory Usage 1,745KB
  • 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
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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