[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 180: Cannot modify header information - headers already sent by (output started at [ROOT]/feed.php:1)
IntegraMOD Home of phpBB Integrated Modifications 2006-06-16T09:53:29-07:00 https://integramod.com/forum/feed.php?f=17&t=221 2006-06-16T09:53:29-07:00 2006-06-16T09:53:29-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=9566#p9566 <![CDATA[Quotes Fix]]> updated to 2.20 from premodded files
updates to security 1.03 from premodded files

I can't find the code that's mentioned in the first post in functions_post.php at all.

1. [ quote ] quote message here [ / quote ]
2. [ quote="ZacFields" ] quote message here [ / quote ]
3. By clicking on the "quote" button on somebody's post.

And another info: Version 1 and 2 work, only clicking on the quote button doesn't. which would be: [quote=""User1";p="17""] for example. No idea how to fix it.

I have the mentioned bbcode.php file installed as it came with one of the updates. I have not edited that file and only made the mysql5 fixes to functions_post.php.

Any ideas? Any help would be appreciated

Statistics: Posted Author: Azrael — Fri Jun 16, 2006 9:53 am


]]>
2006-06-11T21:07:48-07:00 2006-06-11T21:07:48-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=9235#p9235 <![CDATA[Re: Quotes Fix]]> Statistics: Posted Author: Sadasius2 — Sun Jun 11, 2006 9:07 pm


]]>
2006-06-06T10:28:49-07:00 2006-06-06T10:28:49-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8707#p8707 <![CDATA[Re: Quotes Fix]]>
phpbb_2.0.18_to_2.0.19_integramod_1.4.0.txt the following statement:



#
#-----[ FIND ]---------------------------------------------
# There are two instances of similar code, only edit the second one(is under the bbencode_first_pass function).
# Line 437
//

and
for posting replies with quote, or just for quoting stuff.
$text = bbencode_first_pass_pda($text, $uid, '

', '
', '', false, '');
$text = bbencode_first_pass_pda($text, $uid, '/[quote=(".*?")]/is', '[/quote]', '', false, '', "

");

//
and
for posting replies with quote, or just for quoting stuff with an pre-defined post entry
$text = bbencode_first_pass_pda($text, $uid, '/[quote=p=("[0-9]+")]/is', '
', '', false, '', "

");

$text = bbencode_first_pass_pda($text, $uid, '/[quote=("[^"]*?");p=("[0-9]+")]/is', '
', '', false, '', "

");

#
#-----[ REPLACE WITH ]---------------------------------------------
#
//
and
for posting replies with quote, or just for quoting stuff.
$text = bbencode_first_pass_pda($text, $uid, '

', '
', '', false, '');
//

and
for posting replies with quote, or just for quoting stuff with an pre-defined post entry
$text = bbencode_first_pass_pda($text, $uid, '/[quote=p=\\&quot;([0-9]+)\\&quot;]/is', '
', '', false, '', "

");

$text = bbencode_first_pass_pda($text, $uid, '/[quote=\\&quot;(.*?)\\&quot;;p=\\&quot;([0-9]+)\\&quot;]/is', '
', '', false, '', "

");
$text = bbencode_first_pass_pda($text, $uid, '/[quote=\\&quot;(.*?)\\&quot;]/is', '
', '', false, '', "[quote]");




If I do not this change the quotes work correctly. So would be great if someone can check the problem. Sorry can't use bbcode in this posting because of the quote tags in the text.

Greetings
Thorsten

Statistics: Posted Author: Angelus — Tue Jun 06, 2006 10:28 am


]]>
2006-06-06T09:09:16-07:00 2006-06-06T09:09:16-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8701#p8701 <![CDATA[Re: Quotes Fix]]> Statistics: Posted Author: Angelus — Tue Jun 06, 2006 9:09 am


]]>
2006-06-06T08:53:25-07:00 2006-06-06T08:53:25-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8699#p8699 <![CDATA[Quotes Fix]]> Statistics: Posted Author: Eon — Tue Jun 06, 2006 8:53 am


]]>
2006-06-06T08:27:36-07:00 2006-06-06T08:27:36-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8694#p8694 <![CDATA[Re: Quotes Fix]]>

Fatal error: Call to undefined function: dss_rand() in C:XAMPPxampphtdocsforumincludesbbcode.php on line 534


The code in line 534 is:

    $uid = dss_rand();


and dss_rand() is only one time appearing in bbcode.php.

SO what to do now?
Greetings
Thorsten

Statistics: Posted Author: Angelus — Tue Jun 06, 2006 8:27 am


]]>
2006-06-05T08:18:34-07:00 2006-06-05T08:18:34-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8516#p8516 <![CDATA[Quotes Fix]]> Statistics: Posted Author: Eon — Mon Jun 05, 2006 8:18 am


]]>
2006-06-05T07:57:39-07:00 2006-06-05T07:57:39-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8510#p8510 <![CDATA[Re: Quotes Fix]]>
Greetings
Thorsten

Statistics: Posted Author: Angelus — Mon Jun 05, 2006 7:57 am


]]>
2006-06-05T06:48:16-07:00 2006-06-05T06:48:16-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8499#p8499 <![CDATA[Quotes Fix]]>

http://integramod.com/forum/viewtopic.p ... &&start=45

Statistics: Posted Author: Eon — Mon Jun 05, 2006 6:48 am


]]>
2006-06-05T02:21:30-07:00 2006-06-05T02:21:30-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=8460#p8460 <![CDATA[Re: Quotes Fix]]>
Greetings
Thorsten

Statistics: Posted Author: Angelus — Mon Jun 05, 2006 2:21 am


]]>
2006-05-29T11:22:27-07:00 2006-05-29T11:22:27-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=7781#p7781 <![CDATA[Re: Quotes Fix]]>
And yes I have some mods installed changing the bbcode for example the album pack 1.21 and something else. Will try to use the normal bbcode file. But when this works this won't help me because I need the modded file for the integrated mods.


Edit:

This are the changes from Album Pack 1.21

##-----[ FIND ]------------------------------------------------#     $bbcode_tpl['url4'] = str_replace('{DESCRIPTION}', '\3', $bbcode_tpl['url4']);##-----[ AFTER, ADD ]------------------------------------------#// Mighty Gorgon - Full Album Pack - BEGIN     // Get Album PIC based on ID     $bbcode_tpl['fullalbumimg'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['fullalbumimg']);     $bbcode_tpl['albumimg'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimg']);     $bbcode_tpl['albumimgl'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimgl']);     $bbcode_tpl['albumimgr'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimgr']);     $bbcode_tpl['albumimgc'] = str_replace('{IMG_NUM}', '\1', $bbcode_tpl['albumimgc']);// Mighty Gorgon - Full Album Pack - END##-----[ FIND ]------------------------------------------------#     $replacements[] = $bbcode_tpl['url4'];##-----[ AFTER, ADD ]------------------------------------------#     // Mighty Gorgon - Full Album Pack - BEGIN     // [albumimg]image number here[/albumimg]     $album_img_patterns[1] = "#[albumimg]([0-9]+)[/albumimg:$uid]#si";     $album_img_replacements[1] = $bbcode_tpl['albumimg'];       // [albumimgl]image number here[/albumimgl]     $album_img_patterns[2] = "#[albumimgl:$uid]([0-9]+)[/albumimgl:$uid]#si";     $album_img_replacements[2] = $bbcode_tpl['albumimgl'];       // [albumimgr]image number here[/albumimgr]     $album_img_patterns[3] = "#[albumimgr:$uid]([0-9]+)[/albumimgr:$uid]#si";     $album_img_replacements[3] = $bbcode_tpl['albumimgr'];       // [albumimgc]image number here[/albumimgc]     $album_img_patterns[4] = "#[albumimgc:$uid]([0-9]+)[/albumimgc:$uid]#si";     $album_img_replacements[4] = $bbcode_tpl['albumimgc'];     // site image-end       // [fullalbumimg]image number here[/fullalbumimg]     $album_img_patterns[5] = "#[fullalbumimg:$uid]([0-9]+)[/fullalbumimg:$uid]#si";     $album_img_replacements[5] = $bbcode_tpl['fullalbumimg'];       $text = preg_replace($album_img_patterns, $album_img_replacements, $text);     // Mighty Gorgon - Full Album Pack - END##-----[ FIND ]------------------------------------------------#     $text = preg_replace("#[img]((http|ftp|https|ftps)://)([^ ?&=#"nrt<]*?(.(jpg|jpeg|gif|png)))[/img]#sie", "'[img]\1' . str_replace(' ', '%20', '\3') . '[/img]'", $text);##-----[ AFTER, ADD ]------------------------------------------#     // Mighty Gorgon - Full Album Pack - BEGIN     // [albumimg]album image id here[/albumimg]     $text = preg_replace("#[fullalbumimg]([0-9]+)[/fullalbumimg]#sie", "'[fullalbumimg:$uid]\1[/fullalbumimg:$uid]'", $text);     $text = preg_replace("#[albumimg]([0-9]+)[/albumimg]#sie", "'[albumimg:$uid]\1[/albumimg:$uid]'", $text);     $text = preg_replace("#[albumimgl]([0-9]+)[/albumimgl]#sie", "'[albumimgl:$uid]\1[/albumimgl:$uid]'", $text);     $text = preg_replace("#[albumimgr]([0-9]+)[/albumimgr]#sie", "'[albumimgr:$uid]\1[/albumimgr:$uid]'", $text);     $text = preg_replace("#[albumimgc]([0-9]+)[/albumimgc]#sie", "'[albumimgc:$uid]\1[/albumimgc:$uid]'", $text);     // Mighty Gorgon - Full Album Pack - END



This are the changes from the image resizer I found on the old site:

# #-----[ FIND ]------------------------------------------ #  $bbcode_tpl = null;  # #-----[ AFTER, ADD ]------------------------------------------ #  // mod img size add function makeimgsize ( $width, $height ) {    global $board_config;        $size = '';        // check for smallness    if ( $width < $board_config['postimg_width'] && $height <board_config> $height )    {       if ( $board_config['postimg_width'] < $width )       {          $size = 'width="' . $board_config['postimg_width'] . '"';       }    }else    {       if ( $board_config['postimg_height'] <height> $img )    {       $stuff = $matches[1][$i];       $stuff = explode( ':', $stuff );       if ( count( $stuff ) != 4 )       { // old image or something          $post = preg_replace( "#[img]([^?].*?)[/img]#i", $bbcode_tpl['img'], $post );       }       switch($stuff[0])       {          case '=right':             $align = $lang['RIGHT'];             break;          case '=center':             $align = 'center';             break;          case '=left':               default:             $align = $lang['LEFT'];          break;       }       $width = $stuff[1];       $height = $stuff[2];       $size = makeimgsize( $width, $height );               if ( $size != 'SMALL' )       {          $replace = $bbcode_tpl['thmbimg'];          $seek = array( '{IMAGE}', '{WIDTH}', '{HEIGHT}', '{SIZE}', '{NOTICE}', '{ALIGN}' );          $with = ( !empty( $size ) ) ? array( $matches[2][$i] , $width, $height, $size, $lang['postimg_clickme'], $align ) : array( $matches[2][$i] , $width, $height, $size, '', $align );          $replace = str_replace( $seek, $with, $replace );       }       else       {          $replace = str_replace( '1', $matches[2][$i], $bbcode_tpl['img'] );       }       $post = str_replace( $img, $replace, $post );    }            return $post; } // mod img size end  # #-----[ FIND ]------------------------------------------ #  $patterns[] = "#[img]([^?].*?)[/img]#i";  # #-----[ BEFORE, ADD ]------------------------------------------ #  // mod img size replace with call to image parsing function $text = image_parse ( $text, $uid );  # #-----[ FIND ]------------------------------------------ #  $text = preg_replace("#[img]  # #-----[ BEFORE, ADD ]------------------------------------------ #      // mod max img size changed the first pass thingo    preg_match_all( "#[(img.*?)]((http|ftp|https|ftps)://)([^ ?&=#"nrt<]*?(.(jpg|jpeg|gif|png)))[/img]#sie", $text, $matches );    // now we go through these matches and do what's needed    foreach ( $matches[0] as $i => $m )    {       // easier use       $tag = $matches[1][$i];       $url1 = $matches[2][$i];       $url2 = $matches[4][$i];               // if we already tagged this one then we leave it be ;)       preg_match( '#img.*?:(d+):(d+)#i', $tag, $match );       if ( empty( $match ) )       {          // get the size so we can store it          if ( !$size = @getimagesize( $url1 . $url2 ) )          { // image will not get resized             $width = '';             $height = '';          }          else          {             $width = $size[0];             $height = $size[1];          }       }       else       { // we already have the size          $width = $match[1];          $height = $match[2];       }       $tag = explode( ':', $tag ); // remove any possible left over : stuff       $tag = $tag[0];       // lastly we replace it within the text       $text = str_replace( $m, '[' . $tag . ':' . $width . ':' . $height . ':' . $uid . ']' . $url1 . $url2 . '[/img]', $text );    }  # #-----[ IN-LINE FIND ]------------------------------------------ #  $text  # #-----[ IN-LINE BEFORE, ADD ]------------------------------------------ #  //  # #-----[ AFTER, ADD ]------------------------------------------ #  // end mod img size changes


I'm no coder so I will probably not find the problem.

Greetings
Thorsten

Statistics: Posted Author: Angelus — Mon May 29, 2006 11:22 am


]]>
2006-05-29T11:14:16-07:00 2006-05-29T11:14:16-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=7778#p7778 <![CDATA[Quotes Fix]]>
Have you checked to see that your bbcode.php file matches the premodded file? If not, and if your forum is not been manually modded you should save a backup copy of your bbcode.php file and then try uploading the pre-modded file from a fresh install zip of 1.4.0 and see if that solves your problem.

Zac

Statistics: Posted Author: ZacFields — Mon May 29, 2006 11:14 am


]]>
2006-05-29T09:50:13-07:00 2006-05-29T09:50:13-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=7761#p7761 <![CDATA[Re: Quotes Fix]]>
1. work
2. does not work
3. does not work

after using the fix of the first posting here.

What to do?

Statistics: Posted Author: Angelus — Mon May 29, 2006 9:50 am


]]>
2006-05-29T08:50:46-07:00 2006-05-29T08:50:46-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=7744#p7744 <![CDATA[Quotes Fix]]>
I upgraded from 1.3.2d to 1.4.0 and I had this problem where the quotes would not work. I applied the fix provided in the first post of this topic and they work now.

It should be noted that applying the fix does *not* fix the quotes that are already posted, but you will need to test the functionality by trying your quotes in these 3 ways:

1. [ quote ] quote message here [ / quote ]
2. [ quote="ZacFields" ] quote message here [ / quote ]
3. By clicking on the "quote" button on somebody's post.

It's important to try all 3 ways because each of the 3 ways is a different code obviously and it will give you a better indicator of where the problem lies if only one or two of the 3 methods works and one of them doesn't.

Zac

Statistics: Posted Author: ZacFields — Mon May 29, 2006 8:50 am


]]>
2006-05-25T06:41:28-07:00 2006-05-25T06:41:28-07:00 https://integramod.com/forum/viewtopic.php?t=221&p=7274#p7274 <![CDATA[Re: Quotes Fix]]>
Thanks Teelk and Found it! <img>

Statistics: Posted Author: Driver 7 — Thu May 25, 2006 6:41 am


]]>