Buscando...

Foro » Need help with Skinless theme's Arrows & Saving Options

Tagged: 

This topic has 2 voices, contains 10 replies, and was last updated by  soriya 241 días ago.

Viewing 11 posts - 1 through 11 (of 11 total)
soriya

Need help with Skinless theme's Arrows & Saving Options 22/9/2011 at 13:27 #5840

First off, I would like to say that I love this plug-in. Helps me greatly with me site.

Anyway, after spending a whole afternoon coding a new add-on and a theme from the Skinless theme, i realized that I wasn’t able to change the codes for the arrow. I didn’t know how to do it with my level of php, which is not that great.

This is the code provided with the Skinless theme.

<div class="theme-skinless" style="width:">

<a href="javascript:stepcarousel.stepBy('carousel_', -)">
<a href="javascript:stepcarousel.stepBy('carousel_', )">

and the result is that i can only use words for the arrows. also, i had to place at the top of the slide.

however, i want to convert it to arrows. and if possible, be something similar to the slide on this site: http://withs2.com/

The second problem is that in the process of using WP Carousel, I created an add-on and a theme for my site. Both works great as I was able to have the form shows up in the carousel and have the information shows up my carousel on the page.

However, if I leave the WP Carousel Dashboard and come back (or even refreshes it), the infos I had in the description would disappear, and I have to put it in again if I were to modify any other info and save it.

If you need to see the code for both the add-on and the theme, I’ll give it to you. However, the theme is modified from the Skinless theme, and therefore doesn’t contain changes that may cause that problem.

Thank you for helping me. I hope to get some answers soon. :)

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 22/9/2011 at 13:31 #5841

After looking at the other theme, I was able to adopt this and played around with the css and ended up with the following code:

<div class="theme-skinless" style="width:">

<a href="javascript:stepcarousel.stepBy('carousel_', -)">

<a href="javascript:stepcarousel.stepBy('carousel_', )">

With this, I was able to see the arrows where I want it. However the arrow would just freeze and not slide the carousel when I click on it.

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 22/9/2011 at 14:13 #5842

so far, with slide arrow problem, this is what’s it looks liek on the site: http://www.elusivescans.net/

See how to arrow is not working unless i click on letter? what i want is for that to disappear but the arrow to still work.

Reply To: Need help with Skinless theme's Arrows & Saving Options 22/9/2011 at 18:23 #5844

I’ve replied you on WordPress.org, but in any case, I’ve checked your site. Just add the following CSS code:

.theme-skinless .arrow a { display:block; width:25px; height:25px; }
.theme-skinless .arrow a span { display:none; }

It should fix your problem with the arrows.

And about the Addon you made, please, sent it to me and I’ll check it as soon as posible.

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 23/9/2011 at 0:01 #5857

thank you so much for helping! the code works perfectly.

here’s the link to download the add-on: http://www.mediafire.com/?rjoozdfvi7uj2qj

thanks ahead for helping me.

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 23/9/2011 at 4:09 #5860

this is very helpful. Thank you so much.

Since we’re on the topic of arrows, I want to know if it’s possible to make the arrow disappear when it’s at the very end of the slide, or at the very beginning. That way, people would know that you can’t move the arrow in that direction anymore. Is this possible?

an example is also on this site: http://withs2.com/
(the arrow would disappear if you’re at the 1st carousel panel and at the last carousel panel)

I know they have a css code that goes something like this:

.theme .arrow-right-disabled,
.theme .arrow-right-disabled:hover,
.theme .arrow-right-disabled:active {
cursor: default;
background-position: -75px 0;
}

.theme .arrow-left-disabled,
.theme .arrow-left-disabled:hover,
.theme .arrow-left-disabled:active {
cursor: default;
background-position: -75px 0;
}</code

is there anyway i can incorporate this into my code? Thanks.

Reply To: Need help with Skinless theme's Arrows & Saving Options 23/9/2011 at 17:45 #5864

You can add this behaviour, but it is not as easy as it seems to be.

StepCarousel (the default carousel’s engine of WP Carousel) accepts to set an image for the buttons in its config with the following syntax:

defaultbuttons: {enable: true, moveby: 1, leftnav: ['arrowl.gif', -10, 100], rightnav: ['arrowr.gif', -10, 100]}

StepCarousel manages when you can slide the panels and then it shows (or not) the arrows when needed.

But as WP Carousel is designed to use more than one carousel, if you modify the Javascript code to set up StepCarousel, the changes you made will affect to every carousel, and to every theme.

So imagine you want a carousel with green arrows and other with red arrows. With WP Carousel’s theme’s API you can handle it, but with StepCarousel default images you can’t.

I think it is easier to enable loop than disabling arrows when not needed.

If you want to use this StepCarousel feature, just open wp-carousel.php and search for the following code:

defaultbuttons: {

Then replace the old images with your owns.

I’ll check your AddOn this weekend.

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 23/9/2011 at 18:49 #5865

we’ll, i don’t mind that since i’ll be only using one carousel on the site. as for the loop, I’m a little reluctant to use it because if i stay on the same page for a long period of time, it gets crazy, sliding slow then fast, then faster.

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 23/9/2011 at 19:26 #5866

nvm with the arrow. I decided to use the loop. I didn’t realized that autoslide and loop was different.

Reply To: Need help with Skinless theme's Arrows & Saving Options 24/9/2011 at 15:40 #5880

I’ve checked you rAddon and I don’t understand why you are using an Addon.

First of all, index.php file is not properly written as you are setting up the adding inside a function and then calling that functions. That is not the way to define an Addon and it crashes WP Carousel.

Furthermore, you are defining an Addon that uses the same functions that uses another Addon to get its content, so you’ll get the same return you would get if you used the original Addon.

Moreover, at the settings array, you are defining as fields as Customized Content uses (title, image url, link url and description). Why? You are using functions that require an ID, but instead of asking for an ID to set up the item, you ask for a title, a description and so on. So at the end your Addon does not do anything.

If you want to set up manually the title, the description, the image url and the link url, you should use Customized Content, which is built-in, and not an Addon. If you want to use an Addon to get items from a specific post-type, you should ask for an ID instead of titles and descriptions, and you should provide your own functions to get item’s information rather than using other Addon’s ones.

If you really need a custom Addon, just check how are done the default Addons and use its code as template.

soriya

Reply To: Need help with Skinless theme's Arrows & Saving Options 24/9/2011 at 18:49 #5882

Okay, I understand what you are saying. I didn’t think of that at first because i did the add-son first before i started playing around with the theme. I think what I did was to find a way to incorporate what I want into the default skinless theme without having to change anything with that theme. Then after i created the add, I decided to make a new theme, and therefore didn’t even think of coming back to the customized theme.

As for the add-on, with my limited experience with php, I have to write it based on the ones from the other add-on, so that explains why it’s all over the place.

LOL. Sorry for bothering you on this. Thank you so much for your time and effort to help me. Have a great weekend.

Viewing 11 posts - 1 through 11 (of 11 total)

This topic has been closed to new replies.