Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 how do i bring the Xthread field into the portal?
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #1
how do i bring the Xthread field into the portal?
how do i bring the Xthread field into the portal? with the standard portal announcement?

Quote:{$GLOBALS['threadfields']['post_image']}
09-20-2015 09:40 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: how do i bring the Xthread field into the portal?
With the standard portal announcement, should be the same as in forumdisplay_thread, showthread and postbit/_classic

09-21-2015 04:51 AM
Find all posts by this user Quote this message in a reply
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #3
RE: how do i bring the Xthread field into the portal?
i am sorry can you be more specific?

{$GLOBALS['threadfields']['post_image']}

the standard calls dont work, portals are using

{$announcement['subject']}
09-21-2015 05:34 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: how do i bring the Xthread field into the portal?
Assuming the post_image is an image custom thread field, there is an explanation under the Input Field Type setting when you create or edit the custom field.

The basic usage is by using {$GLOBALS['threadfields']['key']['item']} variable. Replace the key to your Key (in your case is post_image and the item with one of the list in the explanation.
So, for example, if you want to get the image url, you can use {$GLOBALS['threadfields']['post_image']['url']} or if you want to get the Display Format of the field, you can use {$GLOBALS['threadfields']['post_image']['value']}

But if the field accept multiple images, the format is slightly different (you can also find the explanation about it under the Input Field Type setting).

09-21-2015 06:46 AM
Find all posts by this user Quote this message in a reply
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #5
RE: how do i bring the Xthread field into the portal?
i am using it in forumdisplay

{$GLOBALS['threadfields']['post_image']}

and it give me the url without my having to add the ['url']

i tried it in the portal and nothing come up....please add more info thanks
09-21-2015 06:53 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #6
RE: how do i bring the Xthread field into the portal?
What is the type of the field?

09-21-2015 06:56 AM
Find all posts by this user Quote this message in a reply
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #7
RE: how do i bring the Xthread field into the portal?
just a basic text field

i render the image in the templates

Code:
<img src="{$GLOBALS['threadfields']['post_image']}" alt="" title="Click to enlarge" width="100px" height="50px" />

(This post was last modified: 09-21-2015 07:02 AM by ollie2015.)
09-21-2015 06:59 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #8
RE: how do i bring the Xthread field into the portal?
For temporary solution, try to select any forum(s) in Forums to pull announcements from setting (choose Select forums, then select any forum(s) there) instead of choosing All Forums.

09-21-2015 07:18 AM
Find all posts by this user Quote this message in a reply
ollie2015 Offline
Member
***
Posts: 90
Joined: Jan 2015
Post: #9
RE: how do i bring the Xthread field into the portal?
Ohh i am also using force to portal plugin to force just some posts into the portal if that helps
09-21-2015 07:19 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #10
RE: how do i bring the Xthread field into the portal?
If the plugin uses its own templates or query, then you rely to the plugin.

09-21-2015 07:26 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: