Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Pomys?y - Linijka w profilu

harnasHTS - Pią 14 Lip, 2006
Temat postu: Linijka w profilu
Tak wi?c prosi?bym aby kto? zrobi? nast?puj?cego moda:

Mod po dodaniu usera do grupy dodawa? by w jego profilu pod nickiem tak? linijk?
http://img211.imageshack....mage=ipb1sk.jpg

Takie co? jest w skrypcie IPB.

Gracek - Pią 14 Lip, 2006

ale w IPB mozna nalezec tylko do jednej grupy, w phpBB do nieskonczenie wielu
harnasHTS - Pią 14 Lip, 2006

No ale je?eli nawet to czy da?o by si? zrobi? takiego moda?Mi to oboj?tne poniewa? m?g?bym przydzieli? ka?dego do jednej tylko grupy.
KaweX - Pią 14 Lip, 2006

tak

takie co? by?o w 1.9.5

harnasHTS - Pią 14 Lip, 2006

A wi?c zamieszczam tego moda ale do wersji 1.9.5 czy kto? by?by tak uprzejmy i przerobi? go do wersji 1.12.5 ?
Kod
##############################################################
## MOD Title: Post usergroups
## MOD Author: Crack < piotrprz@gmail.com > (n/a) n/a
## MOD Description: Wy?wietla obok postu list? grup w kt?rych jest
## u?ytkwonik
## MOD Version: 1.0.2 :: 2005-08-17 12:02 CET
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 2
## templates/subSilver/viewtopic_body.tpl
## viewtopic.php
## Included Files: 0
##############################################################
## MOD History:
##
## 2005-02-28 - Version 1.0.0
## + pierwsza publiczna wersja
##
## 2005-08-09 - Version 1.0.1
## + bugfix: nie wy?wietla?o listy grup dla os?b z ustawion? rang?
## specjaln?
##
## 2005-08-17 - Version 1.0.2
## + wykorzystywanie moda Color Ranks (je?li zainstalowany)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$poster_id_sql .= ($row['user_rank']) ? '' : ( ',' . $row['user_id'] );

#
#-----[ REPLACE WITH ]------------------------------------------
#
$poster_id_sql .= ',' . $row['user_id'];

#
#-----[ FIND ]------------------------------------------
#
$poster_group = array();

#
#-----[ AFTER, ADD ]------------------------------------------
#
$poster_group_list = array();

#
#-----[ FIND ]------------------------------------------
#
$poster_group[$row['user_id']] = $row['group_id'];

#
#-----[ REPLACE WITH ]------------------------------------------
#
if( strpos($rank_group_id_sql, $row['group_id']) === false )
{
$poster_group[$row['user_id']] = $row['group_id'];
}
$poster_group_list[$row['user_id']][] = $row['group_id'];

#
#-----[ FIND ]------------------------------------------
#
$mini_post_url

#
#-----[ AFTER, ADD ]------------------------------------------
#
// Generate groups
$poster_groups = '';
if (isset($poster_group_list[$poster_id]))
{
$poster_groups = '<br />' . $lang['Usergroups'] . ':<br />';
$groups = array();
foreach ($poster_group_list[$poster_id] as $g)
{
$groups[$ranksrow[$g][0]['rank_title']] = $ranksrow[$g][0];
}
ksort($groups);
foreach ($groups as $group)
{
if (function_exists('color_group'))
{
$poster_groups .= color_group($group['rank_group'], $group['rank_title'], $row['rank_id'], GROUP_LINK) . '<br />';
}
else
{
$poster_groups .= '<a href="' . append_sid("groupcp.$phpEx?g=" . $group['rank_group']) . '">' . $group['rank_title'] . '</a><br />';
}
}
}

#
#-----[ FIND ]------------------------------------------
#
'POSTER_AVATAR' => $poster_avatar,

#
#-----[ AFTER, ADD ]------------------------------------------
#
'POSTER_GROUPS' => $poster_groups,

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_FROM}

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_FROM}

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
{postrow.POSTER_GROUPS}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#EoM

Update 1.0.1
Kod
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
$poster_id_sql .= ($row['user_rank']) ? '' : ( ',' . $row['user_id'] );

#
#-----[ REPLACE WITH ]------------------------------------------
#
$poster_id_sql .= ',' . $row['user_id'];

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#EoM

Update 1.0.2
Kod
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php

#
#-----[ FIND ]------------------------------------------
#
// Generate groups
$poster_groups = '';
if ( isset($poster_group_list[$poster_id]) )
{
$poster_groups = '<br />' . $lang['Usergroups'] . ':<br />';
$groups = array();
foreach($poster_group_list[$poster_id] as $g)
{
$groups[$ranksrow[$g][0]['rank_title']] = $ranksrow[$g][0];
}
ksort($groups);
foreach($groups as $group)
{
$poster_groups .= '<a href="' . append_sid("groupcp.$phpEx?g=".$group['rank_group']) . '">' . $group['rank_title'] . '</a><br />';
}
}

#
#-----[ REPLACE WITH ]------------------------------------------
#
// Generate groups
$poster_groups = '';
if (isset($poster_group_list[$poster_id]))
{
$poster_groups = '<br />' . $lang['Usergroups'] . ':<br />';
$groups = array();
foreach ($poster_group_list[$poster_id] as $g)
{
$groups[$ranksrow[$g][0]['rank_title']] = $ranksrow[$g][0];
}
ksort($groups);
foreach ($groups as $group)
{
if (function_exists('color_group'))
{
$poster_groups .= color_group($group['rank_group'], $group['rank_title'], $row['rank_id'], GROUP_LINK) . '<br />';
}
else
{
$poster_groups .= '<a href="' . append_sid("groupcp.$phpEx?g=" . $group['rank_group']) . '">' . $group['rank_title'] . '</a><br />';
}
}
}

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
#EoM

wlodi - Pią 16 Mar, 2007

Jak nie korzytsasz z rang to wykonaj range w stylu lini i ustaw ja do grup wtedy dodawaj do grupy i ustawiaj range to sie pojawi kreseczka :)

Powered by phpBB modified by Przemo © 2003 phpBB Group