Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
SOLVED: Hide Viewers? (1 viewing) (1) Guest
TOPIC: SOLVED: Hide Viewers?
#58453
SOLVED: Hide Viewers? 3 Months, 3 Weeks ago  
Apologies for the newbie question but how do I hide the 'username' in the Board breadcrumb?

eg

Community>>FireBoard Forum>>Latest Release
>>How Do I? (1 viewing) towerone

I want to either:

1. Hide completely the reference to the username

OR

2. Change the username to Real Name.

I have configured FB to use real Names rather than Usernames but this Username reference persists and I cannot for the life of me see where I change it.

Any help appreciated.

cheers
towerone (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2008/09/16 01:01 By towerone.
 
 
#58460
Re:Hide Viewers? 3 Months, 3 Weeks ago  
Ah, managed to solve it myself.

components/com_fireboard/template/default/fb_pathway.php

About line 125 ..

//get viewing
$query= "SELECT w.userid, u.username , k.showOnline FROM #__fb_whoisonline AS w LEFT JOIN #__users AS u ON u.id=w.userid LEFT JOIN #__fb_users AS k ON k.userid=w.userid WHERE w.link like '%" . addslashes($_SERVER['REQUEST_URI']) . "%'";

AMEND TO THIS(include u.name)

//get viewing
$query= "SELECT w.userid, u.username, u.name, k.showOnline FROM #__fb_whoisonline AS w LEFT JOIN #__users AS u ON u.id=w.userid LEFT JOIN #__fb_users AS k ON k.userid=w.userid WHERE w.link like '%" . addslashes($_SERVER['REQUEST_URI']) . "%'";


THEN About line 145 ..

if ( $user->showOnline > 0 ){
echo '<small>' . fb_link::GetProfileLink( $user->userid, $user->username) . ' ,</small> ';

AMEND TO THIS(replace username with name)

if ( $user->showOnline > 0 ){
echo '<small>' . fb_link::GetProfileLink( $user->userid, $user->name) . ' ,</small> ';


That should do it. Remember to backup your original fb_pathway.php just in case!

towerone (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#60179
Re:SOLVED: Hide Viewers? 2 Months, 4 Weeks ago  
Actually this didn't need a code change. In the back-end just go to Fireboard control panel and Recount Categories Stats to clear the cache and force the configured option for real name/username to be used. Admittedly 'Recount Categories Stats' is a bit cryptic...

Cheers
-- Mike --
mikeprince (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Cheers
-- Mike --
Record, share and compare with BUBO Listing at www.bubo.org/listing
 
 
Go to top