How can i create a location for a custom page? When i say location i mean (Whos Online) it shows a location on the forum and what they are doing. I made a custom page for dvz_shoutbox as a sub page. However it shows people as unkown location when on that page. I would like it to say something like "Chat"
How to create a location for custom page
|
2017-04-01, 01:57 PM
thanks for hte link
Where do these actual functions get executed? And what does the hook contain? Something like?
2017-04-01, 02:29 PM
Is the add_hook like a hash map linking the execution at the point of run_hook and the definition of the hash map at add_hook linking your string (in my case "blah") to the functions?
For example i editing /inc/plugins/dvz_shoutbox.php and added the following
and in my custom page in my mybb root i have shoutbox.php This doesnt show an error, or warning, etc. However it is not doing anything. I am not sure if it is a hook problem or the functions are not correct?I found out how to do it by hard coding it https://community.mybb.com/thread-36884.html Works and seems much more simpler to add cases for you custom pages than learning the plugin process.
2017-04-02, 12:32 AM
I wouldn't recommend looking at the DVZ ones as examples because they are written a bit odd. Learning the plugin process is better than doing core file edits because each time you update the forum, you'll need to apply the edits again.
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)