Page 2 of 2

Re: Album: CMotion template revision

Posted: Fri Sep 28, 2007 8:44 am
by cubix
nice!

Re: Album: CMotion template revision

Posted: Fri Sep 28, 2007 12:55 pm
by Caspar
Eleco wrote: What can I do for you? Would an Italian translation of the German texts in the template be usefull? Let me know!
That's alright!  :D An Italian translation would be useful for your fellow Italian users.
Eleco wrote: P.S. Maybe all this part of the discussion should be stripped away so to leave your post simple and clean. How can this be done? Should I click the "Report to a moderator" link?
I think it's alright the way it is. Discussions like that have often helped me solve some of my problems.

Re: Album: CMotion template revision

Posted: Fri Sep 28, 2007 12:55 pm
by Caspar
cubix wrote: nice!
Thanks!

Re: Album: CMotion template revision

Posted: Mon Oct 01, 2007 3:18 pm
by tyman00
I like the template. I may be using this in a few different sites.

Off topic: I really like the photos you took. Some of them took me back to when I lived in Germany on Exchange for a year. I really like the photo of the Koelner Dom. Oh and it may be just me, but Potsdam is beautiful in the winter.

Re: Album: CMotion template revision

Posted: Mon Oct 01, 2007 4:42 pm
by Caspar
tyman00 wrote: I like the template. I may be using this in a few different sites.

Off topic: I really like the photos you took. Some of them took me back to when I lived in Germany on Exchange for a year. I really like the photo of the Koelner Dom. Oh and it may be just me, but Potsdam is beautiful in the winter.
Thanks a lot! The photos are not mine, they're from a customer of mine who's quite a well-known photographer in Germany.
Have fun with the template!

Re: Album: CMotion template revision

Posted: Tue Oct 02, 2007 8:44 pm
by racer
Hi Caspar and thanks for this script, its works better in IE than the original.

I am having just one little problem though...  I've installed it exactly as you said and on the website it is working, but my browsers (both Firefox and IE6) are giving javascript errors as follows:

IE6:
-----
Line: 16
Char: 2
Error: 'document.getElementById(...)' is null or not an object
Code: 0


Firebug in Firefox:
------------------------
document.getElementById("mainpicname") has no properties

Is anyone else getting these, or is it something unique to me?  Besides showing these errors, the site/template works as it should.


tks
roger

Re: Album: CMotion template revision

Posted: Tue Oct 02, 2007 8:58 pm
by Caspar
Hi roger,

that's new to me. I haven't had any errors so far. Did you change IDs or so? Is there a link to your page?

Regards,
Caspar

Re: Album: CMotion template revision

Posted: Tue Oct 02, 2007 9:58 pm
by racer
Hi Caspar

Thanks for reply.

I've removed the following lines from simplegallery.js and now the errors have gone:

document.getElementById('mainpicname').replaceChild(NewName, document.getElementById('mainpicname').firstChild);
// replace img name

document.getElementById('mainpiccomment').replaceChild(NewComment, document.getElementById('mainpiccomment').firstChild); // replace img comment



I don't really know javascript, but am I correct in assuming those functions I've removed are looking for the pictures description and/or comment?    If that is the case, then its probably becuase I didn't fill in any descriptions/comments when I uploaded the pics.

I don't really need the description/comment to display so i'm happy its working fine now in all browsers with those lines removed.

tks
roger

Re: Album: CMotion template revision

Posted: Wed Oct 03, 2007 6:03 am
by Caspar
racer wrote: I don't really know javascript, but am I correct in assuming those functions I've removed are looking for the pictures description and/or comment?
Correct. ;)
racer wrote: If that is the case, then its probably becuase I didn't fill in any descriptions/comments when I uploaded the pics.
That would have been my next question. What still bothers: Did you remove the defaults for alt and title before the errors occured? Because if you didn't, I'll have to do some homework...
Thanks for staying with it!
Caspar

Re: Album: CMotion template revision

Posted: Wed Oct 03, 2007 10:20 am
by racer
Caspar wrote: That would have been my next question. What still bothers: Did you remove the defaults for alt and title before the errors occured? Because if you didn't, I'll have to do some homework...
Thanks for staying with it!
Caspar
Hi again....  no I didn't remove any default, simply uploaded the pics without adding any comments etc to them.  Hope this helps.

cheers
roger

Re: Album: CMotion template revision

Posted: Thu Oct 25, 2007 9:30 pm
by mran
Hi,

I've been following this thread and all the instructions given so far, and have experienced two problems.  I've solved them both, and thought I'd share my fixes here.

1.  Under the old version of this template, the thumbnails were apparently created on the fly.  The new template seems to require I already have a set of thumbnails, which I don't.  So I restored these lines from the original template, in place of the ones after the truecontainer div around line 141.

Code: Select all

	{foreach from=$pictures item=picturesrow}

	    {foreach from=$picturesrow item=onepicture}

{* Change alt/title-tag to what you need. *}

	    <a href="{$onepicture->link}"  title="{$onepicture->name} | {$picture->comment}" onclick="document.getElementById('maincmotionpic').setAttribute('src', '{$onepicture->picture}');return false;"> <img src="{$onepicture->thumbnail}" alt="{$onepicture->name}"/></a>



      {if ($onepicture->number==$picturenumber and !$picture)}{assign var=picture value=$onepicture}{/if}



	    {/foreach}

	{/foreach}
Now I'm very happy because the automatic thumbnail thing is now happening.  ;)


2.  The template plays a little bit oddly with Album's native method of storing comments, which uses that WYSIWYG editor, which I don't know much about, but which seems to insert HTML whether I want it to or not.  So my caption has tags in it, at the very least.

The new template specifies the HTML be escaped, and thus the output has these tags rendered as plain text.  So I just took that out.  Here is my page thus far; it's for a group which is trying to eliminate the death penalty in Texas, and this is a gallery of executed prisoners (not gross, just living faces.)  http://www.tcadp.org/cmsms/index.php?ma ... 51&page=51

I am deeply grateful for this template because I feel this is a very effective way to show these people to our site visitors.  Thank you!

Re: Album: CMotion template revision

Posted: Thu Oct 25, 2007 10:07 pm
by Dr.CSS
Which wysiwyg editor are you using? only fckeditor does that any more... sure your not hittng the format button?...

Re: Album: CMotion template revision

Posted: Fri Oct 26, 2007 7:02 pm
by mran
I'm a total newbie wrt these online editors (and CMS) so I haven't messed with the default editor.  I don't think I hit any format button, though.

I'd be glad to change the default editor, though, simply because of its unfortunate name.  I've been mentally previewing the conversation with the client.  "Uh, you'll be using FCKEditor...no, I didn't name it...no, I don't know why they called it that...yes, I'm sorry, too."

So you're saying that if I change my default editor, I'm likely to need to unfix my fix?  Thanks for the tip!

Re: Album: CMotion template revision

Posted: Mon Jun 16, 2008 5:06 pm
by olay
I also get the problem of the comment on the wysiwyg editor showing up on the page with the html tags, often incuding span class, and tags.

MRAN: what was your fix?

anyone else know why this is happening?

thanks

Re: Album: CMotion template revision

Posted: Mon Jun 16, 2008 6:04 pm
by Dr.CSS
olay

This is real old, as I'm sure it told you, so please start a new topic and add more info on problem...