Shop Mod not installing right on EM

Wondering why that MOD you have won't install correctly? Let's take a look
Forum rules
DO NOT give out any FTP passwords to anyone! There is no reason to do so! If you need help badly enough, create a temporary FTP account that is restricted to only the files that you need help with and give the information for that. Giving out FTP information can be very dangerous!
Locked
SecretGlitch
Registered User
Posts: 1
Joined: Tue Jul 31, 2007 11:18 pm

Shop Mod not installing right on EM

Post by SecretGlitch »

Zarath's newest edition of the Shop Mod is not processing well with EM. When I process it I get 2 errors:

Warning

FIND FAILED: In file [templates/subBlack/overall_header.tpl] could not find:

<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subBlack/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>

MOD script line #414



Critical Error

FIND FAILED: In file [templates/subSilver/viewtopic_body.tpl] could not find:

<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />{postrow.CASH}</span><br /></td>

MOD script line #455



And when I install it anyway, the shop button does not appear in the navigation, and going to the shop.php page, it gives me a fatal error.

zellfaze
Registered User
Posts: 1
Joined: Sat Aug 11, 2007 7:39 pm

Re: Shop Mod not installing right on EM

Post by zellfaze »

The first error you are getting is because it cannot find where the menu in SubBlack is (thus the reason why the shop mod does not appear there). The second error you get is from it not finding the post section in SubSilver. The error in subsilver I dont know why that is coming up, but my suggestion is to just do that section your self. I have instructions that should fix your critical error below.

Please backup your database and all moded files before doing any of the following

The line is in the subsilver file on an unmoded phpbb 2.0.22 forum, and it seems to be there on my heavily moded phpbb 2.0.22 forum also. Open the file templates/subsilver/veiwtopic_body.tpl The line you are looking for is as follows:

Code: Select all

<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />{postrow.CASH}</span><br /></td>
And should be replaced with:

Code: Select all

<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br /><a href="{postrow.ITEMSNAME}">{L_ITEMS}</a><br />{postrow.ITEMS}<br />{postrow.CASH}</span><br /></td>
Then find the section in the mod_install.txt file that says:

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl

#
#-----[ FIND ]------------------------------------------
#		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />{postrow.CASH}</span><br /></td>

		<td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}<br />{postrow.CASH}</span><br /></td>

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_FROM}

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

and delete it. That should fix your critical error.

Please note:
I do not claim any responsability if something gets screwed up as you try my fix, as that I do not know the full details of your forum and the mods installed on it.

loftyD
Registered User
Posts: 2
Joined: Wed Sep 26, 2007 6:37 pm

Re: Shop Mod not installing right on EM

Post by loftyD »

I get an error with the shop mod concerning "viewtopic.php"


FIND FAILED: In file [viewtopic.php] could not find:

$template->assign_block_vars('postrow', array(

Did Zarath specify another file?

Locked