Search found 117 matches

by schwim
Tue Jul 04, 2017 5:54 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Re: Can I share phpBB variables with included PHP file?

Yes, after enabling "Allow PHP in templates" in the ACP, it works just fine.
by schwim
Tue Jul 04, 2017 5:49 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Re: Can I share phpBB variables with included PHP file?

david63 wrote:
Tue Jul 04, 2017 5:45 pm
How do you include a PHP file via a template?

Code: Select all

<!-- INCLUDEPHP ./extras/test.php -->
And I managed to figure out how to do it. Thanks to everyone for the help!
by schwim
Tue Jul 04, 2017 5:39 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Re: Can I share phpBB variables with included PHP file?

If anyone else can answer the simple question of "Can $user->data['username'] be passed to a PHP file included via the template without requiring more information, it would be greatly appreciated.

Thanks for your time!
by schwim
Tue Jul 04, 2017 3:02 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Re: Can I share phpBB variables with included PHP file?

Bumping again in hopes of some knowledge on the matter.
by schwim
Sun Jul 02, 2017 9:42 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Re: Can I share phpBB variables with included PHP file?

How are you wanting to use the variable? In a myriad of ways, to be honest. I'm planning on many uses but if a single example is a necessity, I've got a member map that I'm including on certain pages via phpinclude in the template and that included file requires the variable for nearby members and ...
by schwim
Sun Jul 02, 2017 8:53 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Re: Can I share phpBB variables with included PHP file?

Bumping in hopes of some help. I apologize if this is frowned upon.
by schwim
Sat Jul 01, 2017 3:50 pm
Forum: phpBB Custom Coding
Topic: Can I share phpBB variables with included PHP file?
Replies: 12
Views: 1196

Can I share phpBB variables with included PHP file?

Hi there everyone, I'd like to share variables like $user->data['username'] between the php page and a PHP file included in the template. Is there a way to do this other than duplicating the session system inside the included file? Is there some way to pass these variables on to the included script?...
by schwim
Sat Jul 01, 2017 2:19 am
Forum: phpBB Custom Coding
Topic: A list of conditional statements for templates?
Replies: 4
Views: 916

Re: A list of conditional statements for templates?

I finally muddled through the fix. messagerow made the magic happen. Is there some kind of conditional statement that I could create for unapproved posts? I have been trying to move over some of the statements from the MCP, but it's breaking the template when I do it: For instance, if I use this: IF...
by schwim
Fri Jun 30, 2017 6:02 pm
Forum: phpBB Custom Coding
Topic: A list of conditional statements for templates?
Replies: 4
Views: 916

Re: A list of conditional statements for templates?

https://wiki.phpbb.com/Global_Template_Variables Thanks very much for the link, I've already been viewing it but it seems that my template is trying to utilize conditions that aren't listed. I'm trying to find out why unread private messages are using the unread icon and in the template, the author...
by schwim
Fri Jun 30, 2017 4:33 pm
Forum: phpBB Custom Coding
Topic: A list of conditional statements for templates?
Replies: 4
Views: 916

A list of conditional statements for templates?

Hi there everyone! I'm wondering if there's a cheat-sheet for the conditional statements I'm finding in my templates. For instance: <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) --> I've been altering the template and so far have been finding what I need by browsing other templa...
by schwim
Thu Apr 02, 2015 9:33 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1016

Re: Adapting bbcode to non-topic content

I think I understand that. So far, it seems to be working. I need to remove some certain bbcode, like code, flash and attachment. Is the best way to handle this just to remove the cases from bbcode.php and if so, do I need to renumber the remaining codes?: case 8: $this->bbcode_cache[$bbcode_id] = a...
by schwim
Thu Apr 02, 2015 4:48 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1016

Re: Adapting bbcode to non-topic content

Hi there TOny, I've got a couple questions I've run into while implementing. Would editing simply consist of changing the function: $flags = OPTION_FLAG_BBCODE | OPTION_FLAG_SMILIES | OPTION_FLAG_LINKS; $display_me = generate_text_for_edit($doc_body, $bbcode_uid, $bbcode_bitfield, $flags); Or should...
by schwim
Thu Apr 02, 2015 3:07 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1016

Re: Adapting bbcode to non-topic content

Wow, Tony! Thanks so much for that! It looks fantastic!

How does it get away with not needing the additional function includes, if I might ask?
by schwim
Thu Apr 02, 2015 1:29 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1016

Re: Adapting bbcode to non-topic content

Hi there AmigoJack and thanks so much for your help! So, looking at the phpBB code, it looks like I need to take care of things on the posting side. I see I need to include a few more files: include($phpbb_root_path . 'includes/functions_posting.' . $phpEx); include($phpbb_root_path . 'includes/func...
by schwim
Wed Apr 01, 2015 2:41 pm
Forum: [3.0.x] MOD Writers Discussion
Topic: Adapting bbcode to non-topic content
Replies: 8
Views: 1016

Adapting bbcode to non-topic content

Hi there everyone! I'm trying to implement bbcode parsing in my phpBB3 session integrated site. I would like to use it in a comments system as well as a document viewing system, both of which will utilize the standard bbcodes. I'm using the wiki page as a guideline: https://wiki.phpbb.com/Practical....

Go to advanced search