Thread Rating:
  • 7 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 YouTube Video Gallery
MrBrechreiz Offline
Member
***
Posts: 69
Joined: May 2012
Post: #141
RE: YouTube Video Gallery
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


   
(This post was last modified: 05-14-2012 12:04 AM by MrBrechreiz.)
05-13-2012 11:38 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #142
RE: YouTube Video Gallery
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.

05-14-2012 01:41 AM
Find all posts by this user Quote this message in a reply
MrBrechreiz Offline
Member
***
Posts: 69
Joined: May 2012
Post: #143
RE: YouTube Video Gallery
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']} &minus; <a href="{$forumurl_q}filterxt_uid={$thread['uid']}">Alle Themen in diesem Forum finden</a></strong>


--Description is in german language--



Attached File(s) Thumbnail(s)
   
05-20-2012 09:34 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #144
RE: YouTube Video Gallery
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).

05-21-2012 07:14 AM
Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #145
RE: YouTube Video Gallery
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

[Image: xtqueries.jpg]
05-27-2012 10:31 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #146
RE: YouTube Video Gallery
Try adding this to your plugin:

PHP Code:
1
2
3
4
5
6
global $templatelist;
if(isset($templatelist))
{
$templatelist .= ", ";
}
$templatelist .= "xtlatest_videos, xtlatest_videos_video";


Just after any hook.


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
(This post was last modified: 05-28-2012 06:06 AM by Sama34.)
05-28-2012 06:06 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #147
RE: YouTube Video Gallery
Already got that Ouch
05-28-2012 06:09 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #148
RE: YouTube Video Gallery
Can you share your file please?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
05-28-2012 07:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Zenk Offline
Junior Member
**
Posts: 27
Joined: Nov 2011
Post: #149
RE: YouTube Video Gallery
(05-27-2012 10:31 PM)Zenk Wrote:  http://pastebin.com/BaqukJNs

And raw: http://pastebin.com/raw.php?i=BaqukJNs
(This post was last modified: 05-28-2012 11:20 PM by Zenk.)
05-28-2012 11:19 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #150
RE: YouTube Video Gallery
You commented the necesary lines, change this:

PHP Code:
1
2
3
4
5
6
7
8
9
function xtlatest_videos_tcache(){
	global $templatelist;
	//global $current_page, $templatelist;
	//if($current_page == 'index.php'){
		if(isset($templatelist)){
			$templatelist .= ',xtlatest_videos,xtlatest_videos_video';
		}
	//}
}


For this:

PHP Code:
1
2
3
4
5
6
function xtlatest_videos_tcache(){
	global $templatelist;
	if(isset($templatelist)){
		$templatelist .= ", xtlatest_videos, xtlatest_videos_video";
	}
}


Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
05-29-2012 04:39 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: