Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How do I change background image for only one page (register.php)  (Read 4603 times)

0 Members and 1 Guest are viewing this topic.

matheso

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91

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
Logged

matheso

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: How do I change background image for only one page (register.php)
« Reply #1 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/
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15759
Re: How do I change background image for only one page (register.php)
« Reply #2 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.
Logged

matheso

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 91
Re: How do I change background image for only one page (register.php)
« Reply #3 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!
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1291
Re: How do I change background image for only one page (register.php)
« Reply #4 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  {}

« Last Edit: January 02, 2015, 10:51:43 am by allvip »
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1291
Re: How do I change background image for only one page (register.php)
« Reply #5 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: .............;
}
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1291
Re: How do I change background image for only one page (register.php)
« Reply #6 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 reply #1 BETTER SOLUTION
« Last Edit: January 02, 2015, 01:39:07 pm by allvip »
Logged

allvip

  • Global Moderator
  • Coppermine addict
  • *****
  • Country: 00
  • Offline Offline
  • Posts: 1291
Re: How do I change background image for only one page (register.php)
« Reply #7 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
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 21 queries.