Posts: 2,277
Threads: 111
Joined: Jun 2004
Reputation:
2
2004-08-10, 06:43 AM
(This post was last modified: 2004-08-10, 06:47 AM by ipab.)
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
Posts: 2,098
Threads: 70
Joined: Jun 2004
Reputation:
11
2004-08-10, 10:46 AM
Yes, it's the same function, but it's changed a little since RC2.
Posts: 2,277
Threads: 111
Joined: Jun 2004
Reputation:
2
2004-08-10, 08:39 PM
So what should it be?? function domycode($message, $allowimgcode="yes") {
global $theme, $mybb, $settings;
Posts: 2,098
Threads: 70
Joined: Jun 2004
Reputation:
11
2004-08-10, 08:40 PM
Posts: 2,277
Threads: 111
Joined: Jun 2004
Reputation:
2
2004-08-10, 08:49 PM
Cool, it works.
You might want to update it
k776
Posts: 2,098
Threads: 70
Joined: Jun 2004
Reputation:
11
2004-08-10, 08:54 PM
As I've said, I'm in the process of updating.
Posts: 2,277
Threads: 111
Joined: Jun 2004
Reputation:
2
2004-10-14, 07:33 PM
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.
Posts: 2,098
Threads: 70
Joined: Jun 2004
Reputation:
11
2004-10-14, 10:38 PM
Install.txt file has been updated.
Posts: 2,277
Threads: 111
Joined: Jun 2004
Reputation:
2
2004-10-14, 11:49 PM
thx
|