Not Solved [You] tag
#1
Not Solved
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
Reply
#2
Not Solved
Yes, it's the same function, but it's changed a little since RC2.
Reply
#3
Not Solved
So what should it be??
function domycode($message, $allowimgcode="yes") {
global $theme, $mybb, $settings;
Reply
#4
Not Solved
Yes, I assume so.
Reply
#5
Not Solved
Cool, it works.

You might want to update it

k776
Reply
#6
Not Solved
As I've said, I'm in the process of updating.
Reply
#7
Not Solved
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.
Reply
#8
Not Solved
Install.txt file has been updated.
Reply
#9
Not Solved
thx Big Grin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)