Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
adding a new topic
Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:27 pm

In the interest of saving time, I deactivated the .htm PAGES plugin and updated the forum permalink but that didn't work either. The page URL changed from .../our-firm/forum.htm to .../our-firm/forum/ on refresh.

On Mac in Safari I could at least see the forum (.../forum/); on PC in Explorer 9 I could see the page but not the group: "The requested roup does not exist or you do no have permission to view it." and below that "Unread and recently updated topics" and "There were no topics found"

I activated .htm PAGES again and all is as it was before - forum goes to 404 error - but now I still cannot see the forum on the .htm page in Windows/IE9 (it displays okay on Mac/Safari 5.1)

Redirect is still deactivated for now.

Other questionable plugins: Exec-PHP, All In One SEO Pack by Michael Torbert

Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:37 pm

Yeah, I figured that would be the case. Yes, I'm willing.

Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:39 pm

Yes, I'm definitely willing to do that.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:40 pm

That, I am afraid, is going to be a separate issue and probably just a permissions thing which we can address. It really has nothing to do with the .htm question.

But I am a little confused as the copy of the plugin I have seen (version 1.1) is called 'html on pages' and places the full .html extension on the urls...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:48 pm

At the top of that plugin - I believe it has just the one php file - you should find these lines of code:

add_action('init', 'html_page_permalink', -1);
register_activation_hook(__FILE__, 'active');
register_deactivation_hook(__FILE__, 'deactive');

Change them like this:

if ( ! sp_is_forumpage() ) {
    add_action('init', 'html_page_permalink', -1);
    register_activation_hook(__FILE__, 'active');
    register_deactivation_hook(__FILE__, 'deactive');
}

let's see if that resolves it...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:51 pm

It is confusing. The original author was the same as for the .html PAGES but now it's http://wordpress.org/extend/pl.....-on-pages/ at DiscountWebDesigner

 

Anyway, I'm going in to change the code now and will let you know how it goes.

Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:54 pm

this is the current code:

 

<?php
/*
Plugin Name: .htm on PAGES
Plugin URI: http://www.introsites.co.uk/33.....lugin.html
Description: Adds .htm to pages.
Author: IntroSites
Version: 1.1
Author URI: http://www.introsites.co.uk/
*/

add_action('init', 'htm_page_permalink', -1);
register_activation_hook(__FILE__, 'active');
register_deactivation_hook(__FILE__, 'deactive');

Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:57 pm

after changings I got this warning:

 

Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'html_page_permalink' was given in /problem-with-post-edit-buttonome/content/44/7739444/problem-with-post-edit-buttontml/wp-includes/plugin.php on line 403

 

I changed it back

Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 2:57 pm

woops...hangon - I did something wrong...

Avatar
Webgal
Member
Free Members
sp_UserOfflineSmall Offline
Aug 14, 2012 - 3:02 pm

big problem now - put in your code got error - but back original code another error 

Fatal error: Call to undefined function sp_is_forumpage() in /problem-with-post-edit-buttonome/content/44/7739444/problem-with-post-edit-buttontml/wp-content/plugins/problem-with-post-edit-buttontm-on-pages/problem-with-post-edit-buttontm-on-pages.php on line 15 

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 649
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 618
Members: 17357
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10123
Posts: 79616