hello, can add "Sort by: User"
e.g.
User 1 = all his videos
User 2 = all his videos
User 3 = all his videos
User 4 = all his videos
......................
what I must change in order to realize this?
thx
[
attachment=823]
You can find the info in XThreads documentation:
XThreads Documentation Wrote:XThreads can filter forumdisplay by thread starter, last poster, thread icon and thread prefix (MyBB 1.6 only); to do this, supply filterxt_field=value to the URL, where field is either uid, lastposteruid, icon, prefix. For example, forumdisplay.php?fid=2&filterxt_uid=1
Other resource:
http://mybbhacks.zingaburga.com/showthread.php?tid=415
Then modify your
ytvgal_forumdisplay_threadlist template.
Thank you RateU
I changed it in "ytvgal_forumdisplay_thread" (it's better to me) on the last place on profile view. --> look at attachment
PHP Code:
<strong>{$thread['profilelink']} − <a href="{$forumurl_q}filterxt_uid={$thread['uid']}">Alle Themen in diesem Forum finden</a></strong>
|
--Description is in german language--
Yeah, you can do that like that.
Just an additional info, you can use the feature in non XThreads application forums too, as long as XThreads installed on your forum. And you can use the feature in other page too (showthread, profile and etc).
Yet here I am again, with another question xD
I have changed the "xthreads latest videos on index", so that they are displayed on every page. Now I have 3 mysql queries, how can I get rid off the 2 template queries?
http://pastebin.com/BaqukJNs
Try adding this to your plugin:
PHP Code:
global $templatelist;
if(isset($templatelist))
{
$templatelist .= ", ";
}
$templatelist .= "xtlatest_videos, xtlatest_videos_video";
|
Just after any hook.
Can you share your file please?
You commented the necesary lines, change this:
PHP Code:
function xtlatest_videos_tcache(){
global $templatelist;
if(isset($templatelist)){
$templatelist .= ',xtlatest_videos,xtlatest_videos_video';
}
}
|
For this:
PHP Code:
function xtlatest_videos_tcache(){
global $templatelist;
if(isset($templatelist)){
$templatelist .= ", xtlatest_videos, xtlatest_videos_video";
}
}
|