[Done]: Need to seperate {gallery} (Code Changes) [Done]: Need to seperate {gallery} (Code Changes)
 

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

Main Menu

[Done]: Need to seperate {gallery} (Code Changes)

Started by DigitalMind, February 06, 2010, 02:33:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DigitalMind

Hello,
 I am working on a new theme.  I would like to sort my {gallery} horizontally instead of vertically.
So basically I want random,1/lastup,1,/anycontent ... If there's a way of putting those fields in manually in my theme instead of re-writing how {gallery} displays that's fine too.  (maybe even better)  Do separate variables exist for this ?

I'm attaching a mock-up of what I mean.  I don't need anyone to modify the theme, just need someone to make the {gallery} display my options vertically instead of horizontally.

If someone doesn't want to do it, but just point me in the right direction, that would be greatly appreciated too.  

Gallery is at www.demotivationalpics.com.

For the moment I have $40 for this.  However if it's not even close to being enough, please reply and let me know, and tell me what a fair amount to pay for this would be.

I'd like this done by Feb. 13th ...

Thanks everyone, take care !
Jason
DemotivationalPics.com

Αndré

Is this just a landing page or should your whole gallery look like this?

DigitalMind

Only the main page of demotivationalpics.com would need this particular layout.  I'd like the displayimage part to be the current layout.  (hmm ..that makes it complicated doesn't it?)   I wouldn't mind having the displayimage in a more horizontal way too, but I just can't imagine what that would involve and how it would look. 

I might be able to figure something out on my own, but I don't even know what file the code that makes {gallery} is.

Thanks André !
(est-ce que tu est Quebecois André?)

Αndré

Quote from: DigitalMind on February 06, 2010, 06:09:57 PM
Only the main page of demotivationalpics.com would need this particular layout.  I'd like the displayimage part to be the current layout.  (hmm ..that makes it complicated doesn't it?)
No. That makes it quite easy. We can design our own landing page, without having to modify something in the core code.

Quote from: DigitalMind on February 06, 2010, 06:09:57 PM
est-ce que tu est Quebecois André?
No. I'm André from Germany and my French is very poor ;)

DigitalMind

Just to be clear, the landing page, the home page, the "album list" is all the same thing on demotivationalpics ...  (I don't want to mistake my terms and give wrong information)

DigitalMind

hmmm ...   I think I see what you're saying.  Make my own landing page, set the URL of the homepage in coppermine to be that page, and use CPMFetch to get the data I want where I want it ??? 

DigitalMind

.. or do I simply replace the index.php with a new webpage with that layout, (all albums are simple text links) and use cpmfetch to get the data I want where I want it ?

Can I simply replace that index.php file ?? (for some reason, I always figured it was an important file.  But I suddenly realize that every other feature of the site has it's own file anyways, thumbnails.php, displayimage.php .... )

DigitalMind

Ok, I've almost got this solved.  (Well, maybe not, I think I might be doing all this backwards)

My "plan" is to flat out replace the index.php file. 

I've made a new index.php file, with more or less the layout I want.  I've struggled for a few hours to get CPMFetch installed and working.   (Kudos to VUUD btw, this makes everything much simpler)

What I'm currently struggling with is how to get access to the coppermine variables I want.  Like the {LOGIN_FORM} and {ADMIN_MENU}  ? How do I make coppermine recognize this page as being a coppermine page.   
I'm HOPING that it's just some code to add on top of the page to define or link to other files.  (I'm not great at PHP, and I generally learn as I go. Although I learn fast! )  I've been guessing for a few hours now, copying and pasting some of the php code that is on top of most coppermine pages, but I don't really know what I'm doing and it's not working. 

My test page is currently at www.demotivationalpics.com/index2.php   ... it's not even close to being finished, I'm just playing.  You can see the {LOGIN_FORM} variable on the top right ..

Any advise, or links that will point me in the right direction would be very appreciated !

Thanks,
Jason

Αndré

Embed your code between
define('IN_COPPERMINE', true);
require('include/init.inc.php');

pageheader();

and
pagefooter();


It's not a good idea to replace the index.php file. Instead, create another file (e.g. welcome.php) and redirect your users to that page.

DigitalMind

Thanks so much Andre .....

I'd like to send you a little something for your advise. Can you please contact me ? (digitalmind (AT) techienation dot com)

Αndré