Advertisement:

Author Topic: [Pomoc] SMF 2.0.x vise grupa  (Read 5190 times)

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
[Pomoc] SMF 2.0.x vise grupa
« on: February 16, 2014, 09:21:29 PM »
Jel mi mozete neko pojasnit kako da napravim na SMF 2.0.x da kad nekog clana ubacim u grupe Administrator, Super Moderator, Dizajner da mu se sve te grupe prikazuju na profilu odosno kad pise u nekoj temi, kad salje privatne poruke i slicno?

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #1 on: February 17, 2014, 06:18:59 PM »
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #2 on: February 18, 2014, 02:33:37 AM »
To je da se grupe vide na profilu a meni treba i da se vide kad pisem u nekoj temi, kad saljem privatne poruke itd.

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,974
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #3 on: February 18, 2014, 11:45:51 AM »
Ovaj je mator ali jedini je mod koji sam pronašao a da radi slično ovome što ti hoćeš, pa probaj ga, uz emuliranje verzije i pregled support teme:
http://custom.simplemachines.org/mods/index.php?mod=1110

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #4 on: February 18, 2014, 02:57:43 PM »
Dzonny sa tim sa probao ali neke stvari kod mene ne mogu da nadjem i onda nece da radi.

Offline [yub] Lazo

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
  • YUB - Obaramo rekorde, postavljamo standarde !
    • YUnited Balkan
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #5 on: February 18, 2014, 05:11:14 PM »
Kao što Dzonny već reče, pogledaj malo support temu. Evo uradi ovako i radiće ti sigurno.
www.simplemachines.org/community/index.php?topic=225743.msg2576409;topicseen#msg2576409

Dynamic forum signatures v1.2

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #6 on: February 18, 2014, 05:24:54 PM »
Kao sto sam vec reko probao sam to vec i pojedine stvari ne mogu da nadjem kod mene u fajlovima i zbog toga nece da radi.

Offline [yub] Lazo

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
  • YUB - Obaramo rekorde, postavljamo standarde !
    • YUnited Balkan
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #7 on: February 18, 2014, 06:21:13 PM »
Šta ne možeš da nađeš?

Dynamic forum signatures v1.2

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #8 on: February 18, 2014, 06:30:18 PM »
./Sources/Load.php

Code: [Select]
return true;
}

// Load a theme, by ID.


./Sources/ManageSettings.php

Code: [Select]
// Stats, compression, cookies.... server type stuff.

./Themes/default/Display.template.php

Code: [Select]
<li>', $message['member']['group_stars'], '</li>';

Offline Dzonny

  • Local Moderator
  • SMF Super Hero
  • *
  • Posts: 11,974
  • Gender: Male
  • No sleep...
    • dzontra.nikola on Facebook
    • Dzonny on GitHub
    • dzontranikola on LinkedIn
    • @opusteniforum on Twitter
    • Samo opusteno
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #9 on: February 18, 2014, 07:07:50 PM »
Potraži malo drugačije kombinacije, npr u Load.php fajlu bi trebalo postojati:
Code: [Select]
Load a theme, by ID.u principu ta mesta nisu striktno određena pa možeš probati više kombinacija, samo je bitno da ne napraviš sintaksnu grešku.

Offline [yub] Lazo

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
  • YUB - Obaramo rekorde, postavljamo standarde !
    • YUnited Balkan
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #10 on: February 18, 2014, 07:09:23 PM »
Pa da si samo bacio pogled na moj komentar sa linkom do support teme vidio bi da je čovjek fino objasnio. Rešenje za svaki od kod tebe navedenih problema. :)

EDIT: Evo Dzonny dao sam ja sve ja mislim.


a few notes for installing on RC3 -

in load.php, this change will fail -

Code: [Select]
return true;
}

// Load a theme, by ID.

instead, find

Code: [Select]
return true;
}

function detectBrowser()

and replace with

Code: [Select]
$context['badges']['ownline'] = !empty($modSettings['badge_ownline']) ? explode(',', $modSettings['badge_ownline'], 20) : '';
 
$groups = $profile['additional_groups'];
// Load additional membergroups
if (!empty($groups))
{
$result_stars = $smcFunc['db_query']('', '
SELECT id_group, group_name, stars, online_color
FROM {db_prefix}membergroups
WHERE id_group IN (' . $groups . ')
',
array()
);

// additional groups
while ($row_stars = $smcFunc['db_fetch_assoc']($result_stars))
if (!empty($row_stars['stars']))
{
$memberContext[$user]['additional_groups']['id'][] = $row_stars['id_group'];
$memberContext[$user]['additional_groups']['stars'][] = str_repeat('<img src="' . str_replace('$language', $context['user']['language'], isset($row_stars['stars'][1]) ? $settings['images_url'] . '/' . $smcFunc['substr']($row_stars['stars'], 2, strlen($row_stars['stars'])) : '') . '" alt="*" border="0" />', empty($row_stars['stars'][0]) || empty($row_stars['stars'][1]) ? 0 : $row_stars['stars'][0]);
$memberContext[$user]['additional_groups']['name'][] = $row_stars['group_name'];
$memberContext[$user]['additional_groups']['ag_color'][] = $row_stars['online_color'];
}
$smcFunc['db_free_result']($result_stars);
}

return true;
}

function detectBrowser()


also, in ManageSettings.php there is a failed search for

Code: [Select]
// Stats, compression, cookies.... server type stuff.
instead, search for

Code: [Select]
// Statistics.
last one - in display.template, instead of

search for
Code: [Select]
<li class="stars">', $message['member']['group_stars'], '</li>';notice the class="stars"

Dynamic forum signatures v1.2

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #11 on: February 18, 2014, 08:31:52 PM »
Sredio sam hvala, e sad imam jos jedno pitanje da ne otvaram novu temu:
Jel znate mozda gde se Dodatno clanstvo nalazi u MySQL bazi?

Offline [yub] Lazo

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
  • YUB - Obaramo rekorde, postavljamo standarde !
    • YUnited Balkan
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #12 on: February 19, 2014, 05:18:55 AM »
Misliš tabela u kojoj se snimaju grupe članova ili kolonu gdje se korisniku upisuje kojih je grupa član? Sve grupe članova i njihove postavke su u tabeli "_membergroups". Korisniku se snimaju dodatne grupe u koloni "additional_groups" u tabali "_members".

Dynamic forum signatures v1.2

Offline Seiz

  • Semi-Newbie
  • *
  • Posts: 25
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #13 on: February 19, 2014, 05:46:38 AM »
u _membergroups su sve grupe i njihove postavke, a u _members je primarno clanstvo e sad meni treba gde se nalazi dodatno clanstvo?

Offline [yub] Lazo

  • Jr. Member
  • **
  • Posts: 175
  • Gender: Male
  • YUB - Obaramo rekorde, postavljamo standarde !
    • YUnited Balkan
Re: [Pomoc] SMF 2.0.x vise grupa
« Reply #14 on: February 19, 2014, 06:09:09 AM »
Korisniku se snimaju dodatne grupe u koloni "additional_groups" u tabali "_members".

Dynamic forum signatures v1.2