cnilsson
Forum Replies Created
-
Forum: Plugins
In reply to: [iCafe Library] Version 1.6 download not allowing me to create bookThanks for reporting this error. 1.6 introduced a new way to control access to your resources which required a new field in the database. For users who upgraded from an earlier version this new field was added to their database. For new installations this new field was not being created causing new content creation to fail.
Upgrading to 1.6.1 will fix this for you…Sorry for the bug! I’m very glad you like the plugin!
Chris
Forum: Plugins
In reply to: [iCafe Library] Integreation with WP User ProfilesThanks for the feedback on this feature. Your insight proved to be very valuable in designing this upgrade.
Version 1.6 is now posted and should provide the features you need. Let me know how it works out for you!
Forum: Plugins
In reply to: [iCafe Library] Compilation of text on resource tiles (removes spacing).Glad to help
Forum: Plugins
In reply to: [iCafe Library] Integreation with WP User ProfilesSitting down to work on this idea and the architecture brings up a few questions…I’ve never thought about using the library this way so I thought you might be able to provide some insight.
The default WordPress roles are hierarchal. Each one progressively adds additional capabilities on the site while keeping all the capabilities of “lower” roles. The Members plugin lets you add additional roles and assign those roles a custom set of capabilities allowing you to create non-hierarchal progressions…ie a role that can add users but not post.
You propose to create a number of new roles that would all have the basic WordPress capabilities. In effect they will all be the same as the default WordPress role “subscriber”. Your goal in the new roles is not really related to WordPress features but rather content access. This makes a lot of sense to me but the lack of hierarchy is challenging.
Let’s say to create the following roles:
Freshman
Sophomore
Junior
Senior
Normally if you assigned content to be visible to the Sophomore role I would expect Juniors and Seniors to have access as well based on WordPress’ hierarchal model. But, in this case it would only be visible to the Sophomore role because the Junior and Senior role are not really higher than Sophomore…they are just different.
To solve this in a content delivery/restriction model like you are proposing for the iCafe Library we could deal with this two ways.
Method one:
Content can be assigned to multiple roles. At the content level you would be presented with a list of all the roles you have created and you simply check all that have access.
Method two:
Content can only be assigned to one role. You would need to create more roles this way (Freshman, Sophomore, Freshman_Sophomore, etc)…I think management would be difficult this way.
My goal is that when someone “graduates” from Sophomore to Junior they don’t lose access to all the Sophomore content. I personally think method one is the way to go…
My last question…I’m assuming it’s at the “book” level that you would be granting access…not the chapter or section level…
Thanks for your input,
Chris
Forum: Plugins
In reply to: [iCafe Library] Integreation with WP User ProfilesI like the idea for this feature…As it seems like something that could benefit many users I’ll add it to the road map.
Look for the update within the next week…no development charge but if you like the update and feel generous you can visit the plugin page and click the donate link on the right hand side (keep my wife happy about me staying up late working on wordpress plugins!)
Forum: Plugins
In reply to: [iCafe Library] Search?Still struggling with this. Does anyone know of a way to hook into the default WP search??? This seems to be a poorly documented area…
Forum: Plugins
In reply to: [iCafe Library] Version 1.5.1: Error Log disabledSavarah, I,m on vacation with limited access until next week. I will look at the error log issue as soon as I get back…I’ve not heard/seen that before.
As for the youtube question, the HTML area will be what you want. The YouTube option simply takes a normal YouTube URL and automatically creates the embed code for you. It’s really there to save users a few clicks for the most common type of embeds. The HTML option is there to ensure that you can embed anything you might want…you could do a playlist OR you could paste several youtube embed codes in one after another if you wanted them all to display in the same tile.
Can you give me some more detail on the counter idea. What sort of reporting are you interested in?
Forum: Plugins
In reply to: [iCafe Library] Compilation of text on resource tiles (removes spacing).Aegis, I’m glad you like the plugin!
When you paste text into a web based editor all formatting is lost unless the editor has a “paste with formatting” feature like paste for word or similar. Right now, the iCafe library plugin does not have this type of editor…it only has simple text boxes.Options:
The plugin does support HTML tags. If you know HTML you can format your text within the description field.Example from your text above
<b>Trigger Control 1*</b> <br /><br /> <i>Dry fire preparation procedures:</i> <br /><br /> <ol> <li>Ensure your responsibilities are taken care of (email, phone, other people), and you can reasonably expect fifteen minutes of uninterrupted time.</li> <li>This will show up as number 2 on the list</li> <li>This will show up as number 3 on the list</li> </ol>Option 2 still involves HTML but you could use the WordPress “Paste from Word” feature to create the HTML for you. Just create your formatted text in a desktop publishing program, copy the text, create a new WordPress page/blog (you won’t actually save it), paste your text in using the “Paste From Word” feature in the visual editor. Then click to the text version of the editor and you will see the HTML that WordPress created to represent your formatting. Copy/Paste that text into your description. It’s a round about way, but it avoids needing to know any HTML.
I wouldn’t be scared of learning some basing HTML formatting however…it is very straight forward.
Tags tell the browser how to display the text. Tags open and close.<b>This will be bold</b> but this will not because the "b" tag was closed <i>italics</i> </br> line break (this tag does not need a closing tag...it is self closing)The UL tag is an “unordered list” or bulleted list. The “LI” tags inside of it are the list items.
<ul> <li>bulleted list item</li> <li>bulleted list item</li> <li>bulleted list item</li> </ul>A “OL” or ordered list is the same but with numbers instead of bullets
<ol> <li>Item One</li> <li>Item Two</li> <li>Item Three</li> </ol>Hope this helps!
Forum: Plugins
In reply to: [iCafe Library] Embedded Flash object causes flickering by side changeSavarah, wanted to let you know that I am still working on this issue. I have an open bug ticket with jQueryUI and am working with them to resolve the issue.
Forum: Plugins
In reply to: [iCafe Library] Embedded Flash object causes flickering by side changeSavarah, here is what I’ve found so far.
Jquery UI issueForum: Fixing WordPress
In reply to: Flash of white on page loadsOK…I’ve found the offending bit of code in JQueryUI 1.8.17.
It looks like they decided to do a test to see if your current version of jquery can handle fractions or not. This function creates a fake hidden body element and then tests for fraction support by manupulating this element.
Remove this function and the flash of white goes away (of course could now have an issue with old versions of jquery).Here is the function in jquery 1.8.17 (beginning on line 10251)
// fraction support test (older versions of jQuery don't support fractions) (function () { var body = document.getElementsByTagName( "body" )[ 0 ], div = document.createElement( "div" ), testElement, testElementParent, testElementStyle, offset, offsetTotal; //Create a "fake body" for testing based on method used in jQuery.support testElement = document.createElement( body ? "div" : "body" ); testElementStyle = { visibility: "hidden", width: 0, height: 0, border: 0, margin: 0, background: "none" }; if ( body ) { jQuery.extend( testElementStyle, { position: "absolute", left: "-1000px", top: "-1000px" }); } for ( var i in testElementStyle ) { testElement.style[ i ] = testElementStyle[ i ]; } testElement.appendChild( div ); testElementParent = body || document.documentElement; testElementParent.insertBefore( testElement, testElementParent.firstChild ); div.style.cssText = "position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;"; offset = $( div ).offset( function( _, offset ) { return offset; }).offset(); testElement.innerHTML = ""; testElementParent.removeChild( testElement ); offsetTotal = offset.top + offset.left + ( body ? 2000 : 0 ); support.fractions = offsetTotal > 21 && offsetTotal < 22; })();This same function (with minor changes) has existed in ALL versions of jqueryUI up to the current 1.10.3 beginning on line 12474
// fraction support test (function () { var testElement, testElementParent, testElementStyle, offsetLeft, i, body = document.getElementsByTagName( "body" )[ 0 ], div = document.createElement( "div" ); //Create a "fake body" for testing based on method used in jQuery.support testElement = document.createElement( body ? "div" : "body" ); testElementStyle = { visibility: "hidden", width: 0, height: 0, border: 0, margin: 0, background: "none" }; if ( body ) { $.extend( testElementStyle, { position: "absolute", left: "-1000px", top: "-1000px" }); } for ( i in testElementStyle ) { testElement.style[ i ] = testElementStyle[ i ]; } testElement.appendChild( div ); testElementParent = body || document.documentElement; testElementParent.insertBefore( testElement, testElementParent.firstChild ); div.style.cssText = "position: absolute; left: 10.7432222px;"; offsetLeft = $( div ).offset().left; $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11; testElement.innerHTML = ""; testElementParent.removeChild( testElement ); })();I’m going to file this with jquery and see what they have to say.
Forum: Fixing WordPress
In reply to: Flash of white on page loadsThanks Andrew…I actually wrote the plugin that is loading jqueryUI. I’ve enqueued it and then registered it setting the footer option to true. The flash of white is less (the background color stays but the header still flashes)but the script no longer functions.
Forum: Plugins
In reply to: [iCafe Library] Embedded Flash object causes flickering by side changeI’m not yet sure it’s a bug. JQuery 1.9 works fine up to WordPress 3.1.
In WordPress 3.2 all versions of jquery after 1.8.16 exibit the issue. So it doesn’t seem to be a bug with either one but rather an incompatability between them. I’m going through the change logs between jquery 1.8.16 and 1.8.17 to see if I can pinpoint the cause.Forum: Plugins
In reply to: [iCafe Library] Embedded Flash object causes flickering by side changeI’ve traced to problem down to the JQuery UI Library. If I use version 1.8.9 the flash of white is gone but there are some broken styles in the accordion menu. If I include version 1.9+ then my plugin looks correct but the flicker returns. I’m going to keep investigating but in the end, I may just have to rewrite the broken styles to use version 1.8.9
Forum: Plugins
In reply to: [iCafe Library] Embedded Flash object causes flickering by side changeLooks like a known issue beginning with WordPress 3.2 related to loading javascript libraries like jquery (which iCafe Library uses). In fact, on my iCafe site I had to disable the library and the Kimili flash plugin to get rid of the white flicker. I’m continuing to research but here are some threads with suggestions.
One
Two
I’m still investigating