Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#271 2005-04-03 18:29:41
- joeyjoejoe
- New Member
- Registered: 2005-03-17
- Posts: 3
Re: Plugin/Hack: Albumpattern
Another question – is it possible to have the albumpattern gallery appear on the home page?
In the ‘default albumpattern’ section page there is no chance to choose ‘default’ as the section.
When albumpattern tags are added to the ‘default’ page the only thing that appears is a list of articles with the image names as their titles, but no images. My default albumpattern section is currently called ‘portfolio’ – if one enables the ‘on front page?’ setting one gets the same result.
I found this in doug edmunds ‘tutorial on the textpattern presentation model’:
“There is a file called publish.php, which is hard-coded to look for a hidden section called default for the frontpage. In the mysql database, the sections table has a record which assigns the default page template and the default stylesheet to the default section. As a result, the frontpage always uses this default/default combination.
You can’t edit or delete this record through presentation/sections. There really isn’t much need to do so. If you don’t like the default appearance, you can edit the default page template and the default stylesheet.”
of course this isn’t true in the case of albumpattern – any ideas?
BTW Thanks vibe9 – things are starting to come together :)
Offline
#272 2005-04-07 14:25:04
Re: Plugin/Hack: Albumpattern
Is it just me, but why would anyone want pictures hosted elsewhere on another site (flickr) instead of your very own?
Offline
#273 2005-04-09 23:02:45
Re: Plugin/Hack: Albumpattern
@ArbinShire:
Lots of reasons. In my opinion the web-based organisation of pictures has never been so easy and feature rich. You’ve got desktop tools to upload hundreds of images with one mouseclick. You’ve got web-based tools to organize and rotate images. You don’t have to care about resizing.
Go <a href=“http://www.rvdh.net/default/?set=174471”>here</a>, click on “Show as slideshow in new window” and you’ll know what I mean.
Offline
#274 2005-04-10 06:50:15
Re: Plugin/Hack: Albumpattern
Is there a possiblity that this hack can be converted to a full-fledged plug-in? (Apart from database creation- which can be done manually)
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
#275 2005-04-11 02:50:41
Re: Plugin/Hack: Albumpattern
Albumpattern is basically a plugin, and if someone worked on it, the admin interface could probably be updated using Admin Side Plugins.
bludrop studios .::. Creative Expression
Offline
#276 2005-04-11 02:55:44
Re: Plugin/Hack: Albumpattern
Also, greenrift hasn’t really been around so I don’t know what’s up with Albumpattern. I do know that larf’s vdh_flickr is coming along nicely with some nice new features in every update.
bludrop studios .::. Creative Expression
Offline
#277 2005-04-11 03:54:39
Re: Plugin/Hack: Albumpattern
Yes APattern is basically a plugin. But can it be implemented without hacking the code? I think like you said with the introduction of Admin Side plugins it will now be possible to convert Albumpattern into a plugin.
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
#278 2005-04-11 14:16:20
Re: Plugin/Hack: Albumpattern
I’m still alive and somewhat around. Just busy with school, work and life as normal. The amount of time I get, without major distractions (I don’t live with videogame/computer geeks anymore) is pretty rare, I’m much more inclined to sit outside and read when it’s 70 and sunny out then sit inside and code.
I do plan on converting AP to an album side plugin, removing as many hacks from the TXP code as possible. The new URL handling stuff in TXP is very nice, and hopefully it will facilitate the movement into section-specific URL’s (like having the special AP URL’s, only without having to do a bunch of fixes for comments and the like). Most of the hacks that were in RC2 are simply to account for TXP not using one or two function to generate links. So instead of saying $link = createHREF($info); it said $link = $pfr.$section.'/'.$id;. I haven’t taken a big look at it, but that trend seems to have been reversed. Which is good, because it means that only one change in one places needs to happen.
So yah, I’m still here and plan on taking some time in the near future to work on something. I might not release it until 1.0 is out, just because telling people which line #‘s to change would be kind of a pain if stuff is still in flux. But I will be keep testing it against the newest builds to make sure stuff works.
Offline
#279 2005-04-11 15:05:53
- sivni
- Gone, but not forgotten

- From: Norway, Hamar
- Registered: 2004-10-27
- Posts: 39
Re: Plugin/Hack: Albumpattern
Great news Greenrift! Looking forward to see more of your great work. Thanks!
Offline
#280 2005-04-11 15:25:31
Re: Plugin/Hack: Albumpattern
Welcome “back”, greenrift. That’s good news. I’m looking forward to seeing the road AP takes. After looking at all image solutions, yours seemed to be the one that would’ve suited me best — if only it wasn’t such a hack. The outlook of having it as an admin-side plugin would be great.
Take your time.
Offline
#281 2005-04-11 18:27:26
Re: Plugin/Hack: Albumpattern
Albumpattern seemed to be the only good/complete solution for an image galery. It really does its job. The only prob I was facing was hacking the code (which does’nt suit me). Otherwise AP rocks. I am eagerly looking forward to using AP as a full-fledged plugin.
“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”
— Albert Einstein
Offline
#282 2005-04-12 01:11:16
Re: Plugin/Hack: Albumpattern
> larf wrote:
> @ArbinShire:
> Lots of reasons. In my opinion the web-based organisation of
>pictures has never been so easy and feature rich. You’ve got desktop
>tools to upload hundreds of images with one mouseclick. You’ve got
>web-based tools to organize and rotate images. You don’t have to
>care
>about resizing.
>Go <a href=“http://www.rvdh.net/default/?set=174471”>here</a>,
>click on “Show as slideshow in new window” and you’ll know what I >mean.
Problem with Flickr is that your photo’s, are under someone elses control. That I don’t trust.
Offline
#283 2005-04-12 01:36:30
Re: Plugin/Hack: Albumpattern
> Problem with Flickr is that your photo’s, are under someone elses control. That I don’t trust.
That’s very true- although there’s probably just as much as a possiblility (maybe even more) of someone “hacking” into your own site as there is on Flickr.
Anyways, it’s nice to see that greenrift is back. Some of his plugins are really useful and greatly increase Textpattern’s abilities. Can’t wait to get some more updates.
bludrop studios .::. Creative Expression
Offline
#284 2005-04-12 13:15:49
Re: Plugin/Hack: Albumpattern
Welcome back Greenrift. Looking forward seeing this plugin/hack as a plugin only(fingers crossed).
regards,
Agust
Offline