Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Login / logout column width mixed-up  (Read 7357 times)

0 Members and 1 Guest are viewing this topic.

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Login / logout column width mixed-up
« on: May 04, 2010, 08:40:58 am »

Need some help / advice.

Lately I have been busy with my coppermine gallery/
Upgrade to the last version, 1.4.26, and made some internal changes.

www.haraldlabout.nl

Somewhere on the line I have made an error.
This error is on the administrator login / logout pages and I don't have a clue how this happened.
The column width is set to a wrong value, it is much to width.
When using fire bug in my FF browser I can see that this column width is set to 2000 on those two pages.
All other pages have a column width of 79% and in that case the column is properly displayed on all pc / laptop screens.

So I can see what is wrong, I cannot find this wrong setting in my coppermine code.
So the question is where do I change the column width for the login / logout pages in my coppermine gallery code.

I really hope someone can give me a helpful advice.

Harald
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login / logout column width mixed-up
« Reply #1 on: May 04, 2010, 09:45:19 am »

made some internal changes.
[...]
Somewhere on the line I have made an error.
This error is on the administrator login / logout pages and I don't have a clue how this happened.
Well, we can't advise if we can't see what is wrong or what you did. Zip your gallery folder except the albums folder and make the zip available.
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Login / logout column width mixed-up
« Reply #2 on: May 04, 2010, 02:25:46 pm »

Joachim,

File set is to large 7.282kB.

Harald
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Login / logout column width mixed-up
« Reply #3 on: May 04, 2010, 03:13:19 pm »

Somewhere on the line I have made an error.
This error is on the administrator login / logout pages and I don't have a clue how this happened.

You could have modified login.php. Try using a clean copy of that file.

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Login / logout column width mixed-up
« Reply #4 on: May 04, 2010, 05:22:51 pm »

Joe,

Thanks for your reply.
I already placed a fresh login.php and logout.php in the root of my gallery, no result.
Still the same absurd width on the login screen.

Harald
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Login / logout column width mixed-up
« Reply #5 on: May 04, 2010, 05:56:29 pm »

Your theme seems to have format issues - try uploading the Classic theme to your gallery.

onthepike

  • Guest
Re: Login / logout column width mixed-up
« Reply #6 on: May 04, 2010, 06:16:22 pm »

Try adjusting the value of the maintable width:

Code: [Select]
<!-- Start standard table -->
<table align="center" width="2000" cellspacing="1" cellpadding="0" class="maintable">

Your current value is 2000. Lower that to something more realistic for current screen widths. Or use a percentage value instead.
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Login / logout column width mixed-up
« Reply #7 on: May 04, 2010, 07:52:09 pm »

Ontherpike,

Thanks for the reply.
I know this 2000 value is too high.
All other columns have a value of 79%.
I use Fire Bug in FF and see that this is wrong.
The problem is that I cannot find this 2000 value in the coppermine code.
Used the search function in dreamweaver and even than I cannot find that width="2000" value.
Magic to me.

Harald
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Login / logout column width mixed-up
« Reply #8 on: May 04, 2010, 08:03:29 pm »

Finaly found the problem.

Searched with dreamweaver for all <table align="center" width= values.
Found in themes.inc.php the value:

<!-- Start standard table -->
<table align="center" width="$width" cellspacing="1" cellpadding="0" class="maintable">

Changed it into:

<!-- Start standard table -->
<table align="center" width="79%" cellspacing="1" cellpadding="0" class="maintable"> and the login and logout screen are now normal sized.

I think I solved the problem and hopefully did not create a new problem with this change.
I suspect this was caused by my upgrade to 1.4.16.
I am glad that it is solved and thanks for the replies.

Harald

www.haraldlabout.nl
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Login / logout column width mixed-up
« Reply #9 on: May 04, 2010, 08:51:51 pm »

Found in themes.inc.php the value:

Editing themes.inc.php is not recommended. You will lose the change on the next upgrade and have to redo it again. This is being stated not just for you, but for others reading this thread. Fixing theme errors should not be done in themes.inc.php. Errors should be fixed in the theme - template.html, theme.php and style.css.

onthepike

  • Guest
Re: Login / logout column width mixed-up
« Reply #10 on: May 04, 2010, 09:27:52 pm »

Try undo edit in in themes.inc.php and replace with original code:

Code: [Select]
<table align="center" width="$width" cellspacing="1" cellpadding="0" class="maintable">
Then, try Config -> Album list view -> Width of the main table, and change the value in the input textarea to 79%.
Logged

onthepike

  • Guest
Re: Login / logout column width mixed-up
« Reply #11 on: May 04, 2010, 10:03:53 pm »

If the above doesn't work (I just tried it out and it's the wrong config entry on my setup), try changing this value instead:

Try undo edit in in themes.inc.php and replace with original code:

Code: [Select]
<table align="center" width="$width" cellspacing="1" cellpadding="0" class="maintable">

Config -> Image view -> Width of the table for file display and change that value to 79%.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login / logout column width mixed-up
« Reply #12 on: May 05, 2010, 06:37:56 am »

Do exactly as onthepike suggested, he's absolutely right. Additionally, stop using Dreamweaver to edit Coppermine's code unless you're extremely skilled.
Logged

hlabout

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 118
    • Harald Labout Fotografie
Re: Login / logout column width mixed-up
« Reply #13 on: May 05, 2010, 07:00:03 am »

Onthepike,

Thanks for your great advice.
In the table of your second solution I finally found the 2000 value I was looking for for the last couple of days.
Easy solution and not that smart of me not to find it there but I cannot remember I made any changes there so thats the reason I could not find it.

Thanks for this great advice.

Harald

SOLVED
 
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Login / logout column width mixed-up
« Reply #14 on: May 05, 2010, 07:18:25 am »

Resolve your threads
[...]
Finally, you can tag your answer as "solved" by clicking on the little image (see attachment) in your initial posting on your thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.