solved Image Slider on Elastic?

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
so i am using elastic and i uploaded site builder, right after i activated site builder it removed all the default items on the default skin elastic like the slide show on the home page etc... no big deal i can just add my own stuff but now i cant find what that slide show was called "featured profiles" where is that module or what is it called what should i be looking for can anyone help me please, this has me stumped now for hours
slide.JPG.jpg
slide.JPG.jpg  •  79KB


updated by @zachary-moonshine: 08/18/15 12:03:26PM
douglas
@douglas
10 years ago
2,804 posts
The slide show code is in your skins/jrElastic/index.tpl, you could use that code and put it in a "Template Code" widget.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
michael
@michael
10 years ago
7,800 posts
Templates have more flexibility than Site Builder. With templates you can do anything, with Site Builder you are limited to the widgets that currently exist.

You can have a slider via:
SITE BUILDER -> ADD WIDGET -> UPLOADED IMAGES -> (upload some images and check the checkboxes)

If there are multiple images they will appear in a slider the same as the elastic one. Just they wont be linked to the profiles.

---
Another way to do it would be to use the TEMPLATE CODE widget and just add the stuff from the elastic skin to make the profile slider. Here's the condensed version:
<script type="text/javascript">
    $(function() {
        $("#slider1").responsiveSlides({
            auto: true,          // Boolean: Animate automatically, true or false
            speed: 400,          // Integer: Speed of the transition, in milliseconds
            timeout: 4000,       // Integer: Time between slide transitions, in milliseconds
            pager: true,         // Boolean: Show pager, true or false
            random: true,        // Boolean: Randomize the order of the slides, true or false
            pause: true,         // Boolean: Pause on hover, true or false
            maxwidth: 560,       // Integer: Max-width of the slideshow, in pixels
            namespace: "rslides" // String: change the default namespace used
        });
    });
</script>

<div id="swrapper" style="padding-top:10px;">
    <div class="callbacks_container">
        <div class="ioutline">
            <ul id="slider1" class="rslides callbacks">
                  {jrCore_list module="jrProfile" order_by="_item_id desc" limit="10" search1="profile_active = 1" template="index_featured_slider.tpl" require_image="profile_image"}
            </ul>
        </div>
    </div>
    <div class="clear"></div>
</div>
Put that in to:
SITE BUILDER -> ADD WIDGET -> TEMPLATE CODE

And it will get the slider.
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
wow thanks i put this last code in and it worked right away, next question is there a way i can set it so it shows certain people like based on quota ? for instance its a radio site so if i could showcase my djs profiles in this would be great
updated by @zachary-moonshine: 07/04/15 05:09:29AM
paul
@paul
10 years ago
4,335 posts
Add a quota_id parameter to the jrCore_list call -

{jrCore_list module="jrProfile" quota_id=n . . . }

where 'n' is the numeric ID of the quota needed.

hth


--
Paul Asher - JR Developer and System Import Specialist
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
yikes i did that and now i cant see the page just white screen i must have done something wrong not sure how to revert now without just deleting the whole page ?
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
problem is i cant delete the page its my home page lmao good god what did i do!
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok i located pages in my acp and deleted it so it gave me a fresh home page will try this again
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok i got it showing the quotas but now the images of them are tiny ? is that normal
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
ok i see i put an extra } thing in there i took it out and now its all good \,,/
michael
@michael
10 years ago
7,800 posts
if you add /repair=true to the url you will see the blocks without the content, so can update them.

yoursite.com/the-page/repair=true

for next time.
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
thanks man thats a good tip i will use that next time
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
10 years ago
831 posts
i switched to ningja skin a while back and now that slider no longer works is there a diff code for it on ningja ?