Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#316 2005-09-03 04:41:46
- firago
- Member

- Registered: 2005-01-03
- Posts: 54
Re: Plugin/Hack: Albumpattern
I need help. I probablly messed up during the upload, but i dont know what i did wrong. i enabled the plugin and everything, but when i go to albumpattern_install.php i get the following error.
> Warning: main(/home/public_html/textpattern/textpattern/config.php): failed to open stream: No such file or directory in
> /home/canssite/public_html/textpattern/albumpattern_install.php on line 15
> Warning: main(/home/public_html/textpattern/textpattern/config.php): failed to open stream: No such file or directory in
> /home/canssite/public_html/textpattern/albumpattern_install.php on line 15
> Fatal error: main(): Failed opening required ‘/home/public_html/textpattern/textpattern/config.php’ (include_path=’.:/usr/local/lib/php’) in
> /home/canssite/public_html/textpattern/albumpattern_install.php on line 15
Offline
#317 2005-09-03 18:28:55
Re: Plugin/Hack: Albumpattern
> firago wrote:
> I need help. I probablly messed up during the upload, but i dont know what i did wrong. i enabled the plugin and everything, but when i go to albumpattern_install.php i get the following error.
> Warning: main(/home/public_html/textpattern/textpattern/config.php): failed to open stream: No such file or directory in
> /home/canssite/public_html/textpattern/albumpattern_install.php on line 15
> Warning: main(/home/public_html/textpattern/textpattern/config.php): failed to open stream: No such file or directory in
> /home/canssite/public_html/textpattern/albumpattern_install.php on line 15
> Fatal error: main(): Failed opening required ‘/home/public_html/textpattern/textpattern/config.php’ (include_path=’.:/usr/local/lib/php’) in
> /home/canssite/public_html/textpattern/albumpattern_install.php on line 15
You didn’t read the INSTALL directions. You’re supposed to open albumpattern_install.php, modify the two lines at the top of the file to fit your textpattern installation, upload it, run it. Then install and activate the plugin.
However, your current problem is probably caused by the you not setting $path_to_txp correctly, something like: /home/canssite/public_html/textpattern is probably appropriate.
Offline
#318 2005-09-03 18:39:25
Re: Plugin/Hack: Albumpattern
So what’s a current version and example of albumpattern running on txp v4? I’m using deans method i found in another post. But I still wanted to check out the albumpattern way.
Offline
#319 2005-09-04 16:46:23
- firago
- Member

- Registered: 2005-01-03
- Posts: 54
Re: Plugin/Hack: Albumpattern
greenrift; here is what i have in albumpatter_install.php
> <?php
> // Albumpattern Release 4
> // Installation File.
> // RUN THIS AFTER YOU HAVE INSTALLED THE PLUGIN AND HACK!
> // Path to TXP directory, no trailing slash
> $path_to_txp_config = ‘/home/public_html/textpattern/textpattern’;
> // Name of dedicated albumpattern section.
> $ap_section = ‘images’;
> // Don’t touch anything below here
Offline
#320 2005-09-05 06:28:27
- Joey
- Member
- From: Netherlands
- Registered: 2005-01-19
- Posts: 257
Re: Plugin/Hack: Albumpattern
Works great for me :) Thanks. I’m also looking forward to the batch uploading future :) Maybe there is a possibility to use this plugin
Regards,
Joey
Offline
#321 2005-09-05 23:08:20
Re: Plugin/Hack: Albumpattern
That plugin sounds almost like what greenrift is talking about. Maybe he’s already planning on “using” the plugin?
bludrop studios .::. Creative Expression
Offline
#322 2005-09-06 01:22:36
- firago
- Member

- Registered: 2005-01-03
- Posts: 54
Re: Plugin/Hack: Albumpattern
I am really looking forward to using this plugin because it looks really great, but i have run upon one snag.
When I go to albumpattern_install (which is in /public_html/textpattern/textpattern ) I get the following error:
> Warning: main(/home/public_html/textpattern/textpattern/config.php): failed to open stream: No such file or directory in
> /home/canssite/public_html/textpattern/textpattern/albumpattern_install.php on line 15
> Warning: main(/home/public_html/textpattern/textpattern/config.php): failed to open stream: No such file or directory in
> /home/canssite/public_html/textpattern/textpattern/albumpattern_install.php on line 15
> Fatal error: main(): Failed opening required ’/home/public_html/textpattern/textpattern/config.php’ (include_path=’.:/usr/local/lib/php’) in
> /home/canssite/public_html/textpattern/textpattern/albumpattern_install.php on line 15
I have the following code in the top part of albumpattern_install:
> // Albumpattern Release 4
> // Installation File.
> // RUN THIS AFTER YOU HAVE INSTALLED THE PLUGIN AND HACK!
> // Path to TXP directory, no trailing slash
> $path_to_txp_config = ’/home/public_html/textpattern/textpattern’;
> // Name of dedicated albumpattern section.
> $ap_section = ‘images’;
> // Don’t touch anything below here
Offline
#323 2005-09-06 14:32:38
Re: Plugin/Hack: Albumpattern
> firago wrote:
> I am really looking forward to using this plugin because it looks really great, but i have run upon one snag.
/home/canssite/public_html/textpattern/textpattern/albumpattern_install.php
/home/public_html/textpattern/textpattern/config.php
The problem is that your not setting $path_to_txp correctly. You are setting it to /home/public_html/textpattern/textpattern, when it should be /home/canssite/public_html/textpattern/textpattern. This is assuming that your Textpattern config.php file is actually in the directory /home/canssite/public_html/textpattern/textpattern.
Offline
#324 2005-09-09 20:16:21
- firago
- Member

- Registered: 2005-01-03
- Posts: 54
Re: Plugin/Hack: Albumpattern
huh. i did that and now i am getting the following message.
> If you just updated and expect to see your site here, please also update the files in your main installation directory.
> (Otherwise note that publish.php cannot be called directly.)
Did i need to update the path somewhere else too?
PS. sorry it took me so long to get back to you, its just that i moved into prep school and it took me a while to set the interenet up. but thanks for all the help.
Offline
#325 2005-09-19 04:59:26
Re: Plugin/Hack: Albumpattern
I am using it here and loving it, although I thought I’d share some feedback in the hope of finding out if functions are available/how to access…
First: can we select what order the albums are shown in. They appear to default to alphabetical – any chance of an option to have it by date instead?
Second: Upload form. Can we set the date of the upload rather than having txp select it for us? Makes it a little more user friendly.
Thirdly: Bulk uploads would be nice (covered elsewhere I know)
Fourthly: Square thumbnails – can these be centered on the image when being made rather than being top left (I hacked the code of glx_image_admin earlier to make it so, just not quite sure how to ‘update’ yours… and given that photographers usually like the center of the frame… well… let’s see how that goes)
BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside
Offline
#326 2005-10-01 23:47:00
Re: Plugin/Hack: Albumpattern
jufemaiz: I’m using the Testing Release 0.5 and the square thumbs are centered.
I agree with the request to be able to choose the display order of the albums. In fact, it would be great to just click a “move up” or “move down” button in the list menu (for both ap images and albums) to change the display order of images and albums. Manipulating the date of each image (to change the order of display within an album) is pretty tedious.
I’m also wondering if there is a way to display the name of the album on an image page. I tried ap_page_title and it gave me a ‘breadcrumb’ style title… what can I use to ouput the album name only?
thanks again for an awesome gallery solution… been searching for years!
- Stacey
Offline
#327 2005-10-02 02:41:54
Re: Plugin/Hack: Albumpattern
Textile does not seem to work in AlbumPattern (I’m using Testing Release 0.5 b).
Carriage returns do not translate into paragraph breaks, some Textile modifiers will work and then others will not later on in the same body/excerpt, and text in the body and excerpt fields react differently given the same text and Textile modifiers.
Under Advanced Options, the checked or unchecked status of body and excerpt doesn’t seem to make a difference. Plus, anything unchecked becomes checked even after I hit save.
Are others experiencing problems with Textile in AP?
Offline
#328 2005-10-02 10:24:00
Re: Plugin/Hack: Albumpattern
Square thumbs are centered using ImageMagick, but not with the GD Library. It shouldn’t be TOO hard to change that.
And I agree, being able to change the order of the albums would be great.
Offline
#329 2005-10-02 19:57:34
Re: Plugin/Hack: Albumpattern
Big Problem:
Earlier today, I created an album and uploaded 3 images. Thus, there were images under the images tab for that particular album, however, under the List tab, the album showed ‘none’. All of my other albums looked fine (I have about 5 ap albums in three sections).
After deleting and re-uploading individual images to no avail, I finally deleted the ‘problem’ album and re-created it. This time it worked. Everything seemed to be fine with my albums. I went ahead and added a couple of images to another album — this one in a different section. By mistake, I tried to upload a TIF. Obviously this did not work and I uploaded a jpg version instead.
Later, I discovered that ALL of my regular Textpattern articles (in the non-AlbumPattern sections) were gone. Completely erased. No longer in the database. Under my articles tab, the only articles there are the AlbumPattern image/articles.
I have no clue what caused this, but it is frustrating and I thought I should write a post in case anyone else has this experience. Luckily, I am still in the design phase of this particular site and only lost a handful of articles. it could have been much worse
p.s. – the only other thing that I did this afternoon was delete a few plugins (that were already disabled anyway) and install sdr_guestbook4.0 (and create a new section called ‘guestbook’). I have no way of knowing if this had anything to do with the problem, as I hadn’t looked at my list of articles prior to the install.
Offline
#330 2005-10-03 08:22:34
Re: Plugin/Hack: Albumpattern
additionally:
albumpattern suffers something similar to my event manager plugin in earlier editions. You need to addslashes and remove slashes on the information being inserted into the database! (this should be a priority) and also the textile goodness doesn’t work properly (like an article should) for the album info.
BE + MEngSc = engineer with a side dish of frustrated designer/developer with a penchant for photography outside
Offline