Scott McCulloch
Forum Replies Created
-
Forum: Plugins
In reply to: [User Frontend] Redirection IssueDid you ever find a fix for this? I’m having the same issue… I thought changing the wp_safe_redirect would do the trick, but it doesn’t seem to be the case.
Forum: Plugins
In reply to: [Join My Multisite] Password, Login and homepage links on wp-activate.phpThanks for the links Mika!
Yes, I knew your plugin doesn’t directly mess with wp-activate.php, but I thought since it’s supposed to be doing registration per site rather than whole network, the post-activation links would honor that. 🙁
Anyway, I’ll look at possibly following some of those instructions to make a wp-activate.php ‘replacement’ of sorts.
Thanks,
ScottForum: Plugins
In reply to: [Join My Multisite] Password, Login and homepage links on wp-activate.phpActually, the emails are fine with LOGINLINK
The problem is on the wp-activate.php page… on that page (i.e., immediately after activating the new account) the links go to mycompany.com instead of clientcompany.mycompany.com
Forum: Plugins
In reply to: [Join My Multisite] Password, Login and homepage links on wp-activate.phpSo here’s an example:
The site they’re registering on is clientcompany.mycompany.com
The link in the activation email correctly takes them to clientcompany.company.com/wp-activate.php?key=yaddayadda
The problem is the text on that page that says:
Your account is now active!
Username: bobmcc
Password: BsJ0uKltRYdR
Your account is now activated. Log in or go back to the homepage.
The link to “log in” and “homepage” both go to mycompany.com instead of clientcompany.mycompany.com
Thanks,
ScottPS. As I think about it, I may actually need to figure out how to make a new plugin using “Join My Multisite” and “Register Plus Redux” because I want to use “invite codes” rather than activation by email (only clients may register, and we don’t want to have to manually approve everyone)… unfortunately, Register Plus Redux doesn’t appear to do ‘per-site’ registration.
Forum: Hacks
In reply to: Any way to add exceptions for sanitize_post() ?In case anyone else comes across this post looking to solve the same problem, here’s the ultimate solution I found – courtesy of:
http://mawaha.com/allowing-data-attributes-in-wordpress-posts/function allow_data_uk_tab($allowed, $context){ if (is_array($context)) { return $allowed; } if ($context === 'post') { $allowed['ul']['data-uk-tabs'] = true; } return $allowed; } add_filter('wp_kses_allowed_html', 'allow_data_uk_tab', 10, 2);
Seems to work just fine.
Forum: Hacks
In reply to: Any way to add exceptions for sanitize_post() ?What’s the danger of placing
kses_remove_filters();
and
kses_init_filters();
on either side of that wp_insert_post() query?
Forum: Hacks
In reply to: Can widget use data array generated by a plugin?Thanks Mark! That pointed me in the right direction and I got it working.
Forum: Fixing WordPress
In reply to: Pagination not working within shortcode generated pageThank you for the tip re: $_GET variables… I will definitely make that change!
I think I found something in the WP code… /wp-includes/post-template.php
At line 695:
* Displays page links for paginated posts (i.e. includes the <!–nextpage–>.
* Quicktag one or more times). This tag must be within The Loop.So it appears the problem is indeed that because my content is being rendered via the shortcode it isn’t technically “in the Loop” as it’s rendered. I think I need to followup on my approach of adding the code to my page.php template, and figure out how to get the custom query to take the place of the default query to generate “the_content”
Forum: Fixing WordPress
In reply to: Pagination not working within shortcode generated pageYes, I think that’s probably right… I’m having a heck of a time figuring out how to deal with it though.
I had hoped the “…apply_filters(‘the_content’…” part would do the trick.
I also found another possibility – placing this in my page template:
<?php if(isset($_GET['taking_id'])){ global $wpdb, $user_ID; function display_report($content){ $queryReports = "SELECT * FROM ".WATUPRO_TAKEN_EXAMS." WHERE ID=".$_GET['taking_id']"; $thisReport = $wpdb->get_row($queryReports, OBJECT); $thisReport = $thisReport->details; $content = $content . $thisReport; return $content; } add_filter('the_content', 'display_report'); } ?>
So far, no dice.
Forum: Fixing WordPress
In reply to: Pagination not working within shortcode generated pageA) In “normal” pages (i.e., where I type the contents in the editor) using <!–nextpage–> results in pagination. I guess it’s not technically a ‘shortcode’? I don’t know what in WordPress does the actual pagination when it comes across <!–nextpage–>, but it “just works” in the normally generated pages.
B) The code is placed into the ‘content’ area of a page via a shortcode (using the PHP Code for Posts and Pages plugin).
I create a ‘snippet’ in the plugin settings, then put the shortcode “[php snippet=3]” into the page content, and it displays the resulting text in the page. (I tried RETURNing the text, but get nothing… PRINTing or ECHOing work – other than the lack of pagination).
If I take the exact same content text, and copy it into an actual page via the content editor, then the <!–nextpage–> tags work and the content is paginated.
Somehow, I think, whatever processes the <!–nextpage–> tags is missing this shortcode generated content… for example, if in a page I do something like this:
Some text here <!--nextpage--> more text here <!--nextpage--> [php snippet=3] <!--nextpage--> last text
The resulting page will be paginated… BUT, it only paginates there the <!–nextpage–> tags are in the editor generated content… any <!–nextpage–> tags in the text from the php snippet are ignored.
Forum: Fixing WordPress
In reply to: TinyMCE only one line of buttonsNevermind… I think I must just be overworked! Totally missed the ‘kitchen sink’ button. :-\
Forum: Fixing WordPress
In reply to: Text Widgets in 2.5Thanks odinprotectsus!! My sister was pissed that I’d updated her site when her widgets started emptying themselves when she’d make changes!
My fingers are crossed that this fix will be the answer to getting her calm again!
Forum: Fixing WordPress
In reply to: Problem with other app in WP subdirectorySolved.
Added:
ErrorDocument 401 /surveys/admin/onerror.html
ErrorDocument 403 /surveys/admin/onerror.htmlper this discussion:
http://wordpress.org/support/topic/89515?replies=6and it seems to be working perfectly.
Forum: Fixing WordPress
In reply to: Problem with other app in WP subdirectoryLooks like the same issue as discussed here:
http://wordpress.org/support/topic/77282?replies=7Unfortunately, there’s no final answer there… so I’m still hoping someone will know the secret!
Forum: Plugins
In reply to: “unexpected $end” in plugins after moving to PHP5 & 2.1.3Thanks, samboll… I had searched the terms “unexpected” and “$end” but that didn’t turn up anything that solved the problem. Looking at the PHP5 & Apache search results, I’m thinking that contacting the plugin authors about PHP5 compatibility is what I’ll need to do.