Where does CSS information come from?

Discussions about the phpBB3 Forum. How to get the best from this powerful script.
Note that there is no official support for phpBB3 here, a place to share more than to ask for.

Moderator: Moderators

Where does CSS information come from?

Postby xarzu » Thu May 29, 2014 2:03 am

Where does CSS information come from? The obvious answer is that format information for a button or similar object comes from a CSS file.

I have a mod that new users use when the register on my phpbb forum. One of the pages looks like this:
h t t p : / / w w w . a r g u e m a x . c o m / i m a g e s / p r o b l e m s / 5 - 2 8 - 2 0 1 4 / C a p t u r e _ 0 1 . P N G . I will keep this post look a bit cleaner and post graphics as links. If you notice, the payment button is not the proper size.

php code is interpreted and presented on the client in the HTML format. In some web browsers, you can look at the source page. When I do this for this page, I see this h t t p : / / w w w . a r g u e m a x . c o m / i m a g e s / p r o b l e m s / 5 - 2 8 - 2 0 1 4 / C a p t u r e _ 0 1 . P N G . This tells me that the object I need to modify is called payment_button. When I search for this string, I find it defined in two CSS files:

  • http://www.arguemax.com\_phpBB-3.0.12\styles\prosilver\theme\payment.css
  • http://www.arguemax.com\_phpBB-3.0.12\styles\prosilver\theme\membership.css

The button graphic is 147 x47 pixels
h t t p : / / w w w . a r g u e m a x . c o m / i m a g e s / p r o b l e m s / 5 - 2 8 - 2 0 1 4 / C a p t u r e _ 0 3 . P N G

When I load the two .css files in a browser and view the source that is passed down, they both define the payment_button correctly
h t t p : / / w w w . a r g u e m a x . c o m / i m a g e s / p r o b l e m s / 5 - 2 8 - 2 0 1 4 / C a p t u r e _ 0 5 . P N G

When the original page h t t p : / / w w w . a r g u e m a x . c o m / i m a g e s / p r o b l e m s / 5 - 2 8 - 2 0 1 4 / C a p t u r e _ 0 1 . P N G is viewed as source, we can see what .css files this page uses
h t t p : / / w w w . a r g u e m a x . c o m / i m a g e s / p r o b l e m s / 5 - 2 8 - 2 0 1 4 / C a p t u r e _ 0 6 . P N G from the highlighted area, I can create a test string in my browser, http://www.arguemax.com/_phpBB-3.0.12/s ... =1&lang=en

When this address is tested in a browser, it seems to generate a style.css file. I do not find a comparable style.css file out on the server. when I look at this file that is generated as source in the browser, I see:
Code: Select all
.payment_button
{
   color:white;
   height: 45px;
   width: 116px;
   background-color: transparent;
   background-repeat: no-repeat;
   border: 0px solid #FFFFFF;
   display: block;
   cursor: pointer;
}


How this is made is a mystery to me. I do not know PHP well enough to decipher style.php. I suppose the height: 45 and the width:116 must come from the database somehow. The css files both describe the proper settings:
Code: Select all
.payment_button
{
   color:white;
   height: 47px;
   width: 147px;
   background-color: transparent;
   background-repeat: no-repeat;
   border: 0px solid #FFFFFF;
   display: block;
   cursor: pointer;
}


How do I make this work? And, yes, if you are wondering, I have posted this question already at phpbb.com
xarzu
 
Posts: 6
Joined: Sat Jul 06, 2013 5:25 am

Advertisement

Re: Where does CSS information come from?

Postby gvhome » Sat May 31, 2014 11:12 am

It could possibly come from another plugin or piece of software running on the server. If you can put it all on a local server, you could use a program like notepad++ to search through all of the files to find where that code is. Hope that helps.
gvhome
 
Posts: 37
Joined: Sat May 31, 2014 10:53 am

Re: Where does CSS information come from?

Postby hitasoft » Mon Jul 14, 2014 9:30 am

The obvious answer is that format information for a button or similar object comes from a CSS file.

I have a mod that new users ...
hitasoft
PR0
PR0
 
Posts: 57
Joined: Sat Jun 21, 2014 4:07 am


Return to phpBB Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 87 guests


 
cron