Chris
Forum Replies Created
-
The original changes included comments about the authors, and comments are removed by this forum’s software, so here they are for full disclosure:
Pause carousel scrolling when a user mouses overs an item and restart the scrolling when they mouse out. Written by cormac at finisco dot com 19/2/2009 based on work by Jeremy Mikola: https://groups.google.com/group/jquery-en/browse_thread/thread/f550b94914d10065
I would like this too.
It’s not a perfect solution, but I found a solution in the jQuery forums (originally posted in google groups). When you hover over an image, it finishes scrolling the last image out and stops scrolling. It starts scrolling again when you stop hovering over the image, so moving the cursor from one image to another will cause it to scroll one more image.
Add the following to the settings in the sponsors-carousel.php, in the Initialize script, after the ‘auto’ setting, near line 160:
,initCallback: function(jc, state) { if (state == 'init') { jc.startAutoOrig = jc.startAuto; jc.startAuto = function() { if (!jc.paused) { jc.startAutoOrig(); } } jc.pause = function() { jc.paused = true; jc.stopAuto(); }; jc.play = function() { jc.paused = false; jc.startAuto(); }; $('li.jcarousel-item').mouseover(function() { jc.pause(); }); $('li.jcarousel-item').mouseout(function() { jc.play(); }); }; jc.play(); }
This is how my script looks:
$output .= "jQuery('#mycarousel".$randomid."').jcarousel({ scroll: ".stripslashes(get_option('scwp_scroll_amount'))." ,animation: ".$speed." ,wrap: 'circular' ,auto: " . $auto . " ,initCallback: function(jc, state) { if (state == 'init') { jc.startAutoOrig = jc.startAuto; jc.startAuto = function() { if (!jc.paused) { jc.startAutoOrig(); } } jc.pause = function() { jc.paused = true; jc.stopAuto(); }; jc.play = function() { jc.paused = false; jc.startAuto(); }; $('li.jcarousel-item').mouseover(function() { jc.pause(); }); $('li.jcarousel-item').mouseout(function() { jc.play(); }); }; jc.play(); } });
Forum: Plugins
In reply to: [Sponsors Carousel] Turn off LinkingRight now there is no easy way to do this. The link is built as part of the HTML in the sponsors_carousel function (inside the foreach section near lines 120-130) and it is used as part of the carousel structure. You might also be able to change the tag to a <span>, but I have not tried that, it may break it.
There are two things to do: remove the ‘href’ attribute and change the cursor.
You can also remove the target attribute and the if/else above that since you do not need to get the link. Be careful not to remove the anchor tags ( ) and the id and class attributes.
This is what I ended up with:
foreach ( $scwp_array as $id) { $output .= "<li><a "; $output .= " id=\"item".$i. "\" class=\"jcarousel-item\">"; if (get_option('scwp_show_titles')=='true') $output .= wp_get_attachment_image( $id,$thumb_size ); else $output .= wp_get_attachment_image( $id,$thumb_size, false, array(title=>"") ); $output .= "</li>\n"; $n++; }
Then, add this to your theme’s stylesheet or the plugin’s /skins/tango/skin.css so that it doesn’t change the cursor to a hand/pointer when you hover over the images:
.jcarousel-skin-tango .jcarousel-item { cursor: default; }
Forum: Plugins
In reply to: [Lightbox Gallery] [Plugin: Lightbox Gallery] Caption overlapping "Image x/y"I did not remove the code from the lightbox css file. It contains additional styles that are needed. The styles I used overwrite or add on to those styles.
In my case, I am not using the image title and description, I have inserted a gallery and have set the captions. So there may be some differences in this case. I will review the title and descriptions later today to see what differences there are.
Forum: Plugins
In reply to: [Lightbox Gallery] Overlapping textI posted how to fix this in the latest topic about this, .
Forum: Plugins
In reply to: [Lightbox Gallery] [Plugin: Lightbox Gallery] Caption overlapping "Image x/y"I had the same issue. Here is what I did and other things you can do to get different designs.
Add the styles below to your stylesheet, this will move the text up a little so that it covers the very bottom edge of the image, with a semi-transparent background and darker text.
#cboxTitle { background-color: white; bottom: 28px; color: #444444; opacity: 0.8; padding: 4px 0; }
For a more transparent look, you could make the text color completely black (#000000) and lower the opacity to maybe 0.7 or even 0.6. This also affects the text transparency so any lower starts to make it too hard to read.
If you want to go completely transparent, remove the background-color and opacity setting, and I would suggest adding a white text-shadow, something like “text-shadow: 1px 1px 1px #ffffff;” (adjust the px to get different shadow position and blur).
To put the text across the top instead of the bottom, replace “bottom: 28px;” with “top: 0;” and add “height: 12px;”.
For long text that wraps to two (or more) lines, adjust the bottom position higher or height higher by 16 for each additional line (two lines = 28px), and add “line-height: 14px;”.
You can adjust the height, line-height, and padding to get more or less spacing around the line(s) of text, something like “padding: 6px 0; height: 14px; line-height: 16px;” might look good.
Of course, there might be some differences depending on your theme too, so keep adjusting until you get it like you want.
Forum: Plugins
In reply to: [New User Approve] [Plugin: New User Approve] Paged Results and Mass ApproveSure, that would be great. I will get together the changes I have made and post them here later.
Forum: Plugins
In reply to: [New User Approve] [Plugin: New User Approve] Paged Results and Mass ApproveI have customized the plugin to fit my needs, but not like I “envisioned” above.
Here are the features I have added:
- Paged – shows 100 users at a time
- Mass Approve/Deny – Select multiple users by check-boxes, and select all (of the 100 that are displayed)
- Sort by (and display) Registration Date-Time (instead of alphabetically)
However, I did not add options to control these changes, they are all hard coded in the plugin file. So for example, there is no way to only show 50 users per page or 500 users per page, its hard coded at 100 (without editing the plugin file). There is also no way to switch between sorting alphabetically and sorting by registration date. I am planning to work on these options at some point, but it may be months before that happens.
Another feature that is needed is a way to mass delete the denied users, as right now they still exist after being denied and take up space in the database. I will be working on this mass delete feature very soon.
Once I get the mass delete added, I might look into the other options I want to add, if I have time I might see about getting those added too, then I will clean up the code and submit it to the author – maybe some of my changes will get included in an update.
Sorry, there are only 42 categories, no sub-categories.
Forum: Fixing WordPress
In reply to: How can I create a checklist of items in a WP page?Hi Ralph, Jesse contacted me about this feature since I have worked on WordPress site for him before. The idea of a plugin that could generate a front-end as extensive like this is great, but as far as I could find there is nothing like this yet, the best I could find was to integrate the user profile into a page complete with all the editable fields. So I wrote a plugin that filled Jesse’s needs.
It is no where near complete, but serves its purpose for what Jesse wanted to do. I have not had the time to develop this into the plugin it ‘should’ be: it has no instruction, no options, is limited to checkboxes, and no design aspects – I coded everything to fit Jesse’s theme. Contact me privately so we can discuss how it might work for you, I could customize/extend it to fit your needs.
Skype: Web4Guru
G-Mail/Chat/Talk: [email protected]
321-895-GURU(4878)Guess this problem still isn’t fixed. Only solution was to turn off Minify. Just updated to the latest version of the plugin and it still has this problem.
Noticed the minified css files used to be in separate folders for each site in the multi-site, now files are being generated in the main w3tc folder, but the stylesheet link is incorrect.
Tried auto and manually adding the CSS files, got a different stylesheet link structure, but was still incorrect.
Forum: Plugins
In reply to: [Hide Widget Title] [Plugin: Hide Widget Title] Can still see widget titlesAnd in the ajaxwidget.php, at line 10, change the h3 to the heading tag your theme uses, mine uses h4, which should look like this:
$description = "#".$title." h4 { display:none; }";
Then un-check, Save, re-check, and Save on all the widgets which should be hidden.
Forum: Plugins
In reply to: [Hide Widget Title] [Plugin: Hide Widget Title] Can still see widget titlesHeheh, I should test more thoroughly before posting, lol. Editing that style sheet is pointless because it is recreated any time you change the hide setting on a widget. So instead add the code to your themes style sheet, usually in /wp-content/themes/your-theme/styles.css.
Forum: Plugins
In reply to: [Hide Widget Title] [Plugin: Hide Widget Title] Can still see widget titlesBy the way, I forgot to mention the !important part of the styles, not sure if the second method needs this, but the first method that adds the unhide class does need to have !important in the styles, like this:
#text-9 h4 { display:none; } #text-8 h4 { display:none; } #text-6 h4 { display:none; } .unhide { display: inherit !important; }
(That is the whole style sheet)
Forum: Plugins
In reply to: [Hide Widget Title] [Plugin: Hide Widget Title] Can still see widget titlesRegarding the hidden headings in the widget content:
After looking some more, my theme’s widget content is inside a nested div with the class textwidget, like so:
<div id="text-6" class="widget-container widget_text"> <h4>This is the title</h4> <div class="textwidget"> <div style="text-align:center;"> <h4>This is the heading in the content</h4> </div> ...
I figure this might be standard, if it is you can fix this easier. Instead of making a unhide class and applying the class to my headings in the widget content, I used the class textwidget to reset the headings the same way.
Example:
BEFORE .unhide {display: inherit !important;} AFTER .textwidget h4 {display: inherit !important;} FOR ALL .textwidget h1, .textwidget h2, .textwidget h3, .textwidget h4, .textwidget h5, .textwidget h6 {display: inherit !important;}