View Full Version : archive as index?
unseen
12-04-2005, 01:21 AM
is there a way to make the browse_template the main page rather than the image_template? so say if you went to my site, instead of the latest photo showing on the index, the archives would be the index.
...yes, i'm trying to make my use of pixelpost more like a gallery. *cringe*
a friend and i are making a site for our camp and we're going to be using wordpress for all the main information, but we have TONS of photos from the past 5 years that we want to upload too. i like the way pixelpost works and i want all the features, i would just like to switch these two pages around. i'm sure it's something easy to edit in the index.php, but just curious what exactly i would have to change. thanks :]
blinking8s
12-04-2005, 01:34 AM
swap the template.html names and watch the magic happen...granted it's ghetto, but it works
tinyblob
12-04-2005, 10:36 AM
shazam :)
raminia
12-04-2005, 10:38 AM
shazam :)
what's shazam?
tinyblob
12-04-2005, 10:46 AM
it's a "Magic Word" from a famous old comic.
people use it sometimes when they pretend something is magic, but obviously isn't.
unmake
12-05-2005, 08:41 AM
You could alternately create an .htaccess file with something like this as its contents:
Options -Indexes +FollowSymlinks
RewriteEngine on
DirectoryIndex index.php?x=browse
I think if you just swap the filenames as suggested, than all the links on your index (the browse page, renamed to image_template) will point to image_template (actually the browse page, now). There's a $showprefix variable somehwhere in pixelpost's PHP code that you could chang, though..
there are other issues as well (?showimage= only works when there's no ?x= in the URL).. I just did a quick test and renaming didn't work for me..
tinyblob
12-05-2005, 09:25 AM
yeah, you raise a valid point.
i looked at this myself for the advanced_categories mod, and things will go a bit wrong :)
using url re-write is a good idea, but only if your host supports it.
raminia
12-05-2005, 10:14 AM
What if all pixelpost tag be available in all pages?
raminia
12-05-2005, 10:16 AM
it's a "Magic Word" from a famous old comic.
people use it sometimes when they pretend something is magic, but obviously isn't.
hehe :D I got it :) Shazam
tinyblob
12-05-2005, 10:51 AM
What if all pixelpost tag be available in all pages?
Ramin, i was thinking this:
We check to see if x is blank, and if so, assume the user wants to see the newest image.
I suggest that we have a configuration option in the database where you select (from a dropdown) the template you want to load initially.
This won't break anything, because showimage links will still function. It just adds the flexibility that users can select which template loads on the "home" page.
I think this is a serious addition, everyone i've spoken to about my categories addon wants this flexibility, and currently the only way to do it is an extensive hack.
This will make Pixelpost WAY more appealing for people that want to use Pixelpost for non-standard purposes (Portfolios, commercial sites, etc).
What do you think?
raminia
12-05-2005, 12:10 PM
That's a nice thinking of PP design.
btw, commercial site from GNU GENERAL PUBLIC LICENSE ?
tinyblob
12-05-2005, 12:19 PM
by commercial site, i meant someone advertising their work.
unseen
12-05-2005, 08:32 PM
ha! and i thought it would be so easy... shazam indeed ;D i haven't been able to try anything out yet because we're still waiting for our host to accept the application. but tinyblob, i really like your dropdown template idea. hmm. i'll have to play around with this a bit...
tinyblob
12-05-2005, 09:03 PM
Unseen, my idea will exist in v1.5, either as an official part of the code base, an addon, or a hack :)
unseen
12-05-2005, 09:48 PM
oo, sweet. i can wait till then :] thanks!
unseen
12-08-2005, 09:35 PM
okay, in case anyone else is interested, you can see a working version on my site: www.unseen.zeeder.com
major kudos to tinyblob for the hack. it will be part of v1.5 too, so i am told... get excited kids!!
tinyblob
12-08-2005, 09:38 PM
Well, not part as such, but it will be one of the first admin addons available ;).
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.