mrose17
Forum Replies Created
-
update: i was mistaken in one thing: if you click one one of these to get to the “single” page, then you get a 404. the pages that manage the categories, etc., seem to work fine…
Forum: Themes and Templates
In reply to: [Suffusion] suffusion 3.9.6 search fails if you aren't logged inand… i offer sincere apologies to sayontan for putting the blame on suffusion…
sorry!
/mtr
briefly, it does not allow the query string to contain a ‘=’, which is, regrettably a non-sequitor since query string is supposed to be a series of key/value pairs…
and i blamed suffusion! initially…
Forum: Themes and Templates
In reply to: [Suffusion] suffusion 3.9.6 search fails if you aren't logged inrather amusing: when you ask better-wp-security to filter suspicious query strings, it adds some rules to .htaccess. specifically,
…
RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>|ê|”|;|\?|\*|=$).* [NC,OR]
…
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in_.*$
RewriteRule ^(.*)$ – [F,L]strips the query string (unless you’re the admin) because
http://…/?s=missions&searchsubmit=
has an ‘=’Forum: Themes and Templates
In reply to: [Suffusion] suffusion 3.9.6 search fails if you aren't logged inthanks for the speedy reply… i forgot to mention that i did the “deactivate all plugins” thing and got the same result. i have a small number of changes to 3.9.6, mostly in the styling department, so i must have botched something there…
if you want to take something that was imported as a post and turn it into a page, do this:
open two browser windows. have both of them go to the admin dashboard.
in the first window, click on “Posts>All Posts”, find the post that was imported. mouse over the title and click on “Edit” to edit the post.
in the second window, click on “Pages>All pages”, and then click on “Add New” on the top of a page.
in the two windows you will now see several fields in particular a title and a description. in the first window, these are filled-in, in the second window, they are blank.
go to the title field in the first window, select all, copy it, go to the second window and paste it in the title field.
go to the description field in the first window, select all, copy it, go to the second window and paste it in the description field.
now look at the other settings in the second window and set whatever you normally do, and then you can click on “Publish” or whatever.
oops! i misunderstood. i’m pretty sure that the plugin imports things to posts only, no pages. if you want it as a page, that’s easy enough with cut-and-paste and two browser windows.
in terms of the media library: when the plugin does it’s thing, there are four sections of output:
1. “Importing HTML files…” followed by a table with four columns. the fourth column is “Title” and that contains links to the imported posts
2. “Importing images…” which ends with “Go to the Media Library.” you can click on that to see the images, etc., that came along with the posts.
3. “Fixing relative links…” and finally “All done!”
the key thing is that the first section gives you links to each imported article.
my guess is that what you’re seeing is the summary of what the plugin did.
try this: go to the admin dashboard, and go to “Posts > All Posts” – see if the page you imported is there. if so, mouse over the title of that post and you’ll see “View”. click on that and it should take you to the newly imported page.
Forum: Themes and Templates
In reply to: Thumbnail Issueandrew – looking at http://oaktreeave.com/curated-products/cookware/all-clad-stainless-9-piece-cookware-set/ today – it looks like you fixed the issue.
could you share the fix?
best,
/mtr
the plugin is showing you the default directory for import, expressed as a unix filesystem path. the import directory is supposed to reside in your website’s root directory and should have the name “html-files-to-import”.
the unix filesystem name of the root directory for your website is probably “/home/content/j/o/y/joycejorg66/html/AginginPlaceOptions/” .
if you don’t want to create a subdirectory in the root directory of your website, you can create the directory elsewhere, and then you need to change the “Directory to import” setting that you get when you are at settings>html import.
if you do want to create a subdirectory in the root directory of your website, use whatever “webftp” interface your hosting service and navigate to to the directory called “AginginPlaceOptions” . you’ll know you are in the right place because that directory will contain a file called “wp-config.php” – when you are in the root directory of your website, create a directory called “html-files-to-import” and then put all of the files that you want to import there.
note that the HTML Import Settings page has six tabs with many, many options. before you import, it is imperative that you go to each tab and verify that the correction options are set.
for first time use, i suggest that you import just one file to make sure that you’ve got the import directory in the right place and the import options are set appropriately.
good luck!
Forum: Plugins
In reply to: [HTML Import 2] [Plugin: HTML Import 2] Importing Static HTML Pagestsbah – if you aren’t seeing any errors, but the content area is blank, look at the “Content” tab under “Settings > HTML Import” – under “Select Content by” you have to enter the HTML tag that contains the content. usually, you also have to specify an attribute value as well. for example, if you want to import everything in
<div id=’content’> … </div>
then the tag is ‘div’, the attribute is ‘id’, and the value is ‘content’ (do not enter the single-quotes).
if the element isn’t present in the HTML file, then you are going to get posts without any content…
that would certain solve the problem for me this time. i don’t think it’s particularly helpful for the next N people who have the same thing happen to them…
i addressed the issue by modifying the code. that may not be ideal, but now i don’t have to worry about remembering to tinker with the excel files that are sent to me for inclusion in the site…
if we are talking about simplemap 2.2.5, then:
step 1: get the search helper to include the permalink in the results, that’s easy:
--- _xml-search.php 2011-07-27 20:07:22.000000000 -0700 +++ xml-search.php 2011-09-24 00:26:21.000000000 -0700 @@ -205,6 +205,7 @@ $newnode = $markers->addChild( 'marker' ); } + $newnode->$attr_func( "plink", esc_attr( get_permalink( $location->ID ) ) ); $newnode->$attr_func( "name", apply_filters( 'the_title', $location->post_title ) ); $newnode->$attr_func( "description", apply_filters( 'the_content', $location->post_content ) ); $newnode->$attr_func( "lat", esc_attr( $location->lat ) ); @@ -240,6 +241,7 @@ $markers = array(); foreach ( $dataset as $key => $location ) { $fields = array( + 'plink' => esc_attr( get_permalink( $location->ID ) ), 'name' => apply_filters( 'the_title', $location->post_title ), 'description' => apply_filters( 'the_content', $location->post_content ), 'lat' => esc_attr( $location->lat ),step 2: make use of it in classes/simplemap.php – i’m not including the code for this (because i’m not satisfied with the changes i’ve made); however, here’s what to do:
go to the javascript function searchLocationsNear(). you’ll see this:
for (var i = 0; i < markers.length; i++ ) { var name = markers[i].getAttribute('name');add a new variable there:
var plink = markers[i].getAttribute('plink');later on you will see two calls that look like this:
var marker = createMarker(...); ... varsidebarEntry = createSidebarEntry(...);add plink as a parameter to each them. then scroll down the file until you find these two javascript functions. add the parameter to each and then make use of it however you want.
for example, instead of putting up the website url you could put up a link that says “More Details” with the permalink.
finally, although i have had great success making a few changes and fixing a few minor bugs with this plugin, i’m probably going to move to the premium version soon, simply because i don’t want to have to keep backporting the diffs.
i suspect that if you change ‘publicly-queryable’ from false to true, you will find joy.