Change standard 'Online' Status to this ...

phpBB3 styling support, style coding, and style graphics assistance.
Forum rules
Style coding and style related questions only.

Change standard 'Online' Status to this ...

Postby Amylittlehands » 08 Aug 2011, 15:55

I was wondering if anyone can provide a step-by-step guide in how to change my online status from the ordinary banner in prosilver to the one like animateclay.com with online/offline?

Here's the one I have now:

This is what i want:
Capture.PNG


please make it as simple as possible! (Thanks)
Capture2.PNG

forum: www.mouldingminefield.com
style: glacier
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4


Re: Change standard 'Online' Status to this ...

Postby faku1810 » 08 Aug 2011, 16:24

This shouldn't be too hard... first of all, find the images you want to display and upload them to glacier/imageset/en (maybe the ones in subsilver2/imageset/en are the kind of image you want) and then in glacier/imageset/en/imageset.cfg edit the following lines with the name of your images (the numbers is the width and height, but don't need to be included)

Code: Select all
img_icon_user_online = icon_user_online.gif*58*58
img_icon_user_offline =


Then just go to glacier/template/viewtopic.html. find and delete

Code: Select all
<!-- IF postrow.S_ONLINE and not postrow.S_IGNORE_POST --> online<!-- ENDIF -->


then find

Code: Select all
<!-- IF postrow.RANK_TITLE or postrow.RANK_IMG --><dd>{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}</dd><!-- ENDIF -->


and replace with

Code: Select all
<dd><!-- IF postrow.RANK_TITLE or postrow.RANK_IMG -->{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}<br /><!-- ENDIF --><-- IF postrow.ONLINE_IMG -->{postrow.ONLINE_IMG}<!-- ELSE -->{postrow.OFFLINE_IMG}<!-- ENDIF --></dd>


That should work (though I haven't tested this)

Edited, the code was subsilver2 based, I've made the changes for a prosilver theme based
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Change standard 'Online' Status to this ...

Postby Amylittlehands » 08 Aug 2011, 17:01

Did all of that, purged cache. I get these errors
If I don't manually remove the cache I get this:
Code: Select all
Parse error: syntax error, unexpected '}' in /home/amysworld/domains/mouldingminefield.com/public_html/cache/tpl_glacier_viewtopic_body.html.php on line 231

If i do remove them I get this:
Code: Select all
Parse error: syntax error, unexpected '}' in /home/amysworld/domains/mouldingminefield.com/public_html/includes/template.php(230) : eval()'d code on line 231
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Change standard 'Online' Status to this ...

Postby Amylittlehands » 08 Aug 2011, 17:03

Amylittlehands wrote:Did all of that, purged cache. I get these errors
If I don't manually remove the cache I get this:
Code: Select all
Parse error: syntax error, unexpected '}' in /home/amysworld/domains/mouldingminefield.com/public_html/cache/tpl_glacier_viewtopic_body.html.php on line 231

If i do remove them I get this:
Code: Select all
Parse error: syntax error, unexpected '}' in /home/amysworld/domains/mouldingminefield.com/public_html/includes/template.php(230) : eval()'d code on line 231

Okay I fixed the errors but it's seriously messed up my forum haha.
Capture2.PNG
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Change standard 'Online' Status to this ...

Postby Amylittlehands » 08 Aug 2011, 17:10

Oh nevermind! in the code there was a missing '!' <!-- < example

Fixed now! looking great, thanks for your help! Any news on the avatar problem? :3

Also, how would I center align the online status to the rank?
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Change standard 'Online' Status to this ...

Postby faku1810 » 08 Aug 2011, 17:53

Sorry for the slow replies now lol, I found I had some problems of my own in my forum and was trying to fix them. Sorry for the missing "!", copy/paste error I suppose lol.

Centering them is simpler I think... try this

Open view_topic.html

find

Code: Select all
<dd><!-- IF postrow.RANK_TITLE or postrow.RANK_IMG -->


replace with

Code: Select all
<dd style="text-align: center"><!-- IF postrow.RANK_TITLE or postrow.RANK_IMG -->
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Change standard 'Online' Status to this ...

Postby Amylittlehands » 08 Aug 2011, 18:07

Awesome, looks great, i did have to align the avatar central as well because it looked a bit wrong!

Here's the final code:
Code: Select all
<!-- IF not postrow.S_IGNORE_POST -->
         <dl class="postprofile" id="profile{postrow.POST_ID}">
         <dt>
         <dd style="text-align:center"><!-- IF postrow.POSTER_AVATAR -->
            <!-- IF postrow.U_POST_AUTHOR --><a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a><!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF --><br />
            <!-- ENDIF -->
            <!-- IF not postrow.U_POST_AUTHOR --><strong>{postrow.POST_AUTHOR_FULL}</strong><!-- ELSE -->{postrow.POST_AUTHOR_FULL}<!-- ENDIF -->
         </dt>

         <dd style="text-align: center"><!-- IF postrow.RANK_TITLE or postrow.RANK_IMG -->{postrow.RANK_TITLE}<!-- IF postrow.RANK_TITLE and postrow.RANK_IMG --><br /><!-- ENDIF -->{postrow.RANK_IMG}<br /><!-- ENDIF --><!-- IF postrow.ONLINE_IMG -->{postrow.ONLINE_IMG}<!-- ELSE -->{postrow.OFFLINE_IMG}<!-- ENDIF --></dd>
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Change standard 'Online' Status to this ...

Postby faku1810 » 08 Aug 2011, 21:32

I'm glad you could do everything you needed to :P If you need help with anything else don't hesitate to ask ;)

PD: I just saw your forum, it's great you could add the space before the chat as I said :P Good luck with your forum.

Edit: It's just an idea but maybe it would look better if you replace it with this,

Spoiler:
Code: Select all
<!-- IF not postrow.S_IGNORE_POST -->
   <dl class="postprofile" id="profile{postrow.POST_ID}">
      <dt style="text-align:center">
         <!-- IF postrow.POSTER_AVATAR -->
            <!-- IF postrow.U_POST_AUTHOR -->
               <a href="{postrow.U_POST_AUTHOR}">{postrow.POSTER_AVATAR}</a>
            <!-- ELSE -->{postrow.POSTER_AVATAR}<!-- ENDIF -->
            <br />
         <!-- ENDIF -->
         <!-- IF not postrow.U_POST_AUTHOR -->
            <strong>{postrow.POST_AUTHOR_FULL}</strong>
         <!-- ELSE -->
            {postrow.POST_AUTHOR_FULL}
         <!-- ENDIF -->
         <!-- IF postrow.RANK_TITLE -->
            &bull; {postrow.RANK_TITLE}
         <!-- ENDIF -->
      </dt>
      <dd style="text-align: center">
         <!-- IF postrow.RANK_IMG -->
            {postrow.RANK_IMG}<br />
         <!-- ENDIF -->
         <!-- IF postrow.ONLINE_IMG -->
            {postrow.ONLINE_IMG}
         <!-- ELSE -->
            {postrow.OFFLINE_IMG}
         <!-- ENDIF -->
      </dd>


This way it would look like this (but centered, lol). Anyways, it's just an idea :P

Code: Select all
        Avatar Image
   Username • Rank Title
       Rank Image
      Online Status
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Change standard 'Online' Status to this ...

Postby Amylittlehands » 09 Aug 2011, 09:20

hey that looks great! Just changed the code then.

I have a question btw, whenever i view a profile/send a pm etc ...
The online/offline image is in a completely wrong place. Here's an image of what I mean.
Capture.PNG


Also I noticed that within the viewtopic_body.html the codes for the user Percentage Bar & Medals are in there but they don't show up when viewing a topic.

Any ideas why?
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Change standard 'Online' Status to this ...

Postby faku1810 » 09 Aug 2011, 12:43

Yeah, I forgot about that. Since they use different template files, you must edit each template separately. I haven't seen the code in those templates yet, but I suppose the instructions I gave you earlier should work in them too.

You need to edit ucp_pm_viewmessage.html and ucp_profile_profile_info.html I suppose. I don't recall if it showed online status on memberlist too, but if it does, then that's another template to edit.

About the Medals and the Percentage Bar, I'll look into it, but from what I see there must be some code missing somewhere.. In your screenshot you can see the percentage, and that's wrong. Any member of a special group (Mod, Admin, etc) shouldn't have the bar displayed (it would show 100% all the time). Furthermore, the bar itself doesn't appear, so maybe you're missing the percent_bar.css?

The easiest way to solve this issue is going through the instructions again, you skipped something somewhere.
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Next

Return to phpBB3 Styling Assistance

Who is online

Users browsing this forum: Magpie Crawler and 10 guests

cron