MyBB Community Forums
Getting Userdata with MyCode - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Getting Userdata with MyCode (/thread-215068.html)



Getting Userdata with MyCode - rduke - 2017-12-29

Hello! I'm trying to do something with mycode, but it wont work.
And I have no clue how to to this and I can't explain the whole situation right now.

Is something like this possible?

"[divy]TextToHide[/divx]" --> "<div>TextToHide+POSTERSUSERNAME</div>"

Can I get access to the Userinfo in some way? Also the ones I created by my self?


RE: Getting Userdata with MyCode - Wildcard - 2017-12-29

Using standard MyCode, you will not be able to add an information to the post that is not included in the MyCode itself.

If you want to access user info in your regexp replacement then you would need to use a plugin.


RE: Getting Userdata with MyCode - Dark-Power-Invader - 2017-12-29

try to use {$post['username']} (i guess if i am not mistaken) to show the poster username.


RE: Getting Userdata with MyCode - rduke - 2017-12-29

(2017-12-29, 02:36 PM)Wildcard Wrote: Using standard MyCode, you will not be able to add an information to the post that is not included in the MyCode itself.

If you want to access user info in your regexp replacement then you would need to use a plugin.

Okay. I'm not rly into MyBB.. and I wont make a Plugin. I simply need to add some extra variables to the loop(foreach / while or other) , but i cant find it. 

Is it forumdisplay? I can't find any msqli connect there