Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Mick. on July 05, 2011, 05:45:27 PM

Title: SMF Content Slider v.1.1
Post by: Mick. on July 05, 2011, 05:45:27 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2972)

COMPATIBLE WITH SMF 2.0
[/center]

Demo: http://www.bluedevilcustoms.com/index.php?action=forum

Credits: Land Of Coder (http://landofcoder.com)

This Jquery plugin may not play nice with others

Bug Fixes / Updates
1.) Created v.1 | March 2011
2.) Made input area boxes larger | March 2011
3.) Fixed xhtml compliance | July 2011
4.) Removed motools file from package and now uses Google's motools. | July 2011


*This mod installs a content slider below the menu in the header of your SMF forum installation.

*Easy to use. Simply add the URL to topics or external pages, URL to images and add a short description.

*Images work best if cropped to 900x300 pixels.

If you need support or need customize help, please post in the thread at SimpleMachines.org or @ bluedevilcustoms.com Thanks!
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 05, 2011, 05:52:56 PM
To use this mod with portals,... (Works best with TinyPortal as it uses the center wide blocks)

Remove this entire bit of code from the index.template.php and simply paste it to a PHP block in your portal of choice.

Fallbacks:
To use with simple portal, either left or right blocks cannot be used. Remember, the slider is quite wide. Create a 'Top" PHP block and wolla!

Code: [Select]
//SMF Slider v.1 by: bluedevilcustoms.com
global $modSettings;
if (!empty($modSettings['slider_enabled']) && (!empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']) || !empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']) || !empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']) || !empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']) || !empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']) || !empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6'])))
{
echo '<br />
<div class="center">
<div id="lofslidecontent45" class="lof-slidecontent">
<div class="preload"><div>
</div>
</div>
<!-- MAIN CONTENT -->
<div class="lof-main-wapper">
', !empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img1']. '" title="'. $modSettings['slider_title1']. '" alt="'. $modSettings['slider_title1']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img2']. '" title="'. $modSettings['slider_title2']. '" alt="'. $modSettings['slider_title2']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img3']. '" title="'. $modSettings['slider_title3']. '" alt="'. $modSettings['slider_title3']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img4']. '" title="'. $modSettings['slider_title4']. '" alt="'. $modSettings['slider_title4']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img5']. '" title="'. $modSettings['slider_title5']. '" alt="'. $modSettings['slider_title5']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img6']. '" title="'. $modSettings['slider_title6']. '" alt="'. $modSettings['slider_title6']. '" height="300" width="900"></img></div>' : '', '
</div>   
<!-- END MAIN CONTENT -->
<!-- NAVIGATOR -->
<div class="lof-navigator-outer">
<ul class="lof-navigator">';
// Item One
if (!empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img1'], '" alt="', !empty($modSettings['slider_short_text1']) ? $modSettings['slider_short_text1'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url1']) ? '<a href="'. $modSettings['slider_url1']. '" target="_self">'. $modSettings['slider_title1']. '</a>' : $modSettings['slider_title1'], '
</h3>
', !empty($modSettings['slider_short_text1']) ? '<span>'. $modSettings['slider_short_text1']. '</span>' : '', '
</div> 
</li>';
}
// Item Two
if (!empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img2'], '" alt="', !empty($modSettings['slider_short_text2']) ? $modSettings['slider_short_text2'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url2']) ? '<a href="'. $modSettings['slider_url2']. '" target="_self">'. $modSettings['slider_title2']. '</a>' : $modSettings['slider_title2'], '
</h3>
', !empty($modSettings['slider_short_text2']) ? '<span>'. $modSettings['slider_short_text2']. '</span>' : '', '
</div> 
</li>';
}
// Item Three
if (!empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img3'], '" alt="', !empty($modSettings['slider_short_text3']) ? $modSettings['slider_short_text3'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url3']) ? '<a href="'. $modSettings['slider_url3']. '" target="_self">'. $modSettings['slider_title3']. '</a>' : $modSettings['slider_title3'], '
</h3>
', !empty($modSettings['slider_short_text3']) ? '<span>'. $modSettings['slider_short_text3']. '</span>' : '', '
</div> 
</li>';
}
// Item Four
if (!empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img4'], '" alt="', !empty($modSettings['slider_short_text4']) ? $modSettings['slider_short_text4'] : '*', '" />';
                echo '<h4>
', !empty($modSettings['slider_url4']) ? '<a href="'. $modSettings['slider_url4']. '" target="_self">'. $modSettings['slider_title4']. '</a>' : $modSettings['slider_title4'], '
</h4>
', !empty($modSettings['slider_short_text4']) ? '<span>'. $modSettings['slider_short_text4']. '</span>' : '', '
</div> 
</li>';
}
// Item Five
if (!empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img5'], '" alt="', !empty($modSettings['slider_short_text5']) ? $modSettings['slider_short_text5'] : '*', '" />';
                echo '<h5>
', !empty($modSettings['slider_url5']) ? '<a href="'. $modSettings['slider_url5']. '" target="_self">'. $modSettings['slider_title5']. '</a>' : $modSettings['slider_title5'], '
</h5>
', !empty($modSettings['slider_short_text5']) ? '<span>'. $modSettings['slider_short_text5']. '</span>' : '', '
</div> 
</li>';
}
// Item Six
if (!empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img6'], '" alt="', !empty($modSettings['slider_short_text6']) ? $modSettings['slider_short_text6'] : '*', '" />';
                echo '<h6>
', !empty($modSettings['slider_url6']) ? '<a href="'. $modSettings['slider_url6']. '" target="_self">'. $modSettings['slider_title6']. '</a>' : $modSettings['slider_title6'], '
</h6>
', !empty($modSettings['slider_short_text6']) ? '<span>'. $modSettings['slider_short_text6']. '</span>' : '', '
</div> 
</li>';
}
echo '</ul>
</div>
</div>
</div>
<script type="text/javascript">
var _lofmain =  $(\'lofslidecontent45\');
var _lofscmain = _lofmain.getElement(\'.lof-main-wapper\');
var _lofnavigator = _lofmain.getElement(\'.lof-navigator-outer .lof-navigator\');
var object = new LofFlashContent( _lofscmain,
  _lofnavigator,
  _lofmain.getElement(\'.lof-navigator-outer\'),
  { fxObject:{ transition:Fx.Transitions.Quad.easeInOut,  duration:800},
interval:3000,
direction:\'opacity\' } );
object.start( true, _lofmain.getElement(\'.preload\') );
</script>';
}
//End of SMF Slider v.1
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 05, 2011, 05:53:08 PM
Reserved...
Title: Re: SMF Content Slider v.1
Post by: Matthew K. on July 05, 2011, 05:54:25 PM
Reserved...?
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 05, 2011, 05:56:48 PM
Reserved...?

For future tips/how'to's ;)
Title: Re: SMF Content Slider v.1
Post by: Diego Andrés on July 05, 2011, 11:15:50 PM
Good job, it's nice.
Title: Re: SMF Content Slider v.1
Post by: pomak on July 06, 2011, 08:13:37 AM
Thanks, Firstly Great mod. Is it possible set height to 200 px ?  as like as width 900 px height 200 px
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 06, 2011, 08:25:59 AM
@pomak, yes.

Open the slider-CSS folder and in the file change 300px to 200px as well in the bit found in the index.template.php
Title: Re: SMF Content Slider v.1
Post by: More-to-life on July 06, 2011, 11:34:09 AM
Great Mod thanks but I'm I the only one that thinks it looks..well not part of the forum?


Sorry to sound negative
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 06, 2011, 11:41:32 AM
No worries man. I use it on my forums, decided to share it.
I share the mods I make. I don't make mods on demand.
Title: Re: SMF Content Slider v.1
Post by: More-to-life on July 06, 2011, 11:52:03 AM
No worries man. I use it on my forums, decided to share it.
I share the mods I make. I don't make mods on demand.

Your work is good & I'm using some of your mods as we speak

I've never been a big fan of sliders so maybe it's just me

Keep up the good work

Regards
WB
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 06, 2011, 12:09:37 PM
I use it on my site to promote 'write ups'. I don't use it for news etc.

www.chevyavalancheclub.com
Title: Re: SMF Content Slider v.1
Post by: Joomlamz on July 06, 2011, 01:25:00 PM
Yes good work
Nice Mod

When Update dont forget Portuguese Linguage

Code: [Select]
<file name="$themedir/languages/Modifications.portuguese_pt.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//Slider strings translate By Candidosa2
$txt['slider_admin_menu'] = 'Slides';
$txt['slider_settings_title'] = 'Configura&ccedil;&atilde;o de Slides';
$txt['slider_settings_desc'] = 'Editar a configura&ccedil;&atilde;o do Mod SMF Slides';
$txt['slider_enabled'] = 'Activar Slide no SMF';
$txt['slider_title1'] = 'T&iacute;tulo do Slide 1';
$txt['slider_url1'] = 'URL para o t&oacute;pico ou link externo 1';
$txt['slider_img1'] = 'URL da imagem 1';
$txt['slider_short_text1'] = 'Pequena descri&ccedil;&atilde;o 1';
$txt['slider_title2'] = 'T&iacute;tulo do Slide 2';
$txt['slider_url2'] = 'URL para o t&oacute;pico ou link externo 2';
$txt['slider_img2'] = 'URL da imagem 2';
$txt['slider_short_text2'] = 'Pequena descri&ccedil;&atilde;o 2';
$txt['slider_title3'] = 'T&iacute;tulo do Slide 3';
$txt['slider_url3'] = 'URL para o t&oacute;pico ou link externo 3';
$txt['slider_img3'] = 'URL da imagem 3';
$txt['slider_short_text3'] = 'Pequena descri&ccedil;&atilde;o 3';
$txt['slider_title4'] = 'T&iacute;tulo do Slide 4';
$txt['slider_url4'] = 'URL para o t&oacute;pico ou link externo 4';
$txt['slider_img4'] = 'URL da imagem 4';
$txt['slider_short_text4'] = 'Pequena descri&ccedil;&atilde;o 4';
$txt['slider_title5'] = 'T&iacute;tulo do Slide 5';
$txt['slider_url5'] = 'URL para o t&oacute;pico ou link externo 5';
$txt['slider_img5'] = 'URL da imagem 5';
$txt['slider_short_text5'] = 'Pequena descri&ccedil;&atilde;o 5';
$txt['slider_title6'] = 'T&iacute;tulo do Slide 6';
$txt['slider_url6'] = 'URL para o t&oacute;pico ou link externo 6';
$txt['slider_img6'] = 'URL da imagem 6';
$txt['slider_short_text6'] = 'Pequena descri&ccedil;&atilde;o 6';
//End SMF Slider Strings Support SMFPT
]]></add>
        </operation>
    </file>
<file name="$themedir/languages/Modifications.portuguese_pt-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//Slider strings translate By Candidosa2
$txt['slider_admin_menu'] = 'Slides';
$txt['slider_settings_title'] = 'Configura&ccedil;&atilde;o de Slides';
$txt['slider_settings_desc'] = 'Editar a configura&ccedil;&atilde;o do Mod SMF Slides';
$txt['slider_enabled'] = 'Activar Slide no SMF';
$txt['slider_title1'] = 'T&iacute;tulo do Slide 1';
$txt['slider_url1'] = 'URL para o t&oacute;pico ou link externo 1';
$txt['slider_img1'] = 'URL da imagem 1';
$txt['slider_short_text1'] = 'Pequena descri&ccedil;&atilde;o 1';
$txt['slider_title2'] = 'T&iacute;tulo do Slide 2';
$txt['slider_url2'] = 'URL para o t&oacute;pico ou link externo 2';
$txt['slider_img2'] = 'URL da imagem 2';
$txt['slider_short_text2'] = 'Pequena descri&ccedil;&atilde;o 2';
$txt['slider_title3'] = 'T&iacute;tulo do Slide 3';
$txt['slider_url3'] = 'URL para o t&oacute;pico ou link externo 3';
$txt['slider_img3'] = 'URL da imagem 3';
$txt['slider_short_text3'] = 'Pequena descri&ccedil;&atilde;o 3';
$txt['slider_title4'] = 'T&iacute;tulo do Slide 4';
$txt['slider_url4'] = 'URL para o t&oacute;pico ou link externo 4';
$txt['slider_img4'] = 'URL da imagem 4';
$txt['slider_short_text4'] = 'Pequena descri&ccedil;&atilde;o 4';
$txt['slider_title5'] = 'T&iacute;tulo do Slide 5';
$txt['slider_url5'] = 'URL para o t&oacute;pico ou link externo 5';
$txt['slider_img5'] = 'URL da imagem 5';
$txt['slider_short_text5'] = 'Pequena descri&ccedil;&atilde;o 5';
$txt['slider_title6'] = 'T&iacute;tulo do Slide 6';
$txt['slider_url6'] = 'URL para o t&oacute;pico ou link externo 6';
$txt['slider_img6'] = 'URL da imagem 6';
$txt['slider_short_text6'] = 'Pequena descri&ccedil;&atilde;o 6';
//End SMF Slider Strings Support SMFPT
]]></add>
        </operation>
    </file>
    <file name="$themedir/languages/Modifications.portuguese_brazilian.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//Slider strings translate By Candidosa2
$txt['slider_admin_menu'] = 'Slides';
$txt['slider_settings_title'] = 'Configura&ccedil;&atilde;o de Slides';
$txt['slider_settings_desc'] = 'Editar a configura&ccedil;&atilde;o do Mod SMF Slides';
$txt['slider_enabled'] = 'Activar Slide no SMF';
$txt['slider_title1'] = 'T&iacute;tulo do Slide 1';
$txt['slider_url1'] = 'URL para o t&oacute;pico ou link externo 1';
$txt['slider_img1'] = 'URL da imagem 1';
$txt['slider_short_text1'] = 'Pequena descri&ccedil;&atilde;o 1';
$txt['slider_title2'] = 'T&iacute;tulo do Slide 2';
$txt['slider_url2'] = 'URL para o t&oacute;pico ou link externo 2';
$txt['slider_img2'] = 'URL da imagem 2';
$txt['slider_short_text2'] = 'Pequena descri&ccedil;&atilde;o 2';
$txt['slider_title3'] = 'T&iacute;tulo do Slide 3';
$txt['slider_url3'] = 'URL para o t&oacute;pico ou link externo 3';
$txt['slider_img3'] = 'URL da imagem 3';
$txt['slider_short_text3'] = 'Pequena descri&ccedil;&atilde;o 3';
$txt['slider_title4'] = 'T&iacute;tulo do Slide 4';
$txt['slider_url4'] = 'URL para o t&oacute;pico ou link externo 4';
$txt['slider_img4'] = 'URL da imagem 4';
$txt['slider_short_text4'] = 'Pequena descri&ccedil;&atilde;o 4';
$txt['slider_title5'] = 'T&iacute;tulo do Slide 5';
$txt['slider_url5'] = 'URL para o t&oacute;pico ou link externo 5';
$txt['slider_img5'] = 'URL da imagem 5';
$txt['slider_short_text5'] = 'Pequena descri&ccedil;&atilde;o 5';
$txt['slider_title6'] = 'T&iacute;tulo do Slide 6';
$txt['slider_url6'] = 'URL para o t&oacute;pico ou link externo 6';
$txt['slider_img6'] = 'URL da imagem 6';
$txt['slider_short_text6'] = 'Pequena descri&ccedil;&atilde;o 6';
//End SMF Slider Strings Support SMFPT
]]></add>
        </operation>
    </file>
<file name="$themedir/languages/Modifications.portuguese_brazilian-utf8.php" error="skip">
        <operation>
            <search position="end" />
            <add><![CDATA[
//Slider strings translate By Candidosa2
$txt['slider_admin_menu'] = 'Slides';
$txt['slider_settings_title'] = 'Configura&ccedil;&atilde;o de Slides';
$txt['slider_settings_desc'] = 'Editar a configura&ccedil;&atilde;o do Mod SMF Slides';
$txt['slider_enabled'] = 'Activar Slide no SMF';
$txt['slider_title1'] = 'T&iacute;tulo do Slide 1';
$txt['slider_url1'] = 'URL para o t&oacute;pico ou link externo 1';
$txt['slider_img1'] = 'URL da imagem 1';
$txt['slider_short_text1'] = 'Pequena descri&ccedil;&atilde;o 1';
$txt['slider_title2'] = 'T&iacute;tulo do Slide 2';
$txt['slider_url2'] = 'URL para o t&oacute;pico ou link externo 2';
$txt['slider_img2'] = 'URL da imagem 2';
$txt['slider_short_text2'] = 'Pequena descri&ccedil;&atilde;o 2';
$txt['slider_title3'] = 'T&iacute;tulo do Slide 3';
$txt['slider_url3'] = 'URL para o t&oacute;pico ou link externo 3';
$txt['slider_img3'] = 'URL da imagem 3';
$txt['slider_short_text3'] = 'Pequena descri&ccedil;&atilde;o 3';
$txt['slider_title4'] = 'T&iacute;tulo do Slide 4';
$txt['slider_url4'] = 'URL para o t&oacute;pico ou link externo 4';
$txt['slider_img4'] = 'URL da imagem 4';
$txt['slider_short_text4'] = 'Pequena descri&ccedil;&atilde;o 4';
$txt['slider_title5'] = 'T&iacute;tulo do Slide 5';
$txt['slider_url5'] = 'URL para o t&oacute;pico ou link externo 5';
$txt['slider_img5'] = 'URL da imagem 5';
$txt['slider_short_text5'] = 'Pequena descri&ccedil;&atilde;o 5';
$txt['slider_title6'] = 'T&iacute;tulo do Slide 6';
$txt['slider_url6'] = 'URL para o t&oacute;pico ou link externo 6';
$txt['slider_img6'] = 'URL da imagem 6';
$txt['slider_short_text6'] = 'Pequena descri&ccedil;&atilde;o 6';
//End SMF Slider Strings Support SMFPT
]]></add>
        </operation>
    </file>

Title: Re: SMF Content Slider v.1
Post by: MikeAsc on July 29, 2011, 01:35:34 AM
necesito soporte para instalar este mod en smf 2.0 rc5 theme: Dsv4 .. funciona bien con el theme default pero en dsv4 no se ve .. que puedo hacer?
Title: Re: SMF Content Slider v.1
Post by: Mick. on July 29, 2011, 09:48:58 AM
necesito soporte para instalar este mod en smf 2.0 rc5 theme: Dsv4 .. funciona bien con el theme default pero en dsv4 no se ve .. que puedo hacer?
busque soporte at dzinerstudios.com ese theme es premium.
Title: Re: SMF Content Slider v.1
Post by: thecoo1est on August 04, 2011, 11:54:21 AM
love the mod, its very AWESOME!!! Thanks for your work! :) I was wondering though if there is a way to set this to a percentage instead of a fixed width? It works out great in widescreen but for the few fullscreen it might effect, The main reason is because I want to keep my slider in the center portal of adk portal, I know it will work fine both full and wide in a top portal but I really like the way it looks in the center with the portals on the left. My website is below if you want to view it. If I cant set in to percentage its no big deal, I was just curious, most people need to have a widescreen these days anyway, lol.

www.psvita-mod.com
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 04, 2011, 06:17:59 PM
love the mod, its very AWESOME!!! Thanks for your work! :) I was wondering though if there is a way to set this to a percentage instead of a fixed width? It works out great in widescreen but for the few fullscreen it might effect, The main reason is because I want to keep my slider in the center portal of adk portal, I know it will work fine both full and wide in a top portal but I really like the way it looks in the center with the portals on the left. My website is below if you want to view it. If I cant set in to percentage its no big deal, I was just curious, most people need to have a widescreen these days anyway, lol.

www.psvita-mod.com

Open slider-CSS folder. All your answers are in that file. Also, since you took out that bit of code from the index.template.php and put it on block, make sure you also make the changes there as well.
Title: Re: SMF Content Slider v.1
Post by: thecoo1est on August 05, 2011, 06:07:13 PM
thanks broham, I managed to get it to auto size for wide or full screen, still trying to get the pictures to shrink with fullscreen, but Im much happier, I will continue to tweak settings, thanks for pointing me in the right direction.
Title: Re: SMF Content Slider v.1
Post by: roobyroo on August 08, 2011, 02:51:17 PM
hello guys first time poster here,and would like same help if possible.

i installed your mod last month and everything was ok and running fine,but we had a problem with the site and had to rebuild from scratch,[wasnt the mods fault].

since rebuilding i cant get the content slider to show the images,images have been uploaded to photobucket and have the [img] tags in place.
the title is named
the url is in place
the img url is in there
and the description

but still will not show,could this be an error with our host provider,photobucket or the plugin.
i have even tried installing on a testsite with just SimplePortal,Aeva Media,SMF Content Slider v.1. over and over installing in different orders.[going bold here]
http://www.simplemachines.org/community/index.php?topic=441257.0 doesnt work.and cant find anything about this problem.
so am hoping this can be resolved,thanks for your time in making this mod and hope to hear something soon.
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 08, 2011, 04:30:43 PM
hello guys first time poster here,and would like same help if possible.

i installed your mod last month and everything was ok and running fine,but we had a problem with the site and had to rebuild from scratch,[wasnt the mods fault].

since rebuilding i cant get the content slider to show the images,images have been uploaded to photobucket and have the [img] tags in place.
the title is named
the url is in place
the img url is in there
and the description

but still will not show,could this be an error with our host provider,photobucket or the plugin.
i have even tried installing on a testsite with just SimplePortal,Aeva Media,SMF Content Slider v.1. over and over installing in different orders.[going bold here]
http://www.simplemachines.org/community/index.php?topic=441257.0 doesnt work.and cant find anything about this problem.
so am hoping this can be resolved,thanks for your time in making this mod and hope to hear something soon.

What happens when installed on default theme?
Title: Re: SMF Content Slider v.1
Post by: roobyroo on August 08, 2011, 05:11:51 PM
exact same thing.
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 08, 2011, 05:15:28 PM
exact same thing.
You may be missing something. Use the parser anc make sure all files are included and edits. Including in your custom theme.
http://custom.simplemachines.org/mods/index.php?mod=2972
Title: Re: SMF Content Slider v.1
Post by: roobyroo on August 08, 2011, 05:21:07 PM
i will say,that hasn't worked as well.i have tried it.

edit 1 : i even tried with just the tinyportal instead simple portal.

edit 2 : thought i would retry using the parser and i do not have this ./Themes/default/languages/Modifications.english-utf8.php file in the ftp.

this now is the problem ?.

i cant understand how it wouldnt be there as the install of smf_2-0_install and SimplePortal_2.3.3.tar went without any errors,i have looked in both the smf and sp .rar .tar its not there aswell.

i would i now go about this.

once again thankyou for your speedy replies.

edit 3 : installed english-utf8 through the website with all edits to files still not working,installed without the edits like the first time i had it running,didnt work.

this now leaves me to believe that its our host.
Apache version    2.2.17 [ am sure this was a different version 2 weeks ago ]
PHP version    5.2.17 [ am sure this was a different version 2 weeks ago ]
MySQL version    5.0.92  [ am sure this was a different version 2 weeks ago ]
Operating system    linux
Perl version    5.8.8 [ am sure this was a different version 2 weeks ago ]

could this be the culprit i wounder.if so why would they change ?.
Title: Re: SMF Content Slider v.1
Post by: thecoo1est on August 10, 2011, 09:25:10 PM
hey thanks for the help guiding me to the right place for setting it to a percentage, I did figure out the width for pictures finally also so it all looks great in widescreen and fullscreen now while in a center portal. I have one more minor question, I noticed that the title text in the first 3 slots has a line break or padding on the top, but on slots 4-6 the text doesnt have a line break or padding at the top, anyway to fix that? Right now I use a <br> before the text in the titles 4-6 and it seems to work, just curious if i could perm fix, thanks.
Title: Re: SMF Content Slider v.1
Post by: roobyroo on August 11, 2011, 10:27:51 AM
well with a lot of messing about and fiddling,i have now managed to get it working at last. (i have no idea how i managed it,and could not explain lol)

just now need to add more content to it.your thoughts and comments welcome.

http://www.taticalknights.co.uk/index.php
Title: Re: SMF Content Slider v.1
Post by: oldrow on August 11, 2011, 11:02:30 AM
Does it play nice with a chat box on the front page?
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 11, 2011, 04:38:28 PM
hey thanks for the help guiding me to the right place for setting it to a percentage, I did figure out the width for pictures finally also so it all looks great in widescreen and fullscreen now while in a center portal. I have one more minor question, I noticed that the title text in the first 3 slots has a line break or padding on the top, but on slots 4-6 the text doesnt have a line break or padding at the top, anyway to fix that? Right now I use a <br> before the text in the titles 4-6 and it seems to work, just curious if i could perm fix, thanks.

Do you mind posting what changes you did for others to read?

A shot in the dark.....
Try this: When i parsed it i found 1,2,3 uses <h3>. But 4,5,6 uses <h4><h5> and <h6>.  Make 4,5, and 6 <h3> as well.  See if that fixes it and let me know. Thanx.
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 11, 2011, 04:39:11 PM
well with a lot of messing about and fiddling,i have now managed to get it working at last. (i have no idea how i managed it,and could not explain lol)

just now need to add more content to it.your thoughts and comments welcome.

http://www.taticalknights.co.uk/index.php

Your slider has a scroller. Minimize the size in css- slider folder.
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 11, 2011, 04:39:24 PM
Does it play nice with a chat box on the front page?
I dont see why not.
Title: Re: SMF Content Slider v.1
Post by: thecoo1est on August 11, 2011, 07:54:40 PM
hey thanks for the help guiding me to the right place for setting it to a percentage, I did figure out the width for pictures finally also so it all looks great in widescreen and fullscreen now while in a center portal. I have one more minor question, I noticed that the title text in the first 3 slots has a line break or padding on the top, but on slots 4-6 the text doesnt have a line break or padding at the top, anyway to fix that? Right now I use a <br> before the text in the titles 4-6 and it seems to work, just curious if i could perm fix, thanks.

Do you mind posting what changes you did for others to read?

A shot in the dark.....
Try this: When i parsed it i found 1,2,3 uses <h3>. But 4,5,6 uses <h4><h5> and <h6>.  Make 4,5, and 6 <h3> as well.  See if that fixes it and let me know. Thanx.
I dont mind, and by the way, changing the h4,h5,h6 tags to h3 worked perfectly, thanks.

Now the changes I made to slider css to self adjust width when using in a center portal are below, keep in mind Im not a coder but Im not afraid to mess with stuf and try to figure it out, the changes I made work great for me using adkportals center block and will auto adjust width for fulscreen users and widescreen users. First make a backup copy of your slider css incase you miss a edit or leave something out, or just want it back to original.

At the very top of the css sheet find ".lof-slidecontent{"
replace "width:892px;" with width:auto;  max-width:892px;

Now find ".lof-main-wapper .lof-main-item img{"
change the "width" to 70%

Now Find ".lof-main-item-desc{"
replace "width:400px;" with width:auto;  max-width:400px;

Now find ".lof-navigator-outer{"
change the "width" to 33%.... (sounds weird but 33% seem to work best for me)

Now find ".center" (its at the bottom of page)
replace "width:892px;" with width:auto;  max-width:892px;

(optional) if you want the pictures in the scroller to have a wider aspect
Find ".lof-navigator li img{"
change "width" to 80px or 90px

After all that if your using the " index.template.php" edits inside a portal like I am, you want to change all the 900px and replace them with 100%. I honestly dont know if it matters or not but I did it anyway, but it seemed to work fine before I changed them, but you can play with it yourself :)

If you have any doubts if this works or how it looks, view my webpage in my signature, and change your resolution to view the slider in both wide and fullscreen to view variation.


Title: Re: SMF Content Slider v.1
Post by: Mick. on August 12, 2011, 12:50:05 AM
Thnk you Coolest, you rock man!  ;)
Title: Re: SMF Content Slider v.1
Post by: Swifty550 on August 13, 2011, 06:02:50 AM
How do I go about editing the slider-css?
Title: Re: SMF Content Slider v.1
Post by: lmbuehrer on August 18, 2011, 12:43:48 PM
This doesn't work for rc5? I tried installing it to the theme "DSv1" And it did not work it couldn't execute it.
Title: Re: SMF Content Slider v.1
Post by: Mick. on August 18, 2011, 01:17:21 PM
This doesn't work for rc5? I tried installing it to the theme "DSv1" And it did not work it couldn't execute it.
Dsv1 is a custom theme different from default. Your best bet is to seek assistance at dzinerstudios.com ;)
Title: Re: SMF Content Slider v.1
Post by: lmbuehrer on August 18, 2011, 11:28:47 PM
dang, nah, they'd charge too much... blaah.
Title: Re: SMF Content Slider v.1
Post by: spartan1project on September 05, 2011, 12:28:10 PM
I want this mod for my site but it does not work with the BlackRain v3 theme that I currently love and use.  How can I make this happen?

:)
Title: Re: SMF Content Slider v.1
Post by: Matthew K. on September 05, 2011, 12:36:08 PM
Custom mod installation. Manual Installation of Mods (http://wiki.simplemachines.org/smf/Manual_installation_of_mods)
Title: Re: SMF Content Slider v.1
Post by: moguns on September 15, 2011, 05:55:45 PM
You Sir are Nobel and wise.

Does this play nice with global headers and footers? Was wondering how to get it below the info center
Title: Re: SMF Content Slider v.1
Post by: Matthew K. on September 15, 2011, 06:35:48 PM
Parse the mod edits on the mods page by clicking the version, your version of SMF and then parse.

Instead of placing it in the template where it shows to...put it below template_info_center(); which renders the info centre in the template.
Title: Re: SMF Content Slider v.1
Post by: moguns on September 15, 2011, 07:45:51 PM
That Worked!  Thanks
Title: Re: SMF Content Slider v.1
Post by: Matthew K. on September 15, 2011, 07:46:24 PM
Not a problem
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 15, 2011, 08:07:55 PM
Thanx lab ;)
Title: Re: SMF Content Slider v.1
Post by: Matthew K. on September 15, 2011, 08:14:30 PM
You're welcome :) Hope you've been doing well?
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 15, 2011, 08:21:47 PM
You're welcome :) Hope you've been doing well?
not too bad, thanx.  You too brother.

Summer is about over, im now finding time behind the puter.  ;)
Title: Re: SMF Content Slider v.1
Post by: moguns on September 17, 2011, 01:46:22 PM
Slider works well! Thank you! Everyone likes it.

But it does get annoying because it shows up not just on the board index but all the pages and even new posts. Is there a way to only get it  to show on board index? if not is there a way to get it to show up on the registration page only?
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 17, 2011, 02:29:10 PM
Slider works well! Thank you! Everyone likes it.

But it does get annoying because it shows up not just on the board index but all the pages and even new posts. Is there a way to only get it  to show on board index? if not is there a way to get it to show up on the registration page only?
See reply#1 for portals.
Title: Re: SMF Content Slider v.1
Post by: moguns on September 17, 2011, 03:25:34 PM
yes thanks.. I seen that but we don't want a front page being it's all about the forum anyways. Frontpage looks cool but thats about it for what our forum is about...

First, Thank you again for sharing this mod.

Second is there a way to make it for guests only? That would be great too!

Thank you so much again for making this  mod
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 18, 2011, 12:19:24 PM
Try this, i didnt test it tho.


In index.template.php find the slider clode.
Code: [Select]
//SMF Slider v.1 by: bluedevilcustoms.com
global $modSettings;
if (!empty($modSettings['slider_enabled']) && (!empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']) || !empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']) || !empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']) || !empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']) || !empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']) || !empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6'])))
{
echo '<br />
<div class="center">
<div id="lofslidecontent45" class="lof-slidecontent">
<div class="preload"><div>
</div>
</div>
<!-- MAIN CONTENT -->
<div class="lof-main-wapper">
', !empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img1']. '" title="'. $modSettings['slider_title1']. '" alt="'. $modSettings['slider_title1']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img2']. '" title="'. $modSettings['slider_title2']. '" alt="'. $modSettings['slider_title2']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img3']. '" title="'. $modSettings['slider_title3']. '" alt="'. $modSettings['slider_title3']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img4']. '" title="'. $modSettings['slider_title4']. '" alt="'. $modSettings['slider_title4']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img5']. '" title="'. $modSettings['slider_title5']. '" alt="'. $modSettings['slider_title5']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img6']. '" title="'. $modSettings['slider_title6']. '" alt="'. $modSettings['slider_title6']. '" height="300" width="900"></img></div>' : '', '
</div>   
<!-- END MAIN CONTENT -->
<!-- NAVIGATOR -->
<div class="lof-navigator-outer">
<ul class="lof-navigator">';
// Item One
if (!empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img1'], '" alt="', !empty($modSettings['slider_short_text1']) ? $modSettings['slider_short_text1'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url1']) ? '<a href="'. $modSettings['slider_url1']. '" target="_self">'. $modSettings['slider_title1']. '</a>' : $modSettings['slider_title1'], '
</h3>
', !empty($modSettings['slider_short_text1']) ? '<span>'. $modSettings['slider_short_text1']. '</span>' : '', '
</div> 
</li>';
}
// Item Two
if (!empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img2'], '" alt="', !empty($modSettings['slider_short_text2']) ? $modSettings['slider_short_text2'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url2']) ? '<a href="'. $modSettings['slider_url2']. '" target="_self">'. $modSettings['slider_title2']. '</a>' : $modSettings['slider_title2'], '
</h3>
', !empty($modSettings['slider_short_text2']) ? '<span>'. $modSettings['slider_short_text2']. '</span>' : '', '
</div> 
</li>';
}
// Item Three
if (!empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img3'], '" alt="', !empty($modSettings['slider_short_text3']) ? $modSettings['slider_short_text3'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url3']) ? '<a href="'. $modSettings['slider_url3']. '" target="_self">'. $modSettings['slider_title3']. '</a>' : $modSettings['slider_title3'], '
</h3>
', !empty($modSettings['slider_short_text3']) ? '<span>'. $modSettings['slider_short_text3']. '</span>' : '', '
</div> 
</li>';
}
// Item Four
if (!empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img4'], '" alt="', !empty($modSettings['slider_short_text4']) ? $modSettings['slider_short_text4'] : '*', '" />';
                echo '<h4>
', !empty($modSettings['slider_url4']) ? '<a href="'. $modSettings['slider_url4']. '" target="_self">'. $modSettings['slider_title4']. '</a>' : $modSettings['slider_title4'], '
</h4>
', !empty($modSettings['slider_short_text4']) ? '<span>'. $modSettings['slider_short_text4']. '</span>' : '', '
</div> 
</li>';
}
// Item Five
if (!empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img5'], '" alt="', !empty($modSettings['slider_short_text5']) ? $modSettings['slider_short_text5'] : '*', '" />';
                echo '<h5>
', !empty($modSettings['slider_url5']) ? '<a href="'. $modSettings['slider_url5']. '" target="_self">'. $modSettings['slider_title5']. '</a>' : $modSettings['slider_title5'], '
</h5>
', !empty($modSettings['slider_short_text5']) ? '<span>'. $modSettings['slider_short_text5']. '</span>' : '', '
</div> 
</li>';
}
// Item Six
if (!empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img6'], '" alt="', !empty($modSettings['slider_short_text6']) ? $modSettings['slider_short_text6'] : '*', '" />';
                echo '<h6>
', !empty($modSettings['slider_url6']) ? '<a href="'. $modSettings['slider_url6']. '" target="_self">'. $modSettings['slider_title6']. '</a>' : $modSettings['slider_title6'], '
</h6>
', !empty($modSettings['slider_short_text6']) ? '<span>'. $modSettings['slider_short_text6']. '</span>' : '', '
</div> 
</li>';
}
echo '</ul>
</div>
</div>
</div>
<script type="text/javascript">
var _lofmain =  $(\'lofslidecontent45\');
var _lofscmain = _lofmain.getElement(\'.lof-main-wapper\');
var _lofnavigator = _lofmain.getElement(\'.lof-navigator-outer .lof-navigator\');
var object = new LofFlashContent( _lofscmain,
  _lofnavigator,
  _lofmain.getElement(\'.lof-navigator-outer\'),
  { fxObject:{ transition:Fx.Transitions.Quad.easeInOut,  duration:800},
interval:3000,
direction:\'opacity\' } );
object.start( true, _lofmain.getElement(\'.preload\') );
</script>';
}
//End of SMF Slider v.1


And add this just above it.
Code: [Select]
if ($context['user']['is_guest'])
Title: Re: SMF Content Slider v.1
Post by: moguns on September 18, 2011, 05:14:20 PM
Just tested and it still shows up on user's and guests. Any other ideas? 
Title: Re: SMF Content Slider v.1
Post by: moguns on September 20, 2011, 05:22:02 PM
Meh?
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 21, 2011, 01:32:22 PM
Mod updated. Changed the slider behaviour as it wont show everywhere else but the boardindex.  ;)
Title: Re: SMF Content Slider v.1
Post by: Biology Forums on September 21, 2011, 06:02:50 PM
I wish this were available for 1.x! Could you port it and would it be hard?

Also, what javascript did you used to write this mod?
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 21, 2011, 07:00:45 PM
I wish this were available for 1.x! Could you port it and would it be hard?

Also, what javascript did you used to write this mod?

It shouldnt be hard to port to 1.1.x. It just that once 2.0 RC1  came out, i never looked back.

I use google mootools.... http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools-yui-compressed.js
Title: Re: SMF Content Slider v.1
Post by: Biology Forums on September 21, 2011, 07:58:01 PM
I wish this were available for 1.x! Could you port it and would it be hard?

Also, what javascript did you used to write this mod?

It shouldnt be hard to port to 1.1.x. It just that once 2.0 RC1  came out, i never looked back.

I use google mootools.... http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools-yui-compressed.js

Thanks BlueDevil, I just never plan on changing to 2.x, well not in a long while.

Also, would you have a sample of this mod actually working (live demo?)
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 21, 2011, 08:13:44 PM
Yep, I don't use it in the boardintex.php. I took the entire code bit and put it in a php block using tiny portal.
 http://www.chevyavalancheclub.com/index.php
Title: Re: SMF Content Slider v.1
Post by: Biology Forums on September 21, 2011, 09:38:11 PM
Yep, I don't use it in the boardintex.php. I took the entire code bit and put it in a php block using tiny portal.
 http://www.chevyavalancheclub.com/index.php

I'm sold, I really like this. Please, someone, port it to 1.x!
Title: Re: SMF Content Slider v.1
Post by: moguns on September 25, 2011, 09:30:52 AM
Thanks BD,

But still no way to make it to where guest only?
Title: Re: SMF Content Slider v.1
Post by: Mick. on September 25, 2011, 11:03:45 AM
Moguns, this works...

Find:
Code: [Select]
//SMF Slider v.1 by: bluedevilcustoms.com
global $modSettings;

Add after:
Code: [Select]
if ($context['user']['is_logged'])
Title: Re: SMF Content Slider v.1
Post by: acesfool on October 23, 2011, 09:53:47 AM
Hi. I like this mod. I'm having one problem with it. It seems to install and when I enter the settings the objects show up where they're supposed to. But it seems to stretch out my page. Just below the slider is a very long patch of blank page before getting to the forums. In that stretch of blank page are 3 or 4 circles that appear to be trying to load something. It's hard to explain but I'm not sure if I'm allowed to link to my forum here.
Title: Re: SMF Content Slider v.1
Post by: kenng on October 29, 2011, 09:49:58 AM
If this mod can fetch topic from forum, it will work like a charm! Thanks again, you did a great job! RIght now i have to enter image, links, description manually . Hope you can update to fetch topic from forum! will save many people!
Title: Re: SMF Content Slider v.1
Post by: Mick. on October 29, 2011, 11:00:07 AM
If this mod can fetch topic from forum, it will work like a charm! Thanks again, you did a great job! RIght now i have to enter image, links, description manually . Hope you can update to fetch topic from forum! will save many people!
it is a good idea but the mod stays as is. Hey its free ta know? ;)
Title: Re: SMF Content Slider v.1
Post by: kenng on October 29, 2011, 10:11:50 PM
I know that :) Thanks for the mod
Title: Re: SMF Content Slider v.1
Post by: TheListener on October 30, 2011, 01:00:21 AM
As an FYI

The next version of Simple Portal will have header and footer blocks.

This mod would look good in a header block.


Went to install on test forum and:

The package manager currently allows only these file types: zip, tgz, tar.gz.

The file from this topic had the above. From bdc the file was ok.
Title: Re: SMF Content Slider v.1
Post by: Swifty550 on November 21, 2011, 12:03:57 PM
Is there a way so that I can make the main images the link?
Title: Re: SMF Content Slider v.1
Post by: August_Shade on November 26, 2011, 09:23:14 AM
http://www.rpgfaction.com/gameon/forum/

I have installed the mod but it keeps only charging the images. I really don't know if i have commited some mistake.
Image link: http://www.rpgfaction.com/essencial/slideshow/teste01.png
PS: i have put all 6 images, links, descriptions.
The size is 900x300 right? the image extension, can be .jpg/.png/.gif or there are some problem?
Title: Re: SMF Content Slider v.1
Post by: Mick. on November 26, 2011, 09:37:12 AM
http://www.rpgfaction.com/gameon/forum/

I have installed the mod but it keeps only charging the images. I really don't know if i have commited some mistake.
Image link: http://www.rpgfaction.com/essencial/slideshow/teste01.png
PS: i have put all 6 images, links, descriptions.
The size is 900x300 right? the image extension, can be .jpg/.png/.gif or there are some problem?


Its not loading.  Youre using a custom theme.  Make sure the edits to the index.template.php are made on that custom theme youre using.

Use the parser ;)
Title: Re: SMF Content Slider v.1
Post by: August_Shade on November 26, 2011, 11:06:54 AM
Even in the default theme goes like this(like it's eternally charging).
www.rpgfaction.com/gameon/forum

It may be a conflict with some other mod? I received a mp about "menu order mod", may be the case it's it?
Title: Re: SMF Content Slider v.1
Post by: djdaterror on January 27, 2012, 04:05:00 PM
Hola tengo un problema,

With the mod recent installed the column of replys / visits is desconfigured and vey long.

The problem is in the style.css of the mod¿¿ 
Title: Re: SMF Content Slider v.1
Post by: ShadyGame on February 05, 2012, 06:53:51 PM
nevermind...
Title: Re: SMF Content Slider v.1
Post by: trekkie2444 on May 19, 2012, 08:01:18 AM
Is there a way to make this guy vertical like this in a Simpleportal box?

http://davidwalsh.name/mootools-kwicks
Title: Re: SMF Content Slider v.1
Post by: ladesman on July 16, 2012, 08:14:24 AM
hello, i'm new here
how to make this happen in SMF 2.02??  :-[
Title: Re: SMF Content Slider v.1
Post by: K33NY on August 31, 2012, 10:04:48 AM
hello, i'm new here
how to make this happen in SMF 2.02??  :-[

yeah im wondering about this to :S
Title: Re: SMF Content Slider v.1
Post by: johnpaul2k2 on August 31, 2012, 12:50:52 PM
Is there a way to make this guy vertical like this in a Simpleportal box?

http://davidwalsh.name/mootools-kwicks
hello, i'm new here
how to make this happen in SMF 2.02??  :-[

this is what i have been asking !!!! i need vertical and also work with 2.0.2 instead of switching to other older version
Title: Re: SMF Content Slider v.1
Post by: Skaty on September 03, 2012, 09:56:13 AM
2.0.2 pls !!
Title: Re: SMF Content Slider v.1
Post by: phantomm on September 03, 2012, 10:04:42 AM
2.0.2 pls !!
Emulate SMF 2.0.1 => How can I install a mod that doesn't work in my SMF version? (http://wiki.simplemachines.org/smf/How_can_install_a_mod_that_doesn%27t_work_in_my_SMF_version)
Title: Re: SMF Content Slider v.1
Post by: LOVELORD on September 30, 2012, 07:06:28 PM
When I install this script other java script stop working. I use Extreme 6 Theme, and when I use this modification menu slider stop work.

Here is code:

Code: [Select]
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];
     echo '
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/mootools.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/imagemenu.js"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['theme_url'], '/imagemenu2.js"></script>';
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/slider-css/style.css" />
        <script language="javascript" type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools-yui-compressed.js"></script>
        <script language="javascript" type="text/javascript" src="', $settings['default_theme_url'], '/slider-js/lofslidernews.mt11.js"></script>';

Is there any chance to fix this and to start menu work.
Title: Re: SMF Content Slider v.1
Post by: ProtoGT on November 12, 2012, 03:04:29 AM
Is there any way to get it to pull information from a certain forum or using simpleportal articles so it updates automatically?
Title: Re: SMF Content Slider v.1
Post by: JoliePittOnline on January 17, 2013, 03:18:55 AM
Hi. I like this mod. I'm having one problem with it. It seems to install and when I enter the settings the objects show up where they're supposed to. But it seems to stretch out my page. Just below the slider is a very long patch of blank page before getting to the forums. In that stretch of blank page are 3 or 4 circles that appear to be trying to load something. It's hard to explain but I'm not sure if I'm allowed to link to my forum here.


That is happening to me too. :(
Title: Re: SMF Content Slider v.1
Post by: antivladinforum on March 09, 2013, 06:46:27 AM
any update for 2.0.4 version
Title: Re: SMF Content Slider v.1
Post by: dimspace on March 09, 2013, 12:16:41 PM
any update for 2.0.4 version

works fine in 2.0.4

there is virtually no difference between .02 and .04 just bugfixes
Title: Re: SMF Content Slider v.1
Post by: tMicky on May 14, 2013, 10:51:46 AM
Hello Can someone help me with this.

I emulated to 2.0 and installed on my 2.04 Forum.
I installed on the default theme and my custom theme - it said it was successful, no errors.

I enabled the slider, added some items and all I got was 3 blank spaces and it moved my board index down.
So I did the suggestion in post 2, removed the items from my boardindex.template.php and copied them to a top block in simple portal.

Same thing happened, all I have is a constant loading image and nothing shows up.

any advice?
Title: Re: SMF Content Slider v.1
Post by: Xarkurai on June 12, 2014, 04:22:18 PM
Yo Mick.,

Just wanted to thank you for this awesome mod.
Title: Re: SMF Content Slider v.1
Post by: techbot on September 10, 2015, 12:07:16 PM
Mod doesn't work on 2.0.7
Title: Re: SMF Content Slider v.1.1
Post by: Tricky-Ricky on January 29, 2019, 02:54:27 PM
Hey Mick this still workd fantastic but how would I have it on portal only not the forum??
Title: Re: SMF Content Slider v.1.1
Post by: Mick. on January 29, 2019, 03:01:29 PM
Hey Mick this still workd fantastic but how would I have it on portal only not the forum??
Wow,.... didnt think folks still using this. Been wanting to make a more modern one tho...., anyways,

To use this mod with portals,... (Works best with TinyPortal as it uses the center wide blocks)

Remove this entire bit of code from the index.template.php and simply paste it to a PHP block in your portal of choice.

Fallbacks:
To use with simple portal, either left or right blocks cannot be used. Remember, the slider is quite wide. Create a 'Top" PHP block and wolla!

Code: [Select]
//SMF Slider v.1 by: bluedevilcustoms.com
global $modSettings;
if (!empty($modSettings['slider_enabled']) && (!empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']) || !empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']) || !empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']) || !empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']) || !empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']) || !empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6'])))
{
echo '<br />
<div class="center">
<div id="lofslidecontent45" class="lof-slidecontent">
<div class="preload"><div>
</div>
</div>
<!-- MAIN CONTENT -->
<div class="lof-main-wapper">
', !empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img1']. '" title="'. $modSettings['slider_title1']. '" alt="'. $modSettings['slider_title1']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img2']. '" title="'. $modSettings['slider_title2']. '" alt="'. $modSettings['slider_title2']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img3']. '" title="'. $modSettings['slider_title3']. '" alt="'. $modSettings['slider_title3']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img4']. '" title="'. $modSettings['slider_title4']. '" alt="'. $modSettings['slider_title4']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img5']. '" title="'. $modSettings['slider_title5']. '" alt="'. $modSettings['slider_title5']. '" height="300" width="900"></img></div>' : '', '
', !empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6']) ? '<div class="lof-main-item"><img src="'. $modSettings['slider_img6']. '" title="'. $modSettings['slider_title6']. '" alt="'. $modSettings['slider_title6']. '" height="300" width="900"></img></div>' : '', '
</div>   
<!-- END MAIN CONTENT -->
<!-- NAVIGATOR -->
<div class="lof-navigator-outer">
<ul class="lof-navigator">';
// Item One
if (!empty($modSettings['slider_title1']) && !empty($modSettings['slider_img1']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img1'], '" alt="', !empty($modSettings['slider_short_text1']) ? $modSettings['slider_short_text1'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url1']) ? '<a href="'. $modSettings['slider_url1']. '" target="_self">'. $modSettings['slider_title1']. '</a>' : $modSettings['slider_title1'], '
</h3>
', !empty($modSettings['slider_short_text1']) ? '<span>'. $modSettings['slider_short_text1']. '</span>' : '', '
</div> 
</li>';
}
// Item Two
if (!empty($modSettings['slider_title2']) && !empty($modSettings['slider_img2']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img2'], '" alt="', !empty($modSettings['slider_short_text2']) ? $modSettings['slider_short_text2'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url2']) ? '<a href="'. $modSettings['slider_url2']. '" target="_self">'. $modSettings['slider_title2']. '</a>' : $modSettings['slider_title2'], '
</h3>
', !empty($modSettings['slider_short_text2']) ? '<span>'. $modSettings['slider_short_text2']. '</span>' : '', '
</div> 
</li>';
}
// Item Three
if (!empty($modSettings['slider_title3']) && !empty($modSettings['slider_img3']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img3'], '" alt="', !empty($modSettings['slider_short_text3']) ? $modSettings['slider_short_text3'] : '*', '" />';
                echo '<h3>
', !empty($modSettings['slider_url3']) ? '<a href="'. $modSettings['slider_url3']. '" target="_self">'. $modSettings['slider_title3']. '</a>' : $modSettings['slider_title3'], '
</h3>
', !empty($modSettings['slider_short_text3']) ? '<span>'. $modSettings['slider_short_text3']. '</span>' : '', '
</div> 
</li>';
}
// Item Four
if (!empty($modSettings['slider_title4']) && !empty($modSettings['slider_img4']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img4'], '" alt="', !empty($modSettings['slider_short_text4']) ? $modSettings['slider_short_text4'] : '*', '" />';
                echo '<h4>
', !empty($modSettings['slider_url4']) ? '<a href="'. $modSettings['slider_url4']. '" target="_self">'. $modSettings['slider_title4']. '</a>' : $modSettings['slider_title4'], '
</h4>
', !empty($modSettings['slider_short_text4']) ? '<span>'. $modSettings['slider_short_text4']. '</span>' : '', '
</div> 
</li>';
}
// Item Five
if (!empty($modSettings['slider_title5']) && !empty($modSettings['slider_img5']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img5'], '" alt="', !empty($modSettings['slider_short_text5']) ? $modSettings['slider_short_text5'] : '*', '" />';
                echo '<h5>
', !empty($modSettings['slider_url5']) ? '<a href="'. $modSettings['slider_url5']. '" target="_self">'. $modSettings['slider_title5']. '</a>' : $modSettings['slider_title5'], '
</h5>
', !empty($modSettings['slider_short_text5']) ? '<span>'. $modSettings['slider_short_text5']. '</span>' : '', '
</div> 
</li>';
}
// Item Six
if (!empty($modSettings['slider_title6']) && !empty($modSettings['slider_img6']))
{
echo '<li>
<div>';
echo '<img src="', $modSettings['slider_img6'], '" alt="', !empty($modSettings['slider_short_text6']) ? $modSettings['slider_short_text6'] : '*', '" />';
                echo '<h6>
', !empty($modSettings['slider_url6']) ? '<a href="'. $modSettings['slider_url6']. '" target="_self">'. $modSettings['slider_title6']. '</a>' : $modSettings['slider_title6'], '
</h6>
', !empty($modSettings['slider_short_text6']) ? '<span>'. $modSettings['slider_short_text6']. '</span>' : '', '
</div> 
</li>';
}
echo '</ul>
</div>
</div>
</div>
<script type="text/javascript">
var _lofmain =  $(\'lofslidecontent45\');
var _lofscmain = _lofmain.getElement(\'.lof-main-wapper\');
var _lofnavigator = _lofmain.getElement(\'.lof-navigator-outer .lof-navigator\');
var object = new LofFlashContent( _lofscmain,
  _lofnavigator,
  _lofmain.getElement(\'.lof-navigator-outer\'),
  { fxObject:{ transition:Fx.Transitions.Quad.easeInOut,  duration:800},
interval:3000,
direction:\'opacity\' } );
object.start( true, _lofmain.getElement(\'.preload\') );
</script>';
}
//End of SMF Slider v.1
Title: Re: SMF Content Slider v.1.1
Post by: Tricky-Ricky on January 29, 2019, 03:10:28 PM
Ah yes bud that works well but its still showing in the forum??
Title: Re: SMF Content Slider v.1.1
Post by: Mick. on January 29, 2019, 03:12:21 PM
Ah yes bud that works well but its still showing in the forum??
Did you removed that code from the index.template?
Title: Re: SMF Content Slider v.1.1
Post by: Tricky-Ricky on January 29, 2019, 03:12:59 PM
Yes I did bud
Title: Re: SMF Content Slider v.1.1
Post by: Mick. on January 29, 2019, 03:13:38 PM
Yes I did bud
I told you wrong.... i just parsed it. That code is in the BoardIndex.template.php
Title: Re: SMF Content Slider v.1.1
Post by: Tricky-Ricky on January 29, 2019, 03:15:55 PM
Fantastic bud works a treat

Thanks again..
Title: Re: SMF Content Slider v.1.1
Post by: RoadWarriror on August 20, 2019, 07:18:14 PM
Is there a current version of this?
Title: Re: SMF Content Slider v.1.1
Post by: Mick. on August 21, 2019, 11:38:58 AM
Is there a current version of this?
no. It's very outdated. Been wanting to redo this with modern coding and compatibility to latest smf version but real life has me busy in other ventures
Title: Re: SMF Content Slider v.1.1
Post by: Mick. on August 21, 2019, 07:02:48 PM
Is there a current version of this?
This always been one of my fave mods. So worked on something modern a bit ago. Just need to add the php calls and package it. My schedule is very tight to have fun with SMF but i'll try to finish it. Check out a rough demo here, https://codepen.io/idesignsmf/pen/BaBQGBj
Title: Re: SMF Content Slider v.1.1
Post by: Rock Lee on August 22, 2019, 01:17:06 PM
This always been one of my fave mods. So worked on something modern a bit ago. Just need to add the php calls and package it. My schedule is very tight to have fun with SMF but i'll try to finish it. Check out a rough demo here, https://codepen.io/idesignsmf/pen/BaBQGBj

I will be waiting with pleasure, I have used the old version somewhat modified for some of my sites that unfortunately is no longer online now.


Regards!