Search found 22 matches

by bzozoo
Tue Feb 26, 2019 9:36 pm
Forum: [3.2.x] Styles Support & Discussion
Topic: To display something for some user
Replies: 11
Views: 448

Re: To display something for some user

Thanks your all helps! Now it work! ;)
by bzozoo
Mon Feb 25, 2019 10:53 pm
Forum: [3.2.x] Styles Support & Discussion
Topic: To display something for some user
Replies: 11
Views: 448

Re: To display something for some user

Hi!

It will be work?

Code: Select all

'MY_CUSTOM_TEMPLATE_VAR'		=> (strpos($user->data['username']) == 'Feel')  ? true : false,
I can not try it now, becouse I write from Phone.
by bzozoo
Mon Feb 25, 2019 5:24 pm
Forum: [3.2.x] Styles Support & Discussion
Topic: To display something for some user
Replies: 11
Views: 448

Re: To display something for some user

Thanks! I understand it now! I modificated your code and now It work. It is good for me! :) My Username is "FeelGood" in my forum I added this code to includes/functions.php 'MY_CUSTOM_TEMPLATE_VAR' => (substr($user->data['username'], 0, 4) == 'Feel') ? true : false, And this code to template html: ...
by bzozoo
Mon Feb 25, 2019 4:34 pm
Forum: [3.2.x] Styles Support & Discussion
Topic: To display something for some user
Replies: 11
Views: 448

Re: To display something for some user

Hi thecoalman

I don't know what your code is doing, and this code how can solve my problem.
This code shows for all User named user a text? Example Can "User2815" and "UserXXXXXXX" and etc see what I write after "IF MY_CUSTOM_TEMPLATE_VAR"?
by bzozoo
Mon Feb 25, 2019 4:25 pm
Forum: [3.2.x] Styles Support & Discussion
Topic: To display something for some user
Replies: 11
Views: 448

Re: To display something for some user

Hi Lumpy Burgertushie

Yes , I want similar, but this code not good for me, becous I have more UserXYZ or User123456 named user, and I need to edit this code their names with manual if I want to add new user named user. I want an automatic system.
by bzozoo
Mon Feb 25, 2019 4:17 pm
Forum: phpBB Custom Coding
Topic: STRPOS PHP function can be used in a template?
Replies: 1
Views: 449

STRPOS PHP function can be used in a template?

Hi all! I want to add {SCRIPT_NAME} value to a $x variable. This template tag returns different script values on different subpages. For example, on the main page, it returns with "INDEX" value. I use PHP in template: <!-- PHP --> $x = '<!-- ENDPHP -->{SCRIPT_NAME}<!-- PHP -->'; echo $x; <!-- ENDPHP...
by bzozoo
Sun Feb 24, 2019 11:19 pm
Forum: [3.2.x] Styles Support & Discussion
Topic: To display something for some user
Replies: 11
Views: 448

To display something for some user

Hi! I use this code in template <!-- IF S_USERNAME eq 'User' --> <center>TEXT</center> <!-- ENDIF --> It's OK It's work. It is display the text for User named user But I want to define more user with one code. I want that User1 User2 , User3....UserN or UserABC, UserDEFG... etc can to see this text,...

Go to advanced search