Sevallis
Forum Replies Created
-
Thanks, that worked great and they look nice and sharp now. I really appreciate your help
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingAh, I take it back, now my code which worked perfectly a few updates ago isn’t working correctly. The “more info” buttons won’t open location descriptions and nothing comes up when clicking on map location pins. Please help Mr. Smit!
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingOh, I actually just found my old file. Hooray! Im going to post it here for others since this thread is stickied. I still would appreciate it if you would build this back in Mr. Smit, it existed in the form that we are attempting to reinstate when you first made this plugin, and its very useful. Most people don’t know how to muck around in code like this.
add_filter( 'wpsl_include_post_content', '__return_true' ); add_filter( 'wpsl_info_window_template', 'custom_info_window_template' ); function custom_info_window_template() { global $wpsl; $info_window_template = '<div data-store-id="<%= id %>" class="wpsl-info-window">' . "\r\n"; $info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t\t" . wpsl_store_header_template() . "\r\n"; // Check which header format we use $info_window_template .= "\t\t\t" . '<span><%= address %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% if ( address2 ) { %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span><%= address2 %></span>' . "\r\n"; $info_window_template .= "\t\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t\t" . '<span>' . wpsl_address_format_placeholders() . '</span>' . "\r\n"; // Use the correct address format $info_window_template .= "\t\t" . '</p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( description ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= description %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( phone ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'phone_label', __( 'Phone', 'wpsl' ) ) ) . '</strong>: <%= formatPhoneNumber( phone ) %></span>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( fax ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'fax_label', __( 'Fax', 'wpsl' ) ) ) . '</strong>: <%= fax %></span>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( email ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<span><strong>' . esc_html( $wpsl->i18n->get_translation( 'email_label', __( 'Email', 'wpsl' ) ) ) . '</strong>: <%= email %></span>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( hours ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<div class="wpsl-store-hours"><strong>' . esc_html( $wpsl->i18n->get_translation( 'hours_label', __( 'Hours', 'wpsl' ) ) ) . '</strong>' . "\r\n"; $info_window_template .= "\t\t" . '<%= hours %>' . "\r\n"; $info_window_template .= "\t\t" . '</div>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= createInfoWindowActions( id ) %>' . "\r\n"; $info_window_template .= "\t" . '</div>'; return $info_window_template; } add_filter( 'wpsl_thumb_size', 'custom_thumb_size' ); function custom_thumb_size() { $size = array( 150, 150 ); return $size; }
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingThis is broken again as of the last update, and your code examples are all 404 broken links. Would you please add these features back into the plugin? They disappear when we update our plugins due to their volatile location which really isn’t meant for user edits. Perhaps you could give us an enduring “custom post template” entry area like wordpress gives us an entry area for our custom css that isn’t wiped out in updates?
I had to figure this out last time, without really understanding how, and now I have to do it all over again because I lost a note that I had pasted the successful code data into.
The setting to show the description in the info window is not functional, it ought to do what we are now having to write custom code to make it do. That setting does nothing when selecting display in info window, it only works on the display in list selection.
Happy new year, I hope you are well. Thank you for your time and assistance.
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingI fiddled with the code that you posted to try and get some of my lost data back, and I don’t know what I’m doing so its pretty slapped together. Nevertheless, I got my phone, fax, and email back on to the info window in the map. I lost the bolded labels on those things though, which is annoying because I’m not sure how to add them back in. They are also ignoring my settings to allow the email link to be clickable.
Here is what I added within the code that you posted.
$info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( phone ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= phone %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '</p>' . "\r\n"; $info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( fax ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= fax %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '</p>' . "\r\n"; $info_window_template .= "\t\t" . '<p>' . "\r\n"; $info_window_template .= "\t\t" . '<% if ( email ) { %>' . "\r\n"; $info_window_template .= "\t\t" . '<%= email %>' . "\r\n"; $info_window_template .= "\t\t" . '<% } %>' . "\r\n"; $info_window_template .= "\t\t" . '</p>' . "\r\n";
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingAlso, I just realized that while the code fixes the missing descriptions in the store info window, it also made the store’s phone numbers and hours disappear. The phone numbers and hours were all I was getting in the info windows before I entered the new code, so I figure this must have something to do with that. What needs to be added to bring it back?
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingThank you Tijmen, I appreciate your help. Are you going to add this back into the default code or something? Won’t this change disappear once we upgrade the plugin?
I am really not sure why this happened in the first place since you have a toggle to enable showing info, including the description field, in the map listing. Shouldn’t this be something changed in a plugin update?
I am having the same problem.
Forum: Plugins
In reply to: [WP Store Locator] Description field not showing after updatingI have the same problem as rjwyatt, no matter what I try I cannot get the post content to display in the “info window on the map”. It was working before I upgraded to the new version, and all of my stores still have their post descriptions but I just can’t get them to display.
Forum: Plugins
In reply to: [WP Store Locator] Current Stores Section emptied itselfOkay, I have been avoiding dealing with this because I am afraid to destroy something when I am messing with dropping and importing tables in MySQL. However, I did get it working with my previous data, and I am pretty sure I know what happened but not how it happened.
I think the field “address2” got lost somehow between upgrades of the plugin. I promise I did not edit any files, I am wary of doing anything beyond the general WordPress in browser sandbox. If I recall correctly, I already had to change the “street” field to “address” to make try and fix the problem earlier. I didn’t change that either, but for some reason it failed to be changed over from “street” to “address” whenever the update that modified that went out. Well, apparently at the same time it appears that the “address2” field was simply missing/not created. I saw it when I deleted and reinstalled.
I think the plugin was failing because it didn’t have any table to place an empty “address2” data into. I think I got the name correct or it wouldn’t have been possible to create a new test location, it is named “address2” right?
Forum: Plugins
In reply to: [WP Store Locator] Current Stores Section emptied itselfI think that if I didn’t have to manually re-type all of the myriad dealer info, then I would probably start over. I see that this thread has ballooned to many times the length of your other resolved threads. I was hoping that perhaps this issue could be resolved so that it wouldn’t happen in the future.
Forum: Plugins
In reply to: [WP Store Locator] Current Stores Section emptied itselfAgain, apologies for the long delay between posting, I have had a lot going on in life lately. I got this error when I enabled debug mode:
Notice: Undefined variable: wpdb in /Applications/MAMP/htdocs/wp-content/plugins/wp-store-locator/admin/templates/edit-store.php on line 2
Fatal error: Call to a member function show_errors() on a non-object in /Applications/MAMP/htdocs/wp-content/plugins/wp-store-locator/admin/templates/edit-store.php on line 2
Edit:
Oh, I just tried out your older php error call code that we used previously, and found this in the “Address 2:” entry field:<b>Notice</b>: Undefined index: address2 in <b>/Applications/MAMP/htdocs/wp-content/plugins/wp-store-locator/admin/templates/edit-store.php</b> on line <b>44</b>
That looks like it might be a whole lot more helpful, unless I am mistaken.
If so, here is the block of code starting on line 44:
<input id=”wpsl-store-address2″ name=”wpsl[address2]” type=”text” class=”textinput” value=”<?php if ( isset( $_POST[‘wpsl’] ) && empty( $_POST[‘wpsl’][‘address2’] ) ) { echo esc_attr( stripslashes( $_POST[‘wpsl’][‘address2’] ) ); } else { echo esc_attr( stripslashes( $store_details[‘address2’] ) ); } ?>” />
I also just noticed this error on the Current Stores view:
Notice: Indirect modification of overloaded property WPSL_Store_Overview::$_args has no effect in /Applications/MAMP/htdocs/wp-content/plugins/wp-store-locator/admin/class-store-overview.php on line 393
Forum: Plugins
In reply to: [WP Store Locator] Current Stores Section emptied itselfWhen I try to insert the code into any php tagged section of the page, it fails to display anything on the page.
I tried inserting the code in other areas, and within it’s own php tag, and it does the same thing. It just rendered as text outside of a php tag, so I’m thinking that is correct to insert it in-between those tags? I even tried creating it’s own tag section:
<?php
$wpdb->show_errors();echo ‘Error = ‘ . $wpdb->last_error;
?>However, it did the same thing as represented by the second screenshot. Pardon my ignorance if I have made some fundamental error here.
I am not able to add a new store, it gives the error:
“There was a problem saving the new store details, please try again.”It did allow me to delete a store that I no longer wanted though. Quite confusing.
Forum: Plugins
In reply to: [WP Store Locator] Current Stores Section emptied itselfMy apologies if this is just dragging on and becoming annoying. Is there any other information that I can post to help smooth this out?
Forum: Plugins
In reply to: [WP Store Locator] Current Stores Section emptied itselfAlright, so I looked in my wp_options table in my database. Here is what is in there: database img
I couldn’t find a field called wpsl_version, so I went with option 2 and manually renamed “street” to “address” in the wpsl_stores field. My stores are visible on the plugin list again: manage stores
However, when I attempt to make an edit to the store entry, I get this error: edit errorSo, I have them visible again, but they are not editable. Any ideas?