Search found 27 matches

by io2
Thu Dec 06, 2018 9:24 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

The one mode for to know app (no mobile browser) is a custom user agent.
by io2
Thu Dec 06, 2018 5:58 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

i fix error:

Code: Select all

$request->enable_super_globals();
$useragent = $_SERVER['HTTP_USER_AGENT'];
$parola = "xxxxxx";
if (strstr ($useragent,$parola)) 
{
	$style_id = 21;
}
$request->disable_super_globals(); 
work perfectly. Thank you to all for help. :)
by io2
Thu Dec 06, 2018 5:40 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

i tried: $useragent = $_SERVER['HTTP_USER_AGENT']; $parola = "xxxxxx"; if (strstr ($useragent,$parola)) { $style_id = 21; } but i have this error: General Error Illegal use of $_SERVER. You must use the request class to access input data. Found in /home/cu1nynjd/public_html/forum/phpbb/user.php on l...
by io2
Thu Dec 06, 2018 5:14 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

GanstaZ wrote:
Thu Dec 06, 2018 5:09 pm
You can find that file in phpbb_root/phpbb/user.php
thanks
by io2
Thu Dec 06, 2018 5:08 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

i don't find user.php. i use PHPbb 3.2 I use phpBB3.2 and I do find that file. Perhaps you only looked in the base root of your phpBB, try the subdirectory phpbb. maybe functions_user.php? user.php is part of the phpBB3.2 package. If you don't have it then phpBB wouldn't even work. https://gyazo.co...
by io2
Thu Dec 06, 2018 4:56 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

warmweer wrote:
Thu Dec 06, 2018 4:31 pm
io2 wrote:
Thu Dec 06, 2018 4:25 pm
i don't find user.php. i use PHPbb 3.2
I use phpBB3.2 and I do find that file. Perhaps you only looked in the base root of your phpBB, try the subdirectory phpbb.
maybe functions_user.php?
by io2
Thu Dec 06, 2018 4:25 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

Brf wrote:
Thu Dec 06, 2018 2:44 pm
Brf wrote:
Wed Dec 05, 2018 10:10 pm
in user.php ... switches the style.
Look for the request for "style"
i don't find user.php. i use PHPbb 3.2
by io2
Thu Dec 06, 2018 2:00 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

Witch php variable contain active template and in witch file is assigned?
by io2
Thu Dec 06, 2018 12:32 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

warmweer wrote:
Wed Dec 05, 2018 10:44 pm
io2 wrote:
Wed Dec 05, 2018 10:35 pm
Can i a global redirect?
No idea what a global redirect is. Google (very quick search as it's getting late) tells me it's something to do with Drupal but I can't see the relevance to this topic (unless you're embedding phpBB in Drupal).
global redirect i say for all urls of forum.
by io2
Wed Dec 05, 2018 10:38 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

Brf wrote:
Wed Dec 05, 2018 10:10 pm
I remember someone wrote some custom code in that same spot in user.php that checks for the agent and switches the style.
Can You help me for to find it?
by io2
Wed Dec 05, 2018 10:35 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

Url2 Will be accessible only from app. No desktop users. I want change style or colours for url2. I think you're going to need a some complicated code in your .htaccess to determine the user-agent and prevent switching between the mobile version and the desktop version see https://stackoverflow.com...
by io2
Wed Dec 05, 2018 9:48 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

But surely the url will be same no matter how the board is accessed or have I missed something? My suggestion would be to install two styles make one (probably the non Android app one) the default style but do not allow users to override the style. Then test whether the board is being accesses via ...
by io2
Wed Dec 05, 2018 9:41 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

I need all forum for load inside android app. I still don't quite understand. You want 1 board which will only be loaded via an android app (which you are developing), and which uses 1 database for 2 urls? And the 2 urls should have the same style, but a different colouring scheme? What happens whe...
by io2
Wed Dec 05, 2018 9:23 pm
Forum: phpBB Custom Coding
Topic: Two forum same database and differenti style
Replies: 28
Views: 1110

Re: Two forum same database and differenti style

Brf wrote:
Wed Dec 05, 2018 9:13 pm
I have no clue why that would matter.
?style is for single url. I need for all urla.
by io2
Wed Dec 05, 2018 9:15 pm
Forum: Extension Requests
Topic: Switch Style for app
Replies: 4
Views: 338

Re: Switch Style for app

I'm making an android app That load my forum page. Ì need switch style when app load it for change colors. I use phpbb 3.2. Please help me. Your question is ambiguous. Do I understand it correctly that you want a specific style for your board when accessed on desktop, and a different style on mobil...

Go to advanced search