vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - vBISpy - AJAX real-time feed of new posts/threads (https://vborg.vbsupport.ru/showthread.php?t=125947)

Snake 09-17-2006 05:11 PM

Thanks. I'll check this out soon!

ZGeek 09-17-2006 10:57 PM

Ignore me.. im dumb

bjs144 09-18-2006 09:25 AM

Fab mod!!

So great!!

MPDev 09-18-2006 05:56 PM

Quote:

Originally Posted by firstrebel
That didn't work, so I looked at vaispy.php and removed the width="190" attribute from <td class="thead" width="190">By</td> at line 291.

Bob

Sorry about that, yeah, the header needed to be modified. On Opera browsers you still have to modify the javascript, though.

Shouzen 09-18-2006 08:45 PM

how do ia dd a link to my navbar?

MPDev 09-19-2006 11:29 AM

You can modify your navbar template and add the link to vaispy.php to it. If you aren't sure how to do that, let me know and I'll paste some code for it.

Lionel 09-19-2006 12:39 PM

I put
Quote:

valign="top"
in every single <td> I could found, yet it still displays in the middle for poster name, forums etc...

ForumDog 09-19-2006 03:03 PM

Use style="vertical-align:top;".

Lionel 09-19-2006 04:13 PM

Quote:

Originally Posted by ForumDog
Use style="vertical-align:top;".

where exactly? I tried that in every single <td>

ForumDog 09-19-2006 04:52 PM

Quote:

Originally Posted by Lionel
where exactly? I tried that in every single <td>

Might be because the code puts DIVS inside the table cells, which are overriding the table cell alignment. Vertical-align can't be applied to divs in that manner. Try this (untested, rough guess):

Add to your CSS:

.top span {
vertical-align:top;
}

Then change the code to (Presumably the innerHTML divs, since you're trying to apply it to a table cell):

<div class="top">
<span style="inline-block">What you want aligned to the top</span>
</div>

jackceltic1888 09-19-2006 05:02 PM

Installed :D

Lionel 09-19-2006 05:15 PM

thanks for trying... I give up...


Quote:

Originally Posted by ForumDog
Might be because the code puts DIVS inside the table cells, which are overriding the table cell alignment. Vertical-align can't be applied to divs in that manner. Try this (untested, rough guess):

Add to your CSS:

.top span {
vertical-align:top;
}

Then change the code to (Presumably the innerHTML divs, since you're trying to apply it to a table cell):

<div class="top">
<span style="inline-block">What you want aligned to the top</span>
</div>


MPDev 09-20-2006 11:35 AM

I'll give it a try and see if I can get it to align at the top.

MPDev 09-20-2006 07:17 PM

Lionel,

I was able to get this to work easily enough editing the va_spy.js file, at line 272:

Code:

            text = '<td class="alt1 smallfont" align="center" valign="top">' + what + '</td><td class="alt2 smallfont" valign="top">' + poster_clip + '</td><td class="alt1Active smallfont">' + clip + '</td><td align="center" class="alt1 smallfont" valign="top">' + where + '</td>';
I just put the valigns in there and they popped to the top of the cell.

Spikeman 09-21-2006 07:21 AM

Installed thanks :)

MPDev 09-22-2006 01:06 AM

Sure thing, Spikeman; mind if I ask that you click INSTALL? ;)

Skedoozy 09-22-2006 08:57 AM

Installed. I love it. Works great. I'm only going to tell select users about it though. ;)

Lionel 09-22-2006 12:47 PM

Quote:

Originally Posted by MPDev
Lionel,

I was able to get this to work easily enough editing the va_spy.js file, at line 272:

Code:

        text = '<td class="alt1 smallfont" align="center" valign="top">' + what + '</td><td class="alt2 smallfont" valign="top">' + poster_clip + '</td><td class="alt1Active smallfont">' + clip + '</td><td align="center" class="alt1 smallfont" valign="top">' + where + '</td>';
I just put the valigns in there and they popped to the top of the cell.

In firefox, yes, but not IE

bashy 09-22-2006 04:05 PM

Where 2 or 3 rss feeds are posted, this can mess things up a bit

New Thread Bashy
9 Minutes Ago 05:52 PM Bush 'unaware' of Pakistan threat
President Bush says he was "taken aback" by reports that the US threatened to bomb Pakistan in 2001. More... (0 views, 0 replies) RSS News
New Thread Bashy
9 Minutes Ago 05:52 PM Bush 'unaware' of Pakistan threat
A magnetic levitation train crashes at high speed in northern Germany, killing at least 15 people. More... (0 views, 0 replies) RSS News
New Thread Bashy
9 Minutes Ago 05:52 PM German monorail accident kills 15
President Bush says he was "taken aback" by reports that the US threatened to bomb Pakistan in 2001. More... (0 views, 0 replies) RSS News
New Thread Bashy
9 Minutes Ago 05:52 PM German monorail accident kills 15
A magnetic levitation train crashes at high speed in northern Germany, killing at least 15 people. More... (0 views, 0 replies) RSS News

This is exactly how it looks in the spy page, well with better formatting lol
But you can see that its repeated and also titles messed up with the descriptions!

MPDev 09-22-2006 04:25 PM

What do you mean "where 2 or 3 rss feeds are posted"? The query is pretty straightforward; not sure why it would be mixing up titles and descriptions - I wonder is this applies only to rss posts?

bashy 09-22-2006 04:49 PM

I meant "when" sorry...

Also i have the AI bot installed as well, and hwen that posts it sometimes messes up, So i am thinking that when the rss and bot posts, they post at the speed of light (so to speak) and it looks like the spy cannot keep up with it, thats what it looks like, I know the bot aint your problem and is hopefully being resolved (slow him posting) so its just the rss feeds..

If one rss is posted its ok, but if theres 2 or more thats when it messes up.
I think the rss feeds posts at virtually the same time, therefore if a smal 1 or 2 second delay can be implemented between posts thats should help

Does this make any sense to you lol

Timan 09-22-2006 05:52 PM

Quick question about modifying the look of the threadbits...

Is there a way to make the bg color of each table row alternate from class="alt1" to class="alt2"?

kushal 09-22-2006 07:40 PM

This is a great mod, allmost making board live of content.

Adrian Schneider 09-22-2006 09:13 PM

I made some major adjustments to mine, take a looksie... The only one not visible here is a 10 minute refresh, to check for new private messages and to update any posts I've read.

Cool New Features

bashy 09-22-2006 10:15 PM

Any chance of your modification Adrian please? :)

Adrian Schneider 09-22-2006 10:33 PM

Mine also has vBSEO rewritten URLs, so it's a bit diff. I may post it later when I clean it up some more.

BTW if anyone wants alternating rows, here is an easy way to accomplish it.

--

In va_spy.js find
Code:

function spyinit() {
Above it, add
Code:

var rowClass = 'alt2';
Find
Code:

highestid = Math.max(parseInt(spyid), highestid);
above it, add
Code:

rowClass = rowClass == 'alt2' ? 'alt1' : 'alt2';
Find
Code:

text = '
For every <td> (with or without a class="alt1" or "alt2") make it
Code:

<td class="' + rowClass + '">
Remember that some of the cells have alignment set, so be sure to keep that intact.

MPDev 09-22-2006 10:38 PM

Thanks, Adrian!

I'm going to add PhotoPost thumbnails here shortly for new photos added to the gallery.

warnmar10 09-24-2006 02:33 PM

Quote:

Originally Posted by warnmar10
Other than that one, minor annoyance this is a nice add.

On my site, in Firefox or IE, it only works for guest.

If I log in and run vaispy.php?do=xml under Firefox, everything looks to be in order, I see exactly what I would expect to see but it doesn't display anything on the vaispy.php page.

If I log out in Firefox, browse to vaispy.php it works.

If I open a new tab and log in, it continues to work in the 1st tab.

If while I'm logged in on the 2nd tab I refresh the first tab it continues to work but it doesn't show me as logged in.

If I log in to the working instance on tab 1 it stops working.

I read all 5 pages and saw this problem mentioned 4 or 5 times, did I read past the answer somewhere?

Very cool for my guests though.

It is still no work for me only guests can view, it correctly pulls posts only from forums with guest permission but pulls nothing for logged in users.

MPDev 09-25-2006 05:44 PM

1.1.11 - 9.25.2006
vaispy.php
va_spy.js
- added SirAdrian's mods for thread status icons and alternating row colors
- added code to prepopulate the first 10 rows with existing threads allowing for 5 new ones to be added in scrolling mode (versus scrolling starting from the first thread).

firstrebel 09-25-2006 06:14 PM

Something is not right, look at http://www.volvoclub.org.uk/forum/vaispy.php.

There are different fonts in the first column Event.

Bob

MPDev 09-25-2006 06:22 PM

Yeah, something is off on IE; checking now.

MPDev 09-25-2006 06:50 PM

OKay, I've updated the build with a fix and included some new code I was working on to select only subscribed threads while viewing.

Adrian Schneider 09-25-2006 06:53 PM

I added one more thing to mine - ability to filter forums via query string (?forumids=x,y,z) as well as the option to not check child forums for the forums you specify (&noChildren=1). I'll share them later tonight if I get some time.

MPDev 09-25-2006 07:12 PM

I just modified it again to put the alignment for IE back into place; I don't have any subscribed threads, so if anyone can test that out and let me know if it worked that would be nice.

Thanks, SirAdrian; look forward to adding more.

firstrebel 09-25-2006 07:15 PM

Quote:

Originally Posted by MPDev
OKay, I've updated the build with a fix and included some new code I was working on to select only subscribed threads while viewing.

Much better, thanks.

Bob

MPDev 09-25-2006 07:25 PM

You'll notice that I've pulled some code form the va_spy.js that was only for IE and redone some of the html in the vaispy.php to pre-populate those rows; this leaves 5 rows that will be scrolled with the last 5 posts (and with the "fade"), but removes all the empty rows problems of IE that we had before.

If you modified the code in the past to change the number of rows, you'll have an easier time adjusting this code; as all the changes will be in the vaispy.php script.

Except for changing some variables in the va_spy.js script; you shouldn't need to change much else in the file.

Kaleem 09-25-2006 07:44 PM

Thanks for update working fine :)

http://www.friendskorner.com/forum/vaispy.php

Chadi 09-25-2006 07:47 PM

Suggestions:

- add refresh button (ajax style perhaps)
- new version seems to instantly load about 15 threads without scrolling nicely like the old version

MPDev 09-25-2006 08:30 PM

Not sure what a refresh would accomplish since it's already on a polling cycle.

Yes, the new version preloads the rows with 15 items and scrolls 5, as per the version updates.

G_Man 09-26-2006 01:02 AM

Quote:

Originally Posted by MPDev
You'll notice that I've pulled some code form the va_spy.js that was only for IE and redone some of the html in the vaispy.php to pre-populate those rows; this leaves 5 rows that will be scrolled with the last 5 posts (and with the "fade"), but removes all the empty rows problems of IE that we had before.

If you modified the code in the past to change the number of rows, you'll have an easier time adjusting this code; as all the changes will be in the vaispy.php script.

Except for changing some variables in the va_spy.js script; you shouldn't need to change much else in the file.

I went back in the change the URL for CMPS in va_spy.js, but it isn't showing on my CMPS ??

In the past, that was all I had to change when updating. Ideas?


All times are GMT. The time now is 06:39 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.02137 seconds
  • Memory Usage 1,826KB
  • 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
  • (8)bbcode_code_printable
  • (9)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
  • (40)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