Thanks, but I can't find where to put the code to add the hook. I can't see an index_end hook either :/
Actually, since I would like then shout box to appear on all the pages on the forums, would it be easier to put the {$dvz_shoutbox} into the end of the header template?
Thanks, but I can't find where to put the code to add the hook. I can't see an index_end hook either :/
Actually, since I would like then shout box to appear on all the pages on the forums, would it be easier to put the {$dvz_shoutbox} into the end of the header template?
Sorry, I'm quite new to this and php :/
The index_end hook is on line 8; if you would like the Shoutbox to be displayed everywhere, you need to put {$dvz_shoutbox} into the header template and change the hook into global_end.
(2015-04-21, 04:49 AM)SerdarErdem Wrote: @Devilshakerz
thanks, but I think there is a problem how this work will be
Thanks, but I can't find where to put the code to add the hook. I can't see an index_end hook either :/
Actually, since I would like then shout box to appear on all the pages on the forums, would it be easier to put the {$dvz_shoutbox} into the end of the header template?
Sorry, I'm quite new to this and php :/
The index_end hook is on line 8; if you would like the Shoutbox to be displayed everywhere, you need to put {$dvz_shoutbox} into the header template and change the hook into global_end.
I've looked at line 8 in dvz_shoutbox.php and the hook not there, yet it functions fine on the index page. Anyway, I added
at line 8 (just before the body) and nothing happens. If I try putting the line of code in 'curly brackets' like all the other bits are in the php file, I get this error:
A potential security issue was found in the template. Please review your changes or contact the MyBB Group for support.
(2015-05-04, 02:11 AM)SomeoneToxic Wrote: Is it safe for SQL injection?
if you type '; or 1=1 /* it just adds it to database .. .doesn't it mean you can SQL inject it?
There are no known security issues. The values are escaped so you can insert any character you want into the message.