miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | 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
Registered
#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 | Edited by: Paul 
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 Top

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

 Short link for this topic:

 ?
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.


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
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB