Chris
Forum Replies Created
-
Ok, another update. The downside to commenting out the filters is that now content that consists of multiple paragraphs all runs together (as would be expected).
So instead of wrapping the content in paragraph tags, I changed it to div tags.
$lcp_display_output .= $this->get_content($single, 'div', 'lcp_content');Now the paragraphs and all the html comes out correctly with filters applied, but the [raw] tags are still displayed around both their separator shortcode’s output and your shortcode’s output.
Any idea what causes this?
So with a little testing, the obvious problem was applying filters to the content. I commented that out of the Catlist.php, line 292, and now it all works perfectly, [raw] tags and all.
Some additional info, here is the shortcode I am using:
[catlist name=my-category content=yes thumbnail=yes template=my-template]It’s not a perfect solution, I have a similar issue.
The jquery carousel scrolls by one logo at a time (or more depending on your “Scroll Amount” setting), and this does not interrupt that scrolling process, it simply pauses the script so the next scrolling process is not started. So after hovering over an image, the current scrolling process continues to scroll the logo at the far left out and the next logo is flush to the left side.
It also appears that mousing over an image and then back out really quick can cause the scrolling to stop until you scroll back over another logo. My guess is that the script is ready to be paused, but once you hover over an image and it receives the pause command, while it is still handling the last scroll process, it is not ready to un-pause so it does not catch the mouse leaving the image. If the mouse moves back over an image and back off, it starts up again (at least for me it does).
Also note my settings: I have slowed the scroll speed to 2000, have set the scroll amount to 1, and set auto-scroll to continuous. A faster scroll speed will lower the time it takes to pause, a higher scroll amount will cause more logos to be scrolled out before it pauses, and I’m not sure how the other auto-scroll settings will affect it.
Forum: Plugins
In reply to: [Highlight Search Terms] How To Run Again After AJAX CallThanks for the reply, Ravan. I got it working. I pulled some of the code from the plugin script and turned it into a second function (currently added to my themes scripts.js). It’s a short function, you could add this to the plugin and call it from within the get_hlst_query function (in place of the original code).
Here is the new function:
function ajaxHighlight(hlst_areas,hlst_query) { var area; var i; var s; for (s in hlst_areas){ area = jQuery(hlst_areas[s]); if (area.length != 0){ for (var l = 0; l < area.length; l++) { for (i in hlst_query){ area.eq(l).highlight(hlst_query[i], 1, 'hilite term-' + i); } } } } }Then just call the function at the end of the ajax post (the variables are already loaded on the page).
ajaxHighlight(hlst_areas,hlst_query);On a side note, I had to remove the break in the for loop because it would not do highlighting in the other “areas” I specified. Not sure what purpose this has here, but it worked perfectly after removing it. Why would you stop it from looping through the other specified areas?
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: http://groups.google.com/group/jquery-en/browse_thread/thread/f550b94914d10065I 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: christopher.peacock@gmail.com
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.