Topic: pictures in title?
how do I set it so I can put pictures in the title of the user rather than just words?
[img]
and <img tags dont work
thanks in advance.
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → pictures in title?
how do I set it so I can put pictures in the title of the user rather than just words?
[img]
and <img tags dont work
thanks in advance.
You would have to edit the function which generates the titles so that either BBCode is allowed or HTML is allowed (I'd go for BBCode)
mind helping me out on what to change / how to change it? because I've been trying to mess around with the code and I can't get anything to remotley work.
thanks in advance again.
get_title function in include/functions.php, you need to decide HTML versus BBCode and then which ranks you want to allow the extra stuff in
can you help me out a little further?
my knowledge in PHP is very limited.
=/ sorry to be a bother.
Sure: which ranks do you want to allow BBCode for?
Well I was planning to add a different picture for each user group... =/
example with a user bar
OK, so you want to change the custom group ranks (as opposed to the custom member ranks, or the number of post ranks). See if this works:
include/functions.php
FIND
// If the user group has a default user title
else if ($user['g_user_title'] != '')
$user_title = pun_htmlspecialchars($user['g_user_title']);
REPLACE WITH
// If the user group has a default user title
else if ($user['g_user_title'] != '')
{
require_once PUN_ROOT.'include/parser.php';
$user_title = do_bbcode(pun_htmlspecialchars($user['g_user_title']));
}
it didn't seem to work =/
Aha, I see: replace do_bbcode with parse_message
when I do that... I get this
Warning: Missing argument 2 for parse_message() in /home/*Folder*/public_html/include/parser.php on line 377
Because I'm silly and didn't think
Fixed code:
// If the user group has a default user title
else if ($user['g_user_title'] != '')
{
require_once PUN_ROOT.'include/parser.php';
$user_title = parse_message(pun_htmlspecialchars($user['g_user_title']), 1);
}
now bbc code should work?
cuz i'm trying it.... and nothing so far.
Are you sure your syntax is correct? try doing something simple, like
[b]test[/b]
EDIT**
worked
wow thank you so much your VERY helpfuly.
Try using
[img]http://punbb.org/img/small_logo.png[/img]
^^ you comment very fast lol read the above heheh
thanks again
No problem
*anyway to increase the character limit ?? of a title?
Change the size of the column in the database and increase the maxlength attribute on the input box?
PunBB Forums → PunBB 1.2 troubleshooting → pictures in title?
Powered by PunBB, supported by Informer Technologies, Inc.