chuckingit
Forum Replies Created
-
Forum: Plugins
In reply to: Accessing multisite post data from "parent" siteHi Erik – did you ever get this to work and if so can you share ..??.. cheers – chuck scott
Hi Bainternet … thanks for looping back to me … i just went back and re-tested with plugin activated on just one sub site and experienced same results of an author being able to create multiple posts on that sub site even though i set the post type limit to one … below is the summary of what i had configured so maybe i need to change more than just the post type limit ..??.. cordially, chuck scott
=====================
Summary of settings
=====================Curentlly set: post => 1 page => 0 attachment => 0 revision => 0 nav_menu_item => 0 Administrator: post => 0, page => 0, attachment => 0, revision => 0, nav_menu_item => 0, Editor: post => 0, page => 0, attachment => 0, revision => 0, nav_menu_item => 0, Author: post => 0, page => 0, attachment => 0, revision => 0, nav_menu_item => 0, Contributor: post => 0, page => 0, attachment => 0, revision => 0, nav_menu_item => 0, Subscriber: post => 0, page => 0, attachment => 0, revision => 0, nav_menu_item => 0, m => You Can't Create any more pages of this type..yo dude– fin –
okay – i think i figured out the answer so gonna answer my own thread here …
answer = post counts shows the most recent (newest posts) so if i set it to 3 and Maximum posts to zero, then i get the most recent three … but if i set the reverse, maximum posts to 3 and post counts blank – then i only get the oldest first three posts in that blog (or series of blogs) pulling in …
as an aside, it would be super cool to be able to include blog categories on the blogs we put on the white list …
cheers – cs
Hey Guys – ditto on start of this thread’s “nice plugin” – actually, i’ll double that opening and add “really nice plugin” :>)
i’m also glad to see this thread as i thought maybe i was losing it when looking at my code via Firebug as i was working on a custom page so was hyper sensitive about CSS and this paragraph thing was confusing me …
accordingly for whatever it might be worth, here is my take on things in this rogue paragraph dept … note see below for data points re:my test tab content and firebug results …
thus i tried to read your php and js files but there are a number of ascii equivalents / hex code that make finding the offending <p/> tag difficult … i searched the plugin files for the string (i.e., <p/> – and no this is not typo per firebug results below) yet suspect said <p/> tag is being dynamically generated hence the hex codes …
i also suspect that said code might really want to be a
<br />code instead of the <p/> as that would kind of make sense inserting a line break above to better insure proper CSS block separation ..??..i also found a
<br>that could be improved on line 208 in GTTabs.php … here again i suspect it should be<br />…small stuff but totally appreciate the effort to nuke this bug … as we developers know all to well, one misplaced period or comma and the whole thing can crumble as fatal such and such but i digress …
thanks again for really cool, elegant, and useful plugin … to be continued :>) cordially, chuck scott
===============================
Test Tab Content
===============================
[tab:Mass Times]
<h2>Mass Schedule</h2>
hey mom look at me[tab:Mass Thoughts]
<h2>Mass Thoughts</h2>
hey mom look at me[tab:Mass Thinking]
<h2>Mass Thinking</h2>
hey mom look at me[tab:Mass Action]
<h2>Mass action</h2>
hey mom look at me===============================
Resulting Firebug CSS Report
===============================<div class="entry-content"> <p/> <ul id="GTTabs_ul_2317" class="GTTabs" style="display: none;"> <li id="GTTabs_li_0_2317" class="GTTabs_curr"> <a id="2317_0" class="GTTabsLinks" onmouseout="GTTabsShowLinks();" onmouseover="GTTabsShowLinks('Mass Times'); return true;">Mass Times</a> </li> <li id="GTTabs_li_1_2317" class=""> <a id="2317_1" class="GTTabsLinks" onmouseout="GTTabsShowLinks();" onmouseover="GTTabsShowLinks('Mass Thoughts'); return true;">Mass Thoughts</a> </li> <li id="GTTabs_li_2_2317" class=""> </li> <li id="GTTabs_li_3_2317" class=""> </li> </ul> <div id="GTTabs_0_2317" class="GTTabs_divs GTTabs_curr_div" style="display: block;"> </div> <div id="GTTabs_1_2317" class="GTTabs_divs" style="display: none;"> </div> <div id="GTTabs_2_2317" class="GTTabs_divs" style="display: none;"> </div> <div id="GTTabs_3_2317" class="GTTabs_divs" style="display: none;"> </div> <script type="text/javascript"> </script> </div>– fin –
Forum: Plugins
In reply to: [Audit Trail] Fatal Errors with 3.2.1 Multisite and Skitter Slider …below is thread i just posted in the WP Skitter Slider forum thus including here since this impacts both plugins …
===
Okay – answering my own post here … turns out that both Audit Trail and WP Skitter Slider are using similar debug function that appears to be suggested from CakePHP (info below) …since i am not using Audit Trail’s debug feature, i commented those lines out and that seemed to work and now both plugins co-exist …
it does remind me about some of the threads at Justin Tadlock’s ThemeHybrid site that suggest importance of plugin authors to define their functions by pre-appending said functions with unique plugin text … e.g., had Audit Trail author defined his pr function as audit_pr and Skitter used skitter_pr to define his, then the likelyhood of conflict would be greatly decreased but i digress …
cordially, chuck scott
======================
Info on Work Out
======================1. code from skitter that PHP complained as fatal error circa lines 258 thru 266 =
/** * Debug arrays and others */ function pr ($array) { echo '<pre>'; print_r($array); echo '</pre>'; }2. code from Audit Trail that php complained about circa lines 574 thru 582 (note i commented out the function) =
/** * Debug helper, borrowed from CakePHP, that displays a print_r inside <pre></pre> tags * * @param string $name Name of your plugin. Is used to determine the plugin locale domain * @param string $base Directory containing the plugin's 'view' files. * @return void **/ /* if ( !function_exists( 'pr' ) ) { function pr( $thing ) { echo '<pre>'; print_r( $thing ); echo '</pre>'; } } */– fin –
Okay – answering my own post here … turns out that both Audit Trail and WP Skitter Slider are using similar debug function that appears to be suggested from CakePHP (info below) …
since i am not using Audit Trail’s debug feature, i commented those lines out and that seemed to work and now both plugins co-exist …
it does remind me about some of the threads at Justin Tadlock’s ThemeHybrid site that suggest importance of plugin authors to define their functions by pre-appending said functions with unique plugin text … e.g., had Audit Trail author defined his pr function as audit_pr and Skitter used skitter_pr to define his, then the likelyhood of conflict would be greatly decreased but i digress …
cordially, chuck scott
======================
Info on Work Out
======================1. code from skitter that PHP complained as fatal error circa lines 258 thru 266 =
/** * Debug arrays and others */ function pr ($array) { echo '<pre>'; print_r($array); echo '</pre>'; }2. code from Audit Trail that php complained about circa lines 574 thru 582 (note i commented out the function) =
/** * Debug helper, borrowed from CakePHP, that displays a print_r inside <pre></pre> tags * * @param string $name Name of your plugin. Is used to determine the plugin locale domain * @param string $base Directory containing the plugin's 'view' files. * @return void **/ /* if ( !function_exists( 'pr' ) ) { function pr( $thing ) { echo '<pre>'; print_r( $thing ); echo '</pre>'; } } */– fin –
Go Mottie, Go. Just you go. Ooops – I mean -> Way to go and ditto to you to Jacob … just another classic example of how responsive and professional the WP community continues to be … thank you both :>) cs
Hi Jacob – thanks for super fast response … i just upgraded to ver 0.6.2 and got same results … i do have multiple Firefox windows open so i might be getting tricked by cache and will close all later and report back if different …
earlier i tried the slider in IE 6.0 and got same kind of growing window … i know IE 6 is no longer support but ugh, still a ton of corporate customers using that browser hence i tried to be mindful in this dept … yet IE was not honoring the height of slider no matter what – e.g., even setting “expand = no” the height would appear like 1000 pixels high regardless of using shortcode height=”300″ or in plugin panel settings assigning height=”300″ … so because the IE height was not respected, when i saw the growing slider when i turned expand=yes, i just figured it was another IE quirk … but when i saw said growing in Firefox, hence the previous post …
using version 0.6.2 with firebug, i do see the div anythingWindow style height: increasing pixels …
accordingly, to be continued :>) cordially, chuck scott
Just a bit to follow up here as i turned off every other plugin to see if there might be a conflict but still no go in that the Template field is ignored and only loads the default template values … this happens both when adding a slide and editing a slide – in both cases any changes to template are ignored and not written to the database …
i poked around in radslide/ajax/slideshows.php and found one typo on line 62 that shows a closing </th> that should be a </td> instead …
i tried to follow the logic in adding and editing functions thinking that there might be typo with one variable id name like where form calls field id=”radslide_add-template” but the add function uses
'template' => $_POST['radslide_template'],…thus i tried modifying the form field to id=radslide_template to mirror the function call but none of this worked so obviously i have flawed sense of how the variables are being used to go in and out of database …
at this point it’s onto another slider as this one is broken and that stinks as i really liked the seeming straight forwardness but i digress … cs
Hi – i’m having same issue on WP Multisite Network ver 3.2 in that none of the limits are enforced … i tried editor, author and contributor roles on a subsite on the network … at first i set the post limits to 2 and page limits to 1 for each role … then when these did not work, i tried using the plugin’s limit by user with same 2 and 1 but again, no limits were enforced … i did not put any limits to the other fields like attachment, revision or nav_menu_item (hence these all have 0) … nor did i activate the plugin across the network – only on the test site … thus not sure if any of this helps explain why creation limits were not honored ..??.. cordially, chuck scott
@lorelle … ditto here on LOVE for the WordPress Community … as fyi, i have had a lot of experience over the years with differing tech communities and i am truly amazed (a good thing) at the generousness, professionalism and responsiveness the WP community seems to resonate with …
technically, my only regret is that other teams, like local, state, national, and international governing bodies don’t follow same suit of openness, transparency, accountability and just plain professionalism as exhibited here in these forums …
all the bogus emotional tirades, petty bickering, ineffective management, etc in US political channels certainly could learn a thing or two from mirroring WordPress community but i digress :>)
having said that, the good news is that i think i read that massive amounts of gov’t agencies are adopting WordPress for various internal and external networks … so who knows, maybe our civic leaders will be inspired with elevated professionalism given their increasing participation with the rest of the WordPress community …
and no, i’m not picking on governing bodies as certainly their jobs are complicated and probably a great portion of them are under appreciated efforts … yet when you look at Congressional Weiner’s out there, who yell, lie, etc, you wonder if their game couldn’t be improved by taking a page or two from WordPress community realities and best practices … to be continued … cordially, chuck scott
Hi Stephanie – thanks for looping back to me and appreciate the CSS conflict heads up as that indeed might be issue … the url i was working on was a test and no longer online but i just did some other testing with left-aligned labels in a different theme and indeed, they seemed to work … i’m still in development on this particular site and have yet to decide on form solution so will be doing some more testing and will be sure to use Firebug to inspect CSS if i experience the left align thing again … thank you again for your help – very cool plugin 🙂 … cordially, chuck scott
Forum: Themes and Templates
In reply to: How to change P2 sidebar width?ditto here … would love to be able to increase the sidebar width without blowing out the theme … e.g., i wanted to get sidebar to 300px from default of 212 so i changed three things – #sidebar, #post, #main and no go … i see page is 978 width so i added width 678 to the post and main ids but text and widgets in sidebar get slid under and dissappear in main post area … ugh .. css code tweaks below …
#sidebar { margin-left: -1px; float: right; /* CHUCK CHANGE from 212 */ width: 300px; position: relative; top: 0; padding: 6px 12px 18px 12px; } /* CHUCK MODS - force widths */ #main { background: #fff; width: 678px; } #postbox { background: url( i/white-93.png ); margin-right: -1px; width: 678px; }Forum: Plugins
In reply to: [Multisite User Management] Roles not auto assigned …well all this is a bunch of none sense on my part as i went all the way back to zero, reconfigured et al and could not replicate the wierdness i was getting and yes, in the end, all things worked as advertised …
the only thing i can think of (since i painfully went back and did one step at a time with one browser session at a time) was two fold ->
a) when new users are added (either manually or imported) they appear in the Super Admin Network Dashboard only in the one site they were added to until that user logs in to another site on the network … thus the process of a user logging in updates the user sites and their roles in said sites in the admin dashboard … which leads me to ->
b) browser sessions and cookie trip ups … today’s tests were done on two different WP networks using same set of plugins and user info … but this time around i made sure to only have one browser session open at a time thus believe the reason i got wierdness before might have been because i had multiple browsers open before ..??.. i had tried to be mindful of this before by using firefox for admin stuff and ie for testing the user login stuff … but later this afternoon, using only one browser, logged in as a given user, then all the site dashboard settings seemed to make sense …
i should also mention that i tried going back to ver.6 and putting ver .8 into the MU folder but in the end, all i needed was version .8 Network Enabled from regular plugin directory and voila – all seemed to fire …
accordingly, big Thank YOU for awesome plugin and sorry for any false alarms i might have started with this thread …
and as fyi for others who might stumble upon this thread, yes, the CIMY USER Manager plugin did indeed import user data at subsite level and co-exists with this plugin in that roles were respected across the network (but only once i logged in as that user into a site on the network – only then did the admin dashboard get updated and show all the sites a user was registered with) …
cordially, chuck scott
Forum: Plugins
In reply to: [Multisite User Management] Roles not auto assigned …okay just an update fyi in that i rolled back to version .6 and put plugin in mu folder and still got same results … thus it must be something with the CIMY-USER-Manager plugin and/or changes in WP since in 3.0 everything worked but now its buggie …
and as added fyi, if i add a user manually as admin at Network level, the user shows but no sites are auto assigned to that user until the user logs into to one of the sites, then the roles and other sites show in user dashboard as well as Super admin dashboard …
thus to be continued …