Author | Posts |
---|---|
November 29, 2013 at 7:13 pm 13036 | |
TeeDev | Guys please, come on……….. |
December 2, 2013 at 7:21 pm 13134 | |
TeeDev | Hello I really need help to get this final part of this support query resolved. I need guidance on how to insert the code shown previously into the PHP template as advised. Thank you |
December 2, 2013 at 10:59 pm 13145 | |
TeeDev | Hi Wedevs, Can I have a resolution please? Thanks |
December 3, 2013 at 2:47 pm 13194 | |
TeeDev | Hi guys I’m seeing you’re answering other support questions. Thank you! |
December 4, 2013 at 5:51 am 13240 | |
TeeDev | I bout WPUF Pro and the Buddypress addon but you’re not providing me full support for them, choosing to ignore my ticket. Please assist me and resolve my ticket to the full resolution http://wedevs.com/support/topic/frontend-pro-form-purchase-packages-and-buddypress/ Thanks |
December 4, 2013 at 6:09 am 13242 | |
Mahi | So sorry for delay. If you want to use that large HTML inside php file, then try like this : //PHP Code…
HTML Code goes here
|
December 4, 2013 at 6:09 am 13243 | |
Mahi | So sorry TeeDev, I just replied. |
December 4, 2013 at 6:32 am 13251 | |
TeeDev | Hi Mahi Thanks for your reply. But can you show me exactly how to use it in the place where it says ‘You must purchase a package’? If you can show me exactly how to replace that actual segment of code that would be great. Or maybe it would be easier to make it so it uses the same code that is used in the rendered form when the user is not logged in? Thanks |
December 4, 2013 at 12:02 pm 13263 | |
Tareq Hasan | Try it this way: Your text goes here <?php |
December 4, 2013 at 3:22 pm 13278 | |
TeeDev | Hi Tareq No, that didn’t work. I got the following error on the frontend Parse error: syntax error, unexpected ‘public’ (T_PUBLIC) in /home/user/public_html/xtra/wp-content/plugins/wp-user-frontend-pro/class/subscription.php on line 484 It’s a block of HTML I’m trying to add, is that compatible with this method? Thanks |
December 4, 2013 at 3:29 pm 13280 | |
TeeDev | OK, my mistake I think – I tried again and it seems to have worked. The first time I overwrote the two lines: return $text; But the second time I kept them. Is it correct to keep those? So all I’m replacing are these three lines:
Is that correct? Thanks guys |
December 4, 2013 at 4:00 pm 13284 | |
TeeDev | OK guys I’m still having a little bit of issues with expected functionality/behaviour here. Here is the scenario. I want users to register and be logged in and force them to purchase a package to submit a post. OK. So I have a submission form. If they are not logged in when they reach the form page it shows them a message I nicely designed in HTML telling them to register or login. If they are logged in they see the form. (At the top of the form page there is a message in HTML telling them to follow a link to purchase a package then come back to the form page). This works nicely when Charge for posting = No and Force Pack Purchase = Yes. But this isn’t good because people can submit without buying a pack. However, when I turn on Charge for Posting = Yes people who are not logged in see the error You Must Purchase a Package and people who are logged in see the same error when they access the form page. Of course, because you need a package. But this is not helpful. I want users who are not logged in to see the Form’s message for not logged in users. If they are not logged in then purchasing a package is irrelevant. Then I want users who are logged in but haven’t got a package to just see the form page with my message at the top OR with the default ‘You Must Purchase a Package…’ error at the top of the form. Does this make sense? How can I achieve this? |
December 4, 2013 at 6:46 pm 13290 | |
Tareq Hasan | I’ll be adding a filter in the force pack notice in a future version. But right now, you can paste this snippet: [php] Now, you can add your custom informations to your themes functions.php like this: ob_start(); if ( is_user_logged_in() ) { give purchase pack info to logged in users <?php } else { ?> Put your login/registration instruction <?php return ob_get_clean(); add_filter( ‘wpuf_pack_notice’, ‘wpufe_force_pack_notice’ ); |
December 4, 2013 at 7:06 pm 13291 | |
TeeDev | Superthanks Tareq, But where do I add that snippet? Is it in place of the code you gave me before (in subscription.php) or above it? Will it give the notice as it was before or above my form? And the code for functions.php, does that replace all of the changes before? Should I only fo the functions.php change? I’m a bit confused… |
December 4, 2013 at 7:40 pm 13294 | |
TeeDev | How can I set it so users can purchase a package more than once? i.e. when repurchase when it has expired |