• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: [solved] Custom JQuery Image Rotation?
PostPosted: Tue Jul 27, 2010 7:58 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 158
Location: Georgia
Hello CMSMSers!

I have been looking hard for a jquery image rotator and found this to be more what i'm after.

http://gadgetinspiration.com/blog/wp-content/uploads/jquery%20sliders/index.html

However.. I'm having the hardest time (since i'm a novice CMSMSer) getting that image rotator to work with the Gallery module.

I have installed the gallery module and uploaded 2 test images to the landingpage/ directory. I then created a custom template in the gallery module like so:

Template Source:

Code:
<div id="landing-header">
<div class="landing-wrap">
<div id="landing-slide-holder">
<div id="landing-slide-runner">
{foreach from=$images item=image}
   {if $image->isdir}
      <a href=""><img id="{$image->filename}" src="{$image->file}" alt="{$image->titlename}" class="slide" alt="" /></a>
   {/if}
{/foreach}
<div id="landing-slide-controls">
    <p id="landing-slide-desc" class="landing-text"></p>
    <p id="landing-slide-nav"></p>
</div>
</div>
</div>
</div>
</div>


Template CSS-Stylesheet
Code:
div.landing-wrap {
width : 970px;
margin : 0 auto 0 auto;
text-align : left;
}
div#landing-header {
margin : -1px 0 0;
}
div#landing-header div.landing-wrap {
height : 299px;
background : url(images/header-bg.png) no-repeat 50% 0;
}
div#landing-header div#landing-slide-holder {
z-index : 40;
width : 970px;
height : 390px;
position : absolute;
}
div#landing-header div#landing-slide-holder div#landing-slide-runner {
top : 9px;
left : 9px;
width : 970px;
height : 390px;
overflow : hidden;
position : absolute;
}
div#landing-header div#landingslide-holder img {
margin : 0;
display : none;
position : absolute;
}
div#landing-header div#landing-slide-holder div#landing-slide-controls {
left : 0;
bottom : 228px;
width : 970px;
height : 46px;
display : none;
position : absolute;
background : url(images/slide-bg.png) 0 0;
}
div#landing-header div#landing-slide-holder div#landing-slide-controls p.landing-text {
float : left;
color : #fff;
display : inline;
font-size : 10px;
line-height : 16px;
margin : 15px 0 0 20px;
text-transform : uppercase;
}
div#landing-header div#landing-slide-holder div#landing-slide-controls p#landing-slide-nav {
float : right;
height : 24px;
display : inline;
margin : 11px 15px 0 0;
}
div#landing-header div#landing-slide-holder div#landing-slide-controls p#landing-slide-nav a {
float : left;
width : 24px;
height : 24px;
display : inline;
font-size : 11px;
margin : 0 5px 0 0;
line-height : 24px;
font-weight : bold;
text-align : center;
text-decoration : none;
background-position : 0 0;
background-repeat : no-repeat;
}
div#landing-header div#landing-slide-holder div#landing-slide-controls p#landing-slide-nav a.on {
background-position : 0 -24px;
}
div#landing-header div#landing-slide-holder div#landing-slide-controls p#landing-slide-nav a {
background-image : url(images/silde-nav.png);
}


Template Javascript
Code:
<script type="text/javascript" src="modules/JQueryTools/lib/jquery-1.4.2.js"></script>
<script type="text/javascript" src="modules/JQueryTools/lib/jquery.li-scroller.1.0.js"></script>
<script type="text/javascript">var _siteRoot='index.html',_root='index.html';</script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/scripts.js"></script>


I don't want the text to display over the image saying a description, so i removed that piece of script.


I then put {Gallery dir="landingpage"} on my page and it just shows up with the box but no images or anything inside the box.

Does anyone have any ideas what i'm doing wrong in my template or gallery setup that might be messing up?

Thanks in advance!


Last edited by michaywood on Fri Jul 30, 2010 12:58 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Tue Jul 27, 2010 8:02 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 2813
Location: The Netherlands
look at the html sourcecode of your page and see if there are any other calls to jquery1.x.x.js

There should only be one call to the jquery script in your pages

_________________
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Wed Jul 28, 2010 6:55 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 1530
Location: Feldkirchen in Kärnten, Austria
Quote:






Red is your problem, twice jQuery.

_________________
Blog: i-do-this!
Themes: QuattroSimple TypoFolio, BizBuzz
Plugins: gMaps, QR Image, iCalendar
Modules: ListItExtended, RSS2HTML, AceEditor


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Wed Jul 28, 2010 1:00 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 158
Location: Georgia
Ok, I removed the first call to 1.4.2.js and am only calling jquery.js now. Still nothing! It looks exactly the same (i attached a photo). My actual page template is

Code:
<body>
<div>{content}</div>
</body>


So it couldn't be anything in this template messing it up. Any ideas???


Attachments:
Picture 2.png
Picture 2.png [ 10.78 KiB | Viewed 486 times ]
Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Wed Jul 28, 2010 8:17 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 158
Location: Georgia
Is there anything else in my code that looks weird? I have the li-scroller installed at the top of the page as a newsticker, so thats why the jquery was in there twice. I've removed it, still nothing working. Maybe there is something in my template code that isn't 100% right?


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Wed Jul 28, 2010 8:40 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 10223
Location: Arizona
The main jQuery call has to be at the top of all others or it doesn't work...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get the parameters it takes
Right click and view source is a great way to see what you have to work with
Check ver. CMSMS, PHP, server OS, in System Information page
Default content, read it here, http://multiintech.com/defaultcontent/
People are Wonderful Business is Great Life is Terrific
Image


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Thu Jul 29, 2010 1:38 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 158
Location: Georgia
Ok,

I moved the main query to the top of the section but it still shows up the same as I showed in the previous post. Just the black box with no buttons on it or anything and no images showing up. When I look at the source code of the page, it isn't showing any of the images in the gallery folder I'm pulling from. Is there something in my template that seems to be wrong?


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Thu Jul 29, 2010 4:34 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 2813
Location: The Netherlands
I must say you have chosen a rather difficult slidersystem, difficult to implement in a Gallery template that is... but not impossible 8)

And... I'm in a happy mood and I created a GadgetinspirationSlider template out of it for you.  ;D

You can download here and upload to your gallerytemplates.


Attachments:
[The extension xml has been deactivated and can no longer be displayed.]

_________________
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here


Last edited by Jos on Thu Jul 29, 2010 4:35 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Thu Jul 29, 2010 6:24 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 158
Location: Georgia
Thank you so much, Jos! That is extremely helpful!

Just for future knowledge, how would have YOU done it? I personally like the simple slider module cause you can make the images links in the CMSMS GUI and don't need to code anything, but i haven't a clue how to change the js for that. Is there another module you'd prefer that makes it easier for the end user?

Again.. THANK YOU!


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Thu Jul 29, 2010 7:13 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 2813
Location: The Netherlands
I prefer Gallery  ;D

_________________
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Thu Jul 29, 2010 8:21 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Thu Apr 15, 2010 12:27 am
Posts: 158
Location: Georgia
wait.... i AM using the gallery module...

is there something i'm missing here?

or is gallery a .js you like to use?


Top
 Profile  
 
 Post subject: Re: Custom JQuery Image Rotation?
PostPosted: Thu Jul 29, 2010 9:23 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Sep 05, 2007 8:03 pm
Posts: 2813
Location: The Netherlands
I ment the CMSms Gallery module... of course  8)

but you asked:
michaywood wrote:
Is there another module you'd prefer that makes it easier for the end user?

_________________
The Fourth Dutch CMS Made Simple Workshop on April 9 2011 was great fun! Read all about it here


Top
 Profile  
 
 Post subject: Re: [solved] Custom JQuery Image Rotation?
PostPosted: Sat Aug 28, 2010 11:40 am 
Offline
Forum Members
Forum Members
User avatar

Joined: Fri Jan 08, 2010 12:23 am
Posts: 78
Location: Wales - UK
JOs, awesome template! thanks for spending the time to do this! loving this plugin! using it on most of the sites I build with the need for a Gallery and this template just makes it the more usefull for home page gallery display! fantastic work!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner