Jump to the post that solved this thread.
Solved: 4 Weeks, 1 Day, 22 Hours ago can be done that specific usergroups can access the link with help of css ?
#1
Solved: 4 Weeks, 1 Day, 22 Hours ago
I think without use of Template Conditional plugin it can be possible to do with only css.

i have seen somewhere in the thread matt or effone has mentioned the trick but couldn't find it.

something like that the css was.

in global.css
have to add some classes.

usergroups_1 { display: none;}
usergroups_2 { display: none;}


and in the Template the html was something like this :-

<span class="$user{['usergroup_id']} add your extra class"> content </span>


can be it possible i am not sure what was the process i am not getting the clear memory. Please help me .
Reply
#2
Solved: 4 Weeks, 1 Day, 22 Hours ago
in the template, you'll have to set class="usergroups_{['usergroup_id']}" and as last class to be sure no other class will override the display none.
But any kid using F12 or control+U (depending on browser) will see the link in the source, and all search engines will see (and reference) it too.
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Reply
#3
Solved: 4 Weeks, 1 Day, 22 Hours ago
(2021-06-23, 02:26 PM)Crazycat Wrote: in the template, you'll have to set class="usergroups_{['usergroup_id']}" and as last class to be sure no other class will override the display none.
But any kid using F12 or control+U (depending on browser) will see the link in the source, and all search engines will see (and reference) it too.

Thank u so much for this information.
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)