sumolari
Forum Replies Created
-
Are you using WordPress Multi User?
I heard about problems like that using WP Carousel in WordPress MU, but I can’t fix them because my server does not hold the requirements to install WordPress in multi-user mode.
Forum: Plugins
In reply to: [WP Carousel] Moved from subdirectory, WP Carousel brokenHow are you showing WP Carousel?
Using shortcode? Using
<?php wp_carousel(ID); ?>
? Using the Widget?Forum: Plugins
In reply to: [WP Carousel] Moved from subdirectory, WP Carousel brokenI read some days ago a topic about the same issue.
What I recommend is to ensure that WordPress’s options page have the correct paths, and also checking that the problem is that WP Carousel is using a wrong path.
In WP Carousel 1.0.1 I was asked to remove StepCarousel due to license problems, so if you use StepCarousel, it wont work unless you downgrade to WP Carousel 1.0 or lower.
$item['ID']
stores the ID of the post, so you can use WordPress functions to get the post’s object and then show the excerpt.Other way to solve the problem is to “cut” the value of
$item['DESC']
. Something like:<?php echo substr( $item['DESC'], 0, 20 )."..."; ?>
That code will print the first 20 characters of the string.
Forum: Plugins
In reply to: [WP Carousel] Moved from subdirectory, WP Carousel brokenI think you opened a topic about this in Sumolari.com. Sumolari.com is down right now due to bandwith limits, but in two days it will be online, so I think it is better to wait a couple of days and then continue the issue there.
Forum: Plugins
In reply to: [WP Carousel] [Plugin: WP Carousel] Messing up the PHP session dataI’m very busy right now, and I can’t fix a problem that I can’t see.
If you think WP Carousel is causing this problem with sessions, just try to fix it. If you find the problem I’ll fix it as soon as possible.
In any case, I want to rewrite the plugin and fix a lot of problems, but not now. I have no time to rewrite the plugin right now nor to look for a problem I can’t reproduce.
I think it’s bnc_wptouch_is_mobile(), but I’m not sure. You should ask the developers of WPTouch for this.
Edit: The code of that function is:
function bnc_wptouch_is_mobile() { global $wptouch_plugin; return ( $wptouch_plugin->applemobile && $wptouch_plugin->desired_view == 'mobile' ); }
That function returns if the user is in mobile interface, so you should create a new function, is_mobile() which detects just if the user is using a mobile, no matter he is using the mobile version of the site or the regular one, something like:
function is_mobile() { global $wptouch_plugin; return ( $wptouch_plugin->applemobile); }
I think it should work, but I haven’t tried it.
I’m not sure about that issue. I haven’t tried WP Carousel on mobile devices. Well, I have, but not having videos in the posts.
I think the easiest solution is disabling autoscrolling when the user is browser with a mobile device.
How to do this? Let’s assume you have a function named is_mobile() that returns true when the user is using a mobile phone and false when he is not.
Open wp-carousel.php and locate the following code (near line 1267):
if (!isset($value['AUTOSLIDE_POSTS'])) { $value['AUTOSLIDE_POSTS'] = 0; } else { $value['AUTOSLIDE_POSTS'] = (int) $value['AUTOSLIDE_POSTS']; }
When $value[‘AUTOSLIDE_POSTS’] is 0, autosliding is disabled, so we will have to modify that piece of code to take into account that independently the value set in config, if the user is using a mobile phone, it will be 0.
That is:
if (!isset($value['AUTOSLIDE_POSTS']) || is_mobile()) { $value['AUTOSLIDE_POSTS'] = 0; } else { $value['AUTOSLIDE_POSTS'] = (int) $value['AUTOSLIDE_POSTS']; }
How to define function is_mobile()? Well, there different ways. For instace, this post shows one of them.
A different solution is hiding WP Carousel when the user uses a mobile phone, but if the problem is solved disabling autosliding, I think this is not needed.
In any case, I’ve plans to rewrite WP Carousel, but it will take a lot of time, so use one of this solutions instead of waiting for a new release.
Thanks for using WP Carousel!
Forum: Plugins
In reply to: [WP Carousel] [Plugin: WP Carousel] scroll bars appear on carousel?Are you showing the carousels through the function wp_carousel, with shortcodes or it is integrated in your WordPress theme?
If the carousl is integrated, WP Carousel can’t toggle to jCarousel as the HTML structure of the carousel is created by your WordPress theme. In fact, internally it will be using jCarousel but as the HTML structure is not the correct one, you’ll see the scrollbars produced when StepCarousel is not loaded and you are using its HTML structure.
Forum: Plugins
In reply to: [WP Carousel] [Plugin: WP Carousel] scroll bars appear on carousel?WP Carousel 1.1 should use jCarousel by default. If it is not using it like in your case, I think the easiest way to solve the problem is:
0) Make a backup of WP Carousel’s folder
1) Download WP Carousel 1.0 and replace version 1.1 with version 1.0
2) Toggle to jCarousel all the carousels
3) Reupload your backupI want to release a new version of WP Carousel with that kind of bugs fixed, but I’m very busy this year, and I think this new version won’t be released until July-September. I know it’s a lot of time, but I’m really busy and I can’t work on WP Carousel right now.
Forum: Plugins
In reply to: [WP Carousel] [Plugin: WP Carousel] scroll bars appear on carousel?I’ve answered this question in the forum before.
Forum: Plugins
In reply to: [WP Carousel] [Plugin: WP Carousel] Messing up the PHP session dataWP Carousel does not use session_start(). WordPress starts the session before WP Carousel’s code is executed.
Forum: Plugins
In reply to: [WP Carousel] [Plugin: WP Carousel] Messing up the PHP session dataWP Carousel uses 2 session variables to store information about the active extras: $_SESSION[‘WP_CAROUSEL_CUSTOM_EXTRAS’] and $_SESSION[‘WP_CAROUSEL_EXTRAS’].
It uses two other session variables to store whether WordPress is executing the loop and the list of carousels shown.
It won’t use any other session variable.
If you are more specific I could help you more.
Forum: Plugins
In reply to: WP Carousel not work for me, Why?Which version of WP Carousel are you using?
Did you modify the name of the files? WP Carousel does not contain any file named carousel.php by default.
Forum: Fixing WordPress
In reply to: [WP Carousel] [Plugin: WP Carousel] content hiddened?I don’t know why, but I didn’t get the notification of your previous reply.
Just read the “Help” tab, you’ll find:
Posts’s text for the carousel
WP Carousel loads the text for the carousel in the following order:
1. Value of custom field wp_carousel_carousel_text
2. Posts’s exceprtBut as far as you have the ID of the item ($item[‘ID’]) you can use WordPress functions to get more data of the item, like custom fields, category, tags, author, etc.