Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

This is a FORK of the CMS Made Simple project and is not oficially supported in any way by the CMS Made Simple development team.
Locked
Amancham

Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by Amancham »

I'm trying to use the "rencently_updated" feature on my website but I ran into one problem. I'll try to explain, tell you how i'm calling the feature and what I did and give a link for you to have a look at it.

First off: Configurations and such ;)

Cms Version: 1.5.2 MLE

Installed Modules:

    * CMSMailer: 1.73.14
    * FileManager: 0.4.3
    * MenuManager: 1.5.3
    * ModuleManager: 1.2.1
    * News: 2.9.2
    * nuSOAP: 1.0.1
    * Captcha: 0.3.2
    * Search: 1.5.2
    * ThemeManager: 1.0.8
    * TinyMCE: 2.4.11
    * Album: 0.9.3
    * Statistics: 0.8.0b2
    * FormBuilder: 0.5.11
    * Polls: 0.2.0
    * AjaxMadeSimple: 0.1.6
    * SystemInfo: 0.1.2
    * Questions: 1.0.3 (currently just playing around with those *lol*)
    * CGExtensions: 1.15.1


Config Information:

    * php_memory_limit:
    * process_whole_template: true
    * max_upload_size: 8000000
    * default_upload_permission: 664
    * assume_mod_rewrite: true
    * page_extension:
    * internal_pretty_urls: false
    * use_hierarchy: false


Php Information:

    * phpversion: 5.2.6-0.dotdeb.1
    * md5_function: On (True)
    * gd_version: 2
    * tempnam_function: On (True)
    * magic_quotes_runtime: Off (False)
    * memory_limit: 40M
    * max_execution_time: 30
    * safe_mode: Off (False)
    * session_save_path: No check because open basedir active


Server Information:

    * Server Api: cgi-fcgi
    * Server Db Type: MySQL (mysql)
    * Server Db Version: 5.0.67


----------------------------------------------
on this version of my installation I'm using mod_rewrite instead of built-in Pretty URLs

Problem 1: when using the "recently updated" feature it seems to me like language selection doesn't work. It always displays the german site for me (maybe somone from the states/UK will see the english part ... don't know. I'm sitting in Germany *lol*) Funny enough on clicking onto the cute little flags the URL does change from de_DE to en_US as it should but the content doesn't change it stays german, though the url says it's en_US

Edit: Okay. That seemed to have been a mod_rewrite problem. New to this kind of stuff... so I went back to the built-in pretty URLs and it works perfectly fine again ... only the template problem left :D


Problem:
somehow the template doesn't seem to work properly. I'm calling the feature with
{cms_module module='album' action='recently_updated' number='10'}
on the latest-pictures page in both languages.
Now the page displays a bullet list with filenames as links. Clicking on any of these links messes the thing up completly: The clicked image is displayed in full size on top of the page (which is not nice, because they tend to be bigger than the witdh of my middle column in the layout and it looks very untidy this way) underneath it displays a couple of thumbnails (the number I call in the smarty tag) but clicking on any of these does not change the picture shown on top of the page but opens the big version of the clicked picture/thumbnail on the very bottom left end of the page and you can only see 1/3 of that picture. Under the thumbnails it displays a lot more filenames as links clicking on any of these will lead to the same behaviour as clicking on a thumbnail. Pictures just get opened and added to the bottom left of the displayed page.
All very messy ;)

What I did/do: Added new page called "latest-pictures" and set this page as default page that contains album in the settings. on that default page I call the album module with the recently_updated feature like this:
{cms_module module='album' action='recently_updated' number='10'}
I did play around with the recently_updated template a little .... but that didn't change anything and I'm not that good in working in templates. I normally tend to leave them as they are because I'm mainly good in messing them up ;)

Question: is the recently_updated template called automatically when calling the recently_updated feature or do I have to add something to the smarty tag to tell the module it has to use this template on this page?? Because how I understand it, the template actually should display thumbnails and not a bullet list with filenames ...

For better understanding (non-english ... bad in explaining problems *lol*) here is the link where you can watch the full misery ;)

http://www.intayale.de/forge/cmsms/en_US/latest-pictures/

I can pretty much laugh about this. Don't pay attention to the contents. This is just some sort of mirror page of my actual page that I uploaded to my webspace. It's a different database and I use it for testing features before adding them on my actual website so I don't worry too much about this problem. It would just be a nice feature for the website and I'd like to use it some time ;)

I hope somebody can help me. If you need a backend-account to look at settings and stuff just let me know. Any suggestion would be appreciated and I hope I gave all information needed. If not, please let me know. I'm happy to answer any questions you need to help me out here.

Thanks for taking the time to read this. ;)
Last edited by Amancham on Wed Mar 04, 2009 8:44 am, edited 1 time in total.
alby

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by alby »

Amancham wrote: I'm trying to use the "rencently_updated" feature on my website but I ran into one problem. I'll try to explain, tell you how i'm calling the feature and what I did and give a link for you to have a look at it.
This is a problem of Album module.
Have you look in tracking of that module if there is a solution?

Alby
Amancham

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by Amancham »

Well, I pretty much guessed that this was a problem in the album module and I actually posted in in the section "modules" but it was moved to the MLE-Branch by some moderator. :( I think it was Calguy1000 ....

Anyway. I was searching the forums, found some people reporting the same problem but it seems  like it had never been resolved - at least I only found threads that were still open and no real answers. I decided to open a new thread, though because often old ones  don't really get read anymore and I was hoping that my explanation and most of all my link to the project would be helpful iin finding a solution...

What do you mean by "look in tracking of that module"?? Sorry. so far I always found my answers in the forums so I don't quite know what you're suggesting. :(
alby

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by alby »

Amancham wrote: What do you mean by "look in tracking of that module"?? Sorry. so far I always found my answers in the forums so I don't quite know what you're suggesting. :(
Any module have un bug tracking (and future request).
In this case is here
But keep in mind that Album module is currently not maintained


Alby
Amancham

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by Amancham »

ah okay. Thanks.

well, if it's currently not maintained  ... there's not much I can do about this, is there? I'll just thorw the idea for now and add some other features to the site. Maybe this'll work properly some time. as I don't know anything about programming and such I won't be able to find a solution myself :( Too bad.

thanks for your help and answers anyway.
alby

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by alby »

Amancham wrote: thanks for your help and answers anyway.
Check in tracker, maybe there is a patch or workaround for this

Alby
Amancham

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by Amancham »

little short on time, lately. Haven't really found a way to make the recently_update page do what I want it to do *lol* But I solved one problem....

*headpalm*

imagine... if you attach the album stylesheet to the template you're using it looks a lot better already! Stupid me... I actually copied another template and changed it slightly ... totally forgot that the Album CSS was not attached to that one...

Sorry, I'm just human.... Will search for a workaround properly sometime this week, I hope. Thanks for the hint.
bootdog
Forum Members
Forum Members
Posts: 16
Joined: Sun Oct 12, 2008 6:15 pm

Re: Problems with Album's "rentenly_updated" feature in MLE installation of CMSMS

Post by bootdog »

Hello,

I had the same problem. Seems like the template is not correct for the recently_added.

However here is a very simple way - of how to solve it and have it work in CMSMS MLE.

1. Open the Photo Albums in CMSMS Admin (Content->PhotoAlbums)

2. Select "Templates"

3. Click on "random_image" - in the code box named template mark all the text and copy it to the clipboard - press cancel

4. Select "Templates" again

5. Click on "recently_updated" and paste the code from the clipboard into the codebox names "template"

6. Press "SAVE".

The problem is the href to the image is not set correctly - also no template is properly assigned to display the images. By doing this you use the same template for showing recently_updated and random images   however respecting the different functionalitis requested.

You can also paste the code below into the "recently_updated" template if you feel this is easier.
---------------------------------- cut here -----------------------------------------------------------------------------
{* Include JS files. You can move this to the head of your page template if you want *}


   var GB_ROOT_DIR = "modules/Album/templates/db/greybox/";










{foreach from=$pictures item=onepicture}
   picture}" rel="gb_imageset[random]" title="{$onepicture->name|escape:'html'} {if ($onepicture->comment != "")}- {$onepicture->comment|escape:'html'}{/if}"> thumbnail}" alt="{$onepicture->name|escape:'html'} {if ($onepicture->comment != "")}- {$onepicture->comment|escape:'html'}{/if}" title="{$onepicture->name|escape:'html'} {if ($onepicture->comment != "")}- {$onepicture->comment|escape:'html'}{/if}"{$onepicture->autothumbnailsize} />
   
{/foreach}



---------------------------------- cut here -----------------------------------------------------------------------------

Brgds
bootdog
Last edited by bootdog on Mon Nov 16, 2009 8:14 am, edited 1 time in total.
Locked

Return to “[locked] CMSMS MLE fork”