• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Issue with the chat box auto positioning itself..dialog inpu

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby test12 » Fri Sep 07, 2012 3:38 am

For example..I have the pfc embedded in a specific div on the lower part of my website with settings forcing the user to type in a user name. The dialog box is priority so the browser window automatically positions itself to show the input name dialog box. Similar to the full parameters section of this website . If you click on a specific parameter it will position that at the top of the page below the address bar. The question is where should i look to find the specific code that auto positions this?

edit: I'll assume it is anchors..I'll go have a look-see.

edit: Found a bit of code for the input username dialog box, but unfortunately no anchors that i am aware of.. any suggestions?

<table style="margin:0;padding:0;border-collapse:collapse;">
<tbody>
<tr>
<td class="pfc_td1">
<p id="pfc_handle"
<?php if (! $frozen_nick) {
echo ' title="' . _pfc("Enter your nickname here") . '"'
. ' onclick="pfc.askNick('')"'
. ' style="cursor: pointer"';
}
?>
><?php echo phpFreeChat::FilterSpecialChar($u->nick); ?></p>
</td>
Last edited by test12 on Fri Sep 07, 2012 3:45 am, edited 1 time in total.
test12
New member
 
Posts: 3
Joined: Fri Sep 07, 2012 3:32 am
Top

Postby test12 » Sat Sep 08, 2012 3:46 am

hello..bit of searching around and i have found this bit of javascript code..I'm a bit baffled at this point, but hopefully after viewing this code some one might be able to throw in a few suggestions.


located public/js/pfcprompt.js
// Position the dialog box on the screen and make it visible.
this.box.style.display = 'block';
this.box.style.top = parseInt(pos[1]+(this.bgbox.offsetHeight-this.box.offsetHeight)/2)+'px';
this.box.style.left = parseInt(pos[0]+(this.bgbox.offsetWidth-this.box.offsetWidth)/2)+'px';
this.prompt_field.value = def;
this.prompt_field.focus(); // Give the dialog box's input field the focus.
this.prompt_title.innerHTML = text;
},

i found this bit of code, but unfortunately erasing this line
this.prompt_field.focus(); // Give the dialog box's input field the focus.

did not work after deleting the cache as wel.

Also tried deleting this line ..
focus: function()
{
this.prompt_field.focus();
},


-> this.prompt_field.focus();

If anyone has any suggestions that would be great ..still trying to locate and fix this issue i have.


EDIT: went ahead and deleted every bit of code in the pfcprompt.js.. deleted cache and refreshed, but sadly the browser still focuses on the lower site where the chatbox is embedded.
Last edited by test12 on Sat Sep 08, 2012 3:55 am, edited 1 time in total.
test12
New member
 
Posts: 3
Joined: Fri Sep 07, 2012 3:32 am
Top

Postby test12 » Sat Sep 08, 2012 4:06 am

At this point i would really love to give myself a slap to the face ..considering i have found this parameter $params["focus_on_connect"] = false; , sadly i had already slapped myself and the problem persisted after a cache delete...
test12
New member
 
Posts: 3
Joined: Fri Sep 07, 2012 3:32 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 9 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub