Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 XThreads input value into global user value
Lilz Offline
Junior Member
**
Posts: 2
Joined: Mar 2018
Post: #1
XThreads input value into global user value
Hello o/

Is it possible to write XThreads input value (for example {$GLOBALS['threadfields']['mykey']}) into value assigned to specific user (author of post)?
I need only one value of 'mykey' at time, so its ok to overwrite it. I also want to make this value easly to change with every post, so thats why I dont want to use custom profile fields (cause it takes so much time to go to profile editor, save changes and then go back to topic).
03-09-2018 11:02 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: XThreads input value into global user value
I'm not sure what exactly do you want to achieve.

Here is a basic explanation so you can decide whether it is possible or not:

1. You create thread A with value X for mykey thread field.
2. You create thread B with value y for mykey thread field.

Whenever you view the thread A, by default, the mykey value is always x.
Whenever you view the thread B, by default, the mykey value is always y.

03-10-2018 05:59 AM
Find all posts by this user Quote this message in a reply
Lilz Offline
Junior Member
**
Posts: 2
Joined: Mar 2018
Post: #3
RE: XThreads input value into global user value
I see...

I wanted to:

Create any thread where user can reply giving value X for mykey
Value X is visible on user's profile or/and on every that user's postbit near avatar etc.
User can change/overwrite mykey value for that user with new post

I tried before somehow place form with one of custom profile fields in newreply template, but I dont know mybb structure well, so I failed Frown
03-10-2018 07:17 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: XThreads input value into global user value
The main focus of XThreads is related to threads, not user's information.

03-11-2018 02:57 AM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #5
RE: XThreads input value into global user value
I think he wants to create a thread field that when updated, one of the author's profile fields will be filled with that same input.

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
03-15-2018 03:55 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: #6
RE: XThreads input value into global user value
Yeah, I know that with his last reply:

(03-10-2018 07:17 AM)Lilz Wrote:  Create any thread where user can reply giving value X for mykey
Value X is visible on user's profile or/and on every that user's postbit near avatar etc.
User can change/overwrite mykey value for that user with new post

The main focus is with the new reply. I don't think that it is the main focus of XThreads. CMIIW.

03-16-2018 02:48 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: