paulfynch
Forum Replies Created
-
Forum: Plugins
In reply to: Adding a hook for custom plugin activationLooking at another example, I think the url is just the file name, so your hook would look like this:
add_action(‘activate_myplugin.php’, ‘my_activate_function’);
The example I learned from is YARQ
http://openmonday.org/2006/07/31/yet-another-random-quote/Cheers!
pfForum: Plugins
In reply to: DROP plugin table – dbDelta = no goodI don’t know about a better way, but you could use the built in db connector (kuz im fickle :P):
function jal_uninstall () {
global $table_prefix, $table_suffix, $wpdb;
$table_name = $table_prefix . $table_suffix;
$wpdb->query(“DROP TABLE {$table_name}”);}
Forum: Fixing WordPress
In reply to: Current Page Questions…Hey all,
Man, what a vexxing problem! But thanks to this post, and a little more css-brewed patience, I finally got it.
This seems to work:
#nav a:link, #nav a:active, #nav a:hover{
/*NOTE: no color specification */
text-decoration:none;
}
#nav a:hover{
color:#D90000;
}.page_item a{
color:#333333;
}.current_page_item a{
color: #D90000;
}I have had to hack this one many times on a couple sites, but hack no more will I!!!
Cheers,
pfForum: Requests and Feedback
In reply to: 1.5.2 Bug: Switching Between Page and Post EditingFor those of you still using 1.5.2 and want to fix it, change line 26 (?close) in /wp-admin/post.php to this, and it will fix it:
// Fix submenu highlighting for pages.
if ((false !== strpos($_SERVER[‘HTTP_REFERER’], ‘edit-pages.php’))&&($_SERVER[‘QUERY_STRING’]!=”)) $submenu_file = ‘page-new.php’;Forum: Plugins
In reply to: Script help: Get Array of Page ParentsOh,
I don’t have much cash right now, but when I pay down my CC i’ll make that donation too 😉
PFForum: Plugins
In reply to: Script help: Get Array of Page ParentsBrilliant!
Thank you for your contribution.
God, I love WordPress, it has simplified my life to no end 😀Cheers!
PF