Editing tabless generated by {Gallery} Editing tabless generated by {Gallery}
 

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

Editing tabless generated by {Gallery}

Started by balkanboy, January 09, 2006, 10:04:11 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

balkanboy

How do I edit table generated by {Gallery} tag? What are files I should edit?
I want to remove those white borders and 1px sellspacing on http://www.firefoxwallpapers.com but in my html template I can see only {Gallery} tag. My template is based on Water drop theme.

Blueiris

The borders are controlled by the css file. Easiest way to find the classes you need to change is to do a view source on your page, and note the classes in the table that displays the images. I believe it's "image" and "imageborder" you want to find in the css.
You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.

Joachim Müller

There's not a single file that creates the content of the {GALLERY} token - it is more some kind of separator. You should take a look at the html ouput generated, check what css class is being used for the wrapping element and change it accordingly in themes/yourtheme/style.css
Using a tool like the web developer toolbar for FF (or the similar bar for IE) to display the css class usage.
Be more specific when asking questions - posting a link to your site is almost always the only method to post a detailed answer.

[edit]
Blueiris, you beat me to it and replied while I was composing my answer. However, I posted my reply anyway, although it says the same as my reply
[/edit]

n1^

Hey again ;)

I'm trying to do the same, somewhat but remove the tables, i guess.

I'm looking at the themes.inc.php im trying to edit out the tables, but i cant seen to find it well.

Is the start for the coding on line 1207?

I cant format for {Gallery} to over ride the themes.inc.php to be put in the theme.php ::) If that makes sense

as par my template all hell breaks loose.

balkanboy

It is not posible to control table cellspacing over css because it is inside table tag. Here is code from html output source:
<!-- Start standard table -->
<table align="center" width="100%" cellspacing="1" cellpadding="0" class="maintable">

Since this table is generated from {gallery} tag I cant edit html in template.html
Where can I change that? I hope you understand me now.

Joachim Müller

why don't you search your local copy of the coppermine files for files that contain the text
Quotecellspacing="1"
or
Quotecellspacing=\"1\"
, cause that's what I would have to do as well if I had a copy of the coppermine files on the PC I'm writing this on.

Blueiris

#6
Let's step back to the beginning here, because you don't need to edit out the cellspacing="1" to get rid of those borders. You can do it through the .css file.

If you're using the .css that came with the Water Drop theme, look first for

Quote.display_media {
        background: #F2F5F7 ;
        padding-top: 3px;
        padding-right: 10px;
        padding-bottom: 3px;
        padding-left: 10px;

Copy #F2F5F7 to the clipboard.

Find the class below, and paste it for the border and background, as I have done below:
Quote.imageborder {
        border: 1px solid #F2F5F7;
        background-color: #F2F5F7;
        margin-top: 30px;
        margin-bottom: 30px;

Then find the .image class, and paste it in for the border color for that class, as I have done below:

Quote.image {
        border-style: solid;
        border-width:1px;
        border-color: #F2F5F7;
        margin: 2px;

Once you have done that, no borders whatsoever will appear around your image.


PS for n1^: One of the moderators will eventually get around to this, so I'll save them the trouble. Don't hijack someone else's topic! What you are looking for is quite different from what balkanboy is asking. Start a new topic for your question, please.
You can lead a horse to water, but you can't make him drink - he's got to discover that it's wet for himself.

balkanboy

I couldn't fine that table in source code, I this css editing haven't helped either, but I have found alternative solution to make borders white- same color as background color og page. It's not actually what I wanted but will do work. Check out how it looks now http://www.firefoxwallpapers.com