 | Add Multiple Ranks And Staff View |  |
Posted: 09/24/2006 4:55 AM |
|
|
|
|
|
| Citation |
| Posts |
2152 |
| Word Cnt. |
78,257 |
| BDay |
Jun 15 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
|

|
|
|
|
 |
When trying to install this mod http://www.phpbb.com/phpBB/viewtopic.php?t=276330&postdays=0&postorder =asc&start=0 - I got this error
| Code:
|
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}</span><br /></td>
MOD script line #279 :: FAQ :: Report
|
Not sure of what to do. No hurry with help on this one. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/24/2006 9:57 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
If you don't understand why my suggestion 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...
Ok, do this:
OPEN
add_multiple_ranks_1_3_5.txt
FIND
| Code:
|
#
#-----[ 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}</span><br /></td>
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/24/2006 5:56 PM |
|
|
|
|
|
| Citation |
| Posts |
2152 |
| Word Cnt. |
78,257 |
| BDay |
Jun 15 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
|

|
|
|
|
 |
3 different errors this time
| Code:
|
Warning
Function Trace: open_files[2]->modio_open[1]
Could not open [templates/AussieAviator/admin/user_edit_body.tpl] for reading.
MOD script line #663 :: FAQ :: Report
|
| Code:
|
Warning
Function Trace: open_files[2]->modio_open[1]
Could not open [templates/AussieAviator/admin/ranks_edit_body.tpl] for reading.
MOD script line #827 :: FAQ :: Report
|
| Code:
|
Critical Error
FIND FAILED: In file [includes/usercp_viewprofile.php] could not find:
'POSTER_RANK' => $poster_rank,
'RANK_IMAGE' => $rank_image,
MOD script line #991 :: FAQ :: Report
|
The first two are to do with the template Aussie Aviator but I don't use this template. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/25/2006 11:51 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
If you no longer use the AussieAviator template, you should remove it in Management in your ACP Styles Admin...
Ok, do this:
OPEN
add_multiple_ranks_1_3_5.txt
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
'POSTER_RANK' => $poster_rank,
'RANK_IMAGE' => $rank_image,
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
'RANK_IMAGE' =>
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/26/2006 7:10 AM |
|
|
|
|
|
| Citation |
| Posts |
2152 |
| Word Cnt. |
78,257 |
| BDay |
Jun 15 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
|

|
|
|
|
 |
First two errors are still the same. I don't think I am using the aussie aviator template anymore except for my current ranks which I can change. So you think I can delete it safely? If I deleted it, would I still get the same errors?
| Code:
|
Warning
Function Trace: open_files[2]->modio_open[1]
Could not open [templates/AussieAviator/admin/user_edit_body.tpl] for reading.
MOD script line #663 :: FAQ :: Report
|
| Code:
|
Warning
Function Trace: open_files[2]->modio_open[1]
Could not open [templates/AussieAviator/admin/ranks_edit_body.tpl] for reading.
MOD script line #827 :: FAQ :: Report
|
| Code:
|
Critical Error
FIND FAILED: In file [templates/subSilver/profile_view_body.tpl] could not find:
<span class="postdetails">{POSTER_RANK}
MOD script line #1009 :: FAQ :: Report
|
|
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/26/2006 5:45 PM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
If you are no longer using the aussie aviator template, you can remove it in your ACP Styles admin and EM will stop trying to modify it. You don't have to remove the template from your templates folder if you don't want. EM uses the phpbb_themes table to determine what templates are installed on your site. If the template isn't there but still installed in Styles Admin, EM will throw the errors like you are seeing above. So to get rid of those Warning errors once and for all, simply uninstall the aussie aviator template in Styles Admin...
Ok, do this:
OPEN
add_multiple_ranks_1_3_5.txt
FIND
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
<span class="postdetails">{POSTER_RANK}
|
REPLACE WITH
| Code:
|
#
#-----[ FIND ]------------------------------------------
#
{POSTER_RANK}
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/27/2006 12:33 AM |
|
|
|
|
|
| Citation |
| Posts |
2152 |
| Word Cnt. |
78,257 |
| BDay |
Jun 15 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
|

|
|
|
|
 |
I removed the aussie aviator template and didn't get any errors for it. At step two it said this
| Code:
|
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:
Unexpected or unknown attribute "AFTER USER_RANK", in "user_rank2 INT(11) DEFAULT ___0___ AFTER user_rank", statement: 1, table: "phpbb_users"
SQL:
ALTER TABLE phpbb_users ADD user_rank2 INT(11) DEFAULT '0' AFTER user_rank
|
I got this once before with a mod but can't remember what I did to fix it. Hopefully this will be the last step with this mod. |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/27/2006 8:55 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, EM doesn't handle AFTER SQL commands at all. That isn't necessary in the SQL statement either. So to fix it, do this:
OPEN
add_multiple_ranks_1_3_5.txt
FIND
| Code:
|
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_rank2 INT(11) DEFAULT '0' AFTER user_rank;
ALTER TABLE phpbb_users ADD user_rank3 INT(11) DEFAULT '0' AFTER user_rank2;
|
REPLACE WITH
| Code:
|
#
#-----[ SQL ]------------------------------------------
#
ALTER TABLE phpbb_users ADD user_rank2 INT(11) DEFAULT '0';
ALTER TABLE phpbb_users ADD user_rank3 INT(11) DEFAULT '0';
|
Save, upload, and try again using EM...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/27/2006 9:15 AM |
|
|
|
|
|
| Citation |
| Posts |
2152 |
| Word Cnt. |
78,257 |
| BDay |
Jun 15 |
| Sign |
Gemini |
| Sex |
 |
|
|
|
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
|

|
|
|
|
 |
Hey it works, thanks NR
I needed this because I set up a VIP forum for some members and I wanted to give those members a special rank.
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: Add Multiple Ranks And Staff View |  |
Posted: 09/27/2006 9:52 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
|

|
|
|
|
 |
Congratulations Glenn. I'm glad that I was able to assist. It's been a pretty hectic couple of days, so it's almost a miracle that I've been able to help anyone lately. Hopefully things will return to normal soon...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|