jCarousel

Discussion in 'TemplateCodes' started by PFZ_Ken, Aug 31, 2009.

  1. PFZ_Ken Customer

    This module is installed and is visible in the admin panel;

    "TemplateCodes jCarousel Allows the insertion of jCarousel listings plugins. 2.0 Active Deactivate"

    It shows as being active but there is no "Admin" function and it doesn't work, how can I get this module to work?

    Ken - PFZ

    PS: I've tried a couple of things after reading the docs but no luck getting this to work
  2. John Snyder Staff

  3. PFZ_Ken Customer

    This is one of the things I tried. I added;

    {tc_jcarousel l_type="top"}

    ...to home.tpl

    This would be the template to add it to right?

    Where in this code would it be added?

    Code:
    <h2>{$smarty.const.LANG_FEATURED_LISTINGS}</h2>
    {css_listings_horizontal number=4 type="featured"}
    <br/>
    
    {$pPageContent}
    
    <h2>{$smarty.const.LANG_TPL_NEW}</h2>
    {css_listings_horizontal number=4 type="new"}
    
    <h2>Latest News</h2>
    {foreach from=$blog item=entry}
    <div class="newsbox">
    	<h3>{$entry.post_title}</h3>
    	<div class="entry">
    		{$entry.post_content|truncate:150:"...":true}
    		<p><a href="modules.php?mod=news&amp;uri={$entry.post_name}">Continue Reading</a></p>
    	</div>
    </div>
    {/foreach}
    Ken
  4. John Snyder Staff

    Are you really using v3.1.10 Designer? I'm not totally sure it works with such an early version, I believe we state requirements of 4.1.3 as a minimum requirement.

    It could go anywhere, but inside the {foreach}....{/foreach} in the code you provided.
  5. Lhotch curmudgeon

    and is your server running PHP 5?
  6. PFZ_Ken Customer

    Hey, I thought when I upgraded my script my board sig was supposed to update automatically....:mad:

    Just kidding, it was only upgraded the weekend past, I hadn't thought of changing my sig yet.

    My host uses; PHP 5.2.10

    Thanks,

    Ken
  7. PFZ_Ken Customer

    John,

    Just to be clear, when you say; "It could go anywhere, but inside the {foreach}....", do you mean It could go anywhere, except...?

    Ok, if I add this code would I not need to remove the code that is displaying "Featured Listings" in the default mode?

    Ken
  8. PFZ_Ken Customer

    I seems you not only have to add the code we've been talking about but also parameters from somewhere...would have been cool if this were all doable from the control panel.

    Ken
  9. PFZ_Ken Customer

    I've added the code snippet we've been talking about and it works with the manual scroll arrows but the bottom of the boxes are being cut off.

    In the documentation it says;

    "Add code below with any of the optional parameters/values to your template in the place you want it to display"

    ...so does this mean that parameters need to be added to the same file as the code snippet? I see parameters in a file named: function.tc_jcarousel.php

    Are parameters to be edited in this file or are the parameters to be pasted into the file containing the original code? (In this case home.tpl)

    Ken
  10. Eric Barnes Guest

    The way the parameters work is by adding them to the plugin call. For example on the home.tpl:
    {tc_jcarousel l_type="top"}

    to:

    {tc_jcarousel l_type="top" category="1" owner="1" number="12"}

    You can see a list of all parameters here:
    TemplateCodes : Dynamic Listings Module (tc_jcarousel) User Guide
    Click the "Configuration" section.
  11. John Snyder Staff

    Yes, Eric is correct, you only need to edit the code you put in the template. The reason there is no admin panel is because there are many variations you could have, and you can put it in a different variation on the same page. This would make administration a bit more painful. If you have a link I'd be willing to help sort out the css, it works fine within the template in its default setup, so I'd be curious to see why its an issue at your installation, and provide a solution if its a bug.
  12. PFZ_Ken Customer

    I have removed the code and will just use the default non scrolling display. As our thumbnail dimensions vary, some look acceptable others are unacceptably distorted so I'd rather have users see only 4 possible distorted images than one after another scrolling across. It didn't occur to me in the beginning but if we'd have arrived at a standard dimension be it square or otherwise, we'd be able to adjust parameters so all images would display acceptably.

    We did not do this until a few months ago, create a standard square image for thumbs, so we'll have to live with it the way it is.

    Ken

    PS Does anyone know if the Price Descriptor mod works with the latest version of 68c?

Share This Page