Page 1 of 1

[BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Tue Feb 13, 2007 6:06 am
Author: sanji
Your phpBB Version: 2.0.22
phpBB Type: Integramod 141
MODs: Yes
Your knowledge: Advanced Knowledge
Board URL: http://www.secret-japan.com/forum

PHP Version:
MySQL Version:


What was done before the problem appeared?
upgrade to 1.4.1


What was done to try to solve the problem?




De.scription and Message

Although I spent 1 month testing before going live, I still have now small problems after my upgrading to 1.4.1...

1) When users try to connect, they get the following error message:
Code: Select all
Sorry, it appears this is your first visit since we added some required fields to the system.Once you update the fields marked with  *, you will be able to enjoy the whole site.Thanks!  Click on the fieldnames below to complete them]

But they can not click on any of the link, as the same screen is kept. There is no way to access the profil page...

I am trying to re-upload all templates (I use the normal Integra2), but it seems to make no difference...


2) I know this has been discussed, but I can not find the topic any more. The title of my portal page is Secret Japan - Three columns asymetric.
Three columns asymetric is the name of the portal configuration I am using. How can I change that title?


3) [color=red]The code tag, which was working fine on 1.4.0, seems to have a serious problem on 1.4.1 (at least on my board).

If I enter [code][b ]gras[/b ][/code]

And submit it, it will display [code][b]gras[/b]


If I put some html inside that tag, it will be interpreted, too...

Why is that?

THIS IS A BUG, there is the same problem on this board. The first code line was entered without the space after the [b ], and you get the same mistake]

Thanks,

sanji

PostPosted: Tue Feb 13, 2007 9:39 am
Author: Michaelo
I was under the impression this was corrected, certainly it appears to be in the latest version... To over come this problem I edit a user data in database and enter a fixed or know Security Question & Answer (taken from my data so I get the encrypted part correct) and check the have read rules checkbox. I also check for missing data (any data that was marked as required such as age and flag etc.).... This is a workaround not a fix...

2. Not sure which name change you want in 2...

3. There were several changes in 3 where several tags were not allowed... however this may be a bbcode problem for evolver...

Re: [BUG] Some issues after updating...

PostPosted: Tue Feb 13, 2007 3:47 pm
Author: sanji
1. I am using the last version, but still got that problem... I finally could solve it by going in the ACP and remove the "mandatory field" check for those fields. It is now working, but I wonder why I got this problem. When I had a new mandatory field, I get again this problem.

2. Check http://www.secret-japan.com/forum and look what it displayed in the top bar of the navigator window... Normally, there should be "Home" written there, not the name of the configuration file used for the portal.

3. Then this should be a bug, as even entering just a code line with the [ b ] tag is not working properly.

Hope this can be solved...

sanji

PostPosted: Tue Feb 13, 2007 6:51 pm
Author: Michaelo
I see 'Home' there?

PostPosted: Tue Feb 13, 2007 7:22 pm
Author: sanji
I have the following line generated in the source code :

<meta><title>Secret Japan - Three Column Asym 2</title>

This text, "Secret Japan - Three Column Asym 2", is displayed in the navigator window's title...

sanji

PostPosted: Tue Feb 13, 2007 9:23 pm
Author: Michaelo
OK so it's language based... I will have a look, just as soon as I get a little time free.. Mike

PostPosted: Tue Feb 13, 2007 9:31 pm
Author: sanji
Language based? OK, I will have a look, too...

Thanks,

sanji


EDIT : OK, as mentionned here ( http://www.integramod.com/forum/viewtop ... itle#21084 ), it grabs the name of the portal page in the configuration menu of IM Portal. So I changed it there. Not very elegant, as it will not change with the language, though...

sanji

PostPosted: Wed Feb 14, 2007 1:24 am
Author: sanji
I have updated the title to reflect the bug on the CODE tag. I hope someone has an idea, this is really disturbing as I have many posts containing this tag on my board.

Thanks,

sanji

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Fri Feb 16, 2007 2:13 am
Author: Teelk
Well, I tried posting the fix here, but since it contains both [code] and [php] in the actual edits, it doesn't work.

A patch is coming with several bug fixes and I'll include this fix in that patch. It shouldn't be more then a few days. At this point I only have one other task before the patch is released, unless another bug crops up.

Here's some details for you when you do get it patched...

Any posts with this problem containing [code] bbcode that you posted after the update will most likely still contain the problem. Just edit and submit them and the problem will be fixed. All posts made while your board was version 140 will be fine. All posts containing [php] bbcode with this problem will be fixed after the edits, no need to edit the posts.

PostPosted: Fri Feb 16, 2007 5:56 am
Author: sanji
Thanks Teelk, I always appreciate the energy you put on solving our problems...

... by the way, if you check this page : http://www.integramod.com/forum/viewtop ... &start=105
There are strange codes on the top of the page. Might be a related error...

sanji

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Sat Feb 17, 2007 7:46 pm
Author: Teelk
That bug is actually already fixed. It has to do with java.script in posts breaking the page. Just needed to edit the post with the java.script in it and hit submit.

PostPosted: Thu Feb 22, 2007 7:35 pm
Author: sanji
I start to wonder? Am I the only one - with this integrmod forum - to see this [ code ] error? It should have been a serious problem for many boards, I would have though...

sanji

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Thu Feb 22, 2007 11:32 pm
Author: Teelk
I think that bbcodes within the code or php boxes is a rarity I think when it comes to many boards.

PostPosted: Fri Feb 23, 2007 1:40 am
Author: sanji
OK, can someone point me in the right direction, so I can start to dig and (try to) find and fix the problem? What could be the origin of such error, which was not present in 1.4.0? Is it simply possible that you added some code to forbid the use of this tag (perhaps for some security reasons ?)?

sanji

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Fri Feb 23, 2007 8:02 am
Author: sanji
Possible fix - to be checked, but it seems to work on my site...

In includesbbcode.php

find
Code: Select all
$between_tags = preg_replace('#&##', '&#', $between_tags);$between_tags = preg_replace('/]+]/si', ']', $between_tags);  


after, add
Code: Select all
$code_entities_match = array('#<#', '#>#', '#"#', '#]#', '#(#', '#)#', '#{#', '#}#');$code_entities_replace = array('&lt;', '&gt;', '&quot;', ':', '[', ']', '(', ')', '{', '}');$between_tags = preg_replace($code_entities_match, $code_entities_replace, $between_tags);  



sanji

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Mon Feb 26, 2007 10:56 pm
Author: Teelk
I can email the changes to you, I just can't post them because the code includes bbcodes in it and breaks rendering it useless.

Is your email address still valid? If not, pm me an email address to send the changes.

PostPosted: Mon Feb 26, 2007 11:15 pm
Author: sanji
Sure, address is valid. Thanks a lot,

sanji

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Wed Feb 28, 2007 11:01 pm
Author: Teelk
Or I could just attach it... sometimes the 'ol noodle don't work too good.

PostPosted: Thu Mar 01, 2007 1:25 am
Author: Omni-Lee
I was hoping that patch would fix this issue I'm having. The following occurs when I submit using a mod of CST Supportticket

Character Name
New

Real life Age
Old

Share something about your previous game/guild experience.
Young

Share something about why you feel you belong with Mithril Crowns.
Old

If interested in leadership, say something about your past experience and why you feel you could help lead the Mithril Crowns.
Achient

De.scription and Message
what?

Any thoughts?

Re: [BUG] UPDATED : CODE tag not working on 1.4.1

PostPosted: Sat Mar 03, 2007 9:31 pm
Author: Teelk
Are these new posts or existing posts, the patch will only work on new posts, existing posts need to be edited and then resubmitted. You don't have to edit the contents of the post, you just need to click edit and then click submit.

PostPosted: Thu Mar 08, 2007 4:38 pm
Author: sanji
Teelk, I applied your patch, but it seems not to work: the code inside a [ code ] tag are still interpreted.

After modifying the bbcode.php file, following your instructions, I tried to put a [ b ] tag inside a [ code ] one, and still that text was written in bold...

On the other hand, my fix (see above) seems to work...

Can anyone confirm?


sanji

PostPosted: Fri Mar 09, 2007 7:10 am
Author: tekguru
Sanji, not tried youir fix yet, to many other bigger issues- anyone else tried it?