Search found 81 matches

by aster59
Sun Mar 05, 2017 9:49 pm
Forum: [3.2.x] Support Forum
Topic: Call to a member function getParameter() ERROR integration PHPBB with Wordpress
Replies: 6
Views: 2008

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Do you happen to know what forum software makes integration possible?
by aster59
Sun Mar 05, 2017 8:50 pm
Forum: [3.2.x] Support Forum
Topic: Call to a member function getParameter() ERROR integration PHPBB with Wordpress
Replies: 6
Views: 2008

Re: Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Edit: I decided to put it outside the header function and got a 503 error, whole site wouldn't load. What is up with this?
by aster59
Sun Mar 05, 2017 7:51 pm
Forum: [3.2.x] Support Forum
Topic: Call to a member function getParameter() ERROR integration PHPBB with Wordpress
Replies: 6
Views: 2008

Call to a member function getParameter() ERROR integration PHPBB with Wordpress

Hi everyone. I am in a mess right now. I will give you the steps of what I did and hopefully its enough because I can't hand over every single piece of code on my site. Here are the steps I followed. What did I do? Step 1: Take this code and paste it into header.php in Wordpress: define('IN_PHPBB', ...
by aster59
Sun Mar 05, 2017 3:51 pm
Forum: [3.2.x] Support Forum
Topic: Mass Email in ACP Template Variables?
Replies: 5
Views: 363

Mass Email in ACP Template Variables?

In this section of my ACP (screenshot also attached for quick reference): adm/index.php?sid=c5bc0bd8bb269530596e5e4261beb831&i=acp_email&mode=email I want to send a mass email out to everyone. My understanding after editing it and seeing changes is that the template email file for this is language/e...
by aster59
Sat Feb 25, 2017 1:01 pm
Forum: Extension Writers Discussion
Topic: Arithmetic/PHP Manipulation with Template Variables
Replies: 3
Views: 227

Re: Arithmetic/PHP Manipulation with Template Variables

You need to add +0 to make it work. Don't ask me why. :) <!-- DEFINE $SUM = NUMBER_ONE + NUMBER_TWO + 0 --> As David suggested, Twig is much nicer: {{ NUMBER_ONE + NUMBER_TWO }} Wow thanks! How did I not see that with twig. I also did it with Javascript: <script type="text/javascript"> intPhones = ...
by aster59
Sat Feb 25, 2017 2:24 am
Forum: Extension Writers Discussion
Topic: Use arguments from PHP events?
Replies: 12
Views: 460

Re: Use arguments from PHP events?

So you would have to open a ticket and request an event within the tracker and then fork the code on github and make a PR against core to get your event added. Just to revive this for a minute of a realization I made and for future people, I will make a request for this event. The ones they have su...
by aster59
Sat Feb 25, 2017 2:14 am
Forum: Extension Writers Discussion
Topic: Arithmetic/PHP Manipulation with Template Variables
Replies: 3
Views: 227

Arithmetic/PHP Manipulation with Template Variables

I am trying to do something like this using template syntax: //take {} template variables and add them <!-- DEFINE $TOT_DEVICES = {PROFILE_NUM_PHONES_VALUE} + {PROFILE_NUM_COMPUTERS_VALUE} --> // then to echo <div>{$TOT_DEVICES}</div> I also tried: // just echo <div>({PROFILE_NUM_PHONES_VALUE} + {PR...
by aster59
Mon Feb 20, 2017 6:42 pm
Forum: Extension Writers Discussion
Topic: Use arguments from PHP events?
Replies: 12
Views: 460

Re: Use arguments from PHP events?

Steve wrote:
Mon Feb 20, 2017 6:29 pm
Why not just access the poster_ids in this way?

Code: Select all

	public function my_function_delete_posts($event)
	{
		$poster_ids = $event['poster_ids'];
		foreach ($poster_ids as $poster_id)
		{
			//$poster_id do something with
		}		
	}
Yeah, that is how I ended up structuring the loop.
by aster59
Mon Feb 20, 2017 3:52 pm
Forum: Extension Writers Discussion
Topic: Use arguments from PHP events?
Replies: 12
Views: 460

Re: Use arguments from PHP events?

It looks like I got it to work outside as long as the hard delete is the only thing users/admins/mods are allowed to do. No soft delete event, I'd prefer just hard deletes anyway. The $event variable I had can actually access the poster ids then in a DOUBLE array, which I guess would make sense sinc...
by aster59
Mon Feb 20, 2017 3:46 pm
Forum: Extension Writers Discussion
Topic: Soft delete PHP event, or force hard delete posts?
Replies: 2
Views: 312

Re: Soft delete PHP event, or force hard delete posts?

can I force a hard delete anytime a user or admin/moderator deletes something? Set the moderator permission "Can soft delete posts" to No or Never. Thanks, that is what I ended up doing for admins, moderators, and users allowed to delete their own posts. The event doesn't exist as far as I can tell.
by aster59
Mon Feb 20, 2017 11:34 am
Forum: Extension Writers Discussion
Topic: Use arguments from PHP events?
Replies: 12
Views: 460

Re: Use arguments from PHP events?

For the ACP? I am sorry I didn't specify, no in the listener file I am writing for an extension. I use the above event inside of the getSubscribedEvents() method attached to a function called delete_post, and that function needs to have access to the arguments I see from the event like Poster_ids. ...
by aster59
Mon Feb 20, 2017 2:29 am
Forum: Extension Writers Discussion
Topic: Use arguments from PHP events?
Replies: 12
Views: 460

Re: Use arguments from PHP events?

RMcGirr83 wrote:
Sun Feb 19, 2017 11:47 pm
For the ACP?
I am sorry I didn't specify, no in the listener file I am writing for an extension. I use the above event inside of the getSubscribedEvents() method attached to a function called delete_post, and that function needs to have access to the arguments I see from the event like Poster_ids.
by aster59
Sun Feb 19, 2017 9:37 pm
Forum: Extension Writers Discussion
Topic: Soft delete PHP event, or force hard delete posts?
Replies: 2
Views: 312

Soft delete PHP event, or force hard delete posts?

I am using the event: https://wiki.phpbb.com/Event_List#core.delete_posts_after It only works when it is a hard delete. Is there a php soft delete event? I couldn't find anything. If not, can I force a hard delete anytime a user and admin/moderator deletes something? No optional restore. I might pre...
by aster59
Sun Feb 19, 2017 9:34 pm
Forum: Extension Writers Discussion
Topic: Use arguments from PHP events?
Replies: 12
Views: 460

Use arguments from PHP events?

I read around and I couldn't find anything on this. I am using this event in my listener file that I am writing for an extension: https://wiki.phpbb.com/Event_List#core.delete_posts_after It has arguments found in table: delete_notifications_types, forum_ids, post_ids, poster_ids, topic_ids, where_i...
by aster59
Thu Jan 12, 2017 1:23 am
Forum: Extensions in Development
Topic: [DEV] Post Love
Replies: 746
Views: 107080

Re: [BETA] Post Love

Looking forward to 3.2 compatible version!

Go to advanced search