The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Stylish legend for phpbb2 - is it possible in any way?

View previous topic View next topic Go down

Stylish legend for phpbb2 - is it possible in any way?

Post by Diana on December 7th 2010, 8:45 pm

http://help.forumotion.com/tricks-tips-f32/how-to-make-a-stylish-legend-t77104.htm
Is there anyway to do it on phpbb2? I contacted the person linked to in the post and they told me the tutorial was for phpbb3 only.

Diana
Active Poster

Female Posts : 1286
Reputation : 21
Language : English

Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Guest on December 7th 2010, 9:24 pm

You need to do that from templates (:
ACP - Display - Templates - General - Index_body:
find :
Code:

<table border="0" cellspacing="3" cellpadding="0" align="center">
   <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
   </tr>
</table>

Replace it with:
Code:

<table border="0" cellspacing="3" cellpadding="0" align="center" id="picture_legend">
   <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
   </tr>
</table>

In your CSS, you add:
Code:

#picture_legend {
background-position: center;
background-repeat: no-repeat;
background-image: url('http://i34.tinypic.com/b80g87.png');
text-align: center;
padding: 24px 0;}

Guest
Guest


Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Diana on December 7th 2010, 9:26 pm

Hm, but will it work if I want to use the thing in the multi theme thing?

Diana
Active Poster

Female Posts : 1286
Reputation : 21
Language : English

Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Guest on December 7th 2010, 9:27 pm

Yah.. you can add the CSS in the other themes (:

Guest
Guest


Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Diana on December 7th 2010, 9:29 pm

Okay, I want to use this on the extra theme, not on the main theme. Do I have to add the code to my main forum then or the forum I'm making the skin on?

I mean the template code. I assume the css code goes into the just the theme forum.

Diana
Active Poster

Female Posts : 1286
Reputation : 21
Language : English

Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Guest on December 7th 2010, 9:33 pm

You don't have to put that in the other themes template because they not be effected.
1. Put the HTML code above in the main forum template.
2. Put the CSS in the other theme CSS.

Guest
Guest


Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Diana on December 7th 2010, 9:35 pm

Okay, but if the code is changed on my main forum but there is no css on my main forum does it affect the look of my forum?

Diana
Active Poster

Female Posts : 1286
Reputation : 21
Language : English

Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Guest on December 7th 2010, 9:37 pm

Edit: It will add the stylish legend CSS if you change to another theme that has the CSS

Guest
Guest


Back to top Go down

Re: Stylish legend for phpbb2 - is it possible in any way?

Post by Diana on December 18th 2010, 10:58 pm

@Gangstar15 wrote:You need to do that from templates (:
ACP - Display - Templates - General - Index_body:
find :
Code:

<table border="0" cellspacing="3" cellpadding="0" align="center">
   <tr>
      <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
      <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
      <td></td>
      <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
      <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
   </tr>
</table>

There is no such code in there. Is there something else I can replace with the new code that will make it work?

Diana
Active Poster

Female Posts : 1286
Reputation : 21
Language : English

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum