forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: matheso on December 31, 2014, 03:17:03 am

Title: How do I change background image for only one page (register.php)
Post by: matheso on December 31, 2014, 03:17:03 am
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
Title: Re: How do I change background image for only one page (register.php)
Post by: matheso on December 31, 2014, 03:18:10 am
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/ (http://taskbasket.net/gallery/)
Title: Re: How do I change background image for only one page (register.php)
Post by: Αndré on December 31, 2014, 10:28:49 am
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.
Title: Re: How do I change background image for only one page (register.php)
Post by: matheso on December 31, 2014, 08:58:02 pm
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!
Title: Re: How do I change background image for only one page (register.php)
Post by: allvip on January 02, 2015, 09:49:25 am
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:

Code: [Select]
#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
Code: [Select]
echo '<div id="CustomStyle">'; before starttable and
Code: [Select]
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  {}

Title: Re: How do I change background image for only one page (register.php)
Post by: allvip on January 02, 2015, 10:49:15 am
You can also inspect all the form with firefox inspect to see all the css.
Example: the td of the form has:

Code: [Select]
.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:

Code: [Select]
#CustomStyle .tableb_alternate {
    background: .............;
}
Title: Re: How do I change background image for only one page (register.php)
Post by: allvip on January 02, 2015, 11:13:18 am
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 (http://forum.coppermine-gallery.net/index.php/topic,77975.0.html) reply #1 BETTER SOLUTION
Title: Re: How do I change background image for only one page (register.php)
Post by: allvip on January 08, 2015, 01:59:03 pm
Forum rules: say how you made it and then click topic solved.

Resolve your threads: http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631 (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270631.html#msg270631)