2005-03-29, 05:48 AM
In the post bit, this'll display the user's current style, like this:
It won't say Light always, it'll say the name of the user's current theme / style.
Admin CP >> Templates >> Modify >> Template To Edit >> Expand >> Add template
Title: postbit_style
Template: $theme['name']
"Update Template"
Admin CP >> Templates >> Modify >> Template To Edit >> Expand >> Postbit Templates >> Postbit
Find:
Add Under:
root/inc/functions_post.php
Find:
Replace With:
Done! Please report any bugs you find to me.
Style: Light
It won't say Light always, it'll say the name of the user's current theme / style.
Admin CP >> Templates >> Modify >> Template To Edit >> Expand >> Add template
Title: postbit_style
Template: $theme['name']
"Update Template"
Admin CP >> Templates >> Modify >> Template To Edit >> Expand >> Postbit Templates >> Postbit
Find:
$lang->postbit_status $onlinestatus$replink<br />
Add Under:
$lang->postbit_status $onlinestatus$replink<br />
Style: $style<br />
root/inc/functions_post.php
Find:
// Dont want any little 'nasties' in the subject
$post['subject'] = htmlspecialchars(stripslashes($post['subject']));
$post['author'] = $post['uid'];
Replace With:
// Dont want any little 'nasties' in the subject
$post['subject'] = htmlspecialchars(stripslashes($post['subject']));
$post['author'] = $post['uid'];
$themequery = $db->query("SELECT * FROM ".TABLE_PREFIX."themes WHERE tid = ". $mybbuser['style'] ."");
$theme = $db->fetch_array($themequery);
Done! Please report any bugs you find to me.