phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

So glad to have found this site


 
Search this topic... | Search Styles Development & Discussion... | Search Box
Register or Login to Post    Index » Styles Development & Discussion  Previous TopicPrint TopicNext Topic
Author Message
Geminiusa
Board Member



Joined: 12 Nov 2014

Posts: 8



PostPosted: Wed Nov 12, 2014 4:27 pm 
Post subject: So glad to have found this site

Friends i have been using phpbb2 and finding others that still use it is awesome. I am trying to add some changes to my layout by replacing all buttons with css and all is working until i get to the viewtopic body. So far i have the new topic and post reply buttons replaced but the quote post, edit post etc etc buttons i am having issues with.

Here is what i have done so far. All edits i am making are on the tpl files so it is only theme based so in the viewtopic body i have changed the following:

Code:
<td><a href="{U_POST_NEW_TOPIC}"><img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" title="{L_POST_NEW_TOPIC}"  /></a></td>


With this:

Code:
<td><button><span><span><a href="{U_POST_NEW_TOPIC}">New Topic</a></span></span></button>
</td>


and then added my css to the style using the following:

Code:
button{
  margin      : 0;
  padding     : 0;
  border      : 0;
  background  : transparent;
  font-family : inherit;
  font-size   : 1em;
  cursor      : pointer;
}

button::-moz-focus-inner{
  padding : 0;
  border  : 0;
}

button span{
  display : block;
}

button > span{
  border        : 1px solid rgb(128,128,128);
  border-radius : 4px;
}

button > span{
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(top,  #ffffff 0%, #f3f3f3 50%, #ededed 51%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(50%,#f3f3f3), color-stop(51%,#ededed), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* IE10+ */
background: linear-gradient(to bottom,  #ffffff 0%,#f3f3f3 50%,#ededed 51%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffffff',GradientType=0 ); /* IE6-9 */
}

button > span{
  padding     : 0 8px;
  line-height : 24px;
}

button > span{
  color       : white;
}

button > span{
  width       : 70px;
  height      : 24px;
  line-height : 24px;
}


Please, any help with replacing the following:

Code:
{QUOTE_PM_IMG}
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 430
Location: Québec


flag
PostPosted: Wed Nov 12, 2014 5:50 pm 
Post subject: Re: So glad to have found this site

{QUOTE_PM_IMG} does not seem to exist in a fresh install, is it from a MOD? What trouble do you have with it?

Also, I'm not a semantics expert but it seems weird to have two spans in your button icon_confused.gif
Back to top
Geminiusa
Board Member



Joined: 12 Nov 2014

Posts: 8



PostPosted: Wed Nov 12, 2014 10:07 pm 
Post subject: Re: So glad to have found this site

You will find the {postrow.QUOTE_IMG} in the viewtopic_body.tpl My apologies for that.

The 2 <spans> are in use in css3 as single and double selectors so i can have a double outline around the css3 button.

I am trying to get all css3 buttons to follow the same css and use text instead of images so i can change the color, look and feel with simple css edits instead of new images.
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 430
Location: Québec


flag
PostPosted: Wed Nov 12, 2014 11:14 pm 
Post subject: Re: So glad to have found this site

{postrow.QUOTE_IMG} is defined in viewtopic.php on line 990. You could replace the img tag with your anchor text and wrap the rest of the HTML around it in the TPL file as you did above.
Back to top
Geminiusa
Board Member



Joined: 12 Nov 2014

Posts: 8



PostPosted: Thu Nov 13, 2014 12:02 pm 
Post subject: Re: So glad to have found this site

Will do that Salvatos, sounds like the cure for sure. I was doing it all in the tpl and the buttons were showing whether they were used or not LOL. For example when i added the edits to the AIM it showed the button even though it was not supposed to LOL. Thank you so much for your time taken to share. I looked high and low for a phpbb2 site like this. I hope i can share with others as well and keep phpbb2 alive.
Back to top
Salvatos
Board Member



Joined: 19 Feb 2009

Posts: 430
Location: Québec


flag
PostPosted: Thu Nov 13, 2014 5:15 pm 
Post subject: Re: So glad to have found this site

Geminiusa wrote:
For example when i added the edits to the AIM it showed the button even though it was not supposed to LOL.

Might be a case of browser cache, did you try to force refresh?
Back to top
Geminiusa
Board Member



Joined: 12 Nov 2014

Posts: 8



PostPosted: Thu Nov 13, 2014 6:22 pm 
Post subject: Re: So glad to have found this site

When i edited the php file directly it worked perfectly, when i edited the tpl by itself is when i screwed myself. Your way worked flawlessly friend and i Thank you so so much. Is very nice to find folks who will take the time to help others and i am truly thankful for your help.
Back to top
Display posts from previous:   
Register or Login to Post    Index » Styles Development & Discussion  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0274 seconds using 15 queries. (SQL 0.0024 Parse 0.0009 Other 0.0241)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo