теперь shop mod ?

Ответы на вопросы, связанные с модами для phpBB 2.0.x, кроме относящихся к форуму Для авторов (phpBB 2.0.x).
pictures
phpBB 1.2.1
Сообщения: 21
Стаж: 19 лет 11 месяцев

теперь shop mod ?

Сообщение pictures »

поставил не работает !
сначала я наткнулся на вот это

Код: Выделить всё

$sql = "SELECT u.username, u.user_level,u.user_id,

Код: Выделить всё

 u.user_level,
вот этого не было
нашел мод поставил как в интсрукции !
поли дальше по факу надо найти строчку

Код: Выделить всё

{postrow.POINTS}
у меня её тоже нет есть строчка

Код: Выделить всё

>{postrow.CASH}<br />
это мод кэша который я до этого ставил !
может из-за этого у меня не показывает купленые кратинке в моде или вообще может из-за другого !
меня вот еще что смущает там в факе есть такая строчка

Код: Выделить всё

 ------[FIND]------
	//
	// Note! The order used for parsing the message _is_ important, moving things around could break any 
	// output
	//


 ------[ADD, BEFORE]------
	if ($board_config['viewtopic'] == "images")
	{
		$itempurge = str_replace("Ю", "", $postrow[$i]['user_items']);
		$itemarray = explode('Я',$itempurge);
		$itemcount = count ($itemarray);
		$user_items = "<br>";
     		for ($xe = 0;$xe < $itemcount;$xe++)
		{
			if ($itemarray[$xe] != NULL)

Код: Выделить всё

	//
	// Note! The order used for parsing the message _is_ important, moving things around could break any 
	// output
	//
я ставлю этот код перед этим правильно ли я делаю ?

thanks !

Добавлено спустя 18 минут 19 секунд:

мои переделки !

я сделал так собрал файлы в кучу !

вот сам фак и моды которые стоят
http://www.zarath.com/mods/shop_mod260.zip - SHOP MOD
http://www.phpbb.com/phpBB/catdb.php?mode=pop&db=1 - CASH MOD

а вот мои измененные файлы
http://www.maturexxxl.com/shop_mod.zip
http://www.maturexxxl.com/cash_mod.zip

если кому не сложно не могли бы посмотреть что я не так зделал ?
буду очень благодарен.
спасибо


вот два фака

Код: Выделить всё

/***************************************************************************
 *                               upgrade.txt
 *                            -------------------
 *   Version              : 2.6.0
 *   released             : Tuesday, August 19th, 2003
 *   forums               : http://forums.knightsofchaos.com
 *   email                : zarath@knightsofchaos.com
 *
 *   requires             : 2.0.0+ phpbb
 *                          points mod
 *                          OR cash mod version 2.x
 *   files to edit        : /includes/auth.php
 *                        : /index.php
 *                        : /includes/usercp_viewprofile.php
 *                        : /viewtopic.php
 *                        : /templates/*/viewtopic_body.tpl
 *                        : /includes/page_header.php
 *                        : /templates/*/overall_header.tpl
 *   difficulty           : medium
 *   time                 : 20-25minutes
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   copyright (C) 2002/2003  IcE-RaiN/Zarath
 *
 *   This program is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU General Public License
 *   as published by the Free Software Foundation; either version 2
 *   of the License, or (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   http://www.gnu.org/copyleft/gpl.html
 *
 ***************************************************************************/

/***************************************************************************
 * Installation
 *
 * 1. Create folder shop
 *
 * 2. Upload files
 *		/shop_install.php
 *		/shop.php
 *		/shop_bs.php
 *		/shop_effects.php
 *		/shop_actions.php
 *		/shop_inventory.php
 *		/admin/admin_shop.php
 *		/templates/*/shop_body.tpl
 *		/templates/*/shop_inventory_body.tpl
 *		/templates/*/admin/shop_config_body.tpl
 *		/shop_install.php
 *		/shop/images/icon_store_rpg.gif
 *
 * 2. Run shop_install.php then delete it.
 *
 * 3. Execute Steps Below
 *
 * 4. Read the FAQ!
 ***************************************************************************/


 ------[OPEN]------
 /viewtopic.php

 ------[FIND]------
//
// Go ahead and pull all data for this topic
// 
$sql = "SELECT u.username, u.user_level, u.user_id,

 ------[ADD, AFTER]------
 u.user_items, u.user_privs, u.user_effects, u.user_custitle,

 ------[FIND]------
	//
	// Note! The order used for parsing the message _is_ important, moving things around could break any 
	// output
	//


 ------[ADD, BEFORE]------
	if ($board_config['viewtopic'] == "images")
	{
		$itempurge = str_replace("Ю", "", $postrow[$i]['user_items']);
		$itemarray = explode('Я',$itempurge);
		$itemcount = count ($itemarray);
		$user_items = "<br>";
     		for ($xe = 0;$xe < $itemcount;$xe++)
		{
			if ($itemarray[$xe] != NULL)
			{
				if ($board_config['viewtopiclimit'] < $xe) { $user_items .= ' <a href="'.append_sid("shop.".$phpEx."?action=inventory&searchid=".$postrow[$i]['user_id']).'" title="'.$postrow[$i]['username'].'\'sInventory">more...</a>'; break; }
				if (file_exists("shop/images/".$itemarray[$xe].".jpg"))
				{
					$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.jpg" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
				}
				elseif (file_exists("shop/images/".$itemarray[$xe].".gif"))
				{
					$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.gif" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
				}
			}
		}
	}
	$usernameurl = append_sid("shop.".$phpEx."?action=inventory&searchid=".$postrow[$i]['user_id']);

	$usereffects = explode("Я", $postrow[$i]['user_effects']);
	$userprivs = explode("Я", $postrow[$i]['user_privs']);
	$usercustitle = explode("Я", $postrow[$i]['user_custitle']);
	$userbs = array();
	$usercount = count($userprivs);
	for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $userprivs[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
	$usercount = count($usereffects);
	for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usereffects[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
	$usercount = count($usercustitle);
	for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usercustitle[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
	$shoparray = explode("Я", $board_config['specialshop']);
	$shoparraycount = count ($shoparray);
	$shopstatarray = array();
	for ($x = 0; $x < $shoparraycount; $x++)
	{
		$temparray = explode("Ю", $shoparray[$x]);
		$shopstatarray[] = $temparray[0];
		$shopstatarray[] = $temparray[1];
	}
	if (($userbs[10] == on) && ($shopstatarray[12] == on)) { $poster = '<font color="'.$userbs[11].'">'.$poster.'</font>'; }
	if ((($userbs[12] == on) && ($shopstatarray[14] == on)) || (($userbs[14] == on) && ($shopstataray[16] = on))) {
		$nameeffects = "<span style=\"width:100";
		if (($userbs[12] == on) && ($shopstatarray[14] == on)) { $nameeffects .= "; filter:shadow(color=#".$userbs[13].", strength=5)"; }
		if (($userbs[14] == on) && ($shopstatarray[16] == on)) { $nameeffects .= "; filter:glow(color=#".$userbs[15].", strength=5)"; }
		$nameeffects .= '">'.$poster.'</span>';
		$poster = $nameeffects;
	}
	if ((($userbs[24] == on) && ($shopstatarray[24] == on)) || (($userbs[20] == on) && ($shopstatarray[22] == on)) || (($userbs[22] == on) && ($shopstataray[20] = on)) || (($userbs[18] == on) && ($shopstatarray[18] == on))) {
		$titleeffects = '<span style="height:10';
		if (($userbs[22] == on) && ($shopstatarray[20] == on)) { $titleeffects .= "; filter:shadow(color=#".$userbs[23].", strength=5)"; }
		if (($userbs[20] == on) && ($shopstatarray[22] == on)) { $titleeffects .= "; filter:glow(color=#".$userbs[21].", strength=5)"; }
		if (($userbs[24] == on) && ($shopstatarray[24] == on)) { $poster_rank = $userbs[25]; }
		if (($userbs[18] == on) && ($shopstatarray[18] == on)) { $poster_rank = '<font color="'.$userbs[19].'">'.$poster_rank.'</font>'; }
		$titleeffects .= '">'.$poster_rank.'</span>';
		$poster_rank = $titleeffects;
	}
	if (($shopstatarray[6] == on) && ($userbs[2] != on) && ($poster_rank != "Site Admin")) { $poster_avatar = ""; }
	if (($shopstatarray[8] == on) && ($userbs[4] != on) && ($poster_rank != "Site Admin")) { $user_sig = ""; }
	if (($shopstatarray[10] == on) && ($userbs[6] != on) && ($poster_rank != "Site Admin")) { $poster_rank = "None"; $rank_image = ""; }

 ------[FIND]------
		'DELETE_IMG' => $delpost_img, 
		'DELETE' => $delpost, 

 ------[ADD, AFTER]------
		'ITEMSNAME' => $usernameurl,
		'ITEMS' => $user_items,


 ------[OPEN]------
 /templates/*/viewtopic_body.tpl

 ------[FIND]------
{postrow.POINTS}

 ------[ADD, AFTER]------ 
<br /><a href="{postrow.ITEMSNAME}">Items</a>{postrow.ITEMS}


 ------[OPEN]------
 /includes/page_header.php

 ------[FIND]------
	'PAGE_TITLE' => $page_title,

 ------[ADD, AFTER]------ 
	'SHOP' => '<img src="shop/images/icon_store_rpg.gif" border="0">Shop',

 ------[FIND]------
	'U_FAQ' => append_sid('faq.'.$phpEx),

 ------[ADD, AFTER]------ 
	'U_SHOP' => append_sid('shop.'.$phpEx),

 ------[OPEN]------
/template/*/overall_header.tpl

 ------[FIND]------
<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>

 ------[ADD, BEFORE]------
<a href="{U_SHOP}" class="mainmenu">{SHOP}</a>


 ------[OPEN]------
includes/usercp_viewprofile.php

 ------[FIND]------
//
// Generate page
//

 ------[ADD, BEFORE]------
if ($board_config['viewprofile'] == "images")
{
	$itempurge = str_replace("Ю", "", $profiledata['user_items']);
	$itemarray = explode('Я',$itempurge);
	$itemcount = count ($itemarray);
	$user_items = "<br>";
	for ($xe = 0;$xe < $itemcount;$xe++)
	{
		if ($itemarray[$xe] != NULL)
		{
			if (file_exists('shop/images/'.$itemarray[$xe].'.jpg'))
			{
				$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.jpg" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
			}
			elseif (file_exists('shop/images/'.$itemarray[$xe].'.gif'))
			{
				$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.gif" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
			}
		}
	}
	$usernameurl = '<a href="'.append_sid('shop.'.$phpEx.'?action=inventory&searchid='.$profiledata['user_id'], true).'" class="nav">Items</a>: ';
}
elseif ($board_config['viewprofile'] == "link")
{
	$usernameurl = '<a href="'.append_sid('shop.'.$phpEx.'?action=inventory&searchid='.$profiledata['user_id'], true).'" class="nav">Items</a>';
}

//start of effects store checks
$shoparray = explode("Я", $board_config['specialshop']);
$shoparraycount = count ($shoparray);
$shopstatarray = array();
for ($x = 0; $x < $shoparraycount; $x++)
{
	$temparray = explode("Ю", $shoparray[$x]);
	$shopstatarray[] = $temparray[0];
	$shopstatarray[] = $temparray[1];
}
//end of effects store checks

$usereffects = explode("Я", $profiledata['user_effects']);
$userprivs = explode("Я", $profiledata['user_privs']);
$usercustitle = explode("Я", $profiledata['user_custitle']);
$userbs = array();
$usercount = count($userprivs);
for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $userprivs[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
$usercount = count($usereffects);
for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usereffects[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
$usercount = count($usercustitle);
for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usercustitle[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }

 ------[FIND]------
	'POSTER_RANK' => $poster_rank,
	'RANK_IMAGE' => $rank_image,

 ------[ADD, AFTER]------
	'INVENTORYLINK' => $usernameurl,
	'INVENTORYPICS' => $user_items,


------[OPEN]------
/templates/*/profile_view_body.tpl

 ------[FIND]------
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>

 ------[ADD, AFTER]------
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{INVENTORYLINK}</span></td>
		  <td> <span class="gen">{INVENTORYPICS}</span></td>
		</tr>


 ------[OPEN]------
includes/auth.php

 ------[FIND]------
	global $db, $lang;

 ------[ADD, AFTER ]------
	//start item auths
	$itemarray = explode('Я', str_replace("Ю", "", $userdata['user_items']));

	$sql = "select name, accessforum from phpbb_shopitems where accessforum != '0'";
	if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error!<br>".mysql_error()); }
	$num_rows = mysql_num_rows($result);

	$itemformaccess = array();
	for ($x = 0; $x < $num_rows; $x++)
	{
		$row = mysql_fetch_array($result);
		if (in_array($row['name'], $itemarray))
		{
			$itemformaccess[] = $row['accessforum'];
		}
	}

 ------[FIND]------
		if ( $forum_id != AUTH_LIST_ALL )
		{
			$value = $f_access[$key];

 ------[ADD, AFTER ]------
			if (in_array($forum_id, $itemformaccess) && (!in_array("auth_sticky",$auth_fields) && !in_array("auth_announce",$auth_fields) && !in_array("auth_delete",$auth_fields) && ($userdata['user_level'] == 0)))
			{
				$value = 1;
			}
 ------[FIND]------
			for($k = 0; $k < count($f_access); $k++)
			{
				$value = $f_access[$k][$key];
				$f_forum_id = $f_access[$k]['forum_id'];

 ------[ADD, AFTER ]------
				if (in_array($forum_id, $itemformaccess) && (!in_array("auth_sticky",$auth_fields) && !in_array("auth_announce",$auth_fields) && !in_array("auth_delete",$auth_fields) && ($userdata['user_level'] == 0)))
				{
					$value = 1;
				}


 ------[OPEN]------
index.php

 ------[FIND]------
	$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

 ------[ADD, AFTER ]------
	$itemarray = explode('Я', str_replace("Ю", "", $userdata['user_items']));

	$sql = "select name, accessforum from phpbb_shopitems where accessforum != '0' and accessforum > '0'";
	if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error!".mysql_error()); }
	$num_rows = mysql_num_rows($result);

	$itemformaccess = array();
	$itemcataccess = array();
	for ($x = 0; $x < $num_rows; $x++)
	{
		$row = mysql_fetch_array($result);
		if (in_array($row['name'], $itemarray))
		{
			$itemformaccess[] = $row['accessforum'];

			$sql = "select cat_id from " . FORUMS_TABLE . " where forum_id = '{$row['accessforum']}'";
			if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error: ".mysql_error()); }
			$row2 = mysql_fetch_array($result);

			$itemcataccess[] = $row2['cat_id'];
		}
	}

 ------[FIND]------
		//
		// Yes, we should, so first dump out the category

 ------[ADD, BEFORE]------
		if (in_array($cat_id, $itemcataccess)) {
			$display_forums = true;
		}

 ------[FIND]------
						if ( $is_auth_ary[$forum_id]['auth_view'] )

 ------[REPLACE WITH]------
						if ( $is_auth_ary[$forum_id]['auth_view'] || in_array($forum_id, $itemformaccess))

 ------[SAVE/CLOSE ALL FILES]------

Код: Выделить всё

/***************************************************************************
 *                               upgrade.txt
 *                            -------------------
 *   Version              : 2.6.0
 *   released             : Tuesday, August 19th, 2003
 *   forums               : http://forums.knightsofchaos.com
 *   email                : zarath@knightsofchaos.com
 *
 *   requires             : 2.0.0+ phpbb
 *                          points mod
 *                          OR cash mod version 2.x
 *   files to edit        : /includes/auth.php
 *                        : /index.php
 *                        : /includes/usercp_viewprofile.php
 *                        : /viewtopic.php
 *                        : /templates/*/viewtopic_body.tpl
 *                        : /includes/page_header.php
 *                        : /templates/*/overall_header.tpl
 *   difficulty           : medium
 *   time                 : 20-25minutes
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   copyright (C) 2002/2003  IcE-RaiN/Zarath
 *
 *   This program is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU General Public License
 *   as published by the Free Software Foundation; either version 2
 *   of the License, or (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   http://www.gnu.org/copyleft/gpl.html
 *
 ***************************************************************************/

/***************************************************************************
 * Installation
 *
 * 1. Create folder shop
 *
 * 2. Upload files
 *		/shop_install.php
 *		/shop.php
 *		/shop_bs.php
 *		/shop_effects.php
 *		/shop_actions.php
 *		/shop_inventory.php
 *		/admin/admin_shop.php
 *		/templates/*/shop_body.tpl
 *		/templates/*/shop_inventory_body.tpl
 *		/templates/*/admin/shop_config_body.tpl
 *		/shop_install.php
 *		/shop/images/icon_store_rpg.gif
 *
 * 2. Run shop_install.php then delete it.
 *
 * 3. Execute Steps Below
 *
 * 4. Read the FAQ!
 ***************************************************************************/


 ------[OPEN]------
 /viewtopic.php

 ------[FIND]------
//
// Go ahead and pull all data for this topic
// 
$sql = "SELECT u.username, u.user_level, u.user_id,

 ------[ADD, AFTER]------
 u.user_items, u.user_privs, u.user_effects, u.user_custitle,

 ------[FIND]------
	//
	// Note! The order used for parsing the message _is_ important, moving things around could break any 
	// output
	//


 ------[ADD, BEFORE]------
	if ($board_config['viewtopic'] == "images")
	{
		$itempurge = str_replace("Ю", "", $postrow[$i]['user_items']);
		$itemarray = explode('Я',$itempurge);
		$itemcount = count ($itemarray);
		$user_items = "<br>";
     		for ($xe = 0;$xe < $itemcount;$xe++)
		{
			if ($itemarray[$xe] != NULL)
			{
				if ($board_config['viewtopiclimit'] < $xe) { $user_items .= ' <a href="'.append_sid("shop.".$phpEx."?action=inventory&searchid=".$postrow[$i]['user_id']).'" title="'.$postrow[$i]['username'].'\'sInventory">more...</a>'; break; }
				if (file_exists("shop/images/".$itemarray[$xe].".jpg"))
				{
					$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.jpg" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
				}
				elseif (file_exists("shop/images/".$itemarray[$xe].".gif"))
				{
					$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.gif" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
				}
			}
		}
	}
	$usernameurl = append_sid("shop.".$phpEx."?action=inventory&searchid=".$postrow[$i]['user_id']);

	$usereffects = explode("Я", $postrow[$i]['user_effects']);
	$userprivs = explode("Я", $postrow[$i]['user_privs']);
	$usercustitle = explode("Я", $postrow[$i]['user_custitle']);
	$userbs = array();
	$usercount = count($userprivs);
	for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $userprivs[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
	$usercount = count($usereffects);
	for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usereffects[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
	$usercount = count($usercustitle);
	for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usercustitle[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
	$shoparray = explode("Я", $board_config['specialshop']);
	$shoparraycount = count ($shoparray);
	$shopstatarray = array();
	for ($x = 0; $x < $shoparraycount; $x++)
	{
		$temparray = explode("Ю", $shoparray[$x]);
		$shopstatarray[] = $temparray[0];
		$shopstatarray[] = $temparray[1];
	}
	if (($userbs[10] == on) && ($shopstatarray[12] == on)) { $poster = '<font color="'.$userbs[11].'">'.$poster.'</font>'; }
	if ((($userbs[12] == on) && ($shopstatarray[14] == on)) || (($userbs[14] == on) && ($shopstataray[16] = on))) {
		$nameeffects = "<span style=\"width:100";
		if (($userbs[12] == on) && ($shopstatarray[14] == on)) { $nameeffects .= "; filter:shadow(color=#".$userbs[13].", strength=5)"; }
		if (($userbs[14] == on) && ($shopstatarray[16] == on)) { $nameeffects .= "; filter:glow(color=#".$userbs[15].", strength=5)"; }
		$nameeffects .= '">'.$poster.'</span>';
		$poster = $nameeffects;
	}
	if ((($userbs[24] == on) && ($shopstatarray[24] == on)) || (($userbs[20] == on) && ($shopstatarray[22] == on)) || (($userbs[22] == on) && ($shopstataray[20] = on)) || (($userbs[18] == on) && ($shopstatarray[18] == on))) {
		$titleeffects = '<span style="height:10';
		if (($userbs[22] == on) && ($shopstatarray[20] == on)) { $titleeffects .= "; filter:shadow(color=#".$userbs[23].", strength=5)"; }
		if (($userbs[20] == on) && ($shopstatarray[22] == on)) { $titleeffects .= "; filter:glow(color=#".$userbs[21].", strength=5)"; }
		if (($userbs[24] == on) && ($shopstatarray[24] == on)) { $poster_rank = $userbs[25]; }
		if (($userbs[18] == on) && ($shopstatarray[18] == on)) { $poster_rank = '<font color="'.$userbs[19].'">'.$poster_rank.'</font>'; }
		$titleeffects .= '">'.$poster_rank.'</span>';
		$poster_rank = $titleeffects;
	}
	if (($shopstatarray[6] == on) && ($userbs[2] != on) && ($poster_rank != "Site Admin")) { $poster_avatar = ""; }
	if (($shopstatarray[8] == on) && ($userbs[4] != on) && ($poster_rank != "Site Admin")) { $user_sig = ""; }
	if (($shopstatarray[10] == on) && ($userbs[6] != on) && ($poster_rank != "Site Admin")) { $poster_rank = "None"; $rank_image = ""; }

 ------[FIND]------
		'DELETE_IMG' => $delpost_img, 
		'DELETE' => $delpost, 

 ------[ADD, AFTER]------
		'ITEMSNAME' => $usernameurl,
		'ITEMS' => $user_items,


 ------[OPEN]------
 /templates/*/viewtopic_body.tpl

 ------[FIND]------
{postrow.POINTS}

 ------[ADD, AFTER]------ 
<br /><a href="{postrow.ITEMSNAME}">Items</a>{postrow.ITEMS}


 ------[OPEN]------
 /includes/page_header.php

 ------[FIND]------
	'PAGE_TITLE' => $page_title,

 ------[ADD, AFTER]------ 
	'SHOP' => '<img src="shop/images/icon_store_rpg.gif" border="0">Shop',

 ------[FIND]------
	'U_FAQ' => append_sid('faq.'.$phpEx),

 ------[ADD, AFTER]------ 
	'U_SHOP' => append_sid('shop.'.$phpEx),

 ------[OPEN]------
/template/*/overall_header.tpl

 ------[FIND]------
<a href="{U_LOGIN_LOGOUT}" class="mainmenu">{L_LOGIN_LOGOUT}</a>

 ------[ADD, BEFORE]------
<a href="{U_SHOP}" class="mainmenu">{SHOP}</a>


 ------[OPEN]------
includes/usercp_viewprofile.php

 ------[FIND]------
//
// Generate page
//

 ------[ADD, BEFORE]------
if ($board_config['viewprofile'] == "images")
{
	$itempurge = str_replace("Ю", "", $profiledata['user_items']);
	$itemarray = explode('Я',$itempurge);
	$itemcount = count ($itemarray);
	$user_items = "<br>";
	for ($xe = 0;$xe < $itemcount;$xe++)
	{
		if ($itemarray[$xe] != NULL)
		{
			if (file_exists('shop/images/'.$itemarray[$xe].'.jpg'))
			{
				$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.jpg" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
			}
			elseif (file_exists('shop/images/'.$itemarray[$xe].'.gif'))
			{
				$user_items .= ' <img src="shop/images/'.$itemarray[$xe].'.gif" title="'.$itemarray[$xe].'" alt="'.$itemaray[$xe].'">';
			}
		}
	}
	$usernameurl = '<a href="'.append_sid('shop.'.$phpEx.'?action=inventory&searchid='.$profiledata['user_id'], true).'" class="nav">Items</a>: ';
}
elseif ($board_config['viewprofile'] == "link")
{
	$usernameurl = '<a href="'.append_sid('shop.'.$phpEx.'?action=inventory&searchid='.$profiledata['user_id'], true).'" class="nav">Items</a>';
}

//start of effects store checks
$shoparray = explode("Я", $board_config['specialshop']);
$shoparraycount = count ($shoparray);
$shopstatarray = array();
for ($x = 0; $x < $shoparraycount; $x++)
{
	$temparray = explode("Ю", $shoparray[$x]);
	$shopstatarray[] = $temparray[0];
	$shopstatarray[] = $temparray[1];
}
//end of effects store checks

$usereffects = explode("Я", $profiledata['user_effects']);
$userprivs = explode("Я", $profiledata['user_privs']);
$usercustitle = explode("Я", $profiledata['user_custitle']);
$userbs = array();
$usercount = count($userprivs);
for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $userprivs[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
$usercount = count($usereffects);
for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usereffects[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }
$usercount = count($usercustitle);
for ($x = 0; $x < $usercount; $x++) { $temppriv = explode("Ю", $usercustitle[$x]); $userbs[] = $temppriv[0]; $userbs[] = $temppriv[1]; }

 ------[FIND]------
	'POSTER_RANK' => $poster_rank,
	'RANK_IMAGE' => $rank_image,

 ------[ADD, AFTER]------
	'INVENTORYLINK' => $usernameurl,
	'INVENTORYPICS' => $user_items,


------[OPEN]------
/templates/*/profile_view_body.tpl

 ------[FIND]------
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{L_INTERESTS}:</span></td>
		  <td> <b><span class="gen">{INTERESTS}</span></b></td>
		</tr>

 ------[ADD, AFTER]------
		<tr> 
		  <td valign="top" align="right" nowrap="nowrap"><span class="gen">{INVENTORYLINK}</span></td>
		  <td> <span class="gen">{INVENTORYPICS}</span></td>
		</tr>


 ------[OPEN]------
includes/auth.php

 ------[FIND]------
	global $db, $lang;

 ------[ADD, AFTER ]------
	//start item auths
	$itemarray = explode('Я', str_replace("Ю", "", $userdata['user_items']));

	$sql = "select name, accessforum from phpbb_shopitems where accessforum != '0'";
	if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error!<br>".mysql_error()); }
	$num_rows = mysql_num_rows($result);

	$itemformaccess = array();
	for ($x = 0; $x < $num_rows; $x++)
	{
		$row = mysql_fetch_array($result);
		if (in_array($row['name'], $itemarray))
		{
			$itemformaccess[] = $row['accessforum'];
		}
	}

 ------[FIND]------
		if ( $forum_id != AUTH_LIST_ALL )
		{
			$value = $f_access[$key];

 ------[ADD, AFTER ]------
			if (in_array($forum_id, $itemformaccess) && (!in_array("auth_sticky",$auth_fields) && !in_array("auth_announce",$auth_fields) && !in_array("auth_delete",$auth_fields) && ($userdata['user_level'] == 0)))
			{
				$value = 1;
			}
 ------[FIND]------
			for($k = 0; $k < count($f_access); $k++)
			{
				$value = $f_access[$k][$key];
				$f_forum_id = $f_access[$k]['forum_id'];

 ------[ADD, AFTER ]------
				if (in_array($forum_id, $itemformaccess) && (!in_array("auth_sticky",$auth_fields) && !in_array("auth_announce",$auth_fields) && !in_array("auth_delete",$auth_fields) && ($userdata['user_level'] == 0)))
				{
					$value = 1;
				}


 ------[OPEN]------
index.php

 ------[FIND]------
	$is_auth_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata, $forum_data);

 ------[ADD, AFTER ]------
	$itemarray = explode('Я', str_replace("Ю", "", $userdata['user_items']));

	$sql = "select name, accessforum from phpbb_shopitems where accessforum != '0' and accessforum > '0'";
	if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error!".mysql_error()); }
	$num_rows = mysql_num_rows($result);

	$itemformaccess = array();
	$itemcataccess = array();
	for ($x = 0; $x < $num_rows; $x++)
	{
		$row = mysql_fetch_array($result);
		if (in_array($row['name'], $itemarray))
		{
			$itemformaccess[] = $row['accessforum'];

			$sql = "select cat_id from " . FORUMS_TABLE . " where forum_id = '{$row['accessforum']}'";
			if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, "Database Connection Error: ".mysql_error()); }
			$row2 = mysql_fetch_array($result);

			$itemcataccess[] = $row2['cat_id'];
		}
	}

 ------[FIND]------
		//
		// Yes, we should, so first dump out the category

 ------[ADD, BEFORE]------
		if (in_array($cat_id, $itemcataccess)) {
			$display_forums = true;
		}

 ------[FIND]------
						if ( $is_auth_ary[$forum_id]['auth_view'] )

 ------[REPLACE WITH]------
						if ( $is_auth_ary[$forum_id]['auth_view'] || in_array($forum_id, $itemformaccess))

 ------[SAVE/CLOSE ALL FILES]------
Kovalev
phpBB 1.4.1
Сообщения: 40
Стаж: 20 лет 1 месяц

Сообщение Kovalev »

Я поставил все работает только нет время перевести его на русский админ часть перевел!
Моргающую откровенную рекламу мы не любим...
pictures
phpBB 1.2.1
Сообщения: 21
Стаж: 19 лет 11 месяцев

Сообщение pictures »

моешь как то кинуть мне те файлы что ты менял !
хочу взглянуть может я что не так деаю ?
или дать ссылку кидани на support@vidnoe-online.ru
Kovalev
phpBB 1.4.1
Сообщения: 40
Стаж: 20 лет 1 месяц

Сообщение Kovalev »

отправил зыркай в ящик!
Моргающую откровенную рекламу мы не любим...
pictures
phpBB 1.2.1
Сообщения: 21
Стаж: 19 лет 11 месяцев

Сообщение pictures »

а зачем вы мне мод прислали я его вроде как и сам могу скачать !
я же просил те файлы что вы меняли при установки мода что написано в факе !
вот что мне нужно !
pictures
phpBB 1.2.1
Сообщения: 21
Стаж: 19 лет 11 месяцев

Сообщение pictures »

мне наверное уже не кто не поможет !
последний писк о помощи !
помогите плизззз :(

Добавлено спустя 1 минуту 6 секунд:

напрашивается вопрос не может ли вся эта лабуда зависить от нормальной работы mysql базы !
если да то как её можно проверить ?
Аватара пользователя
Nikel
phpBB 2.0.5
Сообщения: 496
Стаж: 20 лет
Откуда: Киев

Сообщение Nikel »

pictures писал(а):мне наверное уже не кто не поможет
А что Вы собственно хочете ?
Чтобы кто-то научил Вас ставить моды ?
Хочешь помочь коллеге- поделись опытом, хочешь помочь профессионалу-отойди и не мешай, хочешь помочь дураку... Сам дурак
pictures
phpBB 1.2.1
Сообщения: 21
Стаж: 19 лет 11 месяцев

Сообщение pictures »

Nikel писал(а):
pictures писал(а):мне наверное уже не кто не поможет
А что Вы собственно хочете ?
Чтобы кто-то научил Вас ставить моды ?
нет абсалютно нет ! я просто хочу что бы меня ткнули носом в чем дело ! я просто можно сказать в этом деле лох !
я хочу хоть чуть чуть понять в чем дело !
Аватара пользователя
Nikel
phpBB 2.0.5
Сообщения: 496
Стаж: 20 лет
Откуда: Киев

Сообщение Nikel »

pictures
:wink:
Разжалобили Вы меня однако.
Киньте на мыло мне все Ваши измененные файлы .
Хочешь помочь коллеге- поделись опытом, хочешь помочь профессионалу-отойди и не мешай, хочешь помочь дураку... Сам дурак
pictures
phpBB 1.2.1
Сообщения: 21
Стаж: 19 лет 11 месяцев

Сообщение pictures »

спасибо за отклик !
я выслал на вашу почту
спасибо
Gyrje
phpBB 1.2.0
Сообщения: 11
Стаж: 19 лет 6 месяцев

Сообщение Gyrje »

Привет, скинте перевод. :oops:

Gyrje@mail.ru

Добавлено спустя 5 часов 48 минут 47 секунд:

Неужели не кто прислать не может..?
Gyrje
phpBB 1.2.0
Сообщения: 11
Стаж: 19 лет 6 месяцев

Сообщение Gyrje »

хм.. так перевода и не дождался..
Аватара пользователя
RWinner
phpBB 1.4.4
Сообщения: 162
Стаж: 19 лет 3 месяца
Благодарил (а): 12 раз

Re: теперь shop mod ?

Сообщение RWinner »

pictures писал(а):поставил не работает !
сначала я наткнулся на вот это

Код: Выделить всё

$sql = "SELECT u.username, u.user_level,u.user_id,

Код: Выделить всё

 u.user_level,
вот этого не было
нашел мод поставил как в интсрукции !
поли дальше по факу надо найти строчку

Код: Выделить всё

{postrow.POINTS}
у меня её тоже нет есть строчка

Код: Выделить всё

>{postrow.CASH}<br />
это мод кэша который я до этого ставил !
может из-за этого у меня не показывает купленые кратинке в моде или вообще может из-за другого !
Только что установил на 2.19...

1. u.user_level у меня тоже нету - наплевал на это обстоятельство :D

2. {postrow.CASH} в данном случае эквивалентен {postrow.POINTS} (у меня тоже Cash Mod)

/ http://www.phpbb.com/phpBB/viewtopic.ph ... 485#710485 - правда там данные устарели - просто для инфы :roll: /

Потестировал пока что только Special Shop - вроде работает...

Правда непонятки с продажей подписей какие-то... и фильтры Glow и Shadow работают только в IE. А в FF и Opera не отображаются... :?
Давненько я здесь не был... (-:
krechmer

Сообщение krechmer »

RWinner писал(а):... и фильтры Glow и Shadow работают только в IE. А в FF и Opera не отображаются...
такая же беда...
Аватара пользователя
RWinner
phpBB 1.4.4
Сообщения: 162
Стаж: 19 лет 3 месяца
Благодарил (а): 12 раз

Сообщение RWinner »

такая же беда...
Да и не беда даже... Я бы сказал "Полный П" (с) :D

см. ссылку на решение этой проблемы в: http://www.phpbbguru.net/community/viewtopic.php?t=6990 - суть в том, что ни ФФ ни Опера эти фильтры в том виде, в каком их кушает ИЕ - не отображают в принципе... :cry:

***

pictures - немного разобрался вроде с Шопом... В чем у тебя конкретно проблема? Т.е. как проявляется? Т.е. "не работает" - это что именно означает?
Давненько я здесь не был... (-:

Вернуться в «Поддержка модов для phpBB 2.0.x»