cubryto
Forum Replies Created
-
Sorry, I posted wrong error message. The error is “session_start(): Cannot send session cache limiter – headers already sent”
Thanks for the reply.
I’m using Paypal Express, not Paypal standard.
I’m thinking that PMPRO activates the membership for a user after he agree to a subscription, but before a payment is confirmed. If this was true, then a user could exploit this to view all the site content he wants without paying.
Then, here is my 2 cents. PMPRO should have an option to choose between activating membership right away or waiting until a payment is actually made. So that an admin can choose whatever works best for their site.
Hi,
I’m getting the exact same issue. Paypal users still get access after they cancel their subscription before the payment is made. Also, a user will have access when the order is ‘reviewed’
I’m not running custom code.
Thanks
Hi,
I just migrated to PMPRO and face this issue also. Do you guys have any update yet?Forum: Hacks
In reply to: Filter content with preg_replaceSo here is an example of what I want to do
1) This is question 1?
Answer: Answer for question 1 paragraph 1
Answer for question 1 paragraph 2
Answer for question1 paragraph 32) This is question 2?
Answer: Answer for question 2 paragraph 1
Answer for question 2 paragraph 2
Answer for question 2 paragraph 33) …..
So I want to replace all the Answers (everything after ‘Answer:’) with a string like ‘Please login to view answer’.
With the help of bcworkz, I can replace the paragraph 1, but not paragraph 2, and 3.Forum: Hacks
In reply to: Filter content with preg_replace@jan: I don’t know what other option I have here.
Forum: Hacks
In reply to: Filter content with preg_replace@bcworkz: can I replace multiple lines ? Let’s say the answer has multiple paragraphs, can I preg match from ‘Answers:’ to ‘2)’ or ‘3)’ ? Thank you.
Forum: Hacks
In reply to: Filter content with preg_replaceThank you so much
Forum: Hacks
In reply to: Auto insert shortcode to content.Thank you. I didn’t know I can filter the content. I solved by filter the content like Jan request. Now I’m stuck the word count for post. Currently I have a custom field called ‘wordcount’ to store the word counter using this code:
function add_custom_field_automatically($post_ID) {
global $wpdb;
global $post;
$content = $post->post_content;
$wordcount = sizeof(explode(” “, $content)); //Ya this is an estimation word counter
update_post_meta($post_ID, ‘wordcount’,$wordcount, true);
}
The problem is that $post->post_content has no content when pressing ‘publish’ button. Is there anyway that I can get the pre saved content?To people who is looking for an answer for my previous situation , I use this function:
function function-to-modify-content($content){
//filter the content
return $content;
}
add_filter(‘content_save_pre’,’function-to-modify-content’);