APLY-ZONE
Bine ai venit vizitatorule, daca vrei sa ai acces la toate resursele forumului trebuie sa detii un cont. Daca nu detii unul deja iti poti face un cont nou aici : http://aply-zone.forumotion.com/register?agreed=true&step=2

[Tutorial] Instalare Profile Views List

In jos

[Tutorial] Instalare Profile Views List

Mesaj Scris de Castana xD la data de Mar Aug 13, 2013 9:12 pm

Despre acest mod:

Detali: Spectacole vizitatori de profile şi suma totală de vizite, vizite ale utilizatorilor Comentariile nu sunt luate în considerare

Există o pagină separată statistici, listarea tuturor vizitatorilor de profil, inclusiv cantitatea de vizite şi a vizitat ultima dată.

Activarea de numărare a vizitatorilor profil poate fi pornit / oprit prin intermediul ACP.
Suma de secunde până la vederea profil se numără din nou, poate fi schimbat în ACP
Suma de telespectatori de profil recente care sunt listate pe pagina de profil poate fi modificat prin Acordul de parteneriat ACP
Versiune: 1.0.2a
Instalare nivel: Uşor
Timp de instalare: 10 Minute

Fisiere editate:

memberlist.php,
includes/constants.php,
includes/functions_user.php,
styles/prosilver/template/memberlist_view.html,
styles/prosilver/theme/stylesheet.css


Fisiere incluse:

root/adm/style/acp_profileviews.html,
root/includes/acp/acp_profileviews.php,
root/includes/acp/info/acp_profileviews.php,
root/includes/functions_profileviews.php,
root/install/*.*,
root/language/en/mods/*.*,
root/styles/prosilver/template/memberlist_profile_view.html,
root/styles/prosilver/theme/profileview.css


Copiaţi:
Copy: root/adm/style/acp_profileviews.html
To: adm/style/acp_profileviews.html

Copy: root/includes/acp/acp_profileviews.php
To: includes/acp/acp_profileviews.php

Copy: root/includes/acp/info/acp_profileviews.php
To: includes/acp/info/acp_profileviews.php

Copy: root/includes/functions_profileviews.php
To: includes/functions_profileviews.php

Copy: root/install/*.*
To: install/*.*

Copy: root/language/en/mods/*.*
To: language/en/mods/*.*

Copy: root/styles/prosilver/template/memberlist_profile_view.html
To: styles/prosilver/template/memberlist_profile_view.html

Copy: root/styles/prosilver/theme/profileview.css
To: styles/prosilver/theme/profileview.css

Editări:

Deschideti memberlist.php:
Cauta:
Cod:
$user->setup(array('memberlist', 'groups'));

Adauga dupa:
Cod:
include($phpbb_root_path . 'includes/functions_profileviews.' . $phpEx);
$user->setup('mods/profileviews');


Cauta:
Cod:
if (!in_array($mode, array('', 'group', 'viewprofile', 'email', 'contact', 'searchuser', 'leaders'

Cauta in linie :
Cod:
'leaders'

Dupa linie adauga:
Cod:
, 'profile_views'


Cauta:
Cod:
$user_id = (int) $member['user_id'];

Adauga dupa:
Cod:
// Profile views, add user to the views table unless its his/her own profile
if ( ($user->data['user_id'] <> $user_id ) && ($user->data['user_id'] <> ANONYMOUS ) ) //delete this part if you want to enable guest views counting: || ($user->data['user_id'] <> ANONYMOUS )
{
count_visit($user_id);
}

//generate the profile views and views list provided it is enabled via ACP
if ( $config['display_profile_views'] )
{
generate_profile_view_list($user_id);

}


Cauta:
Cod:
$template_html = 'memberlist_view.html';

break;

Adauga dupa:
Cod:
case 'profile_views':

get_profile_views_details($user_id);
// Now generate page title

$page_title = $user->lang['PROFILE_VIEW_STATISTICS'];
$template_html = 'memberlist_profile_view.html';

break;



Deschideti includes/constants.php:
Cauta:
Cod:
// Additional tables

Adauga dupa:
Cod:
define('PROFILE_VIEWS_TABLE', $table_prefix . 'profile_views');


Deschideti includes/functions_user.php:
Cauta:
Cod:
set_config_count('num_users', -1, true);
}

Adauga dupa:
Cod:
// Update the profile views table
$sql = 'DELETE FROM ' . PROFILE_VIEWS_TABLE . '
WHERE profile_user_id = ' . $user_id . '
OR viewer_user_id = ' . $user_id;
$db->sql_query($sql);


Deschideti styles/prosilver/template/memberlist_view.html:
Cauta:
Cod:
<!-- IF S_SHOW_ACTIVITY and POSTS -->
<dt>{L_ACTIVE_IN_FORUM}:</dt> <dd><!-- IF ACTIVE_FORUM --><strong><a href="{U_ACTIVE_FORUM}">{ACTIVE_FORUM}</a></strong><br />({ACTIVE_FORUM_POSTS} / {ACTIVE_FORUM_PCT})<!-- ELSE --> - <!-- ENDIF --></dd>
<dt>{L_ACTIVE_IN_TOPIC}:</dt> <dd><!-- IF ACTIVE_TOPIC --><strong><a href="{U_ACTIVE_TOPIC}">{ACTIVE_TOPIC}</a></strong><br />({ACTIVE_TOPIC_POSTS} / {ACTIVE_TOPIC_PCT})<!-- ELSE --> - <!-- ENDIF --></dd>
<!-- ENDIF -->

Adauga dupa:
Cod:
"
<!-- IF S_PROFILE_VIEWS and PROFILE_VIEWS -->
<dt>{L_PROFILE_VIEWS}:</dt><dd>{PROFILE_VIEWS}</dd>
<dt><a href="{S_PROFILE_VIEW_ACTION}">{L_PROFILE_VIEWS_LIST}</a>:</dt><dd>

<table><tr align="center">
<!-- BEGIN profile_views -->
<td><table><tr align="center" ><td>{profile_views.AVATAR}</td></tr><tr align="center" valign="bottom"><td><b>{profile_views.PROFILE_VIEWS_LIST}</b></td></tr></table></td>
<!-- END profile_views -->
</tr></table>
</dd>
<!-- ENDIF -->


Deschideti styles/prosilver/theme/stylesheet.css:
Cauta:
Cod:
*/


Adauga dupa:
Cod:
@import url("profileview.css");
avatar
Castana xD
Membru
Membru

Mesaje : 54
Puncte : 160
Reputatie : 0
Data de inscriere : 13/08/2013

Vezi profilul utilizatorului

Sus In jos

Re: [Tutorial] Instalare Profile Views List

Mesaj Scris de SPeeDStriKe la data de Mier Aug 14, 2013 1:10 pm

Multumim !
avatar
SPeeDStriKe
Membru
Membru

Mesaje : 913
Puncte : 994
Reputatie : 13
Data de inscriere : 12/08/2013
Varsta : 23
Localizare : Bucuresti

Vezi profilul utilizatorului http://aply-zone.myfreeforum.ro/profile?mode=editprofile

Sus In jos

Sus


 
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum