How do I change background image for only one page (register.php) How do I change background image for only one page (register.php)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How do I change background image for only one page (register.php)

Started by matheso, December 31, 2014, 03:17:03 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

matheso

How do I remove the tiled background from all pages except register.php?
I changed the background by changing style.css to have:

#cpg_main_block_outer 
{
    padding: 0px;
    background: url('http://thecodeplayer.com/uploads/media/gs.png');
   /*background = gradient + image pattern combo*/
   background:
   linear-gradient(rgba(196, 102, 0, 0.2), rgba(155, 89, 182, 0.2)),
      url('http://thecodeplayer.com/uploads/media/gs.png');
}

but this changes all pages. How do I change only register.php?

Thank you

matheso

My site is below. You can see the checkered background behind the gallery photos. I only want that on register.php

http://taskbasket.net/gallery/

ΑndrĂ©

I thought you will use a custom registration form for your gallery? I know this is no answer to your question, but I think we don't need to deal with that issue if we don't need to.

matheso

I am using a custom registration page, except the old background image is still showing up for my index page:   www.taskbasket.net/gallery/
It's the checkered image behind the photos. I can't find where to remove it!

allvip

I do not understant what you're using anymore, but if you use http://taskbasket.net/gallery/registration.html, then delete background from:

In style.css:


#cpg_main_block_outer {
    padding: 0px;
    background: linear-gradient(rgba(196, 102, 0, 0.2), rgba(155, 89, 182, 0.2)) repeat scroll 0% 0%, url("http://taskbasket.net/gallery/themes/matheso/images/gs.png") repeat scroll 0% 0% transparent;
}


if you use register.php then wrapp only the table from register.php in a div:

add echo '<div id="CustomStyle">'; before starttable and echo '</div>'; after  endtable();

You will find starttable and entable twice. One is for I agree page, one is for the registration form.

the you can add in your style.css #CustomStyle {background: ........} or #cpg_main_block_outer #CustomStyle  {}


allvip

You can also inspect all the form with firefox inspect to see all the css.
Example: the td of the form has:

.tableb_alternate {
    background: none repeat scroll 0% 0% #E7EAEF;
}
}


You can not delete it because this class is used even for other pages, so add to style.css:

#CustomStyle .tableb_alternate {
    background: .............;
}

allvip

BTW: I made a mistake in this topic http://forum.coppermine-gallery.net/index.php/topic,77975.0.html.
No need to change the style for everything.
Is enough to wrapp the maintable in a div then overpower the form css with #CustomStyle .tableb_alternate, #CustomStyle .tableb etc.
You can even make #CustomStyle have a 50% width, then margin auto, to make the form small.
I will add this even in that topic.

BETTER SOLUTION (this way you don't edit register.php. Everytime you update coppermine you will need to edit register.php again).This way only on register.php the container div (cpg_main_block_outer) will have an extra id.
Read details here http://forum.coppermine-gallery.net/index.php/topic,77975.0.html reply #1 BETTER SOLUTION

allvip