Pagina 1 din 1
cum sa instalez si eu MOD ?
Scris: 23-Sep-2006, 14:07:12
de CraniuRosu
m-am uitat prin proapte toate topicurile si nu am gasit cum sa instalez si eu MOD imi trebuie ceva instalat pe forum sau cum sa fac vreu si eu mod acele chesti cu top topicuri topicuri recente top user si nu stiu cum sa le instalez daca se poate sa ma ajute si pre mine cineva dar as vrea sa imi arate mai detalait
multumesc anticipat
Scris: 23-Sep-2006, 14:16:30
de Etherfast
Daca cunosti limba engleza, te uiti prin fisierele "README" ale MOD-urilor respective. Ai nevoie cel putin de cunostiinte de baza ca sa instalezi un MOD pe forum.
Nu te poti astepta sa iti spunem noi pas cu pas ce sa faci, practic sa iti dam mura in gura.
Daca ai inceput sa instalezi un MOD si te-ai blocat undeva, atunci putem incerca sa te ajutam.
Daca ai nevoie de indicatii asupra cum poti sa incepi sa instalezi un MOD, citeste
asta.
Scris: 23-Sep-2006, 14:18:13
de CraniuRosu
stiu limba englez dar nu imi iese
Scris: 23-Sep-2006, 14:20:20
de Etherfast
Ce MOD incerci sa instalezi si unde te blochezi? Nu pot citi ganduri.
Scris: 23-Sep-2006, 14:22:17
de CraniuRosu
view_category_name_1.2.0 pasta il vreu dar imi da un simplu text ce fac cu el unde il bag ?
Scris: 23-Sep-2006, 14:27:32
de octaviansan
Citeste install.txt si fa ce spune acolo
Scris: 23-Sep-2006, 14:29:18
de CraniuRosu
loooool domane ce noob sunt
Cod: Selectaţi tot
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]----------------------------------------
#
// View category name MOD, By Manipe (Begin)
// Gets the category name and id of a particular forum.
function get_category($forum_id){
global $db;
$sql = "SELECT c.cat_title, c.cat_id
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.forum_id = '$forum_id'
AND c.cat_id = f.cat_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain category information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$cat_info = array("id" => $row['cat_id'], "title" => $row['cat_title']);
$db->sql_freeresult($result);
return $cat_info;
}
// View category name MOD, By Manipe (End)
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/modcp_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td><span>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
->
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
-> <a href="{U_CAT}" class="nav">{CAT_NAME}</a>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/modcp_split.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td><a href="{U_INDEX}" class="nav">
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<span>
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
-> <a href="{U_CAT}" class="nav">{CAT_NAME}</a>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
->
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
-> <a href="{U_CAT}" class="nav">{CAT_NAME}</a>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td><span> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<a class="nav" href="{U_VIEW_FORUM}">
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
<a href="{U_CAT}" class="nav">{CAT_NAME}</a> ->
#
#-----[ FIND ]------------------------------------------------
#
<td><span> <a href="{U_INDEX}" class="nav">{L_INDEX}</a> -> <a class="nav" href="{U_VIEW_FORUM}">{FORUM_NAME}</a></span></td>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<a class="nav" href="{U_VIEW_FORUM}">
#
#-----[ IN-LINE BEFORE, ADD ]---------------------------------
#
<a href="{U_CAT}" class="nav">{CAT_NAME}</a> ->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<td><span> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
</tr>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
-> <a href="{U_CAT}" class="nav">{CAT_NAME}</a>
#
#-----[ FIND ]------------------------------------------------
#
<td><span> <a href="{U_INDEX}" class="nav">{L_INDEX}</a>
-> <a href="{U_VIEW_FORUM}" class="nav">{FORUM_NAME}</a></span></td>
<td><span>{S_TIMEZONE}</span><br><span>{PAGINATION}</span>
#
#-----[ IN-LINE FIND ]----------------------------------------
#
<a href="{U_INDEX}" class="nav">{L_INDEX}</a>
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
-> <a href="{U_CAT}" class="nav">{CAT_NAME}</a>
#
#-----[ OPEN ]------------------------------------------------
#
modcp.php
#
#-----[ FIND ]------------------------------------------------
#
//
// Start session management
//
$userdata = session_pagestart($user_ip, $forum_id);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// View category name MOD, By Manipe (Begin)
$cat_info = get_category($forum_id);
// View category name MOD, By Manipe (End)
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_NAME' => $forum_name,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// View category name MOD, By Manipe (Begin)
'CAT_NAME' => $cat_info['title'],
'U_CAT' => append_sid($phpbb_root_path . "index.$phpEx?" . POST_CAT_URL . "=" . $cat_info['id']),
// View category name MOD, By Manipe (End)
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_NAME' => $forum_name,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// View category name MOD, By Manipe (Begin)
'CAT_NAME' => $cat_info['title'],
'U_CAT' => append_sid($phpbb_root_path . "index.$phpEx?" . POST_CAT_URL . "=" . $cat_info['id']),
// View category name MOD, By Manipe (End)
#
#-----[ OPEN ]------------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------------
#
$forum_name = $post_info['forum_name'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
// View category name MOD, By Manipe (Begin)
$cat_info = get_category($forum_id);
// View category name MOD, By Manipe (End)
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_NAME' => $forum_name,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// View category name MOD, By Manipe (Begin)
'CAT_NAME' => $cat_info['title'],
'U_CAT' => append_sid($phpbb_root_path . "index.$phpEx?" . POST_CAT_URL . "=" . $cat_info['id']),
// View category name MOD, By Manipe (End)
#
#-----[ OPEN ]------------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------------
#
$template->set_filenames(array(
'body' => 'viewforum_body.tpl')
);
make_jumpbox('viewforum.'.$phpEx);
#
#-----[ AFTER, ADD ]------------------------------------------
#
// View category name MOD, By Manipe (Begin)
$cat_info = get_category($forum_id);
// View category name MOD, By Manipe (End)
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_row['forum_name'],
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// View category name MOD, By Manipe (Begin)
'CAT_NAME' => $cat_info['title'],
'U_CAT' => append_sid($phpbb_root_path . "index.$phpEx?" . POST_CAT_URL . "=" . $cat_info['id']),
// View category name MOD, By Manipe (End)
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
//
// Send vars to template
//
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// View category name MOD, By Manipe (Begin)
$cat_info = get_category($forum_id);
// View category name MOD, By Manipe (End)
#
#-----[ FIND ]------------------------------------------------
#
'FORUM_ID' => $forum_id,
'FORUM_NAME' => $forum_name,
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// View category name MOD, By Manipe (Begin)
'CAT_NAME' => $cat_info['title'],
'U_CAT' => append_sid($phpbb_root_path . "index.$phpEx?" . POST_CAT_URL . "=" . $cat_info['id']),
// View category name MOD, By Manipe (End)
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM
multumesc mult
aici am si o porb ce trebuie sa ii fac sau mai bine zis unde trebuie sa modific ?
Cod: Selectaţi tot
#-----[ BEFORE, ADD ]----------------------------------------
#
// View category name MOD, By Manipe (Begin)
// Gets the category name and id of a particular forum.
function get_category($forum_id){
global $db;
$sql = "SELECT c.cat_title, c.cat_id
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.forum_id = '$forum_id'
AND c.cat_id = f.cat_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain category information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$cat_info = array("id" => $row['cat_id'], "title" => $row['cat_title']);
$db->sql_freeresult($result);
return $cat_info;
}
// View category name MOD, By Manipe (End)
#
Scris: 23-Sep-2006, 14:36:40
de CraniuRosu
aici am si o porb ce trebuie sa ii fac sau mai bine zis unde trebuie sa modific ?
Cod: Selectaţi tot
#-----[ BEFORE, ADD ]----------------------------------------
#
// View category name MOD, By Manipe (Begin)
// Gets the category name and id of a particular forum.
function get_category($forum_id){
global $db;
$sql = "SELECT c.cat_title, c.cat_id
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.forum_id = '$forum_id'
AND c.cat_id = f.cat_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain category information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$cat_info = array("id" => $row['cat_id'], "title" => $row['cat_title']);
$db->sql_freeresult($result);
return $cat_info;
}
// View category name MOD, By Manipe (End)
#
Scris: 23-Sep-2006, 14:59:47
de evo_vii
Cod: Selectaţi tot
#-----[ OPEN ]------------------------------------------------
#
includes/functions.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]----------------------------------------
#
// View category name MOD, By Manipe (Begin)
// Gets the category name and id of a particular forum.
function get_category($forum_id){
global $db;
$sql = "SELECT c.cat_title, c.cat_id
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.forum_id = '$forum_id'
AND c.cat_id = f.cat_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain category information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$cat_info = array("id" => $row['cat_id'], "title" => $row['cat_title']);
$db->sql_freeresult($result);
return $cat_info;
}
// View category name MOD, By Manipe (End)
in fisierul specificat in ultimile randuri adaugi ( inaintea la ?> )
Scris: 23-Sep-2006, 15:00:53
de Etherfast
Sa inteleg ca te-ai blocat la prima instructiune?

Deschizi includes/functions.php si dai scroll in jos pana la sfarsitul lui.
Inainte de :
Pui asta :
Cod: Selectaţi tot
// View category name MOD, By Manipe (Begin)
// Gets the category name and id of a particular forum.
function get_category($forum_id){
global $db;
$sql = "SELECT c.cat_title, c.cat_id
FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f
WHERE f.forum_id = '$forum_id'
AND c.cat_id = f.cat_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain category information', '', __LINE__, __FILE__, $sql);
}
$row = $db->sql_fetchrow($result);
$cat_info = array("id" => $row['cat_id'], "title" => $row['cat_title']);
$db->sql_freeresult($result);
return $cat_info;
}
// View category name MOD, By Manipe (End)