Mobile & SEO style - background color for admin

For support and discussion related to templates, themes, and imagesets in phpBB 3.0.
Suggested Hosts
Locked
ert4
Registered User
Posts: 122
Joined: Fri Jan 27, 2006 6:37 pm

Mobile & SEO style - background color for admin

Post by ert4 » Sat Oct 31, 2015 11:19 pm

Hi,

I have mobile style art mobile green
How Can I change background color posts for only admins?
I need phpbb background color for admin.
example: https://www.phpbb.com/customise/db/down ... ?mode=view (3 post)
Here is turtorial for prosilver style: https://phpbbmodders.net/board/viewtopi ... =8&t=11355

I have code in styles art mobile green viewtopic_body.html :

Code: Select all

    <!-- BEGIN postrow -->
       <!-- IF postrow.S_FIRST_UNREAD --><a id="unread"></a><!-- ENDIF -->
       <div id="p{postrow.POST_ID}" class="block post<!-- IF postrow.S_UNREAD_POST --> unreadpost<!-- ENDIF --><!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->">
            <div class="post-header">
                <!-- IF not S_IS_BOT -->
                    <!-- IF postrow.U_EDIT or postrow.U_DELETE or postrow.U_REPORT or postrow.U_WARN or postrow.U_INFO or postrow.U_QUOTE -->
                        <div class="post-author gradient link settings">
                            <a href="javascript:void(0);">&nbsp;</a>
                            <ul class="sub">
                                <!-- IF postrow.U_EDIT --><li><a href="{postrow.U_EDIT}">{L_EDIT_POST}</a></li><!-- ENDIF -->
                                <!-- IF postrow.U_DELETE --><li><a href="{postrow.U_DELETE}">{L_DELETE_POST}</a></li><!-- ENDIF -->
                                <!-- IF postrow.U_REPORT --><li><a href="{postrow.U_REPORT}">{L_REPORT_POST}</a></li><!-- ENDIF -->
                                <!-- IF postrow.U_WARN --><li><a href="{postrow.U_WARN}">{L_WARN_USER}</a></li><!-- ENDIF -->
                                <!-- IF postrow.U_INFO --><li><a href="{postrow.U_INFO}">{L_INFORMATION}</a></li><!-- ENDIF -->
                                <!-- IF postrow.U_QUOTE --><li><a href="{postrow.U_QUOTE}">{L_REPLY_WITH_QUOTE}</a></li><!-- ENDIF -->
                            </ul>
                        </div>
                    <!-- ENDIF -->
                <!-- ENDIF -->
                <!-- IF postrow.U_POST_AUTHOR -->
                    <div class="post-author gradient link">
                        <a href="{postrow.U_POST_AUTHOR}">{postrow.POST_AUTHOR}</a>
                        <ul class="sub">
                            <li><a href="{postrow.U_POST_AUTHOR}">{postrow.POST_AUTHOR}</a></li>
                          <!-- IF postrow.POSTER_POSTS != '' --><li><span>{L_POSTS}: {postrow.POSTER_POSTS}</span></li><!-- ENDIF -->
                          <!-- IF postrow.POSTER_JOINED --><li><span>{L_JOINED}: {postrow.POSTER_JOINED}</span></li><!-- ENDIF -->
                            <!-- IF postrow.POSTER_FROM --><li><span>{L_LOCATION}: {postrow.POSTER_FROM}</span></li><!-- ENDIF -->
                            <!-- IF postrow.S_PROFILE_FIELD1 -->
                                <li><span>{postrow.PROFILE_FIELD1_NAME}: {postrow.PROFILE_FIELD1_VALUE}</span></li>
                            <!-- ENDIF -->
                            <!-- BEGIN custom_fields -->
                                <li><span>{postrow.custom_fields.PROFILE_FIELD_NAME}: {postrow.custom_fields.PROFILE_FIELD_VALUE}</span></li>
                            <!-- END custom_fields -->
                          <!-- IF not S_IS_BOT -->
                           <!-- IF postrow.U_PM --><li><a href="{postrow.U_PM}">{L_PRIVATE_MESSAGE}</a></li><!-- ENDIF -->
                           <!-- IF postrow.U_EMAIL --><li><a href="{postrow.U_EMAIL}">{L_SEND_EMAIL_USER} {postrow.POST_AUTHOR}</a></li><!-- ENDIF -->
                           <!-- IF postrow.U_WWW --><li><a href="{postrow.U_WWW}">{L_WEBSITE}</a></li><!-- ENDIF -->
                          <!-- ENDIF -->

                        </ul>
                    </div>
                <!-- ENDIF -->
                <h2>{postrow.POST_SUBJECT}</h2>
            </div>
            <p class="post-time">{postrow.POST_DATE}</p>

          <div class="postbody">
             <!-- IF postrow.S_IGNORE_POST -->
                <div class="block rules">{postrow.L_IGNORE_POST}</div>
             <!-- ELSE -->

             <!-- IF postrow.S_POST_UNAPPROVED or postrow.S_POST_REPORTED -->
                <p class="block rules">
                   <!-- IF postrow.S_POST_UNAPPROVED --><a href="{postrow.U_MCP_APPROVE}">{L_POST_UNAPPROVED}</a><br /><!-- ENDIF -->
                   <!-- IF postrow.S_POST_REPORTED --><a href="{postrow.U_MCP_REPORT}">{L_POST_REPORTED}</a><!-- ENDIF -->
                </p>
             <!-- ENDIF -->

             {postrow.MESSAGE}

             <!-- IF postrow.S_HAS_ATTACHMENTS -->
                <dl class="attachbox">
                   <dt>{L_ATTACHMENTS}</dt>
                   <!-- BEGIN attachment -->
                      <dd>{postrow.attachment.DISPLAY_ATTACHMENT}</dd>
                   <!-- END attachment -->
                </dl>
             <!-- ENDIF -->

             <!-- IF postrow.S_DISPLAY_NOTICE --><div class="block rules">{L_DOWNLOAD_NOTICE}</div><!-- ENDIF -->
             <!-- IF postrow.EDITED_MESSAGE or postrow.EDIT_REASON -->
                <div class="notice">{postrow.EDITED_MESSAGE}
                   <!-- IF postrow.EDIT_REASON --><br /><strong>{L_REASON}:</strong> <em>{postrow.EDIT_REASON}</em><!-- ENDIF -->
                </div>
             <!-- ENDIF -->

             <!-- IF postrow.BUMPED_MESSAGE --><div class="notice"><br /><br />{postrow.BUMPED_MESSAGE}</div><!-- ENDIF -->
          <!-- ENDIF -->

          </div>
       </div>
    <!-- END postrow -->

Where Can I add:

Code: Select all

<!-- IF postrow.RANK_TITLE == "Site Admin" --> admin<!-- ENDIF -->
Thanks.

User avatar
pit-PL
Registered User
Posts: 3085
Joined: Sat Nov 21, 2009 12:24 pm

Re: Mobile & SEO style - background color for admin

Post by pit-PL » Sun Nov 01, 2015 7:49 am

online<!-- ENDIF -->[color=#000000]here[/color]">

You're welcome.

Locked

Return to “[3.0.x] Styles Support & Discussion”