Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Using XThreads Custom Thread Fields For Plugin Settings
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #11
RE: Using XThreads Custom Thread Fields For Plugin Settings
Did you put this kinds of code in your xtdispportal_threads_thread?

HTML Code
<img src="{$xtdispportal_img}/thumb160x120" alt="" title="" />


(This post was last modified: 09-21-2010 08:52 AM by RateU.)
09-21-2010 08:44 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #12
RE: Using XThreads Custom Thread Fields For Plugin Settings
You probably want to join on a.aid=td.img where "img" is the key for the image field.

Try this, changing the join condition for xtattachments:


Attached File(s)
.php  xtdispportal.php (Size: 5.26 KB / Downloads: 546)

My Blog
09-21-2010 08:56 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #13
RE: Using XThreads Custom Thread Fields For Plugin Settings
Hi Rate U yes, I used this variable

Code:
<img src="{$xtdispportal_img}/thumb240x180" alt=" " title=" " />


I do have images that size Wink

I shall go to bed now and look at it tomorrow - probably just a silly mistake on my part in the plugin. And I was so sure it was gonna work....sigh.



[Image: leelink.gif]
MYBB1.6 & XThreads
(This post was last modified: 09-21-2010 09:04 AM by leefish.)
09-21-2010 09:03 AM
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: #14
RE: Using XThreads Custom Thread Fields For Plugin Settings
Forgot to say this:
Put {$xtdispportal_user_avatar} variable if we want to display user avatar in xtdispportal_threads_thread template.

10-18-2010 06:51 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #15
RE: Using XThreads Custom Thread Fields For Plugin Settings
Maybe add this one to the applications list? I didn't see it on there.


[Image: leelink.gif]
MYBB1.6 & XThreads
01-06-2011 02:54 AM
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: #16
RE: Using XThreads Custom Thread Fields For Plugin Settings
Yeah. It seems that I forgot to list this thread Biggrin
Added. Thanks for the info, Lee Smile

01-06-2011 04:50 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #17
RE: Using XThreads Custom Thread Fields For Plugin Settings
Optional Update:
Do this only if we are allowing Moderators to set a thread to be displayed in portal.

Create Moderator Tools:
Admin CP -> Configuration -> Moderator Tools -> Add New Thread Tool
  • Name: Display In Portal
  • Name: Display this thread in portal
  • Available in forums: Select in which forum we apply the xtdispportal custom thread field. Related to Applicable Forums setting of the custom thread field.
  • Modify Custom Thread Field(s):
    • Field: xtdispportal
    • Value: Yes

    Code:
    xtdispportal=Yes


Now, we don't need to full edit a thread if we want to display it in portal. Just use the Custom Moderator Tools.

03-19-2011 08:51 AM
Find all posts by this user Quote this message in a reply
AglioEoliO Offline
Junior Member
**
Posts: 39
Joined: Jan 2008
Post: #18
RE: Using XThreads Custom Thread Fields For Plugin Settings
Amazing plugin and Tip Guys, Kudos Zinga, RateU and leefish Smile

Here is a demo with thumbnails: pesbrasil.org/comunidade
(This post was last modified: 04-29-2011 09:19 AM by AglioEoliO.)
04-29-2011 09:19 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #19
RE: Using XThreads Custom Thread Fields For Plugin Settings
(04-29-2011 09:19 AM)AglioEoliO Wrote:  Here is a demo with thumbnails: pesbrasil.org/comunidade

Very nice and unique! Thanks for sharing the demo, AglioEoliO Smile

04-30-2011 03:12 AM
Find all posts by this user Quote this message in a reply
av8r_bra Offline
Junior Member
**
Posts: 11
Joined: Jun 2011
Post: #20
RE: Using XThreads Custom Thread Fields For Plugin Settings
(09-20-2010 06:12 AM)RateU Wrote:  and put this variable in portal template:

Code:
{$xtdispportal_threads}


Sorry for the newbie question, but can it be added anywhere in portal.php, or in the place where you want the threads to show up?

Has anyone tried using this example with ProPortal's portal.php file?

Thanks for Xthreads and its possibilities Yipi
06-08-2011 04:11 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: