Adding a "more" link, to the right of "random galleries" and "last uploads& Adding a "more" link, to the right of "random galleries" and "last uploads&
 

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

Adding a "more" link, to the right of "random galleries" and "last uploads&

Started by cynikalsam, December 03, 2004, 04:47:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

cynikalsam

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

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

Hein Traag

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.

Hein Traag

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

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

cynikalsam

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

cynikalsam

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

Hein Traag


cynikalsam

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