Hello everybody,
i have a problem with syncing the signature from Drupal to phpBB or the other way around. The error looks like:
'uasort() [<a href='function.uasort'>function.uasort</a>]: The argument should be an array in /www/htdocs/w008f57b/modules/user/user.pages.inc in line 170.
I can only bypass this problem, by leaving this field empty... But a forum without a signature is like a tree without leaves :-) (Certainly in summer ^^)
Is this a common problem, or i'm the only one?
I use Drupal 6.2 in the German version from (http://www.drupalcenter.de) and phpBB 3.0.1 + latest Dev Build
Hope somebody has some advice for me
Thankfully gEexTaH
Comments
Comment #1
vb commentedI still do not know why it is happening.
See link for workaround. I simple fill in profile fields and save
and sync including signatures starts working without this warning
http://drupal.org/node/217369#comment-790588
Comment #2
vb commentedPlease download beta2
Comment #3
gEexTaH commentedOkay, thanks for the advice.
I'm sorry for answering so late, i was a litte bit busy in the last time. I figured out on what's going wrong.
When you create your signature in phpBB with the BBCodes from phpBB and sync this one to Drupal, this message occurs. When you create your signature in Drupal and sync then to phpBB nothing occurs.
At this point, i don't know what to do, because phpBB has much more codes then Drupal... Do i have to create each code i want to use in both platforms twice?
best regards
gEexTaH
Comment #4
vb commentedReplace the old module with beta2.
I have fixed this weird warning.
phpBB stores bbcode with user_sig_bbcode_uid
if you enter in drupal sig without any uids, it is syncing with phpBB, but next time because of different valuse the sig with uids from phpBB will be synced back and in drupal you will see in sig field bbcodes with uids.
drupal module bbcode.module understands most of bbcode and uids and do not show it.
You must only enable it in default filter.
if bbcode.module do not understand some of bbcodes you have to modify it.
the phpbbforum module is not responsible for recognithion of bbcodes and their presentation.
Comment #5
Anonymous (not verified) commentedyou should update the status of the bug on releasing a patch or a new version, solving a problem.
Comment #6
Luneh commentedActually, seems that I have a similar problem.
My config:
Drupal 5.5
Latest bbcode module
Latest version of phpBB3 (3.0.1)
I tested the BBcode in standard nodes and everything works fine. But when I try to modify a signature using phpBB3, the sync with the Drupal user goes wrong.
Here is what I get for example:
[b:28ottamb]test[/b:28ottamb]
instead of
[b]test[/b]
which is what I set in phpBB3
As everything goes well within the other nodes, I guess that the problem happens with the sync?...
Comment #7
vb commentedYou did not read or not understand post #4 http://drupal.org/node/245573#comment-825271
phpBB stores bbcode with user_sig_bbcode_uid
if you enter in drupal sig without any uids, it is syncing with phpBB, but next time because of different valuse the sig with uids from phpBB will be synced back and in drupal you will see in sig field bbcodes with uids.
http://www.phpbb.com/community/viewtopic.php?t=3742
in phpBB3 file constants.php you may set value
// BBCode UID length
define('BBCODE_UID_LEN', 8);
bbcode_uid is hardcoded in phpBB if you set 0, you will see [i:] not [i]
there is no way to get rid of : without patching the phpbb code.
I do not recommend to set 0 or any low value because i do not know how phpBB will like it. 3 or more i think will do.
phpBB is using bbcode_uids in bbcode parsing
It is not the module issue at all.
Comment #8
vb commentedDrupal bbcode module do not show bbcode_uids on pages you only can see them in input fields.
Comment #9
Melkon commentedI was running into that drupal <-> phpbb3 signature synchronisation problem as well.
I checked the code and found the lines where the signatures are compared and saved. I used the phpbb functions and methods to convert drupal to phpbb-like bbcode and vice versa.
It's just a quick hack and is not really tested but it's working on my site as expected.
As this module provides signature synchronisation, it has to handle different drupal <-> phpbb3 bbcode as well otherwise it's just an incomplete sync.
I created a patch - I hope everything will work - it's my first one :/
Comment #10
vb commented>I created a patch - I hope everything will work - it's my first one :/
Great beginning. Thanks.
Comment #11
Melkon commentedComment #12
mmmweb commentedHow do I utilize this patch (NEWB ALERT :-) ?
Does this get added to the phpbbforum.module? Will this make it into the release eventually?
Apologies for being daft!
Thanks so much.
Melanie
Comment #13
Melkon commentedThe patch is already included since phpbbforum 1.0
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.