-
- 66 Posts
Just thought I'd bump this one as the issue is still there.
-
- 1,154 Posts
I think the tool will not find the id or title or whatever of the current resource while in the sidebar, which doesn't know what thread it is appearing on. I don't think you can find the link with the tool in that place, or its hard, because I don't think code in that place can find the thread ID for the current thread.
The tool must save them by some order, it might be resource number which wouldn't work for the forum, but its not specified in the call as you have it now.
[[LexRating?
&name=`<h4>Rate this thread</h4>`
&group=`[[+discuss.pagetitle]]` <<no this is resource group, the example has 'articles', not the page id title or url. It must use a default for that, hope its url.
&userGroups=`Members` <<this is perhaps needed as it defaults to...empty, dunno what that means
&loadjQuery=`1`
&initialAjax=`0`
]]
-
- 1,154 Posts
Wait I am wrong, the tool Rimo made is in the sidebar and gets other posts from the current board, so you can get that data there. But he is doing a full php snippet for that.
But still, the issue is what data does the tool use to identify the resource/thread, and then you may need to provide it:
[[LexRating?
&name=[[+url]] <<This gets the url in Discuss, but might only work inside the post view
&group=`web` <<this is resource group, the example has 'articles', not the page id title or url.
&userGroups=`Members` <<this is perhaps needed as it defaults to...empty, dunno what that means, but our forum members (also can use the number for the group) may not be included in default user group so you probably need this.
&loadjQuery=`1`
&initialAjax=`0`
]]
If you can't get url in sidebar then you could put in post view (which would be rating each post independently) or use a bit of php like this:
IF 'new thread' then
'[[LexRatingCall]]'
else (nothing)