sg1_anhell
Forum Replies Created
-
The issue is solved.
It was because of Instantify plugin cache
Thank you very muchYes, I have this page correctly configurated, I double checked.
No, there is none caching module in WordPress and on the server either.
What could be?
Thank you very much
Hola desde Girona ;P
Maybe doing that:
if ( is_user_logged_in() && (userpay=yes) ) {
$this->post_form( $post_type );
} else {
show condition or message
}*(userpay=yes)
this is invented oviously, but is a posible idea, how do that exactly, i don’t know sorryUn saludo paisano! no se si esto te servirá, pero es la idea que se me ha ocurrido al respecto, no tengo nivel alto de programación así que no puedo ayudarte más perdona. Suerte!
This is more or less possible.
In my case, I have done this:
– In “wpuf-add-post.php”, search: “is_user_logged_in”
– And in “else” put the form too, so:if ( is_user_logged_in() ) {
$this->post_form( $post_type );
} else {
$this->post_form( $post_type );
}http://www.esodecimostodos.com/escribir-post/
– With this, there were problems, when an anonymous user publishes a Post, gave an error. so, I created a page to say that the comment is pending review.
http://www.esodecimostodos.com/post-recibido/
To make the redirection:
– In “wpuf-add-post.php”, search the last “if”: if ($ post_id)
– And do like this://echo ‘<div class=”success”>’ . __(‘Post published successfully’, ‘wpuf’) . ‘</div>’;
header( ‘Location: http://www.esodecimostodos.com/post-recibido’ ) ;
exit();
if ( $post_id ) {
header( ‘Location: http://www.esodecimostodos.com/post-recibido’ ) ;
exit();$redirect = apply_filters( ‘wpuf_after_post_redirect’, get_permalink( $post_id ), $post_id );
I hope you find it useful provisionally.
It is a solution. Sorry for my english: PHello,
I tried with different plugin to put a “Preview Button”, but I didn’t succeed: SSomeone can say something please?
thank you very much
I Try again and.. works!!! 🙂 thank you very much!
The key is this comment:
P.S. Just put the code of the helper function modulo outside the class definition, i.e. at the top of class-ai1ec-calendar-helper.php, such that all other functions can use it.
Then it’s just a simple code line at the locations mentioned allreday:
app/controller/class-ai1ec-calendar-controller.php:
$timestamp-=modulo($timestamp,(24*60*60));app/helper/class-ai1ec-calendar-helper.php:
$now-=modulo($now,(24*60*60));app/view/class-ai1ec-agenda-widget.php:
$timestamp-=modulo($timestamp,(24*60*60));Hi,
I think that is itSearch in wpuf-add-post.php: else if ( $cat_type == ‘ajax’ ) {
And inside duplicate the same line, but put the ID of all exclude categories you want,
Example (in the first show all) (in second show all except category 24):
else if ( $cat_type == ‘ajax’ ) {
wp_dropdown_categories( ‘show_option_none=’ . __( ‘– Select –‘, ‘wpuf’ ) . ‘&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=’ . $exclude );
wp_dropdown_categories( ‘show_option_none=’ . __( ‘– Select –‘, ‘wpuf’ ) . ‘&hierarchical=1&hide_empty=0&orderby=name&name=category[]&id=cat-ajax&show_count=0&title_li=&use_desc_for_title=1&class=cat requiredField&depth=1&exclude=’ . ’24’ );
}See you men 😉
Ok, I’ll keep trying, anyway thank you very much for all the help provided is greatly appreciated 🙂
Greetings!
Hello again 😛
You can send me your folder “app” of the plugin with this changes please?
to: [email protected],Then I can compare what I did wrong;)
Thank you very much!
Okay, I’ll try again, maybe there’s a little thing done wrong,
My site is not a business, is a free blog so I can not have expenses.
I will try and tell you, wish me luck 🙂
Thank you very much for your help 😉
I made the changes as you said, I think.
But as you can see now the calendar not works and has created a loop:
http://www.esodecimostodos.com/Maybe I have some piece of code in the wrong place, I think it will be easier if you step in a zip folder:
http://www.esodecimostodos.com/sg1_anhell-all-in-one-event-calendar.zip
Forgive my ignorance but I have little knowledge of PHP, just the basics.
I tried but I can not understand to do or how to do it. Can you tell me if possible what is the code that I put and where should I put it?
I would be very grateful!
Thank you very much 🙂Yess!!!! Works! 🙂
but as I can do the same with the widget?
I thought that making this change in the general codes also work in the Widget, but no .. : SThanks por help me 😉
Hi, thanks for replying, I tried to understand what you tell me and I put the code in this way, but I think I have not understood very well or there is something wrong with the code:
[50 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]