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 - Digital Point Spy (https://vborg.vbsupport.ru/showthread.php?t=243429)

digitalpoint 01-28-2011 05:56 PM

Quote:

Originally Posted by wipedout (Post 2155630)
any way to make this function more like on this site?

http://www.facepunch.com/fp_ticker.php and if so, how hard would implementing it be?

So pretty much just cut everything our except new posts?

wipedout 01-28-2011 08:16 PM

Quote:

Originally Posted by digitalpoint (Post 2155805)
So pretty much just cut everything our except new posts?

Actually, rather like, removing the preview but making it indicate if you have posted in the thread, or if you have been mentioned in the thread. basically making it a little more under the "keep it simple" principle.

Showing post icons on the thread in question might also be a nice feature.

Other than that, ive been enjoying this plugin for a long time, really really great work!

digitalpoint 01-28-2011 10:57 PM

You can already have the Spy only show threads you are subscribed to (ones you care about). As far as being mentioned in a thread, to be honest that seems kind of well... pointless.

It would be better to have a system that monitored new threads for keywords the user picked (if they wanted to pick their username, then they could, but they could also pick others). And be notified via email. Sitting there watching every thread stream across in hopes someone mentioned your username doesn't seem terribly efficient. Especially considering you literally would have to sit there and watch since after 25 more posts in the forum were made, it would have scrolled off the Spy and you wouldn't see any longer.

wipedout 01-29-2011 04:32 AM

Quote:

Originally Posted by digitalpoint (Post 2155879)
You can already have the Spy only show threads you are subscribed to (ones you care about). As far as being mentioned in a thread, to be honest that seems kind of well... pointless.

It would be better to have a system that monitored new threads for keywords the user picked (if they wanted to pick their username, then they could, but they could also pick others). And be notified via email. Sitting there watching every thread stream across in hopes someone mentioned your username doesn't seem terribly efficient. Especially considering you literally would have to sit there and watch since after 25 more posts in the forum were made, it would have scrolled off the Spy and you wouldn't see any longer.

i have to agree with you, keyword monitoring would be alot better i can see your whole thing with reacting to someone's usename, however i think threads you've posted in (i dont subscribe to all posts i have posted in) i think that'd still be a nbice feature for down the road sometime should it not be too hard to add.

jgt58 01-29-2011 10:56 AM

ever since the update , mine has quit working??? Can you post the old XML?

jgt58 01-29-2011 01:20 PM

uninstalled , making my server load go up 15 points!

digitalpoint 01-29-2011 05:08 PM

Quote:

Originally Posted by jgt58 (Post 2156024)
ever since the update , mine has quit working??? Can you post the old XML?

What's the URL you have it installed at?

jefferis 02-03-2011 10:55 PM

I just installed this product, because vaispy was just conking out and stopped feeding. However, is there a settings page? I need to be able to block certain forums from posting to this feed, which are restricted to managers.

jefferis 02-03-2011 10:57 PM

Trying to make sure I'm subscribed to the thread

Here's our link:
http://www.igotasti.com/vBforum/spy.php

Boofo 02-03-2011 11:26 PM

Quote:

Originally Posted by jefferis (Post 2158458)
I just installed this product, because vaispy was just conking out and stopped feeding. However, is there a settings page? I need to be able to block certain forums from posting to this feed, which are restricted to managers.

It should follow forum permissions. Look at it as a guest.

jefferis 02-04-2011 12:47 AM

Quote:

Originally Posted by Boofo (Post 2158464)
It should follow forum permissions. Look at it as a guest.

Yes, Great! Thanks

digitalpoint 02-04-2011 01:13 AM

Right... as mentioned, it only shows stuff from the forums the user has permission to view, so you don't need to make special permissions for it.

New Joe 02-04-2011 04:54 AM

Quote:

Originally Posted by digitalpoint (Post 2155384)
The 1.1.0 version I just uploaded should handle non-standard characters better. Go ahead and try it out and let me know.

Thanks for your work digitalpoint, I have just installed your up-dated one and it works great.
I left it for 3 hours and it up-dated every post and thread fine.

I still miss the 'Times' of the posts or threads which we have with ispy but i have decided as this one is well supported and the other one is not supported at all i will keep with this one.

But if it isn't a lot of work to do, maybe think about adding the 'Times' part to a next up-dated version of yours.

digitalpoint 02-04-2011 05:38 AM

Well the time thing wouldn't be terribly hard to add, but I'm still not so sure how useful it would be... for an active site, they would all be happening at the same time (more or less "now")... and then for a non-active forum, the times would be so far apart it makes the forum seem really slow (which probably isn't what they want). I just don't really see an upside to it...

New Joe 02-04-2011 07:37 AM

Quote:

Originally Posted by digitalpoint (Post 2158572)
Well the time thing wouldn't be terribly hard to add, but I'm still not so sure how useful it would be... for an active site, they would all be happening at the same time (more or less "now")... and then for a non-active forum, the times would be so far apart it makes the forum seem really slow (which probably isn't what they want). I just don't really see an upside to it...

Maybe just something I am use to with the ispy one.

If it really isn't terribly hard to add, why not just add it (for me:D ) and make it the same as the other features you have with your mod, so they can be turned off if someone didn't want the times showing in the Plug in manager.

Thanks for getting back to me and listening so fast digitalpoint:up:

digitalpoint 02-04-2011 09:25 AM

Well the reason I've been so reluctant to add a preference for it is I'm also an efficiency freak and like to shave nanoseconds off whatever I can... So for a setting that I don't (personally) see much use for, this is the math...

It would take roughly 200 bytes of PHP memory to *have* the setting, so that's just an extra 200 byts of memory that need to be allocated for each and every request. Let's say that allocating that added 1/500,000th of a second to the HTTP request (no idea what it would be, just throwing a number out there). For my site, we have approx 2,500 HTTP requests per second going through the vBulletin init process (we do things with it other than just the forum obviously). So 216M requests/day pulling data from the datastore and dumping it into memory. To the grand scheme of things, we just added a net effect of 432 seconds of unnecessary wait time to HTTP requests for the day just by *having* the setting.

In addition, it would add about 15 bytes to the datastore (which in our case is memcached... so it's going through the network to whatever web server is serving the request). Which is a net effect of 3GB of local network traffic each day for us.

RK KINGKONG 02-04-2011 09:49 PM

installed and working great 4.1.1 thank you sir for the effort n time .

AusPhotography 02-07-2011 02:11 AM

This is our hacked version.
We changed it to add more info, have a control of which User Group can use it and to hook into our Photo competition system

We also changed the javascript to better handle network time outs.

You can have our changes if you wish.

Edit: Attachment removed - new post for new version

New Joe 02-07-2011 08:21 AM

Quote:

Originally Posted by snoopytas (Post 2159636)
This is our hacked version.
We changed it to add more info, have a control of which User Group can use it and to hook into our Photo competition system

We also changed the javascript to better handle network time outs.

You can have our changes if you wish.

Saw this and thought I'd give a try.
It didn't work, no up dates.
Nice with the extra usergroup permissions but I'll stick to digital's supported Mod.

AusPhotography 02-08-2011 12:02 AM

1 Attachment(s)
Quote:

Originally Posted by New Joe (Post 2159687)
Saw this and thought I'd give a try.
It didn't work, no up dates.
Nice with the extra usergroup permissions but I'll stick to digital's supported Mod.

Sorry about that.
New version attached (it had a dependency on our Photo Comp system I've made optional)


Hopefully Digital point could incorporate my changes into his product ((c) permission granted)

Updated version attached.

New Joe 02-08-2011 02:30 AM

Quote:

Originally Posted by snoopytas (Post 2159993)
Sorry about that.
New version attached (it had a dependency on our Photo Comp system I've made optional)


Hopefully Digital point could incorporate my changes into his product ((c) permission granted)

Updated version attached.

Yes that worked.
Have the times showing and can set user group permissions.
Thanks.

HondaATC 02-08-2011 02:41 PM

Please excuse the technically challenged (Myself, :)) asking this question, but what would I need to do to run this inside a widget on the CMS?


edit: Could this be done a "quick and dirty" way with the spy feed on a blank page (No heading or other templates), and then iframe it in a widget? I think it can which is what I'm trying to figure out how to do now...

digitalpoint 02-08-2011 07:05 PM

It's not possible currently to run it inside a widget (unless you change it of course).

Alfa1 02-12-2011 12:28 PM

I was just looking for a way to put ispy into a vbadvanced block.

Do you have any tips on how to accomplish this?

OldSchoolDSL 02-13-2011 02:52 PM

Confirmed to work with jQuery 1.5.0

To apply update, search in template (theme / style) for SPY

Simply change the version number:

PHP Code:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script

I think the original was 1.4.4, so I guest changed it as seen above to 1.5.0

Da-Vinci 02-13-2011 11:07 PM

Has anybody seen an increase in server load with this? I personally can't see it but my host is blaming this for high server loads, just need some opinions please.

digitalpoint 02-13-2011 11:55 PM

You would need an insane amount of people actively looking at it at once... It's VERY low resource... so would be talking thousands of people would need to be looking at it at once on a crappiest shared setup for it to be an issue.

Da-Vinci 02-14-2011 11:05 AM

Thanks I thought as much, just needed some clarification.

NovoCiv 02-14-2011 06:17 PM

This product produces a vulnerability in my Hide Hack that I'd like to patch. I want to put this code in a hook, but I don't know which hook would apply to the spy.php page. Any ideas?
Code:

global $vbphrase, $db;
$post_text = $db->query_first("SELECT pagetext FROM " . TABLE_PREFIX . "post WHERE postid = $post[postid] ORDER BY dateline ASC");
$post_hide['pagetext'] = preg_replace('/\\[hide\\](.*)\\[\/hide\\]/siU', 'Your Message Goes Here', $post_text[pagetext]);
$post['pagetext'] = nl2br(vbchop($post_hide['pagetext'], 200));


digitalpoint 02-14-2011 06:38 PM

There are no spy specific hooks, but all the normal ones that run globally on all pages should be run. If you enable debug mode on your setup, it should tell you exactly what hooks are being run for any page you are on.

NovoCiv 02-14-2011 11:32 PM

But see, I don't want to run that code globally. If I do that the moderators can't communicate with the hide hack because it's always replaced with "Message Hidden".

Is there a way to create a new hook located inside spy.php?

digitalpoint 02-15-2011 12:09 AM

No clue what a hide hack is. But if you need to run some special code only on the spy page for whatever reason, couldn't you just check to see if THIS_SCRIPT == 'spy' and then run it if it is?

OcR Envy 02-17-2011 02:12 PM

Hey digitalpoint,

Any way to update the links to have vbseo parse them? I realize the whole client side / server side just looking for a suggestion.

digitalpoint 02-17-2011 05:43 PM

Not that I know of. Doesn't vbseo redirect automatically to it's special URL?

OcR Envy 02-17-2011 08:18 PM

Sure it does but I don't want it to 301 ;)

Code:

function text2seo(text) {
    text=text.replace(/[^a-z-A-Z-0-9]+/g,'-');
    text=text.toLowerCase();
    return text;
}

Then edit the js file to match your url structure, not easy but works.


Ever think about tracking other events like article, blogs etc.. ?

digitalpoint 02-17-2011 08:43 PM

Quote:

Originally Posted by OcR Envy (Post 2163704)
Sure it does but I don't want it to 301 ;)

Code:

function text2seo(text) {
    text=text.replace(/[^a-z-A-Z-0-9]+/g,'-');
    text=text.toLowerCase();
    return text;
}

Then edit the js file to match your url structure, not easy but works.


Ever think about tracking other events like article, blogs etc.. ?

Truthfully, it doesn't matter a ton if it redirects. The instances that people actually click something from the scrolling spy are pretty rare. And it doesn't muck with search engines because the feed is coming from an AJAX request that is built from JavaScript. And even then the underlying AJAX response is nothing more than numbers (not URLs). So a search engine or any other automated process aren't going to be seeing the content that is withIn the scrolling area.

And yeah... Would like to support additional events, but can't until vBulletin adds hook locations that would support it.

OcR Envy 02-17-2011 11:38 PM

Understandable and agreeable on both, I just like pretty links.

AusPhotography 03-20-2011 05:14 AM

FYI 'Report Post' does not log under vB4.1.2.
I'll have a look at it this week

digitalpoint 03-20-2011 05:57 PM

Reported Post still works fine for me under 4.1.2.

nerowolfe 03-21-2011 01:55 PM

Hi

is perfect for me.

How I can delete the voice in submenu Community>"Spy"?

Thank to all!

EDIT: it's ok now. Ty


All times are GMT. The time now is 11:04 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.01928 seconds
  • Memory Usage 1,837KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (12)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
  • (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