coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Miscellaneous => Topic started by: cynikalsam on December 03, 2004, 04:47:30 AM

Title: Adding a "more" link, to the right of "random galleries" and "last uploads&
Post by: cynikalsam on December 03, 2004, 04:47:30 AM
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
Title: Re: Adding a "more" link, to the right of "random galleries" and "last uplo
Post by: Hein Traag 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.
Title: Re: Adding a "more" link, to the right of "random galleries" and "last uplo
Post by: Hein Traag on December 03, 2004, 06:20:51 PM
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
Title: Re: Adding a "more" link, to the right of "random galleries" and "last uplo
Post by: cynikalsam 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 :)
Title: Re: Adding a "more" link, to the right of "random galleries" and "last uplo
Post by: cynikalsam 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..
Title: Re: Adding a "more" link, to the right of "random galleries" and "last uplo
Post by: Hein Traag on December 10, 2004, 07:42:11 AM
Did you try contacting that gallery you mentioned ?
Title: Re: Adding a "more" link, to the right of "random galleries" and "last uplo
Post by: cynikalsam 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..  ???