15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Master Class miniBB Support Forums / Master Class /   

Adding ICQ or other profile field's value in the message area (in main_posts_cell.html )

Author MrPanza
#1 | Posted: 1 Mar 2006 21:30 
Hi, i want to put the ICQ number below the nickname in the messege author information that apears when yo see the messeges.
The template main_posts.html use the variable $l_author, but i canīt find it anywhere else...
how can i do that?


Author _Marco
#2 | Posted: 2 Mar 2006 00:01 
Does this work?

1. Add in setup_options.php:

2. Add in main_posts_cell.html:


Author MrPanza
#3 | Posted: 2 Mar 2006 03:12 
Thanks Marco!!!
It`s working!!!

Author ezkim0x
#4 | Posted: 2 Jun 2006 18:46 | Edited by: ezkim0x 
I know all I have to do is add 'user_icq' to userInfoInPosts array in setup_options.php .. and then for it to display I would add {$userInfo_user_icq[$poster_id]} .. but I want to do display something else then just the name.. but since the template is a .html file I'm not sure how.

something like this in php..

so if they didn't enter anything for that field it wouldn't display "test" .. but if the field isn't null it would display it.

(i'm not positive if that's the right php code or not, but you get the idea.)

how would I do something like this?

Author realitybytes
#5 | Posted: 2 Jun 2006 21:56 
If it is null then you have nothing to worry about you just need to create the parse.

function parseUserInfo_user_icq($icq){

return ''.$icq.'';


then add the following to the template where you want it to be displayed


Author ezkim0x
#6 | Posted: 2 Jun 2006 23:57 | Edited by: ezkim0x 
I put that function in bb_functions.php ?

Author realitybytes
#7 | Posted: 3 Jun 2006 01:55 

Author ezkim0x
#8 | Posted: 3 Jun 2006 02:11 
added it there, but it's still not displaying on main_posts_cell.html

I tried both: {$icq} & {$icq[$poster_id]}

Author realitybytes
#9 | Posted: 4 Jun 2006 03:04 | Edited by: realitybytes 
Hi hopefully this should clear it up


Author ezkim0x
#10 | Posted: 4 Jun 2006 15:52 
awesome thanks.. got it working now.

Author Anonymous
#11 | Posted: 5 Oct 2006 10:27 

I see about three references to including registration date, number of posts, etc in this forum, however, I have tried everything possible, and seem to be running to displaying them.

I am trying to include the avatar and number of posts. I am getting either number of posts, OR I get the avatar, but not at the same time.

Here is what I have in the setup options.


This displays the posts, but removes the Avatar. If I add the // to the num_posts line, then I get the avatar back.

Here is what i am using in the main_post_cell.html:

Avatar: {$userInfo_user_custom1[$poster_id]}
Posts: {$userInfo_num_posts[$poster_id]}

Also, I have two other questions:

1. What is the [1] (....$dbUserSheme['username'][1]); ) suppose to be?
2. If I decide to use regdate, how would I use for the setup_options and the template?


Author Paul
Lead Developer
#12 | Posted: 6 Oct 2006 02:38 
You need to define

$userInfoInPosts=array('user_custom1',$dbUserSheme['username'][1], array('num_posts',$dbUserSheme['username'][1]);

You're adding the stuff for main_post_cell.html correctly.

$dbUserSheme['username'][1] equals to users table's "username" field name. This setting is defined above in the same file.

For the regdate, you need to add to $userInfoInPosts a value 'user_regdate'. Then paste in main_posts_cell.html a variable {$userInfo_user_regdate[$poster_id]}

Master Class miniBB Support Forums / Master Class / Adding ICQ or other profile field's value in the message area (in main_posts_cell.html ) Top

Your Reply Click this icon to move up to the quoted message

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Get the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB