Search found 81 matches

by aster59
Fri Nov 02, 2018 6:31 pm
Forum: Extension Writers Discussion
Topic: Putting Recaptcha V2 in External phpBB Login Issues
Replies: 1
Views: 508

Re: Putting Recaptcha V2 in External phpBB Login Issues

Ok, this is kind of a hack, but I just removed the captcha from the phpbb part (above define('IN_PHPBB',true); ) and checked there. Not sure why PHPBB was mangling the CURL response.
by aster59
Fri Nov 02, 2018 4:34 pm
Forum: Extension Writers Discussion
Topic: Putting Recaptcha V2 in External phpBB Login Issues
Replies: 1
Views: 508

Putting Recaptcha V2 in External phpBB Login Issues

Here is the whole file (register.php) stripped of sensitive info: <?php define('IN_PHPBB',true); $phpbb_root_path = ""; $phpEx = substr(strrchr(__FILE__, '.'), 1); require_once( $phpbb_root_path . "common." . $phpEx ); include($phpbb_root_path . 'includes/functions_display.' . $p...
by aster59
Fri Jan 05, 2018 5:10 pm
Forum: Extension Writers Discussion
Topic: How to take a variable from event register before to register after?
Replies: 6
Views: 1421

Re: How to take a variable from event register before to register after?

Take a look at this listener from an extension. You want to look at the ucp_register_x events. https://github.com/rmcgirr83/phpBB-3.1-genders/blob/master/event/listener.php Oh wow. core.ucp_register_user_row_after is it. The language describing it just went over my head for some reason. Thank you!
by aster59
Thu Jan 04, 2018 5:37 pm
Forum: Extension Writers Discussion
Topic: How to take a variable from event register before to register after?
Replies: 6
Views: 1421

Re: How to take a variable from event register before to register after?

Not sure if this applies for you, but have a look here: https://area51.phpbb.com/docs/dev/3.2.x/extensions/tutorial_events.html#php-core-events-listeners Note how the lang_set_ext event variable is first copied by assigning it to a local variable, then modified, and then copied back. This shortcut ...
by aster59
Mon Jan 01, 2018 10:51 pm
Forum: Extension Writers Discussion
Topic: How to take a variable from event register before to register after?
Replies: 6
Views: 1421

Re: How to take a variable from event register before to register after?

OK I Figured out how to get the $ref var to the next event. I just assigned it to an hidden input on the registration page. <input type="hidden" name="ref_by" value="{ref_by}"> I did a register append event to add this to the form and just pulled it from the template wi...
by aster59
Mon Jan 01, 2018 2:46 am
Forum: Extension Writers Discussion
Topic: Radio button values not submitting in UCP addition?
Replies: 2
Views: 485

Re: Radio button values not submitting in UCP addition?

From the code you show, your're not using their values, you radio fields are named a , but you're only requesting a variable named display . You could also use the $request->variable_names() to see all the variables in the request, I haven't used it myself though. P.S.: I don't think your IDs shoul...
by aster59
Sun Dec 31, 2017 9:30 pm
Forum: Extension Writers Discussion
Topic: Radio button values not submitting in UCP addition?
Replies: 2
Views: 485

Radio button values not submitting in UCP addition?

I got this code in the template file: <dl> <dt> <label for="2">{L_UCP_SETTING_TITLE}:</label> <span>{L_UCP_SETTING_EXP}.</span> </dt> <dd> <label for="2"><input type="radio" name="a" id="2" value="2" <!-- IF S_UCP_DISPLAY == 2 --> checked=&...
by aster59
Sat Dec 30, 2017 10:50 pm
Forum: Extension Writers Discussion
Topic: How to take a variable from event register before to register after?
Replies: 6
Views: 1421

How to take a variable from event register before to register after?

Hi again. Sorry, I can't seem to figure this part out now. So I got this variable, $ref , I need to carry over to register after. It is like a referral ID so you can know when users come to the forum from someone. Here is my current code for the extension. Scenario: someone goes to a forum with the ...
by aster59
Sat Dec 30, 2017 10:09 pm
Forum: Extension Writers Discussion
Topic: Call to a member function variable() on null - can you use $request with this event?
Replies: 5
Views: 847

Re: Call to a member function variable() on null - can you use $request with this event?

AbaddonOrmuz wrote: Sat Dec 30, 2017 10:04 pm You have a typo, it's not $this->$request() but $this->request()

You might wan't to use var_dump() or print_r() for debuggin.
Oh, well how pathetic of me. Thanks. Sorry a little rusty.

Yeah, good idea.
by aster59
Sat Dec 30, 2017 10:01 pm
Forum: Extension Writers Discussion
Topic: Call to a member function variable() on null - can you use $request with this event?
Replies: 5
Views: 847

Re: Call to a member function variable() on null - can you use $request with this event?

Show the complete code, because you're not declaring $request , your code says that you're expecting that $request will be a instance of phpbb\request\request , but you're not assingning that variable so you can't use it outside the __construct() method. Read about dependency injection: https://are...
by aster59
Sat Dec 30, 2017 9:16 pm
Forum: Extension Writers Discussion
Topic: Call to a member function variable() on null - can you use $request with this event?
Replies: 5
Views: 847

Call to a member function variable() on null - can you use $request with this event?

Hi everyone, happy holidays. My goal is to: Grab a query string (&ref) from the users url after they click agree to the terms. Url ex.) https://forum.com/ucp.php?mode=register&ref=person_who_ref_me I used the event: core.ucp_register_data_before My code was inside my function in the listener...
by aster59
Fri Dec 29, 2017 5:41 pm
Forum: phpBB Custom Coding
Topic: Creating a Login/Registration Off-Domain?
Replies: 1
Views: 388

Re: Creating a Login/Registration Off-Domain?

Ok, so this thread is probably useful to me. Although I am on the latest phpbb it should work.

viewtopic.php?f=461&t=2288631
by aster59
Fri Dec 29, 2017 5:25 pm
Forum: phpBB Custom Coding
Topic: Creating a Login/Registration Off-Domain?
Replies: 1
Views: 388

Creating a Login/Registration Off-Domain?

This domain is on the same server, so I have perfect access to the database, just not the cookies. I also am not allowed to send my users to login to the forum domain! It must be off domain, so I basically need to build the phpbb login, which wouldn't be a problem if, I assume the only necessary inf...
by aster59
Wed May 24, 2017 5:54 pm
Forum: [3.2.x] Support Forum
Topic: Mass Email in ACP Template Variables?
Replies: 5
Views: 507

Re: Mass Email in ACP Template Variables?

Anyone have any current documentation for putting variables in mass email template of admin_send_email.txt?

{TO_USERNAME} I tried didn't work either. I am also looking to make HTML in the mass emails to stylize them a bit if anyone knows.
by aster59
Wed May 24, 2017 1:47 pm
Forum: [3.2.x] Support Forum
Topic: Reset Password Emails and Mass Emails Not Being Received by Users [SOLVED]
Replies: 14
Views: 2511

Re: Reset Password Emails and Mass Emails Not Being Received by Users

Well, I figured it out and certainly feel like an idiot. I had in function_user.php : 'user_notify' => 1, 'user_notify_pm' => 1, 'user_notify_type' => NOTIFY_IM, 'user_allow_pm' => 1, 'user_allow_viewonline' => 1, NOTIFY_IM needed to be NOTIFY_BOTH ... I had no idea it affected this. I guess admin a...

Go to advanced search