gallery call works in templates but not in content / content HTML input?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

gallery call works in templates but not in content / content HTML input?

Post by jezatron »

**note these first two posts are not as directly relevant now - its more about the issue of the gallery only working when called in templates and not in content (see 3rd post on)***



Hi.

Using CMSMS 1.5.4

I tried uploading images using content - image manager.

the uploading works... or seems to at least.
for each image the file name is displayed instead of a thumb though.
when you try to click on an image it gives you a 500 error internal server.
if you try typing the url of the image in /uploads/ etc to view in browser you also get a 500 server error

i tried including the gallery call in a page to see if it works.... all it does is reproduce the tag when the page is viewed on the front end... it does not actually display the gallery.


ok so i searched this forum and found people saying that in CMSMS v1.5.4 image gallery didnt work unless you mod an incorrect line in

/plugins/function.ImageGallery.php


the line in question...

if( !is_dir($dir) || !is_readable($dir) ) return;

apparently needs to read

if( !is_dir($picFolder) || !is_readable($picFolder) ) return;


so i backed up the function.ImageGallery.php, made the edit above... and now it displays the names of the images as links but not the actual gallery images themselves.....



Anyone know what is going on? Any help massively appreciated.
Last edited by jezatron on Wed Jul 08, 2009 8:17 pm, edited 1 time in total.
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

Re: uploads / Images / Image Gallery tag not working?

Post by jezatron »

hi if anyones reading


i have checked my log and it says the following lots of times


[alert] [client 213.xxx.yyy.zzz] /home/domaian.com/user/htdocs/uploads/.htaccess: order not allowed here

can anyone give me a clue as to what this means? it must be why the pics arent working but i have no idea what its saying.

thanks anyone who is reading im pulling my hair out lol
Last edited by jezatron on Mon Jul 06, 2009 6:20 pm, edited 1 time in total.
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

Re: uploads / Images / Image Gallery tag not working?

Post by jezatron »

i deleted the htaccess from my uploads/images and the gallery is now displaying... but only when i call it in the template... not in content??? does anyone have an idea why it would do that?
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: gallery call works in templates but not in content / content HTML input?

Post by jmcgin51 »

try to call it via Smarty {eval}
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

Re: gallery call works in templates but not in content / content HTML input?

Post by jezatron »

i thought smarty was what i was calling it with....

i.e.
{ImageGallery picFolder="uploads/images/Test1/"}  is this not the smary call?
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

Re: gallery call works in templates but not in content / content HTML input?

Post by jezatron »

hi again....

{ImageGallery picFolder="uploads/images/Test1/"}
is this not a smarty call?

if i have been calling it wrong then i can changed the call.... but otherwise i really need to get to the bottom of this asap or switch cms (dont mean that in a narccy way... just need to get this site done one way or another)

I just dont get why the gallery works when called in template but not in the content
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: gallery call works in templates but not in content / content HTML input?

Post by jmcgin51 »

see this thread:
forum.cmsmadesimple.org/index.php/topic,35318.0.html
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

Re: gallery call works in templates but not in content / content HTML input?

Post by jezatron »

thanks for the link JMC.

so i gather that eval can essentially wrap around smarty tags to make them work in content... but im not sure looking at the examples how to implement this, and im a little worried that eventual editor of this site is going to end up having to input a long string of code to call a gallery for every item on the site?
jezatron
Forum Members
Forum Members
Posts: 63
Joined: Sun May 17, 2009 3:02 pm

Re: gallery call works in templates but not in content / content HTML input?

Post by jezatron »

Ok so a gallery call looks like this...
{ImageGallery picFolder="uploads/images/Test1/"}

And a given example of eval use is...
{eval var=$album->comment}



ok i know this is probably gonna make you guys laugh at my piss poor attempt at understanding this... it's all abit  'flux capacitor to the hyper megadrive' to me.

i tried this...
{eval var=$ImageGallery->picFolder="uploads/images/Test1/"}
...and not only does it still just display this string in the content... but it also now shows it in the content in a grey box with a black outline lol. so im guessing i got the wrong end of the stick maybe...

ill keep trying and posting my commedy attempts but feel free to point out what a spaz i am
Post Reply

Return to “CMSMS Core”