![]() |
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 |
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 |
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) |
its only gonna be for admins. but i thought of it this way
PHP Code:
|
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:
|
and it will show an image for the admin user name?
|
yes it will.
but don't forget to create an image for every admin you have :) |
oh ya and BTW, shouldnt it check if the user has an image first ;) so incase it doesnt show nothing :p
|
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 ^^ |
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 :p thats what i meant lol
|
All times are GMT. The time now is 07:27 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|