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: Adding a "more" link, to the right of "random galleries" and "last uploads&  (Read 3929 times)

0 Members and 1 Guest are viewing this topic.

cynikalsam

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

To put it simply, i'd like to add a link at the right side of tableh1 where the "random galleries" and "last uploads" text is. Obviously, by clicking the "more" link, you will be taken to more random or recent uploads respectivly.

The code i found for that table is this

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

EOT;
    if ($title) {
        echo <<<EOT
        <tr>
                <td class="tableh1" colspan="$title_colspan"><h2><small>$title</small></h2></td>
        </tr>

EOT;
    }
}

function endtable()
{
    echo <<<EOT
</table>
<!-- End standard table -->

The <small></small> tags were added myself, and they seem to affect the text for both "random galleries" and "last uploads", so im really not sure what i need to do to add seperate links to them.

An example of what im talking about can be found at http://gallery.greatestjournal.com

Thank you for any help
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding a "more" link, to the right of "random galleries" and "last uplo
« Reply #1 on: December 03, 2004, 06:08:50 pm »

Got nothing to do at work but work atm so i'llhave a looksy ;) been wanting to add this as well to my gallery.

If someone beats me to it so be it ;) but i'll have something to keep me occupied for now.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding a "more" link, to the right of "random galleries" and "last uplo
« Reply #2 on: December 03, 2004, 06:20:51 pm »

I editeda little bit in theme.php and now have a standard tabel code like this

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

EOT;
    if ($title) {
        echo <<<EOT
        <tr>
                <td class="tableh1" colspan="$title_colspan"><table border=0 cellpadding=0 cellspacing=0><tr><td width=100%><h2>$title</h2></td><td><a href=thumbnails.php?cat=0&album=lastup>more&gt;&gt;</a></td></tr></table></td>
        </tr>

EOT;
    }
}

function endtable()
{
    echo <<<EOT
</table>
<!-- End standard table -->

Which gives me a link to more recent uploads. Viewable at http://pictures.scoutlink.net

18:32 update: Activated the random option as well but now have a "more" at both rows pointing at the last uploaded pics ;).
So it's half way completed.
Not sure how to make this part
Code: [Select]
<a href=thumbnails.php?cat=0&album=lastup>more&gt;&gt;</a>become variabel so it will fill in the category, album and actions based on where you are in your gallery. In other words how does one make this go variable instead of hardcoded ?
Anyone got any idea's or pointers ?

Going home now ;) have a good weekend!~
Hein
« Last Edit: December 03, 2004, 06:44:39 pm by Hein »
Logged

cynikalsam

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Adding a "more" link, to the right of "random galleries" and "last uplo
« Reply #3 on: December 06, 2004, 12:12:07 am »

I have no idea. I've been trying to figure this out since forever.. Hopefully sombody will figure this out and reply :)
Logged

cynikalsam

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Adding a "more" link, to the right of "random galleries" and "last uplo
« Reply #4 on: December 08, 2004, 12:11:41 am »

I've still been trying, but i think its way over my head.. I think it might actually be easy-er to make the title (IE; "Random files") a clickable link to take you to that category. But, i still dont know what the code would be..
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding a "more" link, to the right of "random galleries" and "last uplo
« Reply #5 on: December 10, 2004, 07:42:11 am »

Did you try contacting that gallery you mentioned ?
Logged

cynikalsam

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: Adding a "more" link, to the right of "random galleries" and "last uplo
« Reply #6 on: December 15, 2004, 10:00:40 pm »

Yea still no reply from them. Theres some code near the bottom of index.php that i believe relates to it (you cant miss it) but i just dont know what to add to do this..  ???
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.