News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF Content Slider v.1.1

Started by Mick., July 05, 2011, 05:45:27 PM

Previous topic - Next topic

tMicky

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?

Xarkurai

Yo Mick.,

Just wanted to thank you for this awesome mod.
Useful paid mod: Badge Awards - Award members for actions

techbot

Any help is appreciated. Scornful comments will be met with a blank stare

Tricky-Ricky

Hey Mick this still workd fantastic but how would I have it on portal only not the forum??

Mick.

Quote from: 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??
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!

//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

Tricky-Ricky

Ah yes bud that works well but its still showing in the forum??

Mick.

Quote from: Tricky-Ricky on January 29, 2019, 03:10:28 PM
Ah yes bud that works well but its still showing in the forum??
Did you removed that code from the index.template?

Tricky-Ricky


Mick.

Quote from: Tricky-Ricky on January 29, 2019, 03:12:59 PM
Yes I did bud
I told you wrong.... i just parsed it. That code is in the BoardIndex.template.php

Tricky-Ricky

Fantastic bud works a treat

Thanks again..

RoadWarriror

Is there a current version of this?

Mick.

Quote from: RoadWarriror on August 20, 2019, 07:18:14 PM
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

Mick.

Quote from: RoadWarriror on August 20, 2019, 07:18:14 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

-Rock Lee-

Quote from: Mick. on August 21, 2019, 07:02:48 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!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Tricky-Ricky

Hey Mick bud have you got a new updated version yet??

Mick.

Quote from: Tricky-Ricky on June 03, 2020, 05:35:08 AM
Hey Mick bud have you got a new updated version yet??
I'm waiting for rc3 to be released.

Irken

Hi i have a problem with this mod i using SMF 2.0.17 i can install all ok in my site i have only 1 category but when i create another category with a forum other slider its create under the slider but the second slider have no img and show like is reloading all the time and if i create another category with another forum thats happen again another slider but no img and reloading all the time... like 1 slider per category.

Mick.

Quote from: Irken on July 01, 2020, 09:32:06 PM
Hi i have a problem with this mod i using SMF 2.0.17 i can install all ok in my site i have only 1 category but when i create another category with a forum other slider its create under the slider but the second slider have no img and show like is reloading all the time and if i create another category with another forum thats happen again another slider but no img and reloading all the time... like 1 slider per category.
If you uninstall the mod, can you still make other categories? Also what mods you have installed?

Irken

Quote from: Mick. on July 02, 2020, 03:04:33 PM
Quote from: Irken on July 01, 2020, 09:32:06 PM
Hi i have a problem with this mod i using SMF 2.0.17 i can install all ok in my site i have only 1 category but when i create another category with a forum other slider its create under the slider but the second slider have no img and show like is reloading all the time and if i create another category with another forum thats happen again another slider but no img and reloading all the time... like 1 slider per category.
If you uninstall the mod, can you still make other categories? Also what mods you have installed?

if i unistall the mod i can make other categories and forums normal... with the slider i can make categories and forums but another slider is create under the first, i will adjunt img of the problem and the mods i using are this

Log Karma Actions   3.0
AvatarSelect   1.2.1
SMF Content Slider   v.1.1
Ohara YouTube Embed   1.2.11
Default Avatar   2.3

i use the theme https://custom.simplemachines.org/themes/index.php?lemma=2836

EDIT: the first img adjunt is the forum with one categorie the other 2 pics are the forum with a categorie with a forum if i create a categorie but don't create forum nothings happens with the slider

Mick.

#99
Hmm...that's odd. This mod been dloaded 3k times with no issues like this. Let me try to recreate this

Advertisement: