Pagina 7 din 12

Scris: 22-Feb-2006, 14:16:37
de seelview
Nu e de la mod, e de la modificarea ta :P
Dupa cum spune si eroarea, iti lipseste un ')' in fisierul index.php la linia 349.

Uita-te peste cod.

Scris: 22-Feb-2006, 17:59:47
de Fight
Am remediat, insa acum primesc alta eroare:

Cod: Selectaţi tot

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/vali/public_html/includes/usercp_viewprofile.php on line 201
si acolo am (de la line 198 pana la 207)

Cod: Selectaţi tot

'NUMBER_OF_VISIT' => ($profiledata['user_totallogon']>0) ? $profiledata['user_totallogon']: $lang['None'],
'L_NUMBER_OF_PAGES' => $lang['Number_of_pages'], 
'NUMBER_OF_PAGES' => ($profile
	'POSTER_RANK' => $poster_rank,
	'RANK_IMAGE' => $rank_image,
	'POSTS_PER_DAY' => $posts_per_day,
	'POSTS' => $profiledata['user_posts'],
	'PERCENTAGE' => $percentage . '%', 
	'POST_DAY_STATS' => sprintf($lang['User_post_day_stats'], $posts_per_day), 
	'POST_PERCENT_STATS' => sprintf($lang['User_post_pct_stats'], $percentage),

Scris: 22-Feb-2006, 18:02:55
de dorin

Cod: Selectaţi tot

NUMBER_OF_PAGES' => ($profile 
Este foarte clar, virgula aia nu are ce cauta acolo.

Ultima versiune a acestei MODificari 1.2.9em e compatibila cu versiunea 2.0.19 a phpbb:

Cod: Selectaţi tot

############################################################## 
## MOD Title:          Last visit
## MOD Author:         Niels < ncr@db9.dk > (Niels Chr. Rød) http://mods.db9.dk 
## MOD Description:    This mod will register when the user last
##                     logged in, allong with the info about how
##                     many users have visited the board.
## MOD Version:        1.2.9
## 
## Installation Level: Intermediate
## Installation Time:  25 minutes (1mn by EasyMOD of Nuttzy)
## Files To Edit:      14
##      index.php 
##      memberlist.php 
##      search.php
##      admin/admin_board.php 
##      includes/functions.php
##      includes/page_header.php 
##      includes/sessions.php 
##      includes/usercp_viewprofile.php 
##      language/lang_english/lang_admin.php 
##      language/lang_english/lang_main.php 
##      templates/subSilver/index_body.tpl 
##      templates/subSilver/member_body.tpl    
##      templates/subSilver/profile_view_body.tpl  
##      templates/subSilver/admin/board_config_body.tpl    
## Included Files:     0
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: 
## 
## 1. EasyMOD
## -----------
## This MOD is compatible with EasyMOD and can be installed
## by it but is not yet certified EMC (EasyMOD Compliant)!
## http://area51.phpbb.com/phpBB22/viewforum.php?sid=&f=15
##
## Warning 1! At the minimum, you need EasyMOD beta 1 (0.3.0)
## + this fix...
## http://area51.phpbb.com/phpBB/viewtopic.php?sid=&p=130605#130605
## ...or more recent to install this MOD by EM!
##
## Warning 2! At the present time, EM is not able to install
## automatically other languages than English.
## This gap will be solved in future releases but in the meantime,
## if you need to install any other language than English provides
## with this MOD, please proceed manually (cf. comments in
## the DIY action).
##
## 2. Compatibility
## -----------
## This MOD is phpBB 2.0.19 compliant (prior release not tested)
##

Scris: 22-Feb-2006, 22:54:29
de Fight
Da, pe acesta l-am folosit.
Imi poti spune despre ce virgula este vorba? Trebuie sa sterg vreo virgula ca sa mearga?
Merci.

Scris: 22-Feb-2006, 23:53:53
de black ice

Cod: Selectaţi tot

NUMBER_OF_PAGES' => ($profile


E vorba de apostroful ' de după _PAGES care trebuie şters.

Scris: 23-Feb-2006, 00:10:23
de Fight
Nu era de acolo. Am modificat si tot dadea eroare.
Este foarte posibil ca sa nu fi copiat tot codul din fisierul cu explicatii.
Am deschis din nou fisierul original si am pus urmatorul cod si a mers:

Cod: Selectaţi tot

// Start add - Last visit MOD
'L_LOGON' => $lang['Last_logon'], 
'LAST_LOGON' => ($userdata['user_level'] == ADMIN || (!$board_config['hidde_last_logon'] && $profiledata['user_allow_viewonline'])) ? (($profiledata['user_lastlogon'])? create_date($board_config['default_dateformat'], $profiledata['user_lastlogon'], $board_config['board_timezone']):$lang['Never_last_logon']):$lang['Hidde_last_logon'], 

'L_TOTAL_ONLINE_TIME' => $lang['Total_online_time'],
'TOTAL_ONLINE_TIME' => make_hours($profiledata['user_totaltime']),
'L_LAST_ONLINE_TIME' => $lang['Last_online_time'],
'LAST_ONLINE_TIME' => make_hours($profiledata['user_session_time']-$profiledata['user_lastlogon']),
'L_NUMBER_OF_VISIT' => $lang['Number_of_visit'],
'NUMBER_OF_VISIT' => ($profiledata['user_totallogon']>0) ? $profiledata['user_totallogon']: $lang['None'],
'L_NUMBER_OF_PAGES' => $lang['Number_of_pages'], 
'NUMBER_OF_PAGES' => ($profiledata['user_totalpages']) ? $profiledata['user_totalpages']: $lang['None'], 
// End add - Last visit MOD

Scris: 23-Feb-2006, 01:15:09
de black ice
Well, bine ca ai reusit, pentru ca acum ca ma uit mai atent vad ca de fapt nu acel apostrof trebuia sters, ci dimpotriva, mai trebuia adaugat unul in fata la NUMBER.

Scris: 23-Feb-2006, 18:05:47
de dorin

Cod: Selectaţi tot

'NUMBER_OF_PAGES' => ($profile 
M-am exprimat gresit, nu era vorba de virgula ci de paranteza "(" :wink:

Scris: 22-Apr-2006, 08:49:07
de Berti
Salut... asta e primul meu post, asa ca va rog nu dati cu pietre!

Am instalat cu succes cateva mod-uri cu ajutorul forumul dar acum m-am incurcat!

Vreau sa instalez Last Visit Mod, am citit cam tot ce am gasit despre pe acest forum, dar am o problema, nu stiu ce sa fac cu liniile de la SQL, adica astea:

#-----[ SQL ]-------------------------------------------------
#
ALTER TABLE phpbb_users ADD user_lastlogon INT (11) DEFAULT '0' not null;
ALTER TABLE phpbb_users ADD user_totaltime INT (11) DEFAULT '0';
ALTER TABLE phpbb_users ADD user_totallogon INT (11) DEFAULT '0';
ALTER TABLE phpbb_users ADD user_totalpages INT (11) DEFAULT '0';

INSERT INTO phpbb_config (config_name, config_value) VALUES ('hidde_last_logon','0');

UPDATE phpbb_users SET user_lastlogon = user_lastvisit WHERE user_lastlogon = '0';
UPDATE phpbb_users SET user_totallogon = '1' WHERE user_totallogon = '0' AND user_session_time <> '0';
UPDATE phpbb_users SET user_totaltime = (user_session_time - user_lastlogon) WHERE user_totaltime = '0' AND user_lastlogon > '0';


am vazut in posturile mai vechi ca exista un fisier last_visit_db_update.php care banuiesc ca executa liniile repective, dar in zip-ul pe care l-am download-at in afara de instructiunile de instalare in mai multe limbi nu exista nici un fisier php. Chiar scrie in instructiunile de instalare included files = 0.

Va multumesc!

Scris: 22-Apr-2006, 10:34:29
de seelview
Pai sunt doua variante de modificare a bazei de date: fie prin fisierul de care spuneai mai sus, si care nu exista in cazu nostru, fie accesand baza de date a forumului cu un PhpMyAdmin, unde se introduc comenzile scrise de tine.

Acum depinde de hostul unde ai forumul, daca iti ofera sau nu PhpMyAdmin.