Question about postrow buttons
-----
| Author | Message | |
|---|---|---|
|
Carter |
||
| Sun Jul 01, 2007 8:57 pm Post subject: Question about postrow buttons | ||
|
Hi Thoul, I was hoping you could answer an "inner workings of phpbb" sort of question for me.
I've recently installed a hack that adds slots in the profile for X-box, Wii and Playstation online names in the profile. I've linked them to buttons on the postrow below each post - but now after adding them I've got 12 total buttons. And no more than 11 of any of those will show up at any one time. If I have 12, then one of the other buttons will cease to show up. Is there some reason why this is happening? Is there a built in phpbb limit that I've hit or something? I can't figure out why the 12th button won't show. Can you help? |
||
|
Thoul |
||
| Mon Jul 02, 2007 1:17 pm Post subject: Re: Question about postrow buttons | ||
|
There's no limit imposed on this by phpBB. It could be some kind of spacing issue in your template, if you're using one that is very different from subSilver. That, or an error in the code for the 12th button, is the only thing I can think of that would cause something like this.
|
||
|
Carter |
||
| Mon Jul 02, 2007 3:40 pm Post subject: Re: Question about postrow buttons | ||
|
I'm at a loss then, because there's no error in the code, as all the buttons show up just fine as long as there are 11 or less, and there's plenty of room in the template.
Here is an image of the template: As you can see, there's plenty of room to fit one additional button. Here is the other button that "disappears" - (the one on the end entitled PSN) and "reappears" if I remove one of the preceding buttons (in this case I've deleted an entry for an ICQ number.) Here's the viewtopic_body.tpl section of the code. Code: <td class="{postrow.ROW_CLASS}" width="100%" height="28" valign="bottom" nowrap><table cellspacing="0" cellpadding="0" border="0" height="18" width="18">
<tr> <td valign="middle" nowrap>{postrow.PROFILE_IMG} {postrow.BUDDY_IMG} {postrow.PM_IMG} {postrow.EMAIL_IMG} {postrow.WWW_IMG} {postrow.AIM_IMG} {postrow.YIM_IMG} {postrow.MSN_IMG}<script language="JavaScript" type="text/javascript"><!-- if ( navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && navigator.userAgent.indexOf('5.') == -1 && navigator.userAgent.indexOf('6.') == -1 ) document.write(' {postrow.ICQ_IMG}'); else document.write('</td><td> </td><td valign="top" nowrap="nowrap"><div style="position:relative"><div style="position:absolute">{postrow.ICQ_IMG}</div><div style="position:absolute;left:3px;top:-1px">{postrow.ICQ_STATUS_IMG}</div></div>'); //--></script><noscript>{postrow.ICQ_IMG}</noscript> {postrow.PSNID_IMG} {postrow.WIIFRIENDCODE_IMG} {postrow.XBOXLIVE_IMG}</td> </tr> </table></td> Can you think of anything in there that might be doing it? I can't spot anything. |
||
|
Thoul |
||
| Mon Jul 02, 2007 5:15 pm Post subject: Re: Question about postrow buttons | ||
|
The template file seems fine. Check the source code of a page when the code is in place and the button doesn't appear. Maybe that will provide a clue as to what is going on.
|
||
|
Carter |
||
| Mon Jul 02, 2007 6:29 pm Post subject: Re: Question about postrow buttons | ||
|
The source code was fine as well - the button showed up there as well, but didn't display on the page.
I went with a hunch and deleted the divs and javascript surrounding the ICQ button, since I believe that function doesn't even work anymore through ICQs website (and so few people use ICQ that it doesn't matter as much anymore), that I deleted the script/divs. After that, all the buttons showed up. Weird side effect, but that was it. Thanks for the help either way. |
||
|
Thoul |
||
| Mon Jul 02, 2007 9:15 pm Post subject: Re: Question about postrow buttons | ||
|
That was going to be my next suggestion.
|
||
Page 1 of 1