Pagina 1 van 1

show user groups probleem

Geplaatst: 12 okt 2004, 17:43
door Kaza
Ik heb de show user groups geinstalleerd en heb een klein probleempje in viewtopic. Groepen zijn alleen zichtbaar in het laatste bericht en bij alle andere alleen ":"
Waar zou ik het probleem kunnen vinden?

Geplaatst: 12 okt 2004, 18:49
door Repsaj
Even kijken op mods.db9.dk
Ik had het probleem ook, maar [rul=http://mods.db9.dk/viewtopic.php?t=2927]hier[/url] werd het opgelost.
Sheeesh, I feel like an idiot...

The problem was caused by not placing the text BEFORE the } in the viewtopic file (doh!!) - not following instructions will kill you every time

Code: Selecteer alles

# 
#-----[ OPEN ]------------------------------------------ 
# 
viewtopic.php 

# 
#-----[ FIND ]------------------------------------------ 
# 
// 
// Okay 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
include($phpbb_root_path . 'includes/functions_usergroup.'.$phpEx); 

# 
#-----[ FIND ]------------------------------------------ 
# 
} 

$template->pparse('body'); 

# 
#-----[ BEFORE, ADD ]------------------------------------------ 
# 
if (display_usergroups($userdata['user_id'],$poster_id,'postrow')) 
{ 
$template->append_block_vars('postrow',array( 
'L_USER_GROUP' =>$lang['Usergroups'], 
'L_GO' => $lang['Go'])); 
} else 
{ 
$template->append_block_vars('postrow',array( 
'L_NO_USER_GROUP' =>$lang['Usergroups'], 
'L_NO_USERGROUPS'=> $lang['None'])); 
}
I had managed to put it right before the $template line... Hope this fixes other peops problems here... and THANK YOU for a GREAT MOD!!!

Geplaatst: 12 okt 2004, 20:58
door Kaza
Idd Nu opgelost bedankt voor je hulp!

:thumb: