Sub Menu
Links Menu
Online Users

In total there are 470 users online :: 2 registered, 0 hidden and 468 guests

Most users ever online was 1091 on Wed Aug 16, 2023 5:27 pm

Registered users: Bing [Bot], Majestic-12 [Bot] based on users active over the past 60 minutes

phpBB 2.0.21 update for IntegraMOD 1.4.0

Support for IntegraMOD 140

Moderator: Integra Moderator

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 1:05 pm

"Teelk";p="11694" wrote:That line should be within the prepare_message function. You're prepare_message function is quite a bit different then it should be. Have you added any MODs that would have changed this function?


the only mod what i have installed once (long time ago ) is the country mod flags forum IM nothing else, but without the change in the first part all seems to function well, I hope only that in the future i wont get any problems, until now i always manualy upgraded to the newest version of phpbb and never had any problems until the upgrade now from 2.0.20 to 2.0.21

before i only edited files when i had problems with mysql 5 you helped me before with this issue do not know anymore if that was with this file <img>
Last edited by Juppertje on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Teelk » Wed Jul 12, 2006 1:12 pm

Ok, country flags shouldn't change that function, so I don't know where the discrepency lies. You can try replacing your prepare_message function with the following one and see if everything still works...
Code: Select all
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0){     global $board_config, $html_entities_match, $html_entities_replace;       //     // Clean up the message     //     $message = trim($message);       if ($html_on)     {         // If HTML is on, we try to make it safe         // This approach is quite agressive and anything that does not look like a valid tag         // is going to get converted to HTML entities         $message = stripslashes($message);         $html_match = '#<[^w<40>#';         $matches = array();           $message_split = preg_split($html_match, $message);         preg_match_all($html_match, $message, $matches);           $message = '';           foreach ($message_split as $part)         {             $tag = array(array_shift($matches[0]), array_shift($matches[1]), array_shift($matches[2]));             $message .= preg_replace($html_entities_match, $html_entities_replace, $part) . clean_html($tag);         }           $message = addslashes($message);         $message = str_replace('&quot;', '&quot;', $message);     }     else     {         $message = preg_replace($html_entities_match, $html_entities_replace, $message);     }       if($bbcode_on && $bbcode_uid != '')     {         $message = bbencode_first_pass($message, $bbcode_uid);     }       return $message;}
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 1:38 pm

sorry i do not understand what you mean are we talking about the same file includes/functions_post.php ?

My file is much longer then the part you show me above here <img>


do you mean this part to replace with your part?

[code]function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0){     global $board_config, $html_entities_match, $html_entities_replace;       //     // Clean up the message     //     $message = trim($message);       if ($html_on)     {         $allowed_html_tags = split(',', $board_config['allow_html_tags']);           $end_html = 0;         $start_html = 1;         $tmp_message = '';         $message = ' ' . $message . ' ';           while ($start_html = strpos($message, '<', $start_html))         {             $tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($message, $end_html + 1, ($start_html - $end_html - 1)));               if ($end_html = strpos($message, '>', $start_html))             {                 $length = $end_html - $start_html + 1;                 $hold_string = substr($message, $start_html, $length);                   if (($unclosed_open = strrpos(' ' . $hold_string, '<')) != 1)                 {                     $tmp_message .= preg_replace($html_entities_match, $html_entities_replace, substr($hold_string, 0, $unclosed_open - 1));                     $hold_string = substr($hold_string, $unclosed_open - 1);                 }                   $tagallowed = false;                 for ($i = 0; $i < sizeof($allowed_html_tags); $i++)                 {                     $match_tag = trim($allowed_html_tags[$i]);                     if (preg_match('#^</?' . $match_tag . '[> ]#i', $hold_string))                     {                         $tagallowed = (preg_match('#^</?' . $match_tag . ' .*?(style[ ]*?=|on[w]+[ ]*?=)#i', $hold_string)) ? false ]
Last edited by Juppertje on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Teelk » Wed Jul 12, 2006 1:45 pm

Yes, yours is incorrect, replace it with the code I provided and see if your forum is still ok.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 1:51 pm

"Teelk";p="11702" wrote:Yes, yours is incorrect, replace it with the code I provided and see if your forum is still ok.



i now have placed the file back with your changes and still works fine as before with the old file
Last edited by Juppertje on Wed Jul 12, 2006 1:55 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 1:54 pm

oops got an error now if i want to post a reply

Fatal error: Call to undefined function: clean_html() in /var/www/www.mysite.nl/forum/includes/functions_post.php on line 180
Last edited by Juppertje on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Teelk » Wed Jul 12, 2006 1:57 pm

You're functions_post.php seems to be out of date. The function clean_html was added in 2.0.20. I suggest overwriting your functions_post.php with the premodded one from the update.
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 2:03 pm

"Teelk";p="11706" wrote:You're functions_post.php seems to be out of date. The function clean_html was added in 2.0.20. I suggest overwriting your functions_post.php with the premodded one from the update.


i replaced the file now with the new file from the map premoded and i got still the same error <img>

Fatal error: Call to undefined function: clean_html() in /var/www/www.mysite.nl/forum/includes/functions_post.php on line 180
Last edited by Juppertje on Wed Jul 12, 2006 11:26 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Teelk » Wed Jul 12, 2006 2:06 pm

Ok, I don't know what's happening... the clean_html function is in the premodded functions_post.php and therefore that message shouldn't be happening.

Are you sure that you updated to 2.0.20 before trying this update?
Last edited by Teelk on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
User avatar
Teelk
Dev Team
Dev Team
 
Posts: 1309
Likes: 0 post
Liked in: 0 post
Joined: Tue Mar 14, 2006 5:25 pm
Cash on hand: 0.00
Location: Canada

PostAuthor: Unregistered » Wed Jul 12, 2006 2:07 pm

whats your previous version? is it 2.0.20 ?
Last edited by Unregistered on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 1:51 pm
Cash on hand: 0.00

PostAuthor: Unregistered » Wed Jul 12, 2006 2:07 pm

ops.. teelk.. heh
Last edited by Unregistered on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 1:51 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 2:08 pm

"Teelk";p="11708" wrote:Ok, I don't know what's happening... the clean_html function is in the premodded functions_post.php and therefore that message shouldn't be happening.

Are you sure that you updated to 2.0.20 before trying this update?


yes i did a while ago when 2.0.20 was released here maybe you can post here a complete file and i wil try to place that maybe that will sove the problem
Last edited by Juppertje on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

PostAuthor: Unregistered » Wed Jul 12, 2006 2:09 pm

i tried premodded files when i was tryin to upgrade to 2.0.20.. and codes from previous patches were missing.. i rather go for the manual code updates..
Last edited by Unregistered on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 1:51 pm
Cash on hand: 0.00

PostAuthor: Unregistered » Wed Jul 12, 2006 2:13 pm

give us ur site link.. il check the version <img>
Last edited by Unregistered on Wed Dec 31, 1969 4:00 pm, edited 1 time in total.
J O N H | P L A Y E R

Unregistered
Sr Integra Member
Sr Integra Member
 
Posts: 254
Likes: 0 post
Liked in: 0 post
Joined: Wed Jun 07, 2006 1:51 pm
Cash on hand: 0.00

Re: phpBB 2.0.21 update for IntegraMOD 1.4.0

PostAuthor: Juppertje » Wed Jul 12, 2006 2:17 pm

Last edited by Juppertje on Wed Jul 12, 2006 11:27 pm, edited 1 time in total.

Juppertje
Integra Member
Integra Member
 
Posts: 113
Likes: 0 post
Liked in: 0 post
Joined: Sat May 20, 2006 12:12 pm
Cash on hand: 0.00

PreviousNext

Return to IntegraMOD 140

Who is online

Registered users: Bing [Bot], Majestic-12 [Bot]

cron