Author Topic: Conditional User Group template tags  (Read 96818 times)

0 Members and 1 Guest are viewing this topic.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Conditional User Group template tags
« Reply #30 on: April 06, 2006, 12:33:56 AM »
but i think anyway it can be  a risk to allow html code in descriptions.
there are enough malicious javascript code you can use there
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Conditional User Group template tags
« Reply #31 on: April 06, 2006, 02:17:52 AM »
but i think anyway it can be a risk to allow html code in descriptions.
there are enough malicious javascript code you can use there
In v1.7.2 the HTML security was giving very serious thoughts and all possible security breach html tags are filtered out now. but you never know, these hackers are very clever...
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: Conditional User Group template tags
« Reply #32 on: April 06, 2006, 02:37:01 AM »
ohh, i didn't noticed that this was changed too.

but why to open an possible risk, when it's not really needed.

most things can be done also with bccode..^^
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline lenina

  • Pre-Newbie
  • Posts: 7
    • View Profile
Re: Conditional User Group template tags
« Reply #33 on: August 06, 2006, 09:32:16 PM »
Hello, I used this code in my website since I need to restrict the use of the Lightbox to just a certain usergroup, however the tags aren't working, the Lightbox references do not appear for anyone

this is my page_header.php code:

Code: [Select]
REMOVED
The group is called Ark Citizens and the usergroup ID is 14, I tried changing the "Ark Citizen" title to just "citizen" to see if it did the trick, but didn't work :-?
Any help would be greatly appreciated
« Last Edit: August 06, 2006, 10:26:13 PM by V@no »

Offline live@ct

  • Sr. Member
  • ****
  • Posts: 348
    • View Profile
Re: Conditional User Group template tags
« Reply #34 on: December 24, 2006, 02:47:09 AM »
I install this mod but its not working
The content that I like to hide for a specific group of user its hide but it didnt show for any group

It can be possible to use this, but a personalize db_field
for example I create a field user_group in the users table
and in the db_field_definitions I create a dropdown field

Producer has the number 5
Normal User has the number 3
Visual Art has number 7

I like to show content depend of the number of the user_group field
using the if endif conditions

is it possible, im trying but I didnt make something that works

thanks and sorry for my poor englis :P
Existen 10 tipos de personas, los que entienden el codigo binario y los que no.

Offline binuj01

  • Newbie
  • *
  • Posts: 37
    • View Profile
    • Sourcestravel
Re: Conditional User Group template tags
« Reply #35 on: March 20, 2007, 12:30:24 PM »
There are 3 occurences of the below

if ($user_info['user_level'] >= USER) {


Which is the right one ?

Thanks
Binu
www.sourcestravel.com
See your travel destnations ahead.

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Conditional User Group template tags
« Reply #36 on: November 11, 2007, 06:30:16 PM »
Hi guys,

The code works perfect on details, categorie...., but NOT on user_logininfo.html template.

On the  user_logininfo.html template and on member_profile.html I added this line:
Code: [Select]
{if is_in_group_photographers} Hello photographers {endif is_in_group_photographers}
On member_profile.html I do not see the text "Hello photographers" (Because I am not in the usergroup photographers), but on the user_logininfo.html the text is showing.

What do I have to change to make it work on user_logininfo.html?

I appreciate any help,
Cruxy

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Conditional User Group template tags
« Reply #37 on: November 11, 2007, 06:37:41 PM »
On the  user_logininfo.html template and on member_profile.html I added this line:
Code: [Select]
{if is_in_group_photographers} Hello photographers {endif is_in_group_photographers}

See Jan post for tag...

Code: [Select]
{user_is_photographer_yes}
{user_is_photographer_no}

Is use in member.php file ...

Quote
What do I have to change to make it work on user_logininfo.html?

You need use code in includes/page_header.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Conditional User Group template tags
« Reply #38 on: November 11, 2007, 09:12:50 PM »
Hi Thunderstrike,

It is still not working. I used the tags of Jan.
Whould you like to help me in this? :(

I just want to make it work on the user_logininfo.html template.
NOTE: The code is working fine on default templates like member_profile.html.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Conditional User Group template tags
« Reply #39 on: November 11, 2007, 09:32:22 PM »
You need copy PHP code in includes/page_header.php file ... no only member.php file.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline Sun Zaza

  • Sr. Member
  • ****
  • Posts: 399
    • View Profile
Re: Conditional User Group template tags
« Reply #40 on: December 05, 2007, 01:44:29 AM »
Is there anyone to solve this issue. I mean using the conditional user group on the user_logininfo.html or on random_image.html?

I appreciate any help!

Offline Dragon.82

  • Pre-Newbie
  • Posts: 1
  • ·$#004080The Piano Said: Do,Re,Me..Forget Do,Forge
    • View Profile
Re: Conditional User Group template tags
« Reply #41 on: October 05, 2008, 09:44:48 AM »
thanks for you

Offline camera

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: Conditional User Group template tags
« Reply #42 on: October 29, 2008, 04:28:14 PM »
I think we are very close to a good solution

Offline madonna007

  • Pre-Newbie
  • Posts: 2
    • View Profile
Re: Conditional User Group template tags
« Reply #43 on: November 25, 2008, 09:38:29 AM »
The text between the tags doesn't appear?





.

Offline softxgame

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Conditional User Group template tags
« Reply #44 on: May 06, 2009, 05:57:58 AM »
Thank you for the subject
Links from my profile were removed and I'm about to get banned for spam.
One more stupid post and I'm gone. Ops, I did it again..."thank you for the subject" - what kind of reply is this? now I'm banned for sure.