The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
post name idea... help me out
Well, im the Admin of these forums Im at
When I psot it shows my boring dull name, and I wanna make it change to an image. now this is my idea I think i got the PHP part right, just bear with me cause im new to php but this should show the image for my name if the $post[username] is identicle to my name on the forums which is "Shokka" heres the code PHP Code:
Just an idea hehe Tell me what you think, and please dont steal the idea lol :lick: L8r ~Shokka |
#2
|
||||
|
||||
Probably all the file to do with posting and/or threads...
So : forumdisplay.php newthread.php newreply.php online.php showthread.php memberlist.php Satan |
#3
|
||||
|
||||
you have to edit functions.php
the getpostbit section. but don't use this code: PHP Code:
instead use this code: $post[image]="<img src='Imageurl'>"; just put the $post[image] into your postbittemplate if you want to change your username to an image write instead $post[image]="<img src='Imageurl'>"; this: $post[username]="<img src='Imageurl'>"; also its not good to use the username here: if($post[username] == Shokka) change it to your userid, so if you change your name you need not change your code: if($post[userid] == xx) |
#4
|
||||
|
||||
its only gonna be for admins. but i thought of it this way
PHP Code:
|
#5
|
||||
|
||||
if if it should be for all admins, thats very easy to do:
in admin/functions.php go to section getpostbit, and before this lines: PHP Code:
PHP Code:
|
#6
|
||||
|
||||
and it will show an image for the admin user name?
|
#7
|
||||
|
||||
yes it will.
but don't forget to create an image for every admin you have |
#8
|
||||
|
||||
oh ya and BTW, shouldnt it check if the user has an image first so incase it doesnt show nothing
|
#9
|
||||
|
||||
why do you think i have asked this question:
"if it should be for all admins, thats very easy to do:" change the if clause to $post[usergroupid] == 6 && $post[userid]!=xy and add so much ids, which don't have a picture as i think you haven'T soo much admins this would be easier than mak long coding to find out if file exists and so on ^^ |
#10
|
||||
|
||||
no no no i meant, like if the admin doesnt have his/her image made yet, then instead of showing a dead link picture, it will check to see if the picture is there, and if its not, it will just display the name thats what i meant lol
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|