Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2004-10-07 03:00:41

mrsid
New Member
From: san francisco, CA
Registered: 2004-10-05
Posts: 4
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

Hello, looking forward to getting this thing working. I followed all the instructions in heikki74’s post.

now i get his error on all pages:
Parse error: parse error, unexpected T_STRING, expecting ‘)’ in /home/virtual/site10/fst/var/www/html/creativeservices/textpattern/publish.php(768) : eval()’d code on line 28

anyone get this error before or have any suggests for me?

thanks,

Offline

#14 2004-10-07 04:06:56

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [archived] jmr_gallery : Article Associated Image Gallery

I think you have some sort of typo there. What did you change and what was the problem before that? Note: You should replace (yourtableprefix_) with your table prefix, if you have any.

My changes were more of guessing, so it’s just something that made plugin work for me.

Offline

#15 2004-10-07 08:38:15

mrsid
New Member
From: san francisco, CA
Registered: 2004-10-05
Posts: 4
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

Well, i did take a look at that line and it wasn’t anything i had touched. I double checked I did infact use the appropriate table prefix….

very confused!

Offline

#16 2004-10-07 09:13:03

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [archived] jmr_gallery : Article Associated Image Gallery

What lines did you change? What happens without changes? I need some more info to help you.

Offline

#17 2004-10-07 12:29:20

Matt
Member
Registered: 2004-02-28
Posts: 92
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

> jason wrote:

> I think this is the best damn thing since sliced bread.

Me too – and I think that Justin’s simple method of association via article ID is a great approach that could be used in lots of other applications. Now we just need a good batch image uploader.

Offline

#18 2004-10-08 23:40:07

mrsid
New Member
From: san francisco, CA
Registered: 2004-10-05
Posts: 4
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

Hi Again, and sorry for the delay in response. First off, my apologies on being so vague in my previous message. The good news is that I just fixed it! Everything was fine except for the database nameas you had suspected. I had kept parenthesis around my table name.

thanks again for setting me on the right path.. I’ll announce my site soon in the “Let’s see yours…” section.

take care all and have a great weekend!

Offline

#19 2004-10-12 23:03:12

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

Hello all. I am having the darndest time with this thing. I have done the above mentioned hacks to the code and am still getting bumped back to the top level as well. I am not much of a PHP guy (yet…) but I just cant seem to figure out where else to look.

I don’t have a table prefix, btw.

Help… please.


To even the least of these…

Offline

#20 2004-10-12 23:14:54

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [archived] jmr_gallery : Article Associated Image Gallery

So.. I think your next / previous links aren’t correct?
What does your $_SERVER[‘PHP_SELF’] output?
It should output the current url including the article number/title.
If you get the section name as a last and nothing after that, something’s wrong.

Lines 64 and 65 in the plugin code define link urls.

.. href=

Offline

#21 2004-10-13 00:08:56

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

Okay, this is totally bizarre… it is working now.

Between the time I posted the plea for help, shut down and went home turned my computer back on and checked the forums… presto! It works!

Thanks heikki74 for the quick response.


To even the least of these…

Offline

#22 2004-10-13 18:25:57

jbrew
Member
From: Imperial Beach, California
Registered: 2004-03-04
Posts: 78
Website

Re: [archived] jmr_gallery : Article Associated Image Gallery

May have spoke too soon… this only works if i put the tag in an actual page.

When I try to do the article thing nothing shows up at all. Not even on the permenant link.

This part of the site is a photo portfolio and i had planned to have a list of the categories that when clicked displayed the article which contained the images.
whew…

The way i set it up is that there are image categories for children, families, etc. There are also article sections corresponding to those image categories.

Right now nothing is being displayed unless i actually put it into the section page (portfolio).

Any thoughts???


To even the least of these…

Offline

#23 2004-10-13 19:36:26

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [archived] jmr_gallery : Article Associated Image Gallery

Right.. I got now mine working with just one modification (table prefix). I did some searching and find out that $thisarticle variable is available only inside the article form. The other problems were solved by this:

  • put <code>&lt;txp:jmr_gallery /&gt;</code> tag into article form (ie. Single)
  • put article form tag to the page ie. <code>&lt;txp:article form=“Single” /&gt;</code>

Last edited by heikki74 (2004-10-13 19:40:24)

Offline

#24 2004-10-13 19:52:28

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [archived] jmr_gallery : Article Associated Image Gallery

Let’s see.. you have:

  • Section called portfolio
  • Categories of images

You could create Article for each image category you need to display.

article id image category
children 1 article-1
families 2 article-2
etc 3 article-3

Last edited by heikki74 (2004-10-13 19:54:29)

Offline

Board footer

Powered by FluxBB