Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Plugin/Hack: Albumpattern
> Martagnan wrote:
> Im getting article titles from elsewhere in my site
> appearing in the page title of the galleries
It’s a known bug. The reason that this is happening is because Textpattern will find the Title of the page based on the URL, and so does Albumpattern. I’m trying to figure out a solution to it that doesn’t involve hacking up the TXP code, I have a few ideas that I’m going to work through before the next release. Oh, the comments problems you’ve been having are understandable. I should have modified the original g1.19 comments.php file instead of my slightly hacked version (which I thought I had done, but I didn’t). I will post up a quick update later tonight, and you’ll just need to replace the comments.php file.
Macubu: Email me with as much information you can provide about whats going on, assuming that the problems still exist.
Offline
#86 2004-08-30 22:15:09
- stevechamp
- Member
- Registered: 2004-08-13
- Posts: 12
Re: Plugin/Hack: Albumpattern
thanks for another great plugin greenrift!!
I’m currently using your auto thumb hack, combined with the Gallery plugin (Max Ziebell), and I was wondering if it would be possible to intergrate this into albumpattern.
I see you have been thinking about thumbnail navigation, and I thought I’d recommend this javascript solution.
have you had any more thoughts on this?
Last edited by stevechamp (2004-08-30 22:16:12)
Offline
Re: Plugin/Hack: Albumpattern
How does AP use TXPs categories?
I am trying to use Manfre’s Random image plugin ‘mem_randimg’. I have 2 image categories on my site, <em>Noticeboard</em> and <em>Gallery</em> – all my AP gallery pictures are (supposedly) in the <em>Gallery</em> category. If I tell the plugin to choose from <em>Noticeboard</em> there are no problems… If I tell it to choose from <em>Gallery</em> then nothing – no pictures?
If I then go into the main TXP <strong>image</strong> tab and change the category of an image to <em>gallery</em> the pictures show up – no problem? So assigning an image to a category in AP means nothing – TXP doesnt recognise that AP images have been assigned to a TXP category?
Offline
Re: Plugin/Hack: Albumpattern
> Martagnan wrote:
> How does AP use TXPs categories?
I am trying to use Manfre’s Random image plugin ‘mem_randimg’. I have 2 image categories on my site, <em>Noticeboard</em> and <em>Gallery</em> – all my AP gallery pictures are (supposedly) in the <em>Gallery</em> category. If I tell the plugin to choose from <em>Noticeboard</em> there are no problems… If I tell it to choose from <em>Gallery</em> then nothing – no pictures?
If I then go into the main TXP <strong>image</strong> tab and change the category of an image to <em>gallery</em> the pictures show up – no problem? So assigning an image to a category in AP means nothing – TXP doesnt recognise that AP images have been assigned to a TXP category?
The categories are similiar to the article categories, not the image one’s. I just choose to use the “image categories” because it seemed to make more sense.
All of the albumpattern images are stored as TXP article’s not TXP images, which is why they won’t show up in the “image” tab and plugin’s that use the TXP images (such as the one mentioned above) won’t work with Albumpattern (although it shouldn’t be a massive rewrite to get them to work).
Offline
Re: Plugin/Hack: Albumpattern
thanks for the reply Greenrift!
Offline
#90 2004-09-02 05:23:36
- Roughy
- New Member
- From: Melbourne
- Registered: 2004-07-05
- Posts: 7
Re: Plugin/Hack: Albumpattern
I seem to have stuffed up the AP install.
Everything seems OK. I see the album tab in content. I’ve set up a section called album which uses the album page which has the correct tags in it (I think).
Trouble is I get nothing when I view the album page. When I view source all I get is this.
<code>
<?php
include “./textpattern/config.php”;
$s = “album”;
include $txpcfg[“txpath”].”/publish.php”;
textpattern();
?>
</code>
I’ve obviously missed something but I went over the install again and can’t work out what it is. Any advice?
Offline
Re: Plugin/Hack: Albumpattern
> Roughy wrote:
> I seem to have stuffed up the AP install.
Everything seems OK. I see the album tab in content. I’ve set up a section called album which uses the album page which has the correct tags in it (I think).
Trouble is I get nothing when I view the album page. When I view source all I get is this.
<code>
<?php
include “./textpattern/config.php”;
$s = “album”;
include $txpcfg[“txpath”].”/publish.php”;
textpattern();
?>
</code>
> I’ve obviously missed something but I went over the install again and can’t work out what it is. Any advice?
Chances are you didn’t set your .htaccess file to send your album section as PHP, so its defaulting to plain text. You can see how to do this by going to the Presentation->Section tab in your TXP administration interface.
Last edited by greenrift (2004-09-02 05:30:39)
Offline
#92 2004-09-02 05:47:17
- Roughy
- New Member
- From: Melbourne
- Registered: 2004-07-05
- Posts: 7
Re: Plugin/Hack: Albumpattern
Thanks Greenrift.
I checked that and the .htaccess was ok. To test I setup a new section, uploaded the new section file and edited the .htaccess and I get the same error message as before (only with the new section name).
I have other sections that are working, so I don’t know what I’ve messed up here.
The install is at http://sct2.peterinadland.com/ and
http://sct2.peterinadland.com/sctalbum
Offline
#93 2004-09-02 06:27:21
- Roughy
- New Member
- From: Melbourne
- Registered: 2004-07-05
- Posts: 7
Re: Plugin/Hack: Albumpattern
Hi Greenrift,
I’ve now set one of my existing sections (news) up as the AP section and everything is working. Clearly the problem isn’t AP but something I’ve done with my sections. Thanks for your help earlier.
Offline
#94 2004-09-09 20:49:12
- Inquisitor
- New Member
- Registered: 2004-09-09
- Posts: 2
Re: Plugin/Hack: Albumpattern
Hi,
Hopefully someone can help me out. I think it is a simple problem but I don’t have much experience. I did the install and got everything up but when I create an album and put a picture in it, the album does not show up on the page I want it to. I used this code on the page:
<!— <!— main —>
div id=“Main”>
BLHACH ALJCSLK
txp:albumpattern />
txp:if_album_list>
txp:album_list form=“album_preview” />
/txp:if_album_list>
txp:if_individual_album>
txp:album form=“album” />
/txp:if_individual_album>
txp:if_individual_image>
txp:album_image form=“album_image” />
/txp:if_individual_image>
/div>” —>
Then I viewed the source code via firefox and all it says in that section is albumpattern loaded but no images or links apppear.
Thanks
UPDATE: I fixed the problem, needed to add forms.
Last edited by Inquisitor (2004-09-10 02:24:54)
Offline
Re: Plugin/Hack: Albumpattern
Just an update with regards to TXP v1RC1: Albumpattern functions fine. The hacks to TXP will need to be redone, but otherwise things should work.
What you need to update: textpattern/include- txp_article: Line #421: add
album_id=''
between the"
andorder by Posted
(make sure there is a space after the single quotes). - txp_article: Line #281: Add
album_id=''
afterID=$ID
(make sure there is a space before album_id). - txp_list: Line #37: Replace
"1"
with"album_id=''"
- txp_list: Line #64: Add
and album_id=''
after$criteria
and beforeorder by $sort
(make sure you have spaces around the added code) - txp_headlib.php: Line #16: add
,'album'
immediately before the);
at end of the line. - txp_headlib.php: Line #126: Add a new line, put
gTxt('tab_album') => 'album', // Albumpattern
on this line.
Also, make sure you add the albumpattern_lang.txt file onto your new (now overwritten) language file.
Offline
Re: Plugin/Hack: Albumpattern
Hi greenrift
Thanks for all the hard work .. AlbumPattern really is a brilliant plugin.
I’m having a few problems with applying it to 1.0rc1 though:
I have a totally clean install of 1.0rc1 .. with no other plugins .. and a few test articles. Whenever I follow your instructions above, things sort of work .. but I have trouble whenever I go to content > articles: my article list is not there (nothing is listed at all). There are no errors or warnings. If I replace the hacked files with the originals (txp_article.php, txt_list.php and txplib_head.php) my article list works fine again.
I may of course be misinterpreting your instructions!
If you don’t mind, could you please repeat the above instructions with the complete line to be repaced .. and the line to replace it?
Sorry if this is a pain but I’m sure something somewhere isn’t right.
Thank you
Last edited by spiffin (2004-09-21 02:17:44)
Offline