Visual warning mod phpbb3 forum • Tutoriale PHPBB3 • Forum CS Gothic - Tutoriale Counter Strike - Server CS
It is currently 24 May 2012, 10:54












Mobile Payments by Fortumo



 Page 1 of 2 [ 10 mesaje ]  Go to page 1, 2  Next
Your Ad Here
Author Message
 Post subject: Visual warning mod phpbb3 forum
PostPosted: 26 Sep 2010, 11:47 
Administrator
User avatar

Joined: 27 Jun 2010, 15:33
Posts: 4935
Multumiri date: 329
Multumiri primite: 1225
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Your Ad Here
Descriere: Adaugă la profil câte avertismente are utilizatorul respectiv.

Image

Fişiere de editat:

  • viewtopic.php
  • memberlist.php
  • styles/tema forumului/template/memberlist_view.html
  • styles/tema forumului/template/viewtopic_body.html
  • language/en/common.php

Instalare:
  • Deschideţi language/en/common.php:
Cautati:
   'CURRENT_TIME'         => 'It is currently %s',
Adaugati dupa:
   'CURRENTLY_BANNED'      => 'CURRENTLY BANNED',

  • Deschideti styles/tema forumului/template/memberlist_view.html:
Cautati:
<!-- IF U_NOTES or U_WARN -->
<dt>{L_WARNINGS}: </dt>
<dd><strong>{WARNINGS}</strong> [ <a href="{U_NOTES}">{L_VIEW_NOTES}</a>
<!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF -->
]</dd>
<!-- ENDIF -->
Înlocuiţi cu:
<!-- IF USERID_BANNED -->
<strong>{L_CURRENTLY_BANNED}</strong> <!-- IF U_NOTES -->[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> ]<!-- ENDIF -->
<!-- ELSEIF WARNINGS -->

<tr>
            <td class="gen" align="{S_CONTENT_FLOW_END}" valign="top" nowrap="nowrap">{L_WARNINGS}: </td>
            <td><b class="gen">{WARNINGS}</b><span class="genmed"><!-- IF U_NOTES -->[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> <!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF -->]<!-- ENDIF --></td>
</tr>

<!-- ELSE -->
<!-- IF U_NOTES -->[ <a href="{U_NOTES}">{L_VIEW_NOTES}</a> <!-- IF U_WARN --> | <a href="{U_WARN}">{L_WARN_USER}</a> <!-- ENDIF -->]<!-- ENDIF -->
<!-- ENDIF -->

  • Deschideti styles/tema forumului/template/viewtopic_body.html:
Cautati:
<!-- IF postrow.POSTER_FROM --><dd><strong>{L_LOCATION}:</strong> {postrow.POSTER_FROM}</dd><!-- ENDIF -->
Adaugati dupa:
<!-- IF postrow.S_USERID_BANNED --><dd><strong>{L_CURRENTLY_BANNED}</strong></dd><!-- ELSEIF postrow.POSTER_WARNINGS --><dd><strong>{L_WARNINGS}:</strong> {postrow.POSTER_WARNINGS}</dd><!-- ENDIF -->

  • Deschideti memberlist.php:
Cautati:
// Get user...
$sql = 'SELECT *
       FROM ' . USERS_TABLE . '
       WHERE ' . (($username) ? "username_clean = '" .
       $db->sql_escape(utf8_clean_string($username)) .
       "'" : "user_id = $user_id");
Adaugati dupa:
// Get user...
$sql = 'SELECT u.*, b.*
       FROM ' . USERS_TABLE . ' u
       LEFT JOIN ' . BANLIST_TABLE . ' b ON (u.user_id = b.ban_userid)
       WHERE ' . (($username) ? "u.username_clean = '" . $db->sql_escape(utf8_clean_string($username)) . "'" : "u.user_id = $user_id");
Cautati:
    trigger_error('NO_USER');
}
Adaugati dupa:
// see if the user is banned
$is_banned = false;
if ($member['ban_end'] >= time() || $member['ban_end'] == '0')
{
       $is_banned = true;
}
Cautati:
'AVATAR_IMG'   => $poster_avatar,
Adaugati dupa:
'USERID_BANNED'   => $is_banned,

  • Deschideti viewtopic.php:
Cautati:
unset($id_cache);
Adaugati dupa:
// BEGIN BAN TEST
$sql = 'SELECT b.*, u.user_id
       FROM ' . BANLIST_TABLE . ' b, ' . USERS_TABLE . ' u
       WHERE (b.ban_end >= ' . time() . '
              OR b.ban_end = 0)'; 
$result = $db->sql_query($sql);
$ban_list = array();
while ($row2 = $db->sql_fetchrow($result))
{
       $ban_list[] = $row2['ban_userid'];
}
$db->sql_freeresult($result);
// END BAN TEST
Cautati:
'U_SEARCH'      => $user_cache[$poster_id]['search'],
Adaugati dupa:
'S_USERID_BANNED' => (in_array($poster_id, $ban_list)) ? true : false,
¤ Şterge-ţi cache.
Să scrii Avertismente intri în forum/language/en/common.php si cauţi:
   'WARNINGS'         => 'Warnings',
Înlocuieşti warnings cu Avertismente.
Iar pentru a-l colora puneţi:
   'WARNINGS'         => <font color="red">'Warnings'</font>,
şi română:
   'WARNINGS'         => <font color="red">'Avertismente'</font>,
red = fiind culoarea.

¤ Tutorial creat 100% de George



Pentru acest mesaj, autorul Erader a primit multumiri de la 4 membri: b4nd3r4s, d3v1l, PăunVictor, warp-88
Rating:10.3%
 
Offline
 Profile  
 
 Post subject: Re: Visual warning mod
PostPosted: 26 Sep 2010, 13:40 
Moderator
User avatar

Joined: 27 Jul 2010, 15:01
Posts: 1602
Location: Romania
Multumiri date: 290
Multumiri primite: 256
Arma Preferata: M4A1
Harta Preferata: de_csgothic
Puncte Reputatie: 4057
Your Ad Here
Frumos tutorial Image







Jocuri Online Image Raspuns.Net Image English Tutorials Image Forum Animale de Companie Image Portal Counter-Strike

Compilator AMXX Image Hosting Servere Image Test CS Image Download CS Gothic 2012 Image Parodie CS-Gothic

Director Web Image TopSites Image Evidenta Redirecte Image Yahoo! Scanner Image Frags Image Photoshop

Download Toolbar Gothic Image Creatii Gothic CS Image Reguli Forum Image Suport CS - Servere
Socializeaza cu Gothic CS Community : [respect-023.gif]
ImageImageImageImageImageImageImageImage
Offline
 Profile  
 
 Post subject: Re: Visual warning mod
PostPosted: 04 Nov 2010, 22:47 
User avatar

Your Ad Here
warp-88 wrote:
Frumos tutorial


GJ pt tutorial....e frumos ! [first.gif]


  
 
 Post subject: Re: Visual warning mod phpbb3 forum
PostPosted: 30 Dec 2010, 15:45 
Membru Incepator
User avatar

Joined: 20 Nov 2010, 16:41
Posts: 81
Multumiri date: 12
Multumiri primite: 11
Puncte Reputatie: 50
Your Ad Here
[hardcore.gif] bravo !


Offline
 Profile  
 
 Post subject: Re: Visual warning mod phpbb3 forum
PostPosted: 24 Feb 2011, 12:52 
Membru Fidel
User avatar

Joined: 02 Nov 2010, 16:31
Posts: 123
Multumiri date: 4
Multumiri primite: 3
Puncte Reputatie: 0
Your Ad Here
l-am incercat si dupa instalare nu mai vreia sa intre in PA.







Image
Offline
 Profile  
 
 Post subject: Re: Visual warning mod phpbb3 forum
PostPosted: 24 Feb 2011, 14:53 
Moderator
User avatar

Joined: 27 Jul 2010, 15:01
Posts: 1602
Location: Romania
Multumiri date: 290
Multumiri primite: 256
Arma Preferata: M4A1
Harta Preferata: de_csgothic
Puncte Reputatie: 4057
Your Ad Here
Mai concret ce eroare da?







Jocuri Online Image Raspuns.Net Image English Tutorials Image Forum Animale de Companie Image Portal Counter-Strike

Compilator AMXX Image Hosting Servere Image Test CS Image Download CS Gothic 2012 Image Parodie CS-Gothic

Director Web Image TopSites Image Evidenta Redirecte Image Yahoo! Scanner Image Frags Image Photoshop

Download Toolbar Gothic Image Creatii Gothic CS Image Reguli Forum Image Suport CS - Servere
Socializeaza cu Gothic CS Community : [respect-023.gif]
ImageImageImageImageImageImageImageImage
Offline
 Profile  
 
 Post subject: Re: Visual warning mod phpbb3 forum
PostPosted: 24 Feb 2011, 16:28 
Membru Fidel
User avatar

Joined: 02 Nov 2010, 16:31
Posts: 123
Multumiri date: 4
Multumiri primite: 3
Puncte Reputatie: 0
Your Ad Here
pur si simplu e pagina alba







Image
Offline
 Profile  
 
Re: Visual warning mod phpbb3 forum Top
 
Display posts from previous:  Sort by  
 Page 1 of 2 [ 10 mesaje ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: