Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 change the value after posting
DanielM Offline
Junior Member
**
Posts: 2
Joined: Jun 2014
Post: #1
change the value after posting
hay,
i added new input to new thread called "username", which users can put there username of one of the forum members and tell him that this thread is about him.
i built all but i have one problem. if the user changes username so it wont saved. i want that after posting the thread, the value of the input username will changed to the uid of the member. how to do that? and where? i can do that but i dont know where to do that. which file and which line.
06-05-2014 06:06 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: change the value after posting
Unfortunately there's not really a nice way to do this without writing your own code.
Ideally, you'd store the user ID into the field, but then there's the issue of translating this to/from the username.
You could theoretically do something with the input formatter, custom input validation and display format if you wrote a custom plugin...

My Blog
(This post was last modified: 06-06-2014 01:54 PM by ZiNgA BuRgA.)
06-06-2014 01:54 PM
Find all posts by this user Quote this message in a reply
DanielM Offline
Junior Member
**
Posts: 2
Joined: Jun 2014
Post: #3
RE: change the value after posting
doesn't matter.. i wrote my own code in newthread.php and built it.
06-06-2014 07:43 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: