The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
problems with placing moderators` icon via Username HTML Markup
i tried those two lines:
<p><img border="0" src="[the url]"></p> <span><img border="0" src="[the url]"></span> the first line puts the icon one line below the username and the other messes it up too. what can be the problem and how can i fix it? thanks in advance. btw, can you tell me to which template the userinfo[musername] variable is connected? thanks again |
#2
|
|||
|
|||
So you want to have it so that it is something like
peterska2 or peterska2 The first is done by setting up a user rank for moderators (you can do this for any usergroup) The second would be by going into your POSTBIT (thats where [musername] is found and adding AFTER this ON THE SAME LINE Code:
<if usergroupid="x"><img src="URL TO YOU IMAGE /></if> |
#3
|
|||
|
|||
i tried that:
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<if usergroupid="Administrators"><img src="URL"></if></a> and it brings me an error, what might be the problem? |
#4
|
|||
|
|||
Use the number for the usergroup not the name so Admins will be usergroupid="6" etc
|
#5
|
|||
|
|||
nope, i guess i`m positioning the `if` in the wrong place. can you give me the exact line in th e postbit template? thanks.
the error i get is: The following error occurred when attempting to evaluate this template: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /home/virtual/site139/fst/home/testforum/public_html/includes/adminfunctions_template.php(3055) : eval()'d code on line 209 This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish. |
#6
|
|||
|
|||
Quote:
<if usergroupid="6"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<img src="URL"></a> </if> supuse to work or in functions_showthread.php do PHP Code:
if the ways i said not working just tell... |
#7
|
|||
|
|||
sorry man, it brings me the same mistake. are there any alternate ways you might suggest?
btw, i have another question, are those template changes include the thread_starter inside the forum? |
#8
|
|||
|
|||
ok my mistake
if ($userinfo['usergroupid'] != "6") { //means he's admin $adminurl = false; } else { $adminurl = true; } on templte <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]<if condition="$adminurl"><img src="URL"></if></a> and if this 1 not working then $nfo = $DB_site->query_first("select * from ". TABLE PREFIX ."user where userid='$post[userid]'"); and then if ($nfo['usergroupid'] != "6") { //means he's admin $adminurl = false; } else { $adminurl = true; } and then the template thing |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|