Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
Add Multiple Ranks And Staff View
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: 1, 2, 3  Next
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Add Multiple Ranks And Staff View
PostPosted: 09/24/2006 4:55 AM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
australC_1xa.gif
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
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Add Multiple Ranks And Staff View
PostPosted: 09/24/2006 9:57 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Add Multiple Ranks And Staff View
PostPosted: 09/24/2006 5:56 PM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
australC_1xa.gif
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
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Add Multiple Ranks And Staff View
PostPosted: 09/25/2006 11:51 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
peace.gif
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
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Add Multiple Ranks And Staff View
PostPosted: 09/26/2006 7:10 AM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
australC_1xa.gif
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
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Add Multiple Ranks And Staff View
PostPosted: 09/26/2006 5:45 PM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
peace.gif
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
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Add Multiple Ranks And Staff View
PostPosted: 09/27/2006 12:33 AM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
australC_1xa.gif
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
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Add Multiple Ranks And Staff View
PostPosted: 09/27/2006 8:55 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
peace.gif
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
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: Add Multiple Ranks And Staff View
PostPosted: 09/27/2006 9:15 AM Reply with quote
Citation
Glenn I
Citation
Posts 2152
Word Cnt. 78,257
BDay Jun 15
Sign Gemini
Sex Sex:Male
Joined: Apr 22, 2005
Local time: 11:32 PM
Location: Upside down
australC_1xa.gif
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.

Dancing
Back to Top
View user's profile Find all posts by Glenn I Send private message   Visit poster's website Phoogle Map
Re: Add Multiple Ranks And Staff View
PostPosted: 09/27/2006 9:52 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 9:32 AM
Location: St Pete, FL
peace.gif
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...

Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: 1, 2, 3  Next
Page 1 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.1041s (PHP: 71% - SQL: 29%) - SQL queries: 58 - GZIP disabled - Debug on