Forum Replies Created

Viewing 15 replies - 31 through 45 (of 65 total)
  • Thread Starter thanatica2

    (@thanatica2)

    Let me rephrase then.

    Why does WP not generate url’s relative to the website’s root? e.g. beginning with a slash.

    Again, this would work completely flawless, and it would greatly improve deployment of a database from one environment to the next.

    Plugins like these shouldn’t have to exist:
    http://wordpress.org/extend/plugins/root-relative-urls/

    Thread Starter thanatica2

    (@thanatica2)

    No, I think you misunderstand. I’m all for absolute url’s, but not for fully-qualified urls.

    This is a fully-qualified url:
    http://www.mysite.com/dir/to/a/file.php

    This is an absolute url – relative to the root:
    /dir/to/a/file.php

    and this is a relative url:
    ../../to/a/file.php

    Of course, relative url’s are not going to work, but absolute files will work *perfectly* in a wordpress environment. Just as long as you’re not using and linking to different domains for one and the same site. Which is almost never the case for wordpress installations.

    Thread Starter thanatica2

    (@thanatica2)

    It almost works 🙂

    My 403 Page is being served upon requestion forbidden content. As expected. But two things are still a bit sour, iyam:
    1) the url in address bar is replaced by the redirection url, so all context for the 403 is lost. It looks as if the 403 Page is forbidden all by itself.
    2) I can’t easily move this over to my production environment, which is (obviosuly) on another domain.

    On a sidenote: your remark about the 302 Found is not correct, it seems. If I omit the 403 headers, it returns a 200 OK instead of a 302.

    Thread Starter thanatica2

    (@thanatica2)

    Well, I played around with it, but it doesn’t seem to be working still…

    I created a page and assigned it a slug “403-access-denied”

    In the .htaccess I put this line:
    ErrorDocument 403 /403-access-denied

    And I get the 404 template, not the 403 Page.

    The 403 Page is accessible via /403-access-denied perfectly well. So, Big Bagel, while your explanation is thorough, it might not be completely correct… That, or I’m still missing something.

    Any help plz?

    Thread Starter thanatica2

    (@thanatica2)

    First one might prove to be helpful… I can see how adding buttons would work. I’ll look into it. Not really a pressing matter right now, but some time in the future, I’ll be needing this again 🙂

    Shortcodes are just too user-unfriendly. I happen to know how to work them, but my customers don’t.

    The WP-Tables plugin is a nice idea and a nice plugin, but not quite what I need right now 😉

    Thanks

    Thread Starter thanatica2

    (@thanatica2)

    That’s what I needed to hear. I’ll look into it tonight. Thanks 🙂

    I still prefer a more elegant solution, though, but this’ll work until then 🙂

    Thread Starter thanatica2

    (@thanatica2)

    You mean a page as in a Page? 🙂

    That would help, especially if it were possible to assign a template to that Page other than page.php?

    But in any case, don’t we have to put a proper 403 template in WP just like there’s a 404 template? After all, WP does include regions where a 403 is thrown by default, so I think it’s a disspointing that 404 is handled by WP and 403 is not. Hoping for this in the next version.

    Or maybe it would be possible to implement proper 403-templates in a plugin of some sort, without it breaking in an upgrade?

    Thread Starter thanatica2

    (@thanatica2)

    Actually I want it to show my normal layout, so I’m not going to make a static 403.html. But when I point ErrorDocument directoly to the 403.php, I get this error:

    Warning: main(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in D:\Inetpub\wwwroot\Home\wp-content\themes\thany\403.php on line 1 Fatal error: Call to undefined function get_header() in D:\Inetpub\wwwroot\Home\wp-content\themes\thany\403.php on line 1

    It’s understandable that it gives an error, because WordPress is supposed to handle template files. So the question remains how to solve this.

    A static html-page is not done. A free-standing php is also not going to work since I need WP-functionality in my 403.

    Thread Starter thanatica2

    (@thanatica2)

    I’m sure the mimetype for silverlight is not mime/type but rather application/x-silverlight-app 🙂

    A plugin named “PJW Mime Config” works quite well, I might add.

    Thread Starter thanatica2

    (@thanatica2)

    I guess I’ll try the plugin solution then. Thanks for explaining 🙂

    Thread Starter thanatica2

    (@thanatica2)

    Thanks. I didn’t realize this was workaroundable 🙂

    There’s just 2 more things bothering me about this:

    1) Doing this in a theme makes uploading SVG dependent on the selected theme. Having to do this for multiple sites produces more boilerplate code, plus a theme is not where this function belongs, iyam.

    2) Why is SVG blocked in the first place? (Or rather, looking at the code: why is SVG not whitelisted?)

    Thread Starter thanatica2

    (@thanatica2)

    I found a better solution.

    My plugin is too custom to be published, so renaming is is only delaying the problem (that is, until someone creates another plugin with the same name).

    I found a trick to make a plugin tell WP not to look for updates on it:
    http://developersmind.com/2010/06/12/preventing-wordpress-from-checking-for-updates-for-a-plugin/
    It’s dirty, but so is WP. So I’ll allow it 🙂

    At least it’s more future-proof.

    Thread Starter thanatica2

    (@thanatica2)

    So, “customizing the wysiwyg editor” is what I’m looking for… But I don’t know where to start. A little help?

    Thread Starter thanatica2

    (@thanatica2)

    Anyone yet? Problem still persists. Still don’t know what do to about it…

    Please help?

    Thread Starter thanatica2

    (@thanatica2)

    *facepalm* 🙂

    For some reason, it was set at c:\inetpub\wwwroot\wordpress\wp-content/media (that’s right, mixing slashes and backslashes)… In dunno why, I don’t think I’ve ever touched it. Maybe an upgrade issues.

    No matter tho, I set it to a relative path wp-content/media and it seems to be working again.

    Thanks 🙂

Viewing 15 replies - 31 through 45 (of 65 total)