It adds a link to the nav bar.BTW you should probably update your post with something like "Install the add-on then navigate to http://www.yourdomain.com/<xfroot>/spy to see the add-on"
It adds a link to the nav bar.BTW you should probably update your post with something like "Install the add-on then navigate to http://www.yourdomain.com/<xfroot>/spy to see the add-on"
You also need to change &last to ?last for it to work. So change /feed&last to /feed?lastIf you edit the js/digitalpoint/spy.js file and change "feed" to "/feed" it should work... Stupid URLs. lol
Will upload a new package in a sec, but that's the only change.
Yeah... working on something for the last=xx already... a little annoying since people without the .htaccess setup for URLs need it to be &... while people that do need it as ?...
if(XenForo_Application::get('options')->useFriendlyUrls){
// you need a question mark
} else {
// you need an ampersand
}
Just made the edit and I'm still seeing nothing appearing. I can't link to the page because I'm testing it on off-line localhost install.
Edit: Just tried the same with /feed added on path and same as others happens. It shows it with no formatting.
View attachment 20851
You also need to change &last to ?last for it to work. So change /feed&last to /feed?last
The problem might've been that I soft-deleted the first post in the thread that actually results in the thread being soft-deleted. This'll log as a deleted post, but it's really a deleted thread. Perhaps a check to see if it's the first post?If it's soft deleted it should show the forum/title... but internally it doesn't track the contents of title, location, etc... it's getting that info via a join to the record. But if the record doesn't exist, you wouldn't end up with much data (soft deletes should show the info still since they actually still exist internally).
Just to follow up on James' question, will you be offering a branding-free version?Also what's the deal with the "XenForo Spy by Digital Point"? Is it removable or does it have to remain intact? (I have no plans to remove it, just figured it should be answered)
Well for the deletion events, we are really just piggybacking XF's moderator log... so if XF logs it as a deleted post in it's moderator log, that's what it will show up as in the Spy.The problem might've been that I soft-deleted the first post in the thread that actually results in the thread being soft-deleted. This'll log as a deleted post, but it's really a deleted thread. Perhaps a check to see if it's the first post?
Maybe someday, but don't really have a setup to really allow it, so not at the moment.Just to follow up on James' question, will you be offering a branding-free version?
foreach ($items as $item)
{
// control the template for each item
}
echo json_encode($output)
<ol class="discussionListItems">
<xen:foreach loop="$items" key="$item">
<xen:include template="spy_item">
</xen:foreach>
</ol>
The problem with that is the feed has up to 25 UNIQUE objects in it... each individual feed line has to be isolated/treated differently because they aren't all instantly injected at once... it inserts them one at a time.Can I make a suggestion?
In DigitalPointSpy_ControllerPublic_Spy::actionFeed() you have this:
PHP:foreach ($items as $item) { // control the template for each item } echo json_encode($output)
It'd be much easier to change the style of the spy if, instead, you just did this in the spy_index template:
then create a template named spy_item and put all of the foreach inside it (well, just the $output[$item['spy_id']] really).HTML:<ol class="discussionListItems"> <xen:foreach loop="$items" key="$item"> <xen:include template="spy_item"> </xen:foreach> </ol>
Suggestions?
We use essential cookies to make this site work, and optional cookies to enhance your experience.