View Full Version : vB Code in Custom Profile Fields
ImportPassion
01-05-2004, 02:36 AM
PLease make it so.
Buczilla
01-05-2004, 02:36 AM
Yes, or html. I need this too!
deathemperor
01-05-2004, 03:23 AM
vb3 by default has that, but one thing I found that I can't use the dropdown for image, e.g: there will be 3 dropdown options for users to choose: Male, Female, Question Mark, if users choose Male, it will show the Male image in postbit ( or anywhere u want to put it in ), same as Female and Question Mark.
If we can do like this, then there are many funny options we may want to create for user to choose :)
ImportPassion
01-05-2004, 03:25 AM
no, it doesn't, trust me. I have like 15-20 fields from the vb2 hack and the code just shows as code.
ImportPassion
02-12-2004, 01:28 AM
anyone?
Andreas
02-12-2004, 01:51 AM
@deathemperor1st
What about just
1) Create a Dropdown (rr radio) fieldx with Male, Female, Undisclosed
2) Put Male.gif, Female.gif and Undisclosed.gif in your images/misc folder
3) In Template postbit
<img src="$stylevar[imgdir_misc]/$post[fieldx].gif" alt="Gender: $post[fieldx]">
?
@7thgenCivic.Com
In functions.php FIND
$usercache["$userid"] = $user;
ABOVE that ADD
require_once('./includes/functions_bbcodeparse.php');
foreach ($user as $key => $val) {
if (preg_match("/field\d*/", $key))
$user[$key] = parse_bbcode($val);
}
This should work.
ImportPassion
02-12-2004, 03:16 AM
i'll try it out.
thanks,
D
ImportPassion
02-13-2004, 03:12 PM
well, i tried it, there was a small misplacement of a ) but I fixed it, but it gives an error on line 1801 for some reason now.
ImportPassion
02-13-2004, 03:33 PM
even more weird, if i undo allt he changes I still get the error. Only way to make it work is upload the original from the rc4 download.
Rampag33
02-13-2004, 03:59 PM
Yeah if this works it would be greatly appreciated
Andreas
02-13-2004, 05:30 PM
Hmm .. I installed this in RC2 and it worked (except that I forgot the closing bracket for the if at first).
Line 1801 is in print_output() (on my RC4) and this has absolutely nothing to do with what you changed. Maybe you messed smth up during editing the file?
ImportPassion
02-13-2004, 05:34 PM
i did absolutely nothing else. I have no other hacks installed either.
Yes, there was a missing bracket, but there is an extra ) on the foreach line too.
Andreas
02-13-2004, 06:23 PM
Hehe, was too late when I originally posted that ;)
I noticed a missing bracket and edited the post - but put it in the wrong line.
ImportPassion
02-13-2004, 06:33 PM
did u try this on rc4?
Cause it definetly does not work
D
Andreas
02-13-2004, 06:34 PM
No, only on RC2.
Will try on RC4 now.
Andreas
02-13-2004, 07:19 PM
Installed this on a plain, new install of RC4 - does work, but there are problems editing your profile.
Therefore you should change the code a bit:
if (THIS_SCRIPT != 'profile') {
require_once('./includes/functions_bbcodeparse.php');
foreach ($user as $key => $val) {
if (preg_match("/field\d*/", $key))
$user[$key] = parse_bbcode($val);
}
}
ImportPassion
02-14-2004, 01:41 PM
ok, wtf is going on!?!?!
Unhacked functions.php
open it up.
find the code
add ur code in front of it
save it
upload
got to forum main page and BANG!
Parse error: parse error in /home/devadmin/public_html/forums/includes/functions.php on line 1803
Fatal error: Call to undefined function: is_browser() in /home/devadmin/public_html/forums/global.php on line 59
Then I undo what i did.
save
upload
and I STILL get the damn error!
WTF!
I have NO other hacks installed at all!
ImportPassion
02-14-2004, 01:49 PM
well, I got it working.
The line that was giving the error was titled as Temp Code from vbulletin.com
I removed the whole section of temp code and it now works.
Do you have this code in your RC4?
Andreas
02-14-2004, 05:10 PM
Yes, I have that temporary code in functions.php and it does not cause problems.
If you get parse errors you must have done smth wrong ...
Maybe you tried to comment out the code using /* */ ?
This will give you this error as there is a */ within the code.
ImportPassion
02-14-2004, 05:49 PM
this is the thing, I have done absolutely nothing different.
I am not a n00b at this either.
Just doesn't make sens unless it is a PHP issue. I am running 4.3.4
ImportPassion
05-16-2004, 07:09 PM
ok, there is problems with this on 3.01.
when you go to add a new field, practically everything like text etc. is missing on the pages? Anyone have a fix?
ImportPassion
05-29-2004, 03:27 AM
bueller, bueller?
ImportPassion
12-24-2005, 03:32 AM
@Andreas: I got this working for 3.5, sort of. I had to add a DEFINE THIS_SCRIPT in the admincp/profile.php file and then put an IF around the section of code. Love to not have that.
But the bigger problem is that whne you go back to edit your profile that has BB code in it, it leaves it as HTML and does not seem to convert it back to BB.
Hope u see this.
THanks,
D
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.