I created 2 columns in the users table.
one for open tags and one for close (I know zinga uses only one :P).
I changed the user cp templates and created the do_format and format actions. (usercp.php)
It is for MyBB 1.4.
I also added the ability to have bold, strike, etc
The update queries(for the 2 columns) from the user cp work perfectly.
(only one theme works with the template right now)
But I am stuck in the format_name function.
here's mine:
|
I have been practicing PHP, HTML and CSS :P I also made a module for my plaza but did not released it, I may release it once zinga updates my plaza. I also need to update my module.
This is specially directed to zinga.
But everyone who wants to help is welcomed.
thank you
Note: i don't get any errors but the formatting does not work.
I don't know if the problem is that function. IN the shoutbox, I added the pformat and aformat fields in the select query. ANd then changed this:
$row['username'] = format_name($row['username'], $row['usergroup'], $row['displaygroup']);
to:
$row['username'] = format_name($row['username'], $row['usergroup'], $row['displaygroup'], $row['pformat'], $row['aformat']);
select query:
$query = $db»query("SELECT s.*, u.username, u.usergroup, u.displaygroup FROM ".TABLE_PREFIX."sf_shouts s LEFT JOIN ".TABLE_PREFIX."users u ON (u.uid = s.uid) WHERE s.id>{$last_id} ORDER by s.id DESC LIMIT {$mybb»settings[sf_sb_shouts_main]}");