Black Pearl

New posts icon being silly - Black Pearl

New posts icon being silly

by The Baron » Mon May 30, 2011 6:13 pm

Hiya,

Please could somebody help me out? At the very bottom of my forum, the icon for "New Posts" is not displaying in the box.

http://www.bloodforthebaron.com/phpBB3/

Similarly, if you enter a sub-forum, the three "New posts" icons are also missing.

http://www.bloodforthebaron.com/phpBB3/ ... m.php?f=68

I have replaced the images with my own, but I have kept the dimensions exact. The icons all work properly within the forum itself, it's just the key boxes at the bottom.

I've created a dummy account for test purposes. Username: bloodforthebaron Password: tester

Thanks for looking!
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK

Re: New posts icon being silly

by The Baron » Thu Jun 02, 2011 2:29 am

Can anybody advise, please?
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK

Re: New posts icon being silly

by Joshua203 » Sun Jun 05, 2011 8:40 pm

Hi there,

I'm confused what anyone would need a test account for :lol:

As far as I can see the image is in the correct place and named correctly but ...
It looks to me like you have been messing with this code:

Code: Select all

<div style="text-align:center;margin:30px;">
<table class="legend">
<tr>
   <td width="20" align="center"></td>
   <td><span class="gensmall">New posts</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="./styles/black_pearl/imageset/forum_read.png" width="31" height="31" alt="No unread posts" title="No unread posts" /></td>
   <td><span class="gensmall">No new posts</span></td>
   <td>&nbsp;&nbsp;</td>
   <td width="20" align="center"><img src="./styles/black_pearl/imageset/forum_read_locked.png" width="31" height="31" alt="No unread posts [ Locked ]" title="No unread posts [ Locked ]" /></td>
   <td><span class="gensmall">Forum locked</span></td>
</tr>
</table>
</div>


as you can see the first image code is completely missing :o
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: New posts icon being silly

by The Baron » Sun Jun 05, 2011 8:47 pm

Because unless you log in none of the posts are categorised by new or not.

Yes, I noticed that code in the overall forum page source, but I have no idea which actual phpBB HTML page contains that code, and believe me I've spent ages looking. Please let me know if you know.

I've definitely not modified it.
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK

Re: New posts icon being silly

by Joshua203 » Sun Jun 05, 2011 9:23 pm

then did you maybe update phpbb and forget to update the style?

anyway have a look at the bottom of index_body.html
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: New posts icon being silly

by The Baron » Sun Jun 05, 2011 9:31 pm

As in phpBB3/styles/black_pearl/template/index_body.html? I've been there, all there is is:

<div style="text-align:center;margin:30px;">
<table class="legend">
<tr>
<td width="20" align="center">{FORUM_NEW_IMG}</td>
<td><span class="gensmall">{L_NEW_POSTS}</span></td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center">{FORUM_IMG}</td>
<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
<td>&nbsp;&nbsp;</td>
<td width="20" align="center">{FORUM_LOCKED_IMG}</td>
<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
</tr>
</table>
</div>


Nothing I can play with there, sadly.

I assume if I had updated phpbb and forgotten to update the style I'd be having no end of other problems. Thanks for trying though, any more thoughts?
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK

Re: New posts icon being silly

by Joshua203 » Sun Jun 05, 2011 9:39 pm

replace

Code: Select all

FORUM_NEW_IMG

with

Code: Select all

FORUM_UNREAD_IMG


and I would start checking the style updates if I were you ;)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: New posts icon being silly

by The Baron » Sun Jun 05, 2011 9:51 pm

That worked! Thank you!

I assume it's a similar job for the sub-menu legends New Posts , New Posts [ Popular ] and New posts [ Locked ] ? please could you help there too?

http://www.bloodforthebaron.com/phpBB3/ ... m.php?f=68
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK

Re: New posts icon being silly

by Joshua203 » Sun Jun 05, 2011 9:59 pm

actually you just need to update Baron ... this is a typical error that goes hand in hand with not updating, my guess is you are at phpbb 3.08 and your style may be 1.62 or even lower than that (it has to be black pearl 1.64!)

and in case you ask ...yes it causes more then only this bug if you don't update (or partly update)
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: New posts icon being silly

by The Baron » Sun Jun 05, 2011 10:01 pm

Well, I found it: viewforum_body.html

I've done so much adapting of the skin to fit my site theme, an update may be a nightmare. I'll try it but backup my existing one first!
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK

Re: New posts icon being silly

by Joshua203 » Sun Jun 05, 2011 10:07 pm

Sure ... always back it up
Tip for you updating:
use winmerge to compare the changed files (new and old)... goodluck m8 ;)

Ohh and great job finding the second file :thumbs up:
Image
http://DutchaGoGo.com (development/under construction ..forever?¿?) ;)
User avatar
Joshua203
Registered User
Posts: 227
Joined: Tue Jul 21, 2009 7:01 pm
Location: Rotterdam, Netherlands, Europe, Earth.
Name: Joshua 203

Re: New posts icon being silly

by The Baron » Sun Jun 05, 2011 10:11 pm

Thanks, I really apprecitae this, man.
The Baron
Registered User
Posts: 247
Joined: Mon Oct 29, 2007 2:11 pm
Location: Nottingham UK