Webmastersite.net
Register Log In

Conditional not working on 1 cat

Comments on Conditional not working on 1 cat

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jun 30, 2007 - 5:33 AM:

In the displaylinks template I have...

<IF {CATPHOTOATTACH}>
<div align="center"><br />
<img src="download.php?catid={CATID}&field=photoattach" alt=" Photo of {CATNAME} "><br />
</div>
<IF {CATPHOTOCREDIT}>
<div align="center"><font size="1">Photo: {CATPHOTOCREDIT}</font></div>
</IF>
</IF>


This works very well except for one category! http://www.britishdogbreeders.co.uk/book-shop/

The photoattach field for this category is empty and as it works ok on all other cats, plus other sites, I am at a loss!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 04, 2007 - 5:12 PM:

I got an FTP bad login error and something about javascript/ directory permissions on clicking your site. Though that appears to have nothing to do with this issue.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 04, 2007 - 10:48 PM:

Paul wrote:
I got an FTP bad login error and something about javascript/ directory permissions on clicking your site. Though that appears to have nothing to do with this issue.


Yes, I had this once on that site - I made a note that it said "Cannot write to the file javascript/menu! You must chmod it to 666." I had a brief look but couldn't see a menu at that time. When I refreshed I did not receive the error.

I have just looked into the javascript directory and see there is a file called menu (no extension) - I changed it from 644 to 666. What is this file?

Do you have any ideas on my conditional problem?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 06, 2007 - 10:56 PM:

It probably happens every 12 hours when the javascript files are written. What do you have on your javascript page?

No idea about the conditional. Does it work if you use {CATPHOTOATTACHFILENAME} instead?
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 07, 2007 - 12:56 AM:

Paul wrote:
It probably happens every 12 hours when the javascript files are written. What do you have on your javascript page?


Where do you mean when you say javascript page?

This site is a mirror for the set up of www.thedogscene.co.uk, just different data.


Paul wrote:

No idea about the conditional. Does it work if you use {CATPHOTOATTACHFILENAME} instead?


I fixed this - I attached a photo then deleted it!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 08, 2007 - 9:35 PM:

Admin -> Misc -> Javascript
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 08, 2007 - 10:54 PM:

Paul wrote:
Admin -> Misc -> Javascript


<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/before-breeding/" title="Before Breeding">Before Breeding</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/biographies/" title="Biographies">Biographies</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/book-shop/" title="Book Shop">Book Shop</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/breed-type/" title="Breed Type">Breed Type</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/1/" title="Breeders & Clubs">Breeders & Clubs</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/breeding-schemes/" title="Breeding Schemes">Breeding Schemes</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/canine-health/" title="Canine Health">Canine Health</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/genetics/" title="Genetics">Genetics</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/11/" title="Mating & Whelping">Mating & Whelping</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/rearing-puppies/" title="Rearing Puppies">Rearing Puppies</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/15/" title="Structure & Anatomy">Structure & Anatomy</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/the-brood-bitch/" title="The Brood Bitch">The Brood Bitch</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/the-stud-dog/" title="The Stud Dog">The Stud Dog</a> <font size="1">(0)</font><br>
<img src="{DIRURL}/templates/default/images/bullet.gif" /> <a href="http://www.britishdogbreeders.co.uk/web-site-information/" title="Web Site Information">Web Site Information</a> <font size="1">(0)</font><br><!-- END TOPLIST 90 -->

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Jul 09, 2007 - 12:47 AM:

ok - looking into it more I have no idea what I did when setting this up!!

I have now changed the javascript to :

javascript_export_menu|categories,name,50,ascending,parent='0',,,0,0,0,0,0,0


However, when it saved it it flashed up with an error message, too quick for me to read but I think it is the same thing and a problem with writing to the javascript folder

edit: I have just set this up on another site and it is working fine. On the britishdogbreeders.co.uk site I have chmod directory - 666 so have changed this to 755 and it appears to be ok. Not sure why it was 666 - I'm sure I checked this before!
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.