Quote:----- [ OPEN ] -------------------------
inc/functions.php
----- [ FIND ] -------------------------
function domycode($message, $allowimgcode="yes") {
global $theme;
----- [ REPLACE WITH ] -----------------
function domycode($message, $allowimgcode="yes") {
global $theme, $mybb;
----- [ FIND ] -------------------------
$message = str_replace("
", "<hr size=\\"1\\">", $message);
----- [ AFTER, ADD ] -------------------
$message = str_replace("[you]", $mybb[username], $message);
----- [ SAVE AND CLOSE ALL FILES ] -----
I search the whole document and could only find this:
Line 721:
function domycode($message, $allowimgcode="yes")
{
global $theme, $settings;
Is this the correct place or is it somewhere else?? Around what lines are the code??
k776
Yes, it's the same function, but it's changed a little since RC2.
So what should it be??
function domycode($message, $allowimgcode="yes") {
global $theme, $mybb, $settings;
Cool, it works.
You might want to update it
k776
As I've said, I'm in the process of updating.
Can you update the install file to this please (code changed in RC4 so I just redid the find parts)
Quote:----- [ OPEN ] -------------------------
inc/functions_post.php
----- [ FIND ] -------------------------
function domycode($message, $allowimgcode="yes")
{
global $theme, $settings;
----- [ REPLACE WITH ] -----------------
function domycode($message, $allowimgcode="yes")
{
global $theme, $mybb, $settings;
----- [ FIND ] -------------------------
$message = str_replace("
", "<hr size=\\"1\\" />", $message);
----- [ AFTER, ADD ] -------------------
$message = str_replace("[you]", $mybb['username'], $message);
----- [ SAVE AND CLOSE ALL FILES ] -----
Eom.
Install.txt file has been updated.
thx