|
Joined: Sep 2002
Posts: 151
Member
|
Member
Joined: Sep 2002
Posts: 151 |
I run 6.4.1
I want to make the user profiles a bit more fun by adding Greamlins, UBB Code and Font color to the Bio field.
But I can´t get it to work. Nothing happens when adding stuff. I think I have missed something that connects the java script to the proper field.
Anyone who can explain exactly what I need to add to editbasic.php and editbasic.tmpl?
|
|
|
|
Joined: Nov 2001
Posts: 10,369
I type Like navaho
|
I type Like navaho
Joined: Nov 2001
Posts: 10,369 |
I thnin the form needs to be named "replier" for this to work.
|
|
|
|
Joined: Sep 2002
Posts: 151
Member
|
Member
Joined: Sep 2002
Posts: 151 |
I still can´t get it to work. Nothing happens when clicking; no smilies in the bio textarea, no url popup... I have tried to look on how sendprivate is built. This is what I have done In editbasic.tmpl: Changed this <textarea name="Bio" cols="$TextCols" rows="$TextRows" wrap="soft" class="formboxes">$Bio</textarea><br /><br /> To this <textarea cols="$TextCols" rows="$TextRows" class="formboxes" name="Bio" wrap="soft" onkeyup="storeCaret(this);" onclick="storeCaret(this);">$Bio</textarea><br />$instant_ubbcode<br /><br /> In editbasic.php: From this // --------------------------<br />// Undo any markup in the Bio<br /> $Bio = $html -> undo_markup($Bio);<br /> $Signature = $html -> undo_markup($Signature); to this // --------------------------<br />// Undo any markup in the Bio<br /> $Bio = $html -> undo_markup($Bio);<br /> $Signature = $html -> undo_markup($Signature);<br /> $instant_ubbcode = $html -> instant_ubbcode(); and from this <br />// ---------------------------------------------------------<br />// Ok, we found the profile, now lets put it all onto a page<br /> $formmethod = "<form method=\"post\" action=\"{$config['phpurl']}/changebasic.php\" name=\"PROFILE\">";<br /> to this // ---------------------------------------------------------<br />// Ok, we found the profile, now lets put it all onto a page<br /> $formmethod = "<form method=\"post\" action=\"{$config['phpurl']}/changebasic.php\" name=\"REPLIER\">";<br /> and from this if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br /> $formmethod = "<form method=\"post\" enctype='multipart/form-data' action=\"{$config['phpurl']}/changebasic.php\" name=\"PROFILE\">";<br /> to this if ( ($config['avatars']) && (ini_get('file_uploads')) ){<br /> $formmethod = "<form method=\"post\" enctype='multipart/form-data' action=\"{$config['phpurl']}/changebasic.php\" name=\"REPLIER\">";<br /> and this <script language="JavaScript" type="text/javascript"><br /><!--<br /> function launch_avatar_window() {<br /> var avatar_popup_width = 550;<br /> var avatar_popup_height = 300;<br /> var Avatarselection = escape(document.PROFILE.avurl.value);<br /> var avatar_selector_page = "{$config['phpurl']}/avatar.php?start_with=0";<br /> var selector = window.open(avatar_selector_page + '&avatar_url=' + Avatarselection,'selector','scrollbars=yes,resizable=yes,width=' + avatar_popup_width + ',height=' + avatar_popup_height + ',screenX=50,screenY=50,top=50,left=50');<br /> } // end function<br />// --><br /></script> into this <script language="JavaScript" type="text/javascript"><br /><!--<br /> function launch_avatar_window() {<br /> var avatar_popup_width = 550;<br /> var avatar_popup_height = 300;<br /> var Avatarselection = escape(document.REPLIER.avurl.value);<br /> var avatar_selector_page = "{$config['phpurl']}/avatar.php?start_with=0";<br /> var selector = window.open(avatar_selector_page + '&avatar_url=' + Avatarselection,'selector','scrollbars=yes,resizable=yes,width=' + avatar_popup_width + ',height=' + avatar_popup_height + ',screenX=50,screenY=50,top=50,left=50');<br /> } // end function<br />// --><br /></script> Any idea?
|
|
|
|
Joined: Sep 2002
Posts: 151
Member
|
Member
Joined: Sep 2002
Posts: 151 |
|
|
|
|
Joined: Sep 2003
Posts: 803
Coder
|
Coder
Joined: Sep 2003
Posts: 803 |
if it means anything I would like to add this to 
|
|
|
|
Joined: Dec 2000
Posts: 1,471
Addict
|
Addict
Joined: Dec 2000
Posts: 1,471 |
Are there any javascript errors when clicking on the link?
Can you provide an url?
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 254
Joined: January 2000
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|