lxg
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 404 for posts if category base is inside permalink structureThe problem is solved; I changed the category base, so WP runs fine again.
I misinterpreted the installation advisory for the Home-Page Control plugin: It does need its own base to be prepended to the permalink structure, but this doesn’t affect the category base.
Anyway, thanks for supporting. 😛
Forum: Fixing WordPress
In reply to: 404 for posts if category base is inside permalink structureI’ve tested a bit more, there seems to be a bug in the rewrite conditions written by WP:
I’ve included the following code into my site:
<?php echo $_SERVER["REQUEST_URI"] . '<br />' . $_SERVER["QUERY_STRING"]; ?>
with the “/news” stuff the output is/2005/12/07/hello-world
year=2005&monthnum=12&day=07&name=hello-world&page=without this
/news/2005/12/07/hello-world
category_name=2005/12/07/hello-worldIf we can’t resolve the errro, could somebody possibly tell me how to correct the rewrite conditions?
btw, I’m using Apache 2.0.55, if that helps.
Possibly a stupid question, but did you try to refresh your browser’s view or try a different browser? 😉
Forum: Fixing WordPress
In reply to: Include a webpage into a page?I just fed the W3 validator with your shop page. You still have some non-utf8 characters inside your page, which is why I overwrote it with ISO-8859-1. Then it seems you have nested a
<style>section inside the document<body>(and there are other errors, too). This is not valid and therefore I suppose this to be the display error.Also, you might want to validate your CSS.
Forum: Fixing WordPress
In reply to: Include a webpage into a page?As far as the customization of the spreadshirt shop, it is atleast there, and I think the options goes as far as to colours and fonts, and background colour. I can also change the number of products in a row vertically, and that was it I think.
Then I’m afraid the template idea is not for you. 🙁 I thought you’d have a bit more influence on the shop’s HTML…
But if I make the template as you said, won’t all the stuff there go under the WP css? If so I could just add and edit in the Wp css to get the desired layout I think (hope).
That of course you could do. You could adapt your WordPress to look like the spreadshirt shop. ;-P But I don’t think this is the real thing.
As far as I see, the iframe would be the nicest solution under your circumstances.
Apart from that, I’ve been playing around with Joomla! lately. This is an easy to set up OpenSource CMS where you can have both a blog and a shop. Maybe this is more suitable for you?
*duckandcover*
Forum: Fixing WordPress
In reply to: Unable to edit postMaybe an explaination of HTTP 406 helps you.
Which browser are you using and how did you set it up? How about using a current Firefox or Opera?
Or, did you modify your HTTP headers?
Forum: Fixing WordPress
In reply to: Unable to edit postsorry, double posting.
Forum: Fixing WordPress
In reply to: Include a webpage into a page?Sorry, if I don’t get you correctly. But as far as I see, we have several premises:
1. The shop has to perform different kinds of action. So there have to be either more than one pages or one page handling the actions by the query string.
2. the shop itself is not hosted on the same site as your blog, so any link to a shop item goes to another page anyway.Now, if I understand you correctly, you want to include the very HTML of the shop into your blog. This is — theoretically — possible, but I wouldn’t do that. To get it working, you would need something like
<?php
echo file_get_contents('http://the-shop-website.com');
(just a starter)
For this to work you’d need to putallow_url_fopen = Onin your server’s php.ini and you’d need a plugin which runs native php inside a WP page (as I posted above).However, I don’t need to say that running code from an external webpage is highly dangerous; even if you trust that page you are risking man-in-the-middle attacks and similar threats.
Back on template building 😉 I meant you could just take the HTML output of the page and replace anything inside the
<div id="content">by your shop stuff. Then you put your WP CSS there, ready. The question is just: in how far are you able to customize the spreadshirt template.Forum: Fixing WordPress
In reply to: Include a webpage into a page?what is this?! second time I’m pushing “submit” once and end up with double posting?!
Forum: Fixing WordPress
In reply to: Include a webpage into a page?You can’t put PHP code into a WP page, because the php tags would be converted into HTML special characters. This is also a security feature.
There is, however, a Plugin named run PHP (and similar ones, too), but I don’t think they will allow to run such complex apps like a webshop.
I suggest you grab the HTML output of your WP install (after having finished customisation ;-). Then, based on this, you build a template for your webshop.
Forum: Plugins
In reply to: Always attach my own URI parameters?I thought there was a global way to set additional query parameters.
However, I currently “disabled” (by <!– –>) certain functions, yet I intend to use all of them later on. Although my design won’t be recognizable as WordPress, the engine is completely the same. So it’s _all_ tags I need to know about the GET values.Maybe there could/should be a possibility to define own URI parameters in future WP releases; I think I’m going to write some feature request.
But still I have no solution to my prob. 🙁
Forum: Fixing WordPress
In reply to: changing the menuof course you can.
on my site for example you wouldn’t recognize the sidebar as “the WP sidebar”. 😉 You need to adapt the colors in the css for the style and also change the Sidebar template in the Template Editor.
If you want the standard sidebar, but one page should have another one, then you will have to write the page your own (or use the “Write Page” module) and cut out the
<?php get_sidebar(); ?>Then create an own sidebar as you wish. You could e.g. copy the sidebar section from a ready HTML output and adapt it.
Alex
Forum: Plugins
In reply to: Always attach my own URI parameters?Maybe I should be a bit more precise:
I need WordPress to attach &lang=$lang&fontsize=$fontsize to any automatically generated URI. So if a user clicks links within the WP section, the parameters have to be transported. This is needed to transport the fontsize variable, as I don’t want to use JavaScript or Cookies.
Does anyone know, in which of the WP files I could change it or how else to accomplish that? This may even be quick and dirty solution, I don’t care.
Alex
Forum: Fixing WordPress
In reply to: Second Post…. Comments not workingyou can edit single.php in the admin panel at Presentation -> Theme Editor -> [your theme] -> Post Template.
Forum: Plugins
In reply to: WP doesn’t pass my own URI parametersThanks a lot, that solved my problem, the resizer works now. I simply read the variables at the very head of the script. But now I wonder how PHP could always use my URI parameters when I did not read them with $_GET… However, another nice lesson learned. 😉