Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#91 2004-09-02 05:29:56

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

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

#95 2004-09-20 17:20:28

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

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 " and order by Posted (make sure there is a space after the single quotes).
  • txp_article: Line #281: Add album_id='' after ID=$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 before order 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

#96 2004-09-21 02:16:21

spiffin
Plugin Author
From: London, UK
Registered: 2004-06-08
Posts: 95
Website

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

#97 2004-09-28 16:12:51

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Plugin/Hack: Albumpattern

Remember to upload the actual PLUGIN once you have followed the installation instructions!

DOH!!

Offline

#98 2004-09-30 00:02:46

Macubu
Member
From: Milano, Italia
Registered: 2004-04-13
Posts: 58
Website

Re: Plugin/Hack: Albumpattern

Thanks to the invaluable help from greenrift I was able to overcome all problems with my installation and finally make the album section of my site go live.

But nothing can be perfect, so now i try to understand what is that little bug with the previous and next tags which sometimes makes me jump some pictures or go back unexpectedly to the album list. You may have a look yourselfs, if you care, my albumpattern installation is here”.
Try to navigate from picture to picture in the first of the gallery. Notice it?

Ciao!

Last edited by Macubu (2004-09-30 00:03:05)

Offline

#99 2004-10-07 14:00:29

jhaeusler
Member
From: Berlin
Registered: 2004-09-04
Posts: 22
Website

Re: Plugin/Hack: Albumpattern

> Martagnan wrote:

> Remember to upload the actual PLUGIN once you have followed the installation instructions! DOH!!

A very good point to everyone trying to get AP to work, since this is mentioned nowhere in the documentation… which makes the installation instructions incomplete.

Remember that people might be used to installing plug-ins (like myself), but since this is a hack more than a plug-in, how can you know that you need to install the plug-in as well, specially since it all shows up in the admin section of TXP without the plug-in installed (but of course won’t work in the frontend).

What I am trying to say is: I’d add that one line to the installation instructions. :)

A great plug-in, btw, thanks very much for taking the time to write it, greenrift!


http://ww.spreeblick.de, a weblog from Berlin

Offline

#100 2004-10-07 15:06:38

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Plugin/Hack: Albumpattern

Cannot make the next page and previous page links appear on my thumbnails page.

Here is the code on my page:

< txp:excerpt / >
< ul id=“galleryThumbs” >
< txp:album form=“album_thumbnails” / >
< /ul >
< txp:link_to_prevpage >Back< /txp:link_to_prevpage >
< txp:link_to_nextpage >More< /txp:link_to_nextpage >
< /txp:if_individual_album >

I have number of images set to 30 and my album contains 40 so the links should show up?

Please help

Thanks

Offline

#101 2004-10-07 15:14:07

jhaeusler
Member
From: Berlin
Registered: 2004-09-04
Posts: 22
Website

Re: Plugin/Hack: Albumpattern

From what I can see, the opening tag for

<code>< /txp:if_individual_album ></code>

is missing. Could it be that you forgot to post it here or is it missing in your code as well?


http://ww.spreeblick.de, a weblog from Berlin

Offline

#102 2004-10-07 15:17:51

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Plugin/Hack: Albumpattern

It IS on my page, just a bit higher up the code – thanks :-)

Offline

#103 2004-10-07 15:23:08

jhaeusler
Member
From: Berlin
Registered: 2004-09-04
Posts: 22
Website

Re: Plugin/Hack: Albumpattern

Ok, then an expert (let’s not confuse him with an excerpt… ;)) needs to jump in.


http://ww.spreeblick.de, a weblog from Berlin

Offline

#104 2004-10-07 15:56:31

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: Plugin/Hack: Albumpattern

You need to use ap_next_page and ap_prev_page instead of the link_next_page.

Offline

#105 2004-10-07 16:04:14

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Plugin/Hack: Albumpattern

thats got it – thanks!

BTW – Any hint of an AlbumPattern update release?

;-)

Offline

Board footer

Powered by FluxBB