Login / logout column width mixed-up Login / logout column width mixed-up
 

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

Main Menu

Login / logout column width mixed-up

Started by hlabout, May 04, 2010, 08:40:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hlabout

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

Joachim Müller

Quote from: hlabout on May 04, 2010, 08:40:58 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.

hlabout

Joachim,

File set is to large 7.282kB.

Harald

Joe Carver

Quote from: hlabout on May 04, 2010, 08:40:58 AM
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

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

Joe Carver

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


onthepike

Try adjusting the value of the maintable width:

<!-- 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.

hlabout

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

hlabout

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

Joe Carver

Quote from: hlabout on May 04, 2010, 08:03:29 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

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

<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%.

onthepike

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:

<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%.

Joachim Müller

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

hlabout

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

Joachim Müller

Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
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.