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)

MPDev 09-26-2006 01:34 AM

Are you referring to the CMPS mod?

G_Man 09-26-2006 01:42 AM

Quote:

Originally Posted by MPDev
Are you referring to the CMPS mod?

Yes. In fact, I had to re-upload the va_spy.js file with NO changes to get it to work on its own.

MPDev 09-26-2006 01:59 AM

<See the module thread. />

G_Man 09-26-2006 02:18 AM

I am not seeing a </ if> anywhere....

Also, noticed that first 15 posts that show up immediately do not parse the html in the forum column...

thisgeek 09-26-2006 05:51 AM

This is awesome. Thanks.

MPDev 09-26-2006 11:17 AM

G_Man, are you talking about the vBAdvanced module or just this mod? I'm confused.

firstrebel 09-26-2006 02:45 PM

I am now lost on what version of 1.11 I have. There was the original and then 2 (?) changes and still on v1.11.

Bob

MPDev 09-26-2006 03:21 PM

Quote:

Originally Posted by firstrebel
I am now lost on what version of 1.11 I have. There was the original and then 2 (?) changes and still on v1.11.

Bob

There were two mods to the 1.11 within the first hour I posted it; you can always grab the current and upload those two files just to be sure you got all the changes.

FFW 09-26-2006 04:43 PM

The latest version, for some reason doesn't seem to be working for me.

http://www.ureshi-now.com/forums/ispy.php

I have modified vaispy.php to ispy.php but have amended the .js file accordingly. I have not made any other amendments other than the page title.

lexx27 09-26-2006 04:56 PM

1.11 doesnt work well. Where can I download 1.10?

G_Man 09-26-2006 06:25 PM

Quote:

Originally Posted by MPDev
G_Man, are you talking about the vBAdvanced module or just this mod? I'm confused.

I get NO feeds in the Module and on the Normal vaispy.php page it shows all the html in titles of the first 15 posts.

MPDev 09-26-2006 06:53 PM

Quote:

Originally Posted by FFW
The latest version, for some reason doesn't seem to be working for me.

http://www.ureshi-now.com/forums/ispy.php

I have modified vaispy.php to ispy.php but have amended the .js file accordingly. I have not made any other amendments other than the page title.

Did you change the number of rows being pulled? Because your html is missing more than a few of the row id's in the table.

row14

and then

row21

where is row 15-20?

MPDev 09-26-2006 06:55 PM

Quote:

Originally Posted by G_Man
I get NO feeds in the Module and on the Normal vaispy.php page it shows all the html in titles of the first 15 posts.

How about a link so I can see what you are talking about?

MPDev 09-26-2006 07:01 PM

I've modified the vaispy.php application in the download to include new code to add empty rows when the initial pull yields less than 20 rows.

This should fix the display issues.

G_Man 09-26-2006 07:53 PM

Quote:

Originally Posted by MPDev
How about a link so I can see what you are talking about?

My Sig is my CMPS Page... www.afterseppuku.com
and
http://www.afterseppuku.com/theforum/vaispy.php is the main screen.

FFW 09-26-2006 07:53 PM

Quote:

Originally Posted by MPDev
Did you change the number of rows being pulled? Because your html is missing more than a few of the row id's in the table.

row14

and then

row21

where is row 15-20?

I didn't change anything but the revised file seems to work fine now.

thisgeek 09-27-2006 08:05 AM

I'm using the latest download (just re-grabbed it) - and I'm having an issue with the $blockforums facility.

If I add more than three exclusions, then the display of vBISpy breaks. Some blank rows are appended to the bottom of the list. Sometimes the most recent entry at the top blanks out after a few seconds, although the links in it are still active if you move your mouse over the area. It also appears that the script stops working properly - ie, no new posts appear.

MPDev 09-27-2006 11:08 AM

G_Man, you have an error in your header:

Expected ',' or '{' but found '/'. on line 385.

Just thought you might want to chekc that out.

You've also set your var vbforum variable wrong, look at the example it should be:

var vburl = '/theforum/';

not:

var vburl = 'theforum';

MPDev 09-27-2006 11:08 AM

Quote:

Originally Posted by thisgeek
I'm using the latest download (just re-grabbed it) - and I'm having an issue with the $blockforums facility.

If I add more than three exclusions, then the display of vBISpy breaks. Some blank rows are appended to the bottom of the list. Sometimes the most recent entry at the top blanks out after a few seconds, although the links in it are still active if you move your mouse over the area. It also appears that the script stops working properly - ie, no new posts appear.

Link?

G_Man 09-27-2006 11:18 AM

Quote:

Originally Posted by MPDev
G_Man, you have an error in your header:

Expected ',' or '{' but found '/'. on line 385.

Just thought you might want to chekc that out.

You've also set your var vbforum variable wrong, look at the example it should be:

var vburl = '/theforum/';

not:

var vburl = 'theforum';

oh... I've edited it soooo many times, just making mistakes now....

Question that I've always wondered... how do I find a line, like like line 385... surely you don't count.

Amenadiel 09-27-2006 11:36 AM

Greetings MPDev, and congratz for the great work.

I'm trying to display the last posts in my site frontend wich runs on Postnuke... but I just cannot make vaispy.php display anything if ran or called from outside the forum path.

I tried copying it to the site root (modifying the "require once" command to adress the full path of global.php), tried an iframe, calling if with an include, with a require, etc and nothing seems to work, it just displays a blank page.

EDIT: finally, it was simpler than I though. I just added a full path call in my frontend in the form of:

require_once('http://www.site.com/forum/vaispy.php');

MPDev 09-27-2006 12:23 PM

Quote:

Originally Posted by G_Man
oh... I've edited it soooo many times, just making mistakes now....

Question that I've always wondered... how do I find a line, like like line 385... surely you don't count.

I edit my files with UltraEdit-32; you might want to look at a decent editor that gives you line numbers. As for the error, the line number came up in the JavaScript Console error dialog in FireFox.

MPDev 09-27-2006 12:27 PM

Quote:

Originally Posted by Amenadiel
Greetings MPDev, and congratz for the great work.

Be sure to click install! :)

Cheertobi 09-27-2006 01:31 PM

Quote:

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

Can you do this also for Photopost vBGallery 2.0?

Tobi

G_Man 09-27-2006 07:58 PM

Quote:

Originally Posted by MPDev
I edit my files with UltraEdit-32; you might want to look at a decent editor that gives you line numbers. As for the error, the line number came up in the JavaScript Console error dialog in FireFox.

Cheers!! I knew you guys were bright, but sheesh!! Line 385!! LOL I'll look into that.. found it using FF and took out a rogue */ Thanks.

MPDev 09-28-2006 11:38 AM

Excellent.

I am making one change the to va_spy.js file in the current build as a couple users complained about not wanting the "subscribed threads only" option. (By the way, anyone tested this to make sure my query is right?)

At line 64 in va_spy.js, I added a condition:

Code:

    if (document.getElementById("subscribe")) {
        if (document.getElementById("subscribe").checked) { querystring = querystring + "&subscribe=1"; }
    }

So that the subscribe option does not have to be displayed if you do not want to display it. You can remove the checkbox option from any template and this will prevent a JavaScript error.

G_Man 09-28-2006 01:39 PM

Have you looked at my main vaispy page?

The first clips still display the HTML.... Not a big deal, but sure clutters up such a pretty Mod....

MPDev 09-28-2006 01:42 PM

What do you mean still displays the HTML? The page looks good to me.

G_Man 09-28-2006 01:49 PM

Quote:

Originally Posted by MPDev
What do you mean still displays the HTML? The page looks good to me.

REALLY??!!

You need to scroll down a bit and the G-Buddy Forum is invisible to non-staff....

Here is a screenshot.

MPDev 09-28-2006 03:37 PM

I take it you use html in your Forum titles?

G_Man 09-28-2006 03:45 PM

Quote:

Originally Posted by MPDev
I take it you use html in your Forum titles?

Some. Makes them all colorful and pretty... and from the sound of it a pain the arse!! LOL

Actually though, it works GREAT with your hack. Like all my Staff forum titles are read, so they really stand out when they pop-up on ispy!!

Its only since you changed it and had first threads pop up instantly that there is a problem. As the feed one at a time they look as they should.

MPDev 09-28-2006 04:21 PM

In vaispy.php, line 166, change:

Code:

    $thread['forum'] = htmlspecialchars_uni($vbulletin->forumcache["$tforumid"]['title']);
to:

Code:

    $thread['forum'] = $vbulletin->forumcache["$tforumid"]['title'];

Daruka 09-28-2006 04:28 PM

Hi MPDev, I gotta say that your mod is incredible. We run a very busy forum (132,000+ members, 1.5+ million posts) and this is a real life saver for our moderator. Thanks for sharing it with the rest of us!

My only question: Is it possible to support colored user names? We have it set up so our staff members show up in a bright blue color so people can quickly distinguish them from normal users. We are using the "Username HTML Markup" fields in the Usergroup Manager to apply the color. If not, no big deal, but it would help to see that info.

Thanks again,
-Daruka

MPDev 09-28-2006 05:26 PM

I assume the query would have to be modified to pull in the user table properties of the lastposter (lastposterid) and then fetch_musername() would have to be called; but I don't have the time to write it out just now.

nymyth 09-28-2006 06:55 PM

^^i have a question MPDev. Is there anyway that posts from a particular forum NOT show up. I have one area where people posts links to their OWN MUSIC. It's a forum cat. whereby you need to be added to a usergroup that allows you to see it.

Right now, that forum and its post contents are visible. Can this be done?

Thank.s

MPDev 09-28-2006 07:17 PM

Sure, look in the vaispy.php script in the configuration area at the $blockforums variable; just put forum ids sperated by commas in that variable.

G_Man 09-28-2006 09:38 PM

Quote:

Originally Posted by MPDev
In vaispy.php, line 166, change:

Code:

    $thread['forum'] = htmlspecialchars_uni($vbulletin->forumcache["$tforumid"]['title']);
to:

Code:

    $thread['forum'] = $vbulletin->forumcache["$tforumid"]['title'];

Works... but...

After the change the CMPS module quit working.

Changed it back and CMPS module started working again.

MPDev 09-28-2006 11:22 PM

Well, how about:

Code:

$thread['forum'] = htmlspecialchars_uni(strip_tags($vbulletin->forumcache["$tforumid"]['title']));
until I can look at it closer.

G_Man 09-28-2006 11:25 PM

Quote:

Originally Posted by MPDev
Well, how about:

Code:

$thread['forum'] = htmlspecialchars_uni(strip_tags($vbulletin->forumcache["$tforumid"]['title']));
until I can look at it closer.


You Rock. That seems to be working just fine on both CMPS and the ispy.php page. :D

Firestar.chkn 09-29-2006 02:04 PM

Any idea why mine won't pick up new posts? I have to refresh the page for it to be picked up. It worked previously, but for some weird reason it won't work now.

Here it is.

Any help would be appreciated.


All times are GMT. The time now is 06:47 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
  • Page Generation 0.01916 seconds
  • Memory Usage 1,833KB
  • 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
  • (7)bbcode_code_printable
  • (17)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