Album: CMotion template revision

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
cubix
Power Poster
Power Poster
Posts: 314
Joined: Mon Jul 09, 2007 10:00 am

Re: Album: CMotion template revision

Post by cubix »

nice!
Caspar

Re: Album: CMotion template revision

Post 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.
Caspar

Re: Album: CMotion template revision

Post by Caspar »

cubix wrote: nice!
Thanks!
tyman00
Power Poster
Power Poster
Posts: 906
Joined: Tue Oct 24, 2006 5:59 pm

Re: Album: CMotion template revision

Post 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.
If all else fails, use a bigger hammer.
M@rtijn wrote: This is a community. This means that we work together and have the same goal (a beautiful CMS), not that we try to put people down and make their (voluntary) job as difficult as can be.
Caspar

Re: Album: CMotion template revision

Post 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!
racer
Forum Members
Forum Members
Posts: 14
Joined: Sun Sep 30, 2007 12:16 pm

Re: Album: CMotion template revision

Post 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
Caspar

Re: Album: CMotion template revision

Post 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
racer
Forum Members
Forum Members
Posts: 14
Joined: Sun Sep 30, 2007 12:16 pm

Re: Album: CMotion template revision

Post 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
Caspar

Re: Album: CMotion template revision

Post 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
racer
Forum Members
Forum Members
Posts: 14
Joined: Sun Sep 30, 2007 12:16 pm

Re: Album: CMotion template revision

Post 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
mran
Forum Members
Forum Members
Posts: 20
Joined: Sat Oct 06, 2007 5:47 pm

Re: Album: CMotion template revision

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album: CMotion template revision

Post by Dr.CSS »

Which wysiwyg editor are you using? only fckeditor does that any more... sure your not hittng the format button?...
mran
Forum Members
Forum Members
Posts: 20
Joined: Sat Oct 06, 2007 5:47 pm

Re: Album: CMotion template revision

Post 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!
olay

Re: Album: CMotion template revision

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album: CMotion template revision

Post 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...
Post Reply

Return to “Tips and Tricks”