Search found 7 matches

by JWPlatt
Sat Aug 22, 2015 10:36 pm
Forum: [3.x] Discussion
Topic: Show Quick links menu on hover, not on click
Replies: 22
Views: 8928

Re: Show Quick links menu on hover, not on click

Users on my forum detest the extra click required for the ironically named "QuickLinks." It's not "quick." I'd prefer an extension to replace the QuickLinks menu with a variable number of literal text and link entries so that we can restore what used to be there if we want without editing core files...
by JWPlatt
Mon Apr 27, 2015 3:52 pm
Forum: [3.x][Archive] RFCs
Topic: Stop disabling super globals
Replies: 33
Views: 28810

Re: Stop disabling super globals

There are quite a few extensions that do this but you can check how it's done in this one and do something similar: Sorry, I've lost the context here. To what "this one" do you refer? Also, can you give me, or point me to, a code sample of how to use the $config array? Same way you'd use any other ...
by JWPlatt
Mon Apr 27, 2015 3:42 am
Forum: [3.x][Archive] RFCs
Topic: Stop disabling super globals
Replies: 33
Views: 28810

Re: Stop disabling super globals

Something wrong with the Domain Name server setting in the ACP? The server domain name isn't what I need. That field contains the subdomain the forum is on: forums.domain.com . I need the main domain name where the shared code files are held in a folder: www.domain.com /shared_code (/home/user/www/...
by JWPlatt
Sun Apr 26, 2015 3:24 pm
Forum: [3.x][Archive] RFCs
Topic: Stop disabling super globals
Replies: 33
Views: 28810

Re: Stop disabling super globals

Good hints. I'll check it out and get back to you. But I'll say in advance that I do want to avoid needing to use the PHP/ENDPHP comment tags. Is there good documentation somewhere about how to use, and what's available with, the $config array, and how generate_board_url() is used? I'll add that the...
by JWPlatt
Sun Apr 26, 2015 6:52 am
Forum: [3.x][Archive] RFCs
Topic: Stop disabling super globals
Replies: 33
Views: 28810

Re: Stop disabling super globals

Thanks, I skimmed through it. One statement is not provided in that thread that an integrator probably needs (I did): global $request; There is a heavy assumption of familiarity with the platform, which is why I hope phpBB can consider making things easier for integrators. This has been a long road ...
by JWPlatt
Fri Apr 24, 2015 9:09 pm
Forum: [3.x][Archive] RFCs
Topic: Stop disabling super globals
Replies: 33
Views: 28810

Re: Stop disabling super globals

I fixed this by using "global $request;" to get the web root path which is what I needed: <!-- PHP --> global $request; $request->enable_super_globals(); $myroot = $request->server('DOCUMENT_ROOT', ''); $request->disable_super_globals(); <!-- ENDPHP --> I first tried to instantiate a new request cla...
by JWPlatt
Thu Apr 23, 2015 10:41 pm
Forum: [3.x][Archive] RFCs
Topic: Stop disabling super globals
Replies: 33
Views: 28810

Re: Stop disabling super globals

I just ran into this problem while trying to do some larger website integration on a site that also uses phpBB. The same shared code would be called by a phpBB extension and other website pages that have nothing to do with phpBB. Obviously, when someone is using a page that includes the shared code ...