Advertisement:

Author Topic: SMF Content Slider v.1.1  (Read 44198 times)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF Content Slider v.1
« Reply #40 on: September 15, 2011, 07:46:24 PM »
Not a problem

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #41 on: September 15, 2011, 08:07:55 PM »
Thanx lab ;)

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: SMF Content Slider v.1
« Reply #42 on: September 15, 2011, 08:14:30 PM »
You're welcome :) Hope you've been doing well?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #43 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.  ;)

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: SMF Content Slider v.1
« Reply #44 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?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #45 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.

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: SMF Content Slider v.1
« Reply #46 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

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #47 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'])

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: SMF Content Slider v.1
« Reply #48 on: September 18, 2011, 05:14:20 PM »
Just tested and it still shows up on user's and guests. Any other ideas? 

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: SMF Content Slider v.1
« Reply #49 on: September 20, 2011, 05:22:02 PM »
Meh?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #50 on: September 21, 2011, 01:32:22 PM »
Mod updated. Changed the slider behaviour as it wont show everywhere else but the boardindex.  ;)

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Content Slider v.1
« Reply #51 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?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #52 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

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Content Slider v.1
« Reply #53 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?)

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #54 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

Offline Biology Forums

  • SMF Hero
  • ******
  • Posts: 3,781
    • StudyForcePS on Facebook
    • @studyforceps on Twitter
Re: SMF Content Slider v.1
« Reply #55 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!

Offline moguns

  • Semi-Newbie
  • *
  • Posts: 73
Re: SMF Content Slider v.1
« Reply #56 on: September 25, 2011, 09:30:52 AM »
Thanks BD,

But still no way to make it to where guest only?

Offline Mick.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,076
  • Gender: Male
    • idesignSMF on Facebook
    • @idesign360 on Twitter
    • idesignSMF.com
Re: SMF Content Slider v.1
« Reply #57 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'])

Offline acesfool

  • Newbie
  • *
  • Posts: 7
Re: SMF Content Slider v.1
« Reply #58 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.

Offline kenng

  • Semi-Newbie
  • *
  • Posts: 34
Re: SMF Content Slider v.1
« Reply #59 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!