Trouble installing the ShopMod 304

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
Sam Spade
Registered User
Posts: 10
Joined: Fri Oct 06, 2006 3:55 pm

Trouble installing the ShopMod 304

Post by Sam Spade »

I finally installed my forum, thank you very much.

Installed EMod 0.3.0
with it, I installed CashMod 2.2.3 and BankMod 2.0.1

But when trying to install ShopMod 3.0.4 I get the following:
Warning

FIND FAILED: In file [templates/DAJ_Glass/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/DAJ_Glass/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>

MOD script line #408 :: FAQ :: Report
Warning

FIND FAILED: In file [templates/DAJ_Glass/profile_view_body.tpl] could not 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>

MOD script line #428 :: FAQ :: Report
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 #449 :: FAQ :: Report


What do I need to do?

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Trouble installing the ShopMod 304

Post by Nightrider »

The overall_header code is always tricky for different templates since the menus are often handled very differently. So without seeing a text link to your DAJ_Glass/overall_header.tpl file, I can only guess what this correction should be...

Ok, try this:

OPEN
mod_install.txt

FIND

Code: Select all

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

#
#-----[ IN-LINE FIND ]------------------------------------------
#
 hspace="3" />{L_FAQ}</a>
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
{L_FAQ}</a> 

#
#-----[ IN-LINE FIND ]------------------------------------------
#
{L_FAQ}</a>
FIND

Code: Select all

#
#-----[ 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>
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
{INTERESTS}
</tr>
FIND

Code: Select all

#
#-----[ 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>
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_FROM}
Save, upload, and try again using EM...

If you don't understand why my suggestions below will work, please ask. Once you understand the basics of how to get these MODs to install cleanly, you should be able to install even the most difficult MODs using EM...

Image

Sam Spade
Registered User
Posts: 10
Joined: Fri Oct 06, 2006 3:55 pm

Re: Trouble installing the ShopMod 304

Post by Sam Spade »

well, I removed the glass template cause no one's using it, trying reinstalling and now I get this:
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 #449 :: FAQ :: Report


EDIT:
And another question, once I install the mods using EasyMod, do I need to delete the files I uploaded or should I leave them there?
EDIT2:
I added another style, can I get easymod to install the current mods on thar style aswell, or do I need to do that manually?

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Trouble installing the ShopMod 304

Post by Nightrider »

You missed one of my suggestions above:

Ok, do this:

OPEN
mod_install.txt

FIND

Code: Select all

#
#-----[ 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>
REPLACE WITH

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_FROM}
Save, upload, and try again using EM...
Sam Spade wrote: EDIT:
And another question, once I install the mods using EasyMod, do I need to delete the files I uploaded or should I leave them there?

You can delete the MOD folder from admin/mods after successfully installing it. But before you do so, I highly recommend that you download it back to your PC for backup purposes. EM creates two new folders when you install the MOD: backups and processed. If for any reason, you need to restore Backups in the future, the only way you can use EM's Restore Backups utility is if the MOD folders containing the new backups and processed folders exist in your admin/mods folder. I once had to restore 20 MODs to track down a strange problem caused by a MOD and I didn't know which was causing it. If I hadn't kept backups of my MOD folders after installing the MODs, I might never have been able to find and correct the problem...

Once you have good backups of the installed MOD folders to your PC, you can delete them from admin/mods to keep things cleaned up...
Sam Spade wrote: EDIT2:
I added another style, can I get easymod to install the current mods on thar style aswell, or do I need to do that manually?

First to get EM to work in the new template, you can either reinstall it or you can copy the following to the new template folder. Just replace the name subSilver with the new template name:

Code: Select all

copy easymod/includes/*.tpl to templates/subSilver/admin/*.tpl
copy easymod/includes/emc.gif to templates/subSilver/images/emc.gif
copy easymod/easymod.gif to templates/subSilver/images/easymod.gif
You probably want to Update the template to the current phpBB version before installing MODs into them too. I have created Template Only versions of the phpBB Updates that you can use to update your new templates. You can usually learn the phpBB version that your template was designed for in the Subject name where you downloaded the template. Since some phpBB updates did not modify template files, there are no Template Only versions for them...

downloads/phpBB/MODs/Updates

Then if you want to install MODs into the new template that are already installed on your board, you can create Template Only versions of the MODs and install them too...

Creating Template Only MODs

All you need to do is create Template Only versions of the MODs that you have installed.
  1. First create a duplicate of the MOD script in a new text file. To make it easier to remember, just use the same MOD filename that the MOD author used, but add _template_only to the name. So if you are using the TopicCalender.txt file, the new Template only version would be named TopicCalender_template_only.txt.
  2. Then save the new Template Only MOD and store it in it's own separate templates only folder...
  3. If there are any files included with the MOD that are supposed to be uploaded to template folders, store them in the new Template only MOD folder maintaining the same folder structure that the original MOD used...
  4. Next add the name of the new Template to the end of the MOD Title using your favorite Text editor. So the MOD Title could look something like this if Aeolus is your new template name:

    Code: Select all

    ## MOD Title:  Topic calendar - Part 1 (common to all setup) Aoelus
    EM will recognize this as a new MOD if the MOD Title is different from what it has previously installed...
  5. Next strip out all NON-Template related modifications. All you want in this new Template Only version of the MOD are alterations for template files only. If there are any copy commands, only keep those that copy included files into template folders too..
  6. Then rename all instances of subSilver with your new Template name using the Replace All function that you can find in most text editors.
  7. Now you can upload the new Template Only MOD folder to the admin/mods and run it like you would any other MOD using EM.
If you have added more than one new template, you would want to repeat Steps 6 & 7 for each Template except instead of using subSilver, you would use the name of the last template that you installed using this Template Only version of the MOD. So if the last template you modified with this was Aeolus and you want to apply the changes to Helius next, do a Replace All on Aoelus to Helius...

It really isn't that difficult to update each new template after the fact...

Image

Sam Spade
Registered User
Posts: 10
Joined: Fri Oct 06, 2006 3:55 pm

Re: Trouble installing the ShopMod 304

Post by Sam Spade »

One step at a time...

Made the change to the mod_install.txt
First stage went fine, then I got this:
Proposed Database Alterations for your mysql Database Allow

SQL PROCESSING ERROR:
No SQL alterations will be performed. However, you may skip SQL processing, continue installing the MOD, and deal with the SQL manually

The following error occured:

Error:
Invalid index name "KEY id", statement: 4, table: "phpbb_user_items"

SQL:
CREATE TABLE phpbb_user_items(id int(20) NOT NULL auto_increment,user_id int(10) NOT NULL default '0',item_id int(10) NOT NULL default '0',item_name varchar(32) NOT NULL default '',item_l_desc text NOT NULL,item_s_desc varchar(100) NOT NULL default '',worn tinyint(1) NOT NULL default '0',die_time int(10) NOT NULL default '0',special text NOT NULL,PRIMARY KEY(id),UNIQUE KEY id(id),KEY item_id(item_id),KEY user_id(user_id))

Zarath
Registered User
Posts: 20
Joined: Fri Mar 03, 2006 11:43 pm

Re: Trouble installing the ShopMod 304

Post by Zarath »

EasyMOD seems -very- pedantic when it comes to SQL queries... If someone can tell me why that's causing an error I'll fix it in the install file.

Otherwise, just run the sql_install.php file and ignore the easymod SQL error.

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Trouble installing the ShopMod 304

Post by Nightrider »

Zarath, I don't have a MySQL manual handy. I don't really see anything wrong with this query unless id is a reserved word. Even if true, I would think that EM would throw a warning error rather than the error listed above...

Sam Spade, go ahead and do what Zarath suggested before completing the MOD install. Just upload the sql_install.php file to your forum root and run it in your browser. The path could look something like this:

Code: Select all

http://yourdomain.com/phpBB2/sql_install.php
Once the database is updated, it would be safe to ignore this SQL Processing Error and complete the MOD install...

Image

Sam Spade
Registered User
Posts: 10
Joined: Fri Oct 06, 2006 3:55 pm

Re: Trouble installing the ShopMod 304

Post by Sam Spade »

Ran the sql file and finished the install despite that error,
but there seems to be a problem:
click for screenshot

Seems as though something's still a miss, any idea?

Nightrider
Registered User
Posts: 7219
Joined: Tue Nov 16, 2004 8:54 pm
Location: Florida, US
Contact:

Re: Trouble installing the ShopMod 304

Post by Nightrider »

Your screenshot link isn't working...

Image

Sam Spade
Registered User
Posts: 10
Joined: Fri Oct 06, 2006 3:55 pm

Re: Trouble installing the ShopMod 304

Post by Sam Spade »

It should work now...
I hope.

Locked