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: Editing tabless generated by {Gallery}  (Read 5008 times)

0 Members and 1 Guest are viewing this topic.

balkanboy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • Firefox wallpapers
Editing tabless generated by {Gallery}
« on: January 09, 2006, 10:04:11 pm »

How do I edit table generated by
Code: [Select]
{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.
« Last Edit: January 16, 2006, 12:02:20 am by GauGau »
Logged

Blueiris

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 170
  • Horse poor!
    • Saddlebred World Gallery
Re: Editing tabless generated by {Gallery}
« Reply #1 on: January 10, 2006, 08:34:34 am »

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Editing tabless generated by {Gallery}
« Reply #2 on: January 10, 2006, 08:37:18 am »

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]
Logged

n1^

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Editing tabless generated by {Gallery}
« Reply #3 on: January 10, 2006, 08:44:13 am »

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

balkanboy

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • Firefox wallpapers
Re: Editing tabless generated by {Gallery}
« Reply #4 on: January 10, 2006, 03:03:16 pm »

It is not posible to control table cellspacing over css because it is inside table tag. Here is code from html output source:
Code: [Select]
<!-- 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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Editing tabless generated by {Gallery}
« Reply #5 on: January 10, 2006, 04:00:41 pm »

why don't you search your local copy of the coppermine files for files that contain the text
Quote
cellspacing="1"
or
Quote
cellspacing=\"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.
Logged

Blueiris

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Female
  • Posts: 170
  • Horse poor!
    • Saddlebred World Gallery
Re: Editing tabless generated by {Gallery}
« Reply #6 on: January 10, 2006, 04:58:15 pm »

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.
« Last Edit: January 10, 2006, 05:06:27 pm by Blueiris »
Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
    • Firefox wallpapers
Re: Editing tabless generated by {Gallery}
« Reply #7 on: January 14, 2006, 11:09:16 pm »

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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.