Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#337 2005-11-03 01:48:25
Re: Plugin/Hack: Albumpattern
Perhaps you noticed already, but it’s up again.
Ever/Never Design
Beauty meets Business.
Offline
#338 2005-11-03 01:55:06
Re: Plugin/Hack: Albumpattern
Hi everybody!
I know this is probably quite much to ask because of the complexity, but is it possible to make albumpattern available to a “normal” author?
To manage greater amounts of images, and to upload five in a row, because ftp upload with nhn_image_import isn’t possible, and with albumpattern my users could at least upload five images in a row. Also, images are resized really autmagically, for ex. with glx_admin_image, you have manually enter the size (the user!!!) and click on “create”, to get your thumbnail, also you can’t get both a resized and a full res version.
Any suggestions?
Ever/Never Design
Beauty meets Business.
Offline
#339 2005-11-03 15:50:47
Re: Plugin/Hack: Albumpattern
Me again…
A gallery on a textpattern install I maintain contains over (I think sixty) images.
Now, when one clicks on a thumb to view an image in singel image mode, this php error message is what I get at the top of the page: Warning: extract():
First argument should be an array in /home/florian/public_html/bhofabi06.de/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 1817
Warning: extract(): First argument should be an array in /home/florian/public_html/bhofabi06.de/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 1793
Any ideas what causes thsi? Keep in mind, other albums with less pictures don’t get this error.
EDIT: Probably I accidentally viewed a cached version, but now it’s with every album. Doesn’t make it any better though. Anybody has an idea, or experience with many images + albumpattern?
THANKS so much in advance!
Last edited by step21 (2005-11-03 15:56:27)
Ever/Never Design
Beauty meets Business.
Offline
#340 2005-11-09 13:51:59
Re: Plugin/Hack: Albumpattern
The php error magically disappeared, I still don’t know what caused it.
Any way, anybody has an idea how to change ap’s privs/levels checking so that an “staff writer” user can access the albumpattern tab?
staff_writer is number 4, so from what I found in the source these users should have access to the tab, but they don’t. Also, may it be that one has to deactivate and reactivate a plugin after it’s code was changed?
Thx for any help, step21 (feel free to mail me if you know sth)
I checked with the source, and the most likely part I found was this:
if( defined(‘ALBUMPATTERN_ADMIN’) ) {
function admin_albumpattern($event, $step)
{
check_privs(1,2,3,4,6);
if(!$step or !function_exists($step) ) { album_list(); } else $step(); }
Last edited by step21 (2005-11-09 13:53:00)
Ever/Never Design
Beauty meets Business.
Offline
#341 2005-11-09 15:14:17
Re: Plugin/Hack: Albumpattern
I figure it out now, even if in a deprecated way, using admin_config.php. When if I have some more time, I’ll try to do this the db way as well, but for now this has to do.
To enable other users but the admin user to access albumpattern, I added a line to this array: “$txp_permissions = array(” in admin_config.php located in textpattern/lib.
It’s as follows:” ‘album’ => ’1,2,3,4,5,6’,”
Note that this would allow access to ALL users, even those with otherwise no privileges. (not recommended) So replace with what suits you. (For example “1,2,3,4”) Use at your own risk! I guess normally only the admin user has access to albumpattern because there at present is no easy way to prevent the “prefs” subtab of AP to be accessed because of the way these subtabs are implemented. (steps instead of events).
Nonetheless in general only the admin user accessing AP is pretty much senseless (unless you do a one person blog) because at bigger sites like I implemented on with this, you as an admin user normally do the setup and stuff for your users and then let them do the uploading of pictures.
As a better solution I recommend to do a separate tab in the admin section where the “prefs” should be located.
Sorry for all the posts.
step21
Ever/Never Design
Beauty meets Business.
Offline
#342 2005-11-17 09:04:14
Re: Plugin/Hack: Albumpattern
I’m on TXP 4.01 and AP 5beta. Installation was complete, as far as I can remember (yes, I installed the plugin). My problems is that I can’t get beyond the album list. I mean, I go to my site and click on an album to view (the album list works perfectly), but then I’m stuck at the album list. I can’t get any deeper into the album. The URL has changed (I’m using clean URLs) but I still have the album list.
Can anyone help?
“The neighboring marshmallow factory fared no better, having been unable to absorb the incredible pressure wave.”
Offline
#343 2005-11-17 09:37:37
Re: Plugin/Hack: Albumpattern
If you used messy urls before, you could reverse it, checking if that is what causes the trouble.
Additionally, did you create your forms proberly? If you think you did, check whether the “album” form (or the form used for the display of an album, if you named it differently) contains sth. like the following. To go “deeper” into the album, it’s especially important that there’s the stuff with “permalink” in it.
<txp:permlink><txp:ap_thumbnail /></txp:permlink><br />
<txp:permlink><txp:title /></txp:permlink>
If none of this helps, please post a more detailed description of your problem.
What do you mean by “stuck at the album list”? Are there no links created? Are there links, but if you click on them nothing happens? This may seem unimportant, but a most detailed explanation of a problem is often crucial to solve sth., because me and everyone who tries to help you don’t happen to see your screen and see what you see and perhaps take as obvious.
Ever/Never Design
Beauty meets Business.
Offline
#344 2005-11-18 06:58:48
Re: Plugin/Hack: Albumpattern
Sorry if I was vague about my problem.
You can see my gallery at http://pathwaysphilippines.org/Gallery/
What I meant by “being stuck” was that when I clicked on the permlink to the album (in the album list), I’d still be at the album list. The URL, as I mentioned would already be /section/id/gallery-title/ but the code inside txp:if_individual_album doesn’t seem to kick in and instead remain at the album list view.
Curiously, I tried switching to dirty URLs and it worked!
Does anyone know what could be wrong? I’d really rather have clean URLs.
Last edited by dreamstormer (2005-11-18 07:33:17)
“The neighboring marshmallow factory fared no better, having been unable to absorb the incredible pressure wave.”
Offline
#345 2005-11-18 13:27:08
Re: Plugin/Hack: Albumpattern
It may be that either albumpattern checks the mode at installation time and “remembers”, configures itself accordingly in some way, or that the urls are hardcoded in the database. Could you check? I mean by browsing the specific tables in sth. like phpMyAdmin. In the first case you’d have to reinstall albumpattern. (careful)
In the second case (the easier on) you’d just have to delete your created gallery and create a new one, and upload your pictures again. You can also try the latter case by creating a new album, uploading a picture and then check if you can access the new one. Also some failures with albumpattern arise from not switching the site to “live” mode, but instead running it in “testing” or “debug”.
Ever/Never Design
Beauty meets Business.
Offline
#346 2005-12-02 03:52:48
- streetdaddy
- New Member
- From: Adelaide, Australia
- Registered: 2004-06-01
- Posts: 8
Re: Plugin/Hack: Albumpattern
i think the reason is ‘life’. Maybe you should get one too?
Offline
#347 2005-12-06 10:26:37
Re: Plugin/Hack: Albumpattern
I’m really excited to use this, but there are a few things that are stopping me:
- Will we ever get batch uploads? Any form of batch uploading would do really. This is, in my mind, the greatest drawback of this otherwise wonderful plugin.
- Can we see a “max dimensions” option instead of a “max width/height”?
- Square thumbnails work great, but when you pick thumbnail dimensions that aren’t those of your image or a square, the resulting thumbnail is stretched and distorted.
Last edited by lwray (2005-12-06 10:27:48)
Offline