2012-12-17, 07:16 PM
This is a nice plugin! Is there anyway to make the slideshow more random? It plays the same sequence with every page load...would be great to be random with every page load??
(2012-12-17, 07:16 PM)RocketFoot Wrote: [ -> ]This is a nice plugin! Is there anyway to make the slideshow more random? It plays the same sequence with every page load...would be great to be random with every page load??
$('#myslides').cycle({
fx: 'fade',
speed: 2500
});
$('#myslides').cycle({
fx: 'fade',
speed: 2500,
random: 1
});
(2012-12-18, 02:49 PM)Kylin Wrote: [ -> ]Ok, one last thing (or two I guess) and I'll be set.
1. The image won't seem to center itself in the portal block for me. I removed the "float:left" but that did nothing. Any ideas? Would I need to use margins/padding instead?
Quote:2. I can't seem to get the index block to the sidebar no matter what I do. This is the big one getting to me right now. Spent most of the day yesterday working on it to no avail. I'm using Nayar's sidebox plugin, but putting in the code an additional box just creates a blank box. I've also been trying to move the {$indexezgallery} code elsewhere on the index template, but it only seems possible to move it up and down, not to the side.
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/shoutbox.js"></script>
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
{$indexezgallery}
{$forums}
<sf_shoutbox>
{$boardstats}
<br style="clear: both" />
{$footer}
</div>
</body>
</html>
(2012-12-18, 04:48 PM)Kylin Wrote: [ -> ]Ah, that makes sense. Now I just gotta find which template file the issue is in.
Quote:As for the second issue, the current index template looks like this at the moment:
<html> <head> <title>{$mybb->settings['bbname']}</title> {$headerinclude} <script type="text/javascript" src="jscripts/shoutbox.js"></script> <script type="text/javascript"> <!-- lang.no_new_posts = "{$lang->no_new_posts}"; lang.click_mark_read = "{$lang->click_mark_read}"; // --> </script> </head> <body> {$header} {$indexezgallery} {$forums} <sf_shoutbox> {$boardstats} <br style="clear: both" /> {$footer} </div> </body> </html>
$sbwelcome,$sbpms,$sbsearch,$sbstats,$sbwhosonline,$sblatestthreads,$gobutton,$lastvisit,$sbaddbox1,$sbaddbox2;
Quote:$sblatestthreads , $sbaddbox1, $sbsearch those three boxes (i think you use).
<html>
<head>
<title>{$mybb->settings['bbname']}</title>
{$headerinclude}
<script type="text/javascript" src="jscripts/shoutbox.js"></script>
<script type="text/javascript">
<!--
lang.no_new_posts = "{$lang->no_new_posts}";
lang.click_mark_read = "{$lang->click_mark_read}";
// -->
</script>
</head>
<body>
{$header}
<table width="100%" border="0">
<tr>
<td width="180px" valign="top">
{$indexezgallery}
{$sblatestthreads}
{$sbaddbox1}
{$sbsearch}
</td>
<td width="auto" valign="top">
{$forums}
<sf_shoutbox>
{$boardstats}
</td>
</tr>
</table>
<br style="clear: both" />
{$footer}
</div>
</body>
</html>
(2012-12-19, 02:47 PM)Kylin Wrote: [ -> ]I decided to just ditch the sidebox plugin. Was causing more issues than it was worth. I instead opted for pure template edits via the jQuery collapsible sidebar. I now have the box positioned where I want it. Ditching the plugin even drastically reduced the number of queries so even better
I'm still unable to solve the center issue though. If I go into the portalezgallery_image template and remove the max-height and max-width dimensions, the image reverts to its large original size and takes up way too much of the page. Is there another workaround for this (or do I need to do more than just remove the max-height/width coding)? Edit: Kinda fixed it. Removed max-height and max-width and just replaced with height and width. But the images look pretty bad now that they get squeezed. I'll have to keep working on the dimensions I guess. Is there a way to simply use the thumbnail version of the ezGallery images instead by chance?
#myslides {
width: 340px !important;
position: relative;
margin: 0px auto;
}
(2012-12-19, 05:40 PM)Kylin Wrote: [ -> ]Nope, didn't fix it
I decided to test it further by installing a completely new forum on another section of my site. Everything worked fine until I uploaded two different sized images. Once the images are somewhat vastly different in size (width), the centering stops.
Also, the issue in Chrome is still there. The panel the picture is in does not extend the full size of the image. I don't have this problem in firefox or IE (maybe due to my Firefox version, I'm not sure).
<style type="text/css">
#myslides {
width: 340px;
float: left;
padding: 0;
margin: 0 auto;
margin-top: 20px;
text-align: center;
}
</style>
<style type="text/css">
#myslides {
margin: 0px auto;
width: 300px;
height: 300px;
text-align: center;
line-height: 300px;
}
#insidediv {
width: 300px;
height: 300px;
}
#insidediv img {
vertical-align : middle;
max-width:300px;
max-height:300px;
}
</style>
<div id="insidediv">
<a href="{$iPath}">
<img id="myslideimg" src="{$iPath}">
</a>
</div>