A A A

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
html-on-pages
Aug 13, 2009
12:57 pm
Member
Forum Posts: 30
Member Since:
Jun 19, 2009
Offline

Hi all. Need help on this when i use html-on-pages plug in and view any forum link all i show is Error 404 – Not Found.

Aug 13, 2009
1:00 pm

SP Master
Forum Posts: 22175
Member Since:
Nov 9, 2008
Offline

Are you saying this is to do with 'html-on-pages' (whatever is it)? Or are you getting a 404 all the time on the forum?
If the latter please click on the FAQ button above and follow the procedure for 404's.

Yellow Swordfish
Aug 13, 2009
1:01 pm
Member
Forum Posts: 30
Member Since:
Jun 19, 2009
Offline

It has to do with html on pages plug in. If i do not use it, the forum links are okay

Aug 13, 2009
7:28 pm

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

what is the purpose of that plugin??  can you tell it to not do its thing on some pages (ie exclude list)?

Aug 14, 2009
4:55 am
Member
Forum Posts: 30
Member Since:
Jun 19, 2009
Offline

The purpose of the plug in is for the pages to have .html extension on the URL pages

Aug 14, 2009
7:05 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

why do you need a plugin for that??? the wordpress built-in permalinks can do that for you…

what is the plugin doing to the links? ie, what is the actual link it changed to generate the 404 error?

Can you tell it to ignore certain pages?

Aug 14, 2009
7:56 am
Member
Forum Posts: 30
Member Since:
Jun 19, 2009
Offline

It can do it for posts but not for pages

Aug 14, 2009
8:27 am

SP Master
Forum Posts: 23688
Member Since:
Dec 10, 2006
Offline

you havent answered all the questions though… main one is why not just use the built in wp permalinks and not need an extra plugin??? and show us a link that doesnt work so we know how its messing up the links?

Mar 22, 2010
10:44 pm
Rookie
Forum Posts: 3
Member Since:
Jan 16, 2010
Offline

I can add a few things here, and I'm having the same problem.  The plugin is officially titled ".html on PAGES", which adds .html to WordPress "Pages" using wp_rewrite.  The WordPress permalink structure does not affect "Pages", only "Posts".

What happens is the page the forum is placed on is accessible, but any subpages generated by SPF are not.  In the SPF Administration panel, the "current permalink" has the form "domain.com/forumpage.html" and SPF uses this permalink structure to write the links, such that forum links are in the form "domain.com/forumspage.html/forumtitle", where forumtitle is the name of one of the forums in a forum group.  However, SPF does not handle that link and we get a 404 error.  A little trial and error shows that the forum is accessible by taking the ".html" out of the link, so manually entering "domain.com/forumspage/forumtitle" displays the forum properly.

Now I'm not sure if this would work, but this is what I would like to try to do. Instead of letting SPF decide what the permalink structure is, I want to specify it as "domain.com/forumspage", without the .html.  Since there is no way to directly edit it in the SPF Administration panel, I tried manually setting it in the database, but SPF keeps resetting it.  So my question to you is, where is the php code that sets this option in the database?  I want to comment that code out so it doesn't execute. Then I will change the setting in the database and I believe it will work.

But (thinking outloud here (and following up I think I've confirmed it)), my thoughts are WordPress will still send you to the "forumpage.html", while SPF links all point to "forumpage/" followed by where ever you are going to, which it apparently recognizes since it still works.  Given that, I forsee a problem with SPF links that point back to the forums frontpage (forumpage/), which I do not think WordPress or SPF will not recognize, since it doesn't recognize it now.  I think another redirect would fix that.

I know this is a poor solution, but it's the only solution I can think of that might allow both plugins to work. Maybe a future SPF update could allow directly editing the "current permalink" and provide the redirect for it if a custom structure is used (or maybe there is an easier way).  I also posted on the .html-on-pages author's blog about adding a feature to exclude certain pages, which I think is the best solution.

Ok I'm done talking now, lol, I have been writing and trying things and double checking things for over an hour now.

Mar 23, 2010
4:38 am

SP Master
Forum Posts: 22175
Member Since:
Nov 9, 2008
Offline

Well some information… SPF does not use sub-pages. It uses a single WP page object for forum display using the permalink and rewrite rules to determine what is shown for any request.

The forum 'permalink' – i.e., the part of the url on this site named 'support-forum' – is simply the slug of the forum page. If I go to edit pages and load the forum page for editing and change the slug to something else, then that becomes the new permalink. This would include giving it an .html extension. After doing that I would need to update the forum permalink (Toolbox in version 4.0 and 4.1 which is the version being used by the original poster here – or wp integration panel for 4.2).

Yellow Swordfish
Forum Timezone: America/Chicago

Most Users Ever Online: 444

Currently Online: kfworld, woody, Jason Clark, ahcreate
64 Guest(s)

Currently Browsing this Page:
1 Guest(s)

See All Online Activity

Top Posters:

-Radio-: 1251

Lee H: 606

Luffer: 535

Conrad_Farlow: 499

jim: 478

neon: 263

ovizii: 240

Tal: 240

Member Stats:

Guest Posters: 2624

Members: 7354

Moderators: 1

Admins: 2

Forum Stats:

Groups: 5

Forums: 16

Topics: 10874

Posts: 79443

Moderators: Brandon C (162)

Administrators: Yellow Swordfish (22175), Mr Papa (23688)