1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. This forum is for release discussion only. Discussions that do not relate specifically to the resource release should be discussed in another, more appropriate forum.
    Dismiss Notice
  3. This forum has been archived. New threads and replies may not be made. All add-ons/resources that are active should be migrated to the Resource Manager. See this thread for more information.

It's not because this person is staff that you should spam his profile with support questions!

Discussion in 'Template Modifications [Archive]' started by Vincent, Nov 7, 2010.

  1. Vincent

    Vincent Well-Known Member

    Hey guys,

    I'm tired of people asking support at my profile all time about helping them with THEIR installation etc.
    So I created a little modification to put a message above the 'Write something' box :)

    Here's a preview:

    To add that piece of code, find the following code in member_view:
                    <xen:if is="{$canPostOnProfile}">
    And than add this behind that piece of code:
                                            <xen:if is="{$user.user_id} == 1 OR {$user.user_id} == 2 OR {$user.user_id} == 5">
                                                 <p class="importantMessage">
                                                     Please do not post Support Questions at this person's profile. Profile comments are to congratulate someone or for other stuff. You can ask for support <a href="http://www.yourforums.com/support.php">here</a>.
    Now the message should appear.

    Don't forget to configure it.
    • {$user.user_id} == X OR {$user.user_id} == Y
      • X stands for user with user ID number 1
      • Y stands for user with user ID number 2
      • You can continue using that.
    • <a href="http://www.yourforums.com/support.php">here</a>
      • Whatever is between the "" is where it links to ;)
    Have a nice day,
    - Vincent
    zaiger, Fuhrmann, Doctor and 14 others like this.
  2. RickM

    RickM Well-Known Member

    Hehe, genius!
    Vincent likes this.
  3. Peggy

    Peggy Well-Known Member

    Very good.
    Vincent likes this.
  4. Ranger375

    Ranger375 Well-Known Member

    THANK YOU! This seriously drives me crazy on my forum lol.
  5. Shelley

    Shelley Well-Known Member

    excellente. I'll make use of this at a later date when i start my resource site. Nice work. :)
  6. dutchbb

    dutchbb Well-Known Member

    Good idea.
  7. Allan

    Allan Well-Known Member

    Good idea :)
  8. FredC

    FredC Well-Known Member

    If that isnt the truest statement ive heard in a long time!! :p
    Vincent likes this.
  9. whitetigergrowl

    whitetigergrowl Active Member

    Is there a way of doing this with usergroups instead?
  10. compwhizii

    compwhizii Active Member

    Yeah I'm not sure why you're hard coding userids into this. Imo its better if anyone can see it.
  11. Brogan

    Brogan XenForo Moderator Staff Member

    The user id is not related to who can see the message, it is for the user profiles for which the message will appear on.
    So if you have 10 staff, you can enter their user ids so the message appears on their profiles only.
  12. compwhizii

    compwhizii Active Member

    Oh. Not my finest moment right there :p
  13. whitetigergrowl

    whitetigergrowl Active Member

    If they are under a usergroup, wouldn't it be easier to blanket the usergroup and put it only as a usergroup that can see it rather than individually put in 10 user ids? o_O
  14. Vincent

    Vincent Well-Known Member

    Use '<xen:if is="{$user.is_moderator} OR {$user.is_admin}">' for that.

    And the reason I use User ID's is for people like Floris :)
    They may want it too ;)
    dieketzer likes this.
  15. whitetigergrowl

    whitetigergrowl Active Member

  16. iXanon

    iXanon Active Member

    Nice deterrent, thanks. :)
  17. dwdmadmac

    dwdmadmac Active Member

    or you can use this

    <xen:if is="{$user.user_group_id} == X OR {$user.user_group_id} == Y">

    X is one usergroup
    Y is another usergroup

    To find out the usergroup id number just go to list usergroup is user tab in CP and click the usergroup
    and in the browser bar it will say a number somewhere at the end and that is the id number :p
  18. zaiger

    zaiger Active Member

    Hahaha I don't know how I missed this before, I will definitely be adding this to my "things to add" folder in my bookmarks.

Share This Page