MyBB Community Forums

Full Version: Getting Userdata with MyCode
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.
try to use {$post['username']} (i guess if i am not mistaken) to show the poster username.
(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