miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /  
 

Showing "From (country)" profile's value in the thread

 
Author kelen
Guest
#1 | Posted: 17 Jun 2007 17:44 
Hi, please how i can show "From (country) above for example avatar?

i modify main_posts_cell.html with a adding {$l_userFrom} but it is not function :-( How i must modify it?

Thnx

example :
nick : kelen
admin/member/moderator
avatar/custom rank
from (country)

Author USB20
Partaker
#2 | Posted: 17 Jun 2007 18:41 
OPEN setup_options.php and find:
$userInfoInPosts=array and add user_from, for example:

$userInfoInPosts=array('user_from');

now OPEN main_posts_cell.html and add
{$userInfo_user_from[$poster_id]}


sorry my bad english I speak spanish :P

Author Anonymous
Guest
#3 | Posted: 22 Jun 2007 07:14 
I don't want "From:" to show up if they haven't specified a location in thier profile. Would a simple if clause make it an easier fix, if user has location: print "From:", location

Author Paul
Lead Developer 
#4 | Posted: 22 Jun 2007 10:17 
All you need to do is to create a corresponding function and let it parse the value given. For example:

if($GLOBALS['action']=='vthread'){
function parseUserInfo_user_from($val){
if ($val!='') return 'From: '.$val;
else return '';
}
}


(paste this in bb_plugins.php file).

Author Anonymous
Guest
#5 | Posted: 23 Jun 2007 07:36 
This works excellent thanks a lot

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /
 Showing "From (country)" profile's value in the thread
 Share Topic's Link

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


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑