Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Re: [Andy] Markup codes, how are they done?

Quote Reply
Re: [Andy] Markup codes, how are they done? In reply to
Mmmm ok - back to this stuff once again.

Tried:

GForum::Convert::convert_markup(\$post_message);

...and that seems to work when doing a dump of $IN, but has an error at the end:

Code:
'forum_edit_timeout' => '120',
'post_message' => 'newest test [img]http://www.freefoto.com/images/04/34/04_34_2---Computer-Keyboard_web.jpg[/img.]
[signature.]',
'forum_hard_delete' => '2',
'forum_desc' => \'<small><br>Belize, Costa Rica, Guatemala, Honduras, Nicaragua, Panama et Salvador.</small>',
'post_sujet2' => undef,
'post_icon' => undef
};
$VAR1 = {
'post_root_id' => 0,
'forum_id' => '46',
'post_id' => '2146288',
'user_id_fk' => '309804'
};
{ photo_post_root_id => 2146288, photo_forum_id => 46 } , { photo_post_id => 2146288 } mCan't use string ("newest test <img src="http://www") as a SCALAR ref while "strict refs" in use at /var/home/voyage/voyageforum.com/www/admin/GForum/Convert.pm line 78.

Please help - as this is driving me NUTS!


Also tried this:
Code:
my $inline_opts = [
$post->{post_id},
\my $forum_inline_calced,
\my %forum_inline,
[$post->{forum_id_fk} || ()],
$post->{forum_id_fk} || undef,
$post->{_post_preview} ? (1, $post->{post_unique_id}) : ()
];
GForum::Convert::convert_markup($post_message, \&GForum::Post::_inline, $inline_opts);

..and that gives exactly the same error :(

All I wanna do, is convert the inputted HTML (from the WYSIWYG editor), into BBCode, and then update the DB (cos for some reason, the hook I'm using doesn't seem to wanna play ball, and update the data)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread Markup codes, how are they done? Andy 7033 Feb 21, 2008, 9:17 AM
Thread Re: [Andy] Markup codes, how are they done?
brewt 6861 Feb 21, 2008, 3:12 PM
Post Re: [brewt] Markup codes, how are they done?
Andy 6855 Feb 22, 2008, 12:49 AM
Post Re: [brewt] Markup codes, how are they done?
Andy 6844 Feb 22, 2008, 1:42 AM
Thread Re: [brewt] Markup codes, how are they done?
Andy 6854 Feb 22, 2008, 1:51 AM
Post Re: [Andy] Markup codes, how are they done?
Andy 6602 Feb 24, 2009, 2:53 AM