Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Referencing XThreads Fields on Other Pages?
starwingcorona Offline
Junior Member
Posts: 1
Joined: Mar 2017
Post: #1
Referencing XThreads Fields on Other Pages?
I'm trying to get XThreads fields to show up on pages where threads are displayed but XThreads doesn't currently function. The pages in question are:
  • ./usercp.php (Your Latest Threads)
  • ./usercp.php?action=subscriptions (Thread Subscriptions)

I've been trying to edit usercp.php manually for the desired result, but since I'm not exactly experienced with PHP my success has been less than fruitful. Would anyone happen to know a way to make this work? I know it's a tall order but I figure it can't hurt to ask.

If it helps at all, I'm running myBB 1.8.10, XThreads 1.68 and the XThreads field key I'm trying to reference is "desc".
(This post was last modified: 03-13-2017 08:16 AM by starwingcorona.)
03-13-2017 08:13 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Posts: 3,338
Joined: Jan 2008
Post: #2
RE: Referencing XThreads Fields on Other Pages?
There's generally two main things you need to do:
- obtain the thread field data
- format/evaluate the data

For the first, this typically involves modifying the query that gets the threads to join with the threadfield_data table, so that the appropriate field data gets pulled across.

For the second, you can use xthreads_sanitize_disp on each piece of data.
See the xthreads_get_threadfields function in inc/plugins/xthreads.php for an example.

My Blog
04-02-2017 05:35 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: