|
Page 1 of 1
|
Pete_Z 
Joined: January 2007
Posts: 46
|
 FAP SUPPORT - [ Solved ] Error When Viewing Pic With Comments Only
Hello, hopefully this post makes it and I wont get banned agian
Okay.. I been having this problem since I installed. when viewing a picture, everyithing is fine. normal. but when viewing a picture that has a comment, I get the following errors in my header:
Warning: strpos() [function.strpos]: Empty delimiter. in /home/xPo0/public_html/forum/album_mod/album_bbcode.php on line 2788
About 80+ of these... then the last are:
Warning: Cannot modify header information - headers already sent by (output started at /home/xPo0/public_html/forum/album_mod/album_bbcode.php:2788) in /home/xPo0/public_html/forum/includes/page_header.php on line 925
Warning: Cannot modify header information - headers already sent by (output started at /home/xPo0/public_html/forum/album_mod/album_bbcode.php:2788) in /home/xPo0/public_html/forum/includes/page_header.php on line 927
Warning: Cannot modify header information - headers already sent by (output started at /home/xPo0/public_html/forum/album_mod/album_bbcode.php:2788) in /home/xPo0/public_html/forum/includes/page_header.php on line 928
lines 928 and 927
header ('Expires: 0');
header ('Pragma: no-cache');
album_bbcode.php - hmm, couldn't I use phpbb bbcode.php instead?
Last edited by Pete_Z on Sun 04 Feb, 2007 08:02; edited 1 time in total |
#1 Tue 16 Jan, 2007 08:06 |
|
Sponsors

|
Icy Phoenix is an open source project, you can show your appreciation and support future development by donating to the project.
|
|
andrea75 
Joined: August 2006
Posts: 379
Location:  Perugia
|
 Re: Error When Viewing Pic With Comments Only
What version of forum you are using?
I don't have this error on Icy Phoenix 1.0.6.6
____________ My Icy forum: www.lineameteo.it
Staff Member @ IcyPhoenix.com & IcyPhoenix.it
|
#2 Tue 16 Jan, 2007 09:04 |
|
Pete_Z 
Joined: January 2007
Posts: 46
|
 Re: Error When Viewing Pic With Comments Only
Regular phpbb 2.0.22
|
#3 Tue 16 Jan, 2007 09:25 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: Error When Viewing Pic With Comments Only
The first error is the one of interest.... ignore the 80 plus others
Have you tried re-uploading album_bbcode.php ?
|
#4 Tue 16 Jan, 2007 23:40 |
|
Pete_Z 
Joined: January 2007
Posts: 46
|
 Re: Error When Viewing Pic With Comments Only
Hi Artie, Yes I've even re downloaded FAP and overwrote album_bbcode.php just to be sure.
I commented out lines in album_bbcode.php untill I no longer got that error, but all that did was disable my smilies. what's wrong with FAP using phpbb's bbcode.php ?
|
#5 Thu 18 Jan, 2007 05:28 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: Error When Viewing Pic With Comments Only
If I remember correctly (from MG.com) you were concernd that FAP and the smiley managment MOD may have a conflict.
I'm think that you may need to speak with MG about this..... I do not have a clue.
Unforntunately he is away at this time. Try bumping this thread around Monday of next week.
|
#6 Thu 18 Jan, 2007 21:07 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: Error When Viewing Pic With Comments Only
album_bbcode.php - hmm, couldn't I use phpbb bbcode.php instead?
No... because standard bbcode.php could be difficult to be integrated if you have modified it... that's why I have created a new bbcode file just for FAP.
Can you please tell me which lines you have commented out so I can check what could be wrong with your configuration?
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#7 Tue 23 Jan, 2007 01:45 |
|
Pete_Z 
Joined: January 2007
Posts: 46
|
 Re: Error When Viewing Pic With Comments Only
The only reason I think it was the smiley managment MOD was, because of the code I had to comment out has most to do with smilies. But I do not know for sure. I overwrote fresh copies of bbcode.php and still had the same problem.
Here is what I commented out in album_bbcode.php
There may be another line, but these are pretty much it...
//$pos = strpos($this->html, $code);
while($pos !== false)
{
$valid = false;
// check previous character
$prev_char = $pos > 0 ? substr($this->html, $pos - 1, 1) : '';
if(in_array($prev_char, $valid_chars_prev))
{
// check next character
$next_char = substr($this->html, $pos + $code_len, 1);
if(in_array($next_char, $valid_chars_next))
{
// make sure we aren't inside html code
//$pos1 = strpos($this->html, '<pos>html, '>', $pos + $code_len);
if($pos2 === false || ($pos1 && $pos1 < $pos2))
{
// make sure we aren't inside nosmilies zone
//$pos1 = strpos($this->html, BBCODE_NOSMILIES_START, $pos + $code_len);
//$pos2 = strpos($this->html, BBCODE_NOSMILIES_END, $pos + $code_len);
So when I do this, smilies are not :usable: text is, and no error.
|
#8 Wed 31 Jan, 2007 10:01 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: Error When Viewing Pic With Comments Only
Wonder if this missing line is the culprit.
bbcode wrote: $pos = strpos($this->html, $code);
while($pos !== false)
{
$valid = false;
// check previous character
$prev_char = $pos > 0 ? substr($this->html, $pos - 1, 1) : '';
if(in_array($prev_char, $valid_chars_prev))
{
// check next character
$next_char = substr($this->html, $pos + $code_len, 1);
if(in_array($next_char, $valid_chars_next))
{
// make sure we aren't inside html code
$pos1 = strpos($this->html, '<', $pos + $code_len);
$pos2 = strpos($this->html, '>', $pos + $code_len);
if($pos2 === false || ($pos1 && $pos1 < $pos2))
{
// make sure we aren't inside nosmilies zone
$pos1 = strpos($this->html, BBCODE_NOSMILIES_START, $pos + $code_len);
$pos2 = strpos($this->html, BBCODE_NOSMILIES_END, $pos + $code_len);
|
#9 Thu 01 Feb, 2007 00:46 |
|
Pete_Z 
Joined: January 2007
Posts: 46
|
 Re: Error When Viewing Pic With Comments Only
Wooo! I figured a fix without disabling my smilies!
In album_bbcode.php I have to comment in line 2788
if(strpos($this->text,$this->allowed_smilies[$i]['code']) !== false)
and add a @ to line 2810 ( a little trick I learned from CyberAlian )
Doesn't get rid of the problem, but hides it. I think that's how it goes anyway.
$pos = @strpos($this->html, $code);
Thanks for you time Artie, and thanks to Mighty Gorgon for this great Photo Album
|
#10 Sun 04 Feb, 2007 07:56 |
|
Artie 
Joined: January 2007
Posts: 833
Location:  Lone Star State
|
 Re: [ Solved ] Error When Viewing Pic With Comments Only
Glad you finally got it going your way.
Only wish we could have helped to get you fixed your problem fixed sooner.
|
#11 Sun 04 Feb, 2007 15:14 |
|
Mighty Gorgon 
Luca Libralato
Joined: August 2006
Posts: 7192
Location:  Borgo San Michele
|
 Re: [ Solved ] Error When Viewing Pic With Comments Only
Glad you finally got it going your way.
Only wish we could have helped to get you fixed your problem fixed sooner. 
Another great job my friend...
____________ Luca
SEARCH is the quickest way to get support.
Icy Phoenix ColorizeIt - CustomIcy - HON
|
#12 Mon 05 Feb, 2007 00:38 |
|
|
Page 1 of 1
|
Was this topic useful?
Was this topic useful?
Link this topic |
URL |
|
BBCode |
|
HTML |
|
You cannot post new topics You cannot reply to topics You cannot edit your posts You cannot delete your posts You cannot vote in polls You cannot attach files You can download files You cannot post calendar events
|
|
|
|