1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

jCarousel scrolling ads

Discussion in 'Template Modifications [Archive]' started by Puntocom, Jan 19, 2011.

  1. Puntocom

    Puntocom Well-Known Member

    As requested in my profile, here it is a template modification to show slideshow ads above forum list.

    Unzip jcarousel.zip contents in the root directory of your XenForo installation. Directory jcarousel will be created.

    In page_container_js_head, after <script type="text/javascript" src="{$jQuerySource}"></script> add:
    Create template jcarousel with this:
    In forum_list, just before <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if> add
    Done :)

    If you want to see it in a live site write me a private message since the site has adult content.


    Attached Files:

    shaqib, Emeric, Mutt and 5 others like this.
  2. glorify

    glorify Well-Known Member

    Thank you sir. Really appreciate you zipping this up.
    Puntocom likes this.
  3. ArnyVee

    ArnyVee Well-Known Member

    Thank you for sharing. :)

    I'm going to have to find a way to add to the xenPorta as well, but I may try it out in the near future.
  4. manik

    manik Member

    a couple of questions friend.
    What do i save the jcarousel page as ? html/php ?
    Also in what template page do i add the following ?
    <xen:include template="jcarousel" />

    what do i save the jcarousel as (html,php) ?
    Also in what template page do i add this
  5. Puntocom

    Puntocom Well-Known Member

    The contents are in the jcarousel directory, it is saved in the root directory of the XenForo installation. For example, if your XF is in ~/public_html, the jcarousel files directory would be ~/public_html/jcarousel

    The template is forum_list, I forgot to put it.
  6. xFan

    xFan Member

    How to control dimensions?
  7. a legacy reborn

    a legacy reborn Well-Known Member

    width and height should work if I am correct.

    So this should work...

     <li><a href="url1" target="blank"><img src="image1.jpg" alt="Image 1" title="Image 1" width="###px"  height="###px"/></a></li>
  8. Puntocom

    Puntocom Well-Known Member

    It's also neccesary to customize jcarousel/skin.css
  9. Ryan Kent

    Ryan Kent Well-Known Member

    Instead of displaying ads, could this be used to rotate normal images on the portal page?
  10. Puntocom

    Puntocom Well-Known Member

    Sure, just remove the <a href... and </a> and leave only <li><img src=... /></a></li>

Share This Page