Previous Thread
Next Thread
Print Thread
Rate Thread
#267270 01/17/2004 9:27 AM
Joined: Sep 2002
Posts: 151
Member
Member
Offline
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?

Sponsored Links
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
Offline
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
Code
 <textarea name="Bio" cols="$TextCols" rows="$TextRows" wrap="soft" class="formboxes">$Bio</textarea><br /><br />


To this
Code
 <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
Code
 // --------------------------<br />// Undo any markup in the Bio<br />   $Bio = $html -> undo_markup($Bio);<br />	$Signature = $html -> undo_markup($Signature); 


to this
Code
 // --------------------------<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
Code
  <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
Code
 // ---------------------------------------------------------<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
Code
       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
Code
       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
Code
<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
Code
<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
Offline
Joined: Sep 2002
Posts: 151
No one?

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
if it means anything I would like to add this to

Sponsored Links
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Are there any javascript errors when clicking on the link?

Can you provide an url?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)