MyBB Hacks

Full Version: Using XThreads Custom Thread Fields For Plugin Settings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6
Did you put this kinds of code in your xtdispportal_threads_thread?

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

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:
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.

Forgot to say this:
Put {$xtdispportal_user_avatar} variable if we want to display user avatar in xtdispportal_threads_thread template.
Maybe add this one to the applications list? I didn't see it on there.
Yeah. It seems that I forgot to list this thread Biggrin
Added. Thanks for the info, Lee Smile
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.
Amazing plugin and Tip Guys, Kudos Zinga, RateU and leefish Smile

Here is a demo with thumbnails: pesbrasil.org/comunidade
(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
(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
Pages: 1 2 3 4 5 6
Reference URL's