PDA

View Full Version : How to: Optimize Profile Field Mgr Code


bondjetta
11-17-2004, 02:51 AM
Ok, after our little discussion on the topic of the Profile Field Manager in AdminCP here:
https://vborg.vbsupport.ru/showthread.php?t=70997

I decided to figure out why the User Profile Manager didn't work in FireFox but did in IE. As a result I've figured out a quick and easy fix :)

Step 1: Open /admincp/profilefield.php
Step 2: Do a search for:
echo "
<col width=\"50%\" align=\"$stylevar[left]\"></col>
<col width=\"50%\" align=\"$stylevar[left]\"></col>
<col align=\"$stylevar[left]\" style=\"white-space:nowrap\"></col>
<col align=\"center\" style=\"white-space:nowrap\"></col>
<col align=\"center\" style=\"white-space:nowrap\"></col>
";

Step 3: Replace that with:
echo "
<col width=\"50%\" align=\"$stylevar[left]\">&nbsp;</col>
<col width=\"50%\" align=\"$stylevar[left]\">&nbsp;</col>
<col align=\"$stylevar[left]\" style=\"white-space:nowrap\">&nbsp;</col>
<col align=\"center\" style=\"white-space:nowrap\">&nbsp;</col>
<col align=\"center\" style=\"white-space:nowrap\">&nbsp;</col>
";

And it should work fine :) Let me know if you're still having a problem (along w/ the browser and release)

John

bondjetta
11-17-2004, 12:43 PM
hmmm, no one? i know people are using FF ;)

maybe it's on the wrong forum...Mods: if it is please feel free to move (i'm new here :))

Berethorn
01-31-2005, 12:32 AM
Wow, that's really cool! Thank you! :D