Dylan
Forum Replies Created
-
AuthorPosts
-
Hi Paolo,
First of all, I apologize for taking your time on finding this. We were not aware that another developer had added this code.
Second, thank you VERY much for your time on this, and your help!
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.Thanks for the info and pointer.
Hi Paolo,
Yes, of course I can hide it with CSS.
But the most efficient method is to prevent those sections from generating at all, via code.
I will use CSS though.
Thanks.
Hi Guust,
Ok, then is it possible to remove the listing content, and the sidebar from the listing preview page (i.e. – only show the preview section with the ‘Go Back and Edit’, ‘Cancel’, and ‘Publish’ buttons?
I am trying to edit the preview-buttons.php template to remove it, but I have not been successful yet.
Thanks.
Hi Stiofan,
That worked great. Thank you, and have a great new year.
Hi Stiofan,
Yes, this was for a custom login page redirect. I have the redirect working fine, except when doing a ‘claim listing’ via the Business Owner link.
It redirects to my custom login page, but does not carry the /?redirect_to, with the path back to the food truck.
So for example, the normal URL that is given when claiming a listing (clicking on ?Business Owner), is something like:
http://mysite.com/gd-login/?redirect_to=http%3A%2F%2Fmysite.com%2Fplace%2Faustin%2Fpizza-2%2Fcool-pizza-place%2F%3Fgd_go%3Dclaim
When I use this redirect code
add_filter('geodir_login_url','change_geodir_login_url',10,3); function change_geodir_login_url($login_url,$args,$gd_page_id){ //change the url to whatever you want. $login_url = 'http://mysite.com/my-login-page'; return $login_url;}
it does redirect me to http://mysite.com/my-login-page/, but does not append the URL variables for the claimed listing – /?redirect_to=http%3A%2F%2Fmysite.com%2Fplace%2Faustin%2Fpizza-2%2Fcool-pizza-place%2F%3Fgd_go%3Dclaim
What do i need to do to have the claim listing redirect to my login page, WITH the URL variables for the listing appended?
Thanks for the help!
Hi Guust,
Ha… I forgot I had a geodirectory-home.php file in /geodirectory subdirectory of the theme.
Works now…
Thanks for the fast response, and have a good day!
Hi Guust,
Adding it to the bottom of the previous text will not work in our case, because the previous is a fieldset, and they are not in the PO file.
So we would have to modify the add-listing template to add even a single line of text. How would the function target the exact area we would like to add our text? Is it by function priority only, on the hook?
Thanks!
Hi Guust,
The translation file works for small changes. But for instance, if I want to add this:
<p class="food-cat-desc">Select one or more Food Categories. Have a suggestions for a new category, let us know at [email protected]</p>
prior to the Category section of the Add listing form, it cannot be done by translating the “Category” word, because it inserts the HTML within the <label> tag, and not above it. So it does not display correctly, and CSS cannot be used to adjust the position, because the <label> tag contains the new html/text.
Thanks.
Hi Paolo and Guust,
Prior to creating this forum post, we had already resaved permalinks in both Settings >> Permalinks and GD > Permalinks. It has no effect.
We also did a page check at GD > Tools, and it shows no issues either.
We do have redirects set at login, but I do not know how that would have any effect on this situation. The page /listing-preview was created when we first installed the plugin 3 months ago, and we have not changed that at all.
Yes, I knew hiding with CSS was an option, and have done that.
Thanks for your help.
September 25, 2015 at 7:57 pm in reply to: Notice : Object of class WP_Post could not be converted to int #54552This reply has been marked as private. -
AuthorPosts