• This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

Digital Point Spy

Status
Not open for further replies.
I think this would look better if you did it more like the news feed / alerts. Whereas you display a bunch of rows of data which is controled by handlers for each content type. Instead of the table layout you have.

So for example. Instead of...

View attachment 20882

Have something similar to...

View attachment 20883
Smething like this to make this in essence, the recent activity but with ajax updating would be pretty awesome :)

As it is now is fine, but http://thegeekdistrict.com/spy doesn't look as nice as http://thegeekdistrict.com/recent-activity (formatting-wise)
 
BTW - you should take out the "height:50px" line in spy.css... not sure exactly what I was thinking there. lol

I've updated it for the next version, but not really worth doing a release just for that.
 
You've also got a problem there with breaking the style layout in SPY. Unless it's an issue related to just that custom style you use?

spy-style-problem.webp
 
Possibly a bug?

I have a thread called "^<v" and in the spy it didn't seem to parse the thread title properly.

http://thegeekdistrict.com/spy/

2011-11-04-03h02_27.png
 
Possibly a bug?

I have a thread called "^<v" and in the spy it didn't seem to parse the thread title properly.

http://thegeekdistrict.com/spy/

2011-11-04-03h02_27.png
Open library/DigitalPointSpy/ControllerPublic/Spy.php

Find (line 60):
PHP:
$item['title']
Replace:
PHP:
htmlentities($item['title'])

Does that work?

You might want to use XenForo coding standards and use XenForo_Template_Helper_Core::callHelper('striphtml') though.

Let me know if this works (y)
 
Should probably toss one on forum_title for good measure... not sure why I put one on the username, but nothing else. Probably had something to do with me coding it at 3:30 am. :)
 
Oh, now I remember why I added the height:50px... it's because of the inability for jQuery to calculate the height on it's own for some reason (leads to the weird animation).

I'll see if I can come up with a better way...
 
Perhaps put the JS into a XenForo template and use {xen:calc}, but I think that'd require you to be utilising custom style properties for it to work.
 
Actually, I got it squared away... if you change what was originally "height: 50px", to "width:100%", it seems to work...

Code:
.discussionListItems .itemWrapper {
	display: none;
	width: 100%;
}
Had to do with jQuery temporarily making the block an inline-block when it calculates the height, which gave it a width of 0, so everything was way to big vertically... forcing it out to 100% width works (even while in inline-block mode).
 
Reported posts seem to be in the list, and visible to regular users. Not really desirable I think.
 
Reported posts seem to be in the list, and visible to regular users. Not really desirable I think.
Yea. I was in the process of reporting that.
xenforo.spy.tracker.reported.posts.show.up.webp
There is also no link to the post that is being reported.
I also think it would be more valuable to put the name of the person being reported *NOT* the reportee !
 
The reported posts showing up is intentional... as is the reporter (as opposed to the reportee), since the action was taken by the reporter... but if you don't want it there, you can comment out this line from the Listener/LoadClassDataWriter.php file:

PHP:
//			$extend[] = 'DigitalPointSpy_DataWriter_Report';
 
I'm not sure people reporting posts will be encouraged to do so when it is the reportee not the offendee that is being put on trial. I guess it just depends on the atmosphere of your forum. I feel the main focus of reporting posts is to judge the post, not the reporter.
IMO.
 
Open library/DigitalPointSpy/ControllerPublic/Spy.php

Find (line 60):
PHP:
$item['title']
Replace:
PHP:
htmlentities($item['title'])

Does that work?

You might want to use XenForo coding standards and use XenForo_Template_Helper_Core::callHelper('striphtml') though.

Let me know if this works (y)
Worked.

htmlentities() works fine for me until an 'official' patch is released :)

thanks!
 
I have been unable to get anything to display just yet...

I also don't appear to have a dp_spy table?

Several of the other sites that installed this appear blank to me too, any idea what might be going on?

http://forums.wtf.com/spy/
 
Are you certain there is no dp_spy table? I would suspect you would be getting a SQL error when it tried to read it (make sure you aren't checking for xf_spy)...
 
Status
Not open for further replies.
Top Bottom