Module: BBcode version 2 (complete rewrite)

Posted by Maurice Makaay 
Re: Module: BBcode version 2 (complete rewrite)
July 01, 2008 10:49AM
/\dam, my hosting provider has PHP4 and 5 installed together. I then used .htaccess to force my phorum directories to use PHP5 for all php files. That may work for you as well.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: BBcode version 2 (complete rewrite)
July 01, 2008 01:13PM
It can work that way if the PHP integration is done using CGI or FastCGI, since you can then assign a different script handler to different sites or even directories. If PHP is loaded as a server module, then it's not possible however.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode version 2 (complete rewrite)
July 02, 2008 03:32AM
Hi Maurice,

I get sometimes the following message in event log (offset is different):

PHP notice: Uninitialized string offset: 1021

PHP notice generated at /var/www/langzeittest.de/html/intern/phorum-5.2.8-RC1/mods/bbcode/api.php:777

Back trace:

Function bbcode_api_tokenize called at
{path to Phorum}/mods/bbcode/bbcode.php:102
----
Function phorum_mod_bbcode_format called
----
Function call_user_func_array called at
{path to Phorum}/common.php:1555
----
Function phorum_hook called at
{path to Phorum}/include/format_functions.php:172
----
Function phorum_format_messages called at
{path to Phorum}/read.php:717
----

Request info:

HTTP_HOST = forum.langzeittest.de
HTTP_REFERER = [forum.langzeittest.de]
REQUEST_URI = /read.php?422,419652,419654
QUERY_STRING = 422,419652,419654

It comes from

// If the current tag does not take arguments, then it is
// apparently wrong and we can continue searching for the next tag.
// We can also continue if there is no space, indicating the start
// for a new argument.
elseif ($text[$cursor] != ' ' ||
        empty($current_tag[BBCODE_INFO_ARGPARSETREE])) {
        $state = 1;
        continue;
}

I'm using version 3.0.6, so line number can vary from your yesterdays new version.

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: BBcode version 2 (complete rewrite)
July 02, 2008 03:40AM
Can you take a look at the source of [forum.langzeittest.de] to see what the body text looks like? Can you also check the signature for that user? I'm not sure what triggers this warning and it would be nice to have a test case.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode version 2 (complete rewrite)
July 02, 2008 04:13AM
Hi Maurice,

Quote
Maurice Makaay
Can you also check the signature for that user?

That's the reason why I wasn't able to reproduce this warning in my tests, I don't see signatures...

It was a bad signature like this (cutted URL-tag):

Touran-Club u.Langzeittest Mitglied aus Bremen VW Touran 1.4 TSI Highline Deep Black Nardofelgen m. Sportfahrwerk Cross-Grill u.Rückleuchten/Netztrennwand/Winterpaket/Multifunktionslenkrad/ Ladeboden /CH LH/Thanks to ImageShack for [URL=http://imageshack.

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: BBcode version 2 (complete rewrite)
July 02, 2008 04:16AM
Thanks for that one. It will certainly help. I'll take a look at it.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode version 2 (complete rewrite)
July 02, 2008 01:09PM
I fixed the problem. I repackaged 2.0.7 with this fix included.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: BBcode version 2 (complete rewrite)
July 02, 2008 01:54PM
Quote
Maurice Makaay
I fixed the problem. I repackaged 2.0.7 with this fix included.

Thanks Maurice!

Regards
Oliver


Using Phorum since 7/2000: forum.langzeittest.de (actual version 5.2.23)
Modules "Made in Germany" for version 5.2: Author_as_Sender, CarCost, Close_Topic, Conceal_Message_Timestamp,
Format_Email, Index_Structure, Mailing_List, Pervasive_Forum, Spritmonitor, Terms_of_Service and German_Language_Files_Package.
Re: Module: BBcode version 2 (complete rewrite)
February 03, 2009 07:16AM
Question: Is it possible to translate 'Quote' in Quote box??
Re: Module: BBcode version 2 (complete rewrite)
February 03, 2009 01:56PM
Sure you can. It is in a language string.

You can directly edit the "QuoteMessage" language key in include/lang/<yourlanguage>.php, however that does not allow for easy upgrading.

An easier way of overriding this language string would be by adding code like this to the end of templates/<yourtemplate>/header.tpl:

[code="php"]
<?php $PHORUM['DATA']['LANG']['QuoteMessage'] = 'Your quote string' ?>
[/code]

You can also us the custom language module, but for overriding only one language string, this might be too much of an overkill solution.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Sorry, only registered users may post in this forum.

Click here to login