View Full Version : how can i do this?
hello, im making a custom profile page for my VB
and im intersted on how if a user has a picture url, it gets displayed in vb (i get that part) but how does it put a blank picture in it's place if they put nothing there, or the url doesnt exist?
here
http://sitepointforums.com/member.php?s=&action=getinfo&userid=10259
and here
http://sitepointforums.com/member.php?s=&action=getinfo&userid=18067
Chris M
05-01-2002, 06:00 PM
Well...
First of all - It would help if Guest permissions were set to be able to view profiles...
Satan
not my board :angry:
no.. here let me explain more
i have a custom hidden feild named ''profile picture'' and i edite dthe get info template to display it as a link here
http://www.nerdnations.com/bbs/member.php&action=getinfo&find=lastposter&forumid=11
now, all i have to do is change the code and replace a href with img src, i can do that, but if they dont put a picture, nothing will show up, i want am wondering is how if they dont put a picture, how can i make it show a blank picture in its place instead of a red x
i talked to the owner of the board, and he said ask here, and i still have no response
You mean something like this? http://www.ls1.com/forums/member.php?action=getinfo&userid=4112 (My userid on LS1.com is Zed)
This is a hack I did for my board. I haven't published it. Would it interest you?
Chris M
05-04-2002, 07:53 PM
Cool...
2 Questions...
1.) Could you release it?
2.) How do you get a Minus Postcount?
Satan
and if someone doesnt put in a url, what will happen? i want it so if they dont put a url in - it puts a blank image in... i know how to make it so they can put a url in and it will show up...
I will release this hack.
If there is no URL, the field will show up as blank. ;)
Hellsatan, I altered the user table to allow negative numbers in the post counts. I had a long day I will post that info on my next reply, as well as the release of the hack. ;)
cool, thanks for both tips :) i want negitive counts also
Ok here is your hack: https://vborg.vbsupport.ru/showthread.php?s=&threadid=38258
As for the negative post counts, I have altered 2 tables in my MySql database to allow for negative post counts. And in the control panel I have set up a new status called "Free Post Abuser" which is for post counts -1000 to 0.;)
Free post abusers are given -1000 post count.:D
Here are the mysql commands to allow for negative post counts:
alter table user modify posts smallint(5) DEFAULT 0 NOT NULL;
alter table usertitle modify minposts smallint(5);
Enjoy. :D
Chris M
05-30-2002, 02:34 PM
Cheers...
Thanks...:)
Satan
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.