[3.0.7] Extra Ranks Mod 1.1.0

Viewtopic, viewforum, posting related hacks and MODs.
Viewing topics, forums, or posting add-ons.

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby Sir Glen » 26 Mar 2010, 09:37

Interesting, I didn't know about the "show errors" config.

I did it manually, and the version is 3.0.7-PL1

I can re-upload but I'd mostly prefer to try to fix it in the code, since I have no idea where the problem is. I tried re-doing the ACP portion of the mod last night and got the same result, so I have a feeling I would just keep re-creating the error unless I knew what I was doing wrong.

I always install all mods manually because I haven't found a reliable way of doing it automatically. Is there some way to do it automatically that I should know about?

Edit: Ok, Debug and Debug Extra are set to "True" and I can't find anything in the config for "show errors".

Edit Again: I restored backups and it's fine. Anyone have any thoughts on how it could have happened? Perhaps I should post the relevant ACP pages for people to look at and see if there is a difference due to another mod that could be causing the problem.
Last edited by Sir Glen on 26 Mar 2010, 13:27, edited 1 time in total.
Sir Glen
Supporter
Supporter
 
Posts: 235
Joined: 21 Jun 2008, 20:19
Gender: Male
phpBB Knowledge: 2


Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby chaoskreator » 26 Mar 2010, 13:19

It's possible that one of the files you had to edit was saved in an encoding other than UTF8. If it's got a BOM on the file, it'll do the same thing. A lot of times debug and debug_extra won't pick up on the encodings, and you'll still be presented with a blank white page.
User avatar
chaoskreator    
Commander
Commander
 
Posts: 716
Joined: 02 Feb 2009, 22:05
Location: NC
Gender: Male
phpBB Knowledge: 7

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby Sir Glen » 26 Mar 2010, 13:37

It appears to have been an encoding issue, thanks for the tip! I wish I knew how that was happening, but no matter.

I have a minor style issue; another person coded a custom mod for me which adds a "custom rank" (user editable) with a correlating "custom color". The project was never completely finished.

You can see what I'm talking about in the following screenshot:
viewtopic_body.png


Where the cursor is you can see my "custom rank", in green. This is below the rank image (Minister). Above the rank image is the normal rank title which has been edited to show up in the same color as the default group color (blue, in my case). All of this results in a pretty unique code block:

Code: Select all
         <!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd><strong<!-- IF postrow.POST_AUTHOR_COLOUR --> style="color: {postrow.POST_AUTHOR_COLOUR}"<!-- ENDIF -->>{postrow.RANK_TITLE}</strong><!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->
         <dd><span <!-- IF postrow.S_PROFILE_CUSTOMRANKCOLOR -->style="color: {postrow.PROFILE_CUSTOMRANKCOLOR_VALUE};font-weight:bold;"<!-- ENDIF -->>
            <!-- IF postrow.S_PROFILE_CUSTOMRANK -->{postrow.PROFILE_CUSTOMRANK_VALUE}<!-- ENDIF --></span>
         </dd>


I want to modify this to include the code for viewtopic_body.html. The ADD AFTER code is as follows:

Code: Select all
         <!-- IF postrow.RANK2_TITLE or postrow.RANK2_IMG --><dd>{postrow.RANK2_TITLE}<!-- IF postrow.RANK2_TITLE and postrow.RANK2_IMG --><br /><!-- ENDIF -->{postrow.RANK2_IMG}</dd><!-- ENDIF -->
         <!-- IF postrow.RANK3_TITLE or postrow.RANK3_IMG --><dd>{postrow.RANK3_TITLE}<!-- IF postrow.RANK3_TITLE and postrow.RANK3_IMG --><br /><!-- ENDIF -->{postrow.RANK3_IMG}</dd><!-- ENDIF -->
         <!-- IF postrow.RANK4_TITLE or postrow.RANK4_IMG --><dd>{postrow.RANK4_TITLE}<!-- IF postrow.RANK4_TITLE and postrow.RANK4_IMG --><br /><!-- ENDIF -->{postrow.RANK4_IMG}</dd><!-- ENDIF -->


Here is how I want it to be when I'm finished. I want there to be NO rank title (not even the blue one currently above the rank image). I want to move the custom rank (currently below the rank image) to ABOVE the rank image (where the rank title is currently) and then add the new extra rank images below the existing rank image, so that a person could theoretically have four stacked rank images. The problem is I can't figure out how I should change this code block to do this, does anybody have any advice on what this code block should look like?
Sir Glen
Supporter
Supporter
 
Posts: 235
Joined: 21 Jun 2008, 20:19
Gender: Male
phpBB Knowledge: 2

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby Sir Glen » 26 Mar 2010, 13:39

I faced a similar issue with memberlist_view.html but I think I solved it correctly. The code block is below, can somebody check my code?

Code: Select all
         <dt>{AVATAR_IMG}</dt>
         <!-- IF S_PROFILE_CUSTOMRANK -->
            <dd style="text-align: center;"><span <!-- IF S_PROFILE_CUSTOMRANKCOLOR -->style="color: {PROFILE_CUSTOMRANKCOLOR_VALUE};font-weight:bold;"<!-- ENDIF -->>{PROFILE_CUSTOMRANK_VALUE}</span></dd>
         <!-- ENDIF -->         
                        <!-- IF RANK_IMG --><dd style="text-align: center;">{RANK_IMG}</dd><!-- ENDIF -->
         <!-- IF RANK2_IMG --><dd style="text-align: center;">{RANK2_IMG}</dd><!-- ENDIF -->
         <!-- IF RANK3_IMG --><dd style="text-align: center;">{RANK3_IMG}</dd><!-- ENDIF -->
         <!-- IF RANK4_IMG --><dd style="text-align: center;">{RANK4_IMG}</dd><!-- ENDIF -->

         <dd>&nbsp;</dd>
         <dd>&nbsp;</dd>
      </dl>
      <hr />
   <!-- ELSE -->
   <dl class="left-box details" style="width: 80%;">
      <dt>{L_USERNAME}:</dt>
      <dd>
         <!-- IF USER_COLOR --><span style="color: {USER_COLOR}; font-weight: bold;"><!-- ELSE --><span><!-- ENDIF -->{USERNAME}<!-- IF S_PROFILE_GENDER-->&nbsp; <img src="images/{PROFILE_GENDER_VALUE}.png" title="{PROFILE_GENDER_VALUE}" height="10px" width="10px" /><!-- ENDIF --></span>
         <!-- IF U_USER_ADMIN --> [ <a href="{U_USER_ADMIN}">{L_USER_ADMIN}</a> ]<!-- ENDIF -->
         <!-- IF U_USER_BAN --> [ <a href="{U_USER_BAN}">{L_USER_BAN}</a> ]<!-- ENDIF -->
         <!-- IF U_SWITCH_PERMISSIONS --> [ <a href="{U_SWITCH_PERMISSIONS}">{L_USE_PERMISSIONS}</a> ]<!-- ENDIF -->
      </dd>
      <!-- IF not AVATAR_IMG -->
         <!-- IF RANK_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt> <dd>{RANK_IMG}</dd><!-- ENDIF -->
         <!-- IF RANK2_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt> <dd>{RANK2_IMG}</dd><!-- ENDIF -->
         <!-- IF RANK3_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt> <dd>{RANK3_IMG}</dd><!-- ENDIF -->
         <!-- IF RANK4_IMG --><dt><!-- IF RANK_TITLE -->&nbsp;<!-- ELSE -->{L_RANK}:<!-- ENDIF --></dt> <dd>{RANK4_IMG}</dd><!-- ENDIF -->
      <!-- ENDIF -->


Thanks a ton for the help, if there is anything I can do to repay whoever checks this stuff just let me know.

P.S. I'd prefer to comment the lines out rather than delete them but I suspect that // doesn't work in html. What is the proper syntax in html?
Sir Glen
Supporter
Supporter
 
Posts: 235
Joined: 21 Jun 2008, 20:19
Gender: Male
phpBB Knowledge: 2

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby Sir Glen » 30 Mar 2010, 19:07

Anyone have any advice on this at all? I would really, really, really appreciate it. I'm not sure how to fix it. The first post particularly as the second was just a request to confirm my code block.
Sir Glen
Supporter
Supporter
 
Posts: 235
Joined: 21 Jun 2008, 20:19
Gender: Male
phpBB Knowledge: 2

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby marcohadley » 02 Jun 2010, 22:32

im using phpBB3.0.6 which version of MOD should i use?
marcohadley    
Crewman
Crewman
 
Posts: 1
Joined: 02 Jun 2010, 22:30
Gender: Male
phpBB Knowledge: 5

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby oldmago » 13 Jun 2010, 18:33

not work in this version phpBB 3.0.7-PL1 :beg: :beg: :beg: :beg: :beg: :beg:
oldmago    
Crewman
Crewman
 
Posts: 1
Joined: 13 Jun 2010, 18:07
Gender: Male

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby alicia » 12 Nov 2010, 10:29

Would it be possible to allow a user to set his own ranks?

Say he's in three groups: Registered user (post rank), Supporter and Moderator group (both of which are special ranks). It would be nice for that user to be able to set it so the ranks from all three are visible without an Admin having to go in and manually change the users ranking. Maybe even reserve a fourth for a custom special rank the admin could specially include.
User avatar
alicia
Supporter
Supporter
 
Posts: 17
Joined: 20 Apr 2010, 09:57
Location: Ohio
Gender: Female
phpBB Knowledge: 1

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby alicia » 12 Nov 2010, 10:41

Sir Glen wrote:Anyone have any advice on this at all? I would really, really, really appreciate it. I'm not sure how to fix it. The first post particularly as the second was just a request to confirm my code block.

In html to comment out you put the code in <!-- comment --> Though if there's an if statement you'll want to comment between them as it will be negated.

You could also try /* */ but that's mainly for the other programming languages so not sure if it would work or not.
User avatar
alicia
Supporter
Supporter
 
Posts: 17
Joined: 20 Apr 2010, 09:57
Location: Ohio
Gender: Female
phpBB Knowledge: 1

Re: [3.0.7] Extra Ranks Mod 1.1.0

Postby ddaddy » 27 Jan 2011, 12:24

Can anyone confirm if this works with 3.0.8?
Thanks
ddaddy
Supporter
Supporter
 
Posts: 17
Joined: 20 Jan 2009, 05:37
Gender: Male
phpBB Knowledge: 4

PreviousNext

Return to Topic, Forum, Posting MOD Downloads

Who is online

Users browsing this forum: No registered users and 1 guest