X7 Chat Support Board
Welcome, Guest. Please login or register.
July 31, 2010, 07:32:58 PM

Login with username, password and session length
Search:     Advanced search
X7 Chat Version 3.0.0 Alpha 2 is now available (http://x7chat.com/support_forum/index.php?topic=3198.msg11497#new).
13036 Posts in 3760 Topics by 66534 Members
Latest Member: magdemis1945
* Home Help Search Login Register
+  X7 Chat Support Board
|-+  Version 1 Archive
| |-+  [Version 1] Bug Reports
| | |-+  Black Background
« previous next »
Pages: [1] Reply Send this topic Print
Author Topic: Black Background  (Read 8294 times)
Sli
Guest
« on: November 29, 2004, 07:55:49 PM »
Reply with quote

Hi,

I am trying to have a black background for my bands website and I cannot seem to make the entire background black.

Any suggestions would be appreciated.

Here’s the link if anyone has any ideas that would help...
http://www.slilinc.com/v-web/x7chat/ (http://www.slilinc.com/v-web/x7chat/)

Thanks in advance,
Sli
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #1 on: November 30, 2004, 07:18:20 PM »
Reply with quote

hmm, the problem appears to be with your frame code.  The frame code appears to be modified.  The code on your site is:

Code:
<frameset rows="150,500,200,0" border="0">
  <frame src="frame.php?page=top" name="left_top" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">
<frameset cols="70,430,200">

  <frame src="" noresize="true">
  <frame src="frame.php?page=left.middle" name="left_mid" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0" noresize="true">
  <frame src="frame.php?page=right.middle" name="right_mid" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0" noresize="true">
</frameset>
<frameset cols="70,430,200">
  <frame src="" noresize="true">
  <frame src="frame.php?page=left.bottom" name="left_bot" frameborder="0" scrolling="auto" marginwidth="0" marginheight="0" noresize="true">
  <!-- <frame src="frame.php?page=right.bottom" name="right_bot" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true"> -->
  <frame src="frames/send.php" name="hidden_one" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">

</frameset>
<frame src="frames/update.php" name="update" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">
</frameset>

And should be
Code:
<frameset rows="200,500,200,0" border="0">
  <frame src="frame.php?page=top" name="left_top" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">
<frameset cols="500,200">
  <frame src="frame.php?page=left.middle" name="left_mid" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0" noresize="true">
  <frame src="frame.php?page=right.middle" name="right_mid" frameborder="0" scrolling="yes" marginwidth="0" marginheight="0" noresize="true">
</frameset>
<frameset cols="500,200,0">
  <frame src="frame.php?page=left.bottom" name="left_bot" frameborder="0" scrolling="auto" marginwidth="0" marginheight="0" noresize="true">
  <frame src="frame.php?page=right.bottom" name="right_bot" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">
  <frame src="frames/send.php" name="hidden_one" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">
</frameset>
<frame src="frames/update.php" name="update" frameborder="0" scrolling="no" marginwidth="0" marginheight="0" noresize="true">
</frameset>

For some reason an extra 70 pixel frame was added to each subframe set and one of the original frames was removed.  Since the 70px frames lead to "" (nothing) they are displayed white.... Do you have any idea why it might have been edited?  (I see its from v-web so I assume you didn't change it)
Report to moderator   Logged
Sli
Guest
« Reply #2 on: December 01, 2004, 05:55:02 PM »
Reply with quote

E-Oreo,

No I did not change it, my site is on ipowerweb.com servers. I assume that they changed it for some reason.

Looks like if I found where they might have changed the code within the index.php file. I'm making the frameset changes now.

The White Background problem is fixed now, thanks a million...
Now guess what now there is 2 sets of smiles in the shat room.
What did they do to your code? I'm searching to find out why, but I could use you assistance...

Thanks in advance,
Sli
Report to moderator   Logged
Sli
Guest
« Reply #3 on: December 01, 2004, 06:01:14 PM »
Reply with quote

E-Oreo,

New Update,
I found two sets of smile code, I'm attempting to remove one of them.

Quote
(Frame 1)

function smclick(smileyCode){
currentvalue=window.parent.frames['left_bot'].document.cbform.msg.value
newvalue=currentvalue + smileyCode
window.parent.frames['left_bot'].document.cbform.msg.value=newvalue
}
function smclick2(smileyCode){
document.cbform.msg.style.color=smileyCode
document.cbform.txtcolor.value=smileyCode
document.cbform.tlcd.style.background="#"+smileyCode


(Frame 2)

function smclick(smileyCode){
currentvalue=window.parent.frames['left_bot'].document.cbform.msg.value
newvalue=currentvalue + smileyCode
window.parent.frames['left_bot'].document.cbform.msg.value=newvalue
}
function smclick2(smileyCode){
document.cbform.msg.style.color=smileyCode
document.cbform.txtcolor.value=smileyCode
document.cbform.tlcd.style.background="#"+smileyCode

Thanks in advance,
Sli
Report to moderator   Logged
Sli
Guest
« Reply #4 on: December 01, 2004, 07:38:43 PM »
Reply with quote

E-Oreo,

Alright I found out what they did check it out now. Sli-Chat (http://www.slilinc.com/v-web/x7chat/)

When you gave me a direction on the Frameset it also helped me find the bug with 2 sets of smiles. All Fixed now...

Thanks for all your help...
Sli
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #5 on: December 02, 2004, 01:49:27 PM »
Reply with quote

I'm glad you got it fixed.  I have no idea why they did this, but apparently it's only on a few or maybe just one Ipower server since other Ipower users have not reported this problem.  The X7 Group has no links to Ipower so I can't find out anything else about the problem.
Report to moderator   Logged
sippenhaft
Member
*
Offline Offline

Posts: 6


View Profile WWW Email
« Reply #6 on: December 21, 2004, 02:46:31 PM »
Reply with quote

Quote
New Update,
I found two sets of smile code, I'm attempting to remove one of them.

where was that code as I am having the exact same problem! (gotta love Ipower!)

Thanks!
Report to moderator   Logged

Das Rebellion (http://dasrebellion.com)
Check your stats (http://drcstats.com)
sippenhaft
Member
*
Offline Offline

Posts: 6


View Profile WWW Email
« Reply #7 on: December 22, 2004, 12:37:39 PM »
Reply with quote

Quote
Alright I found out what they did check it out now. Sli-Chat

When you gave me a direction on the Frameset it also helped me find the bug with 2 sets of smiles. All Fixed now...

I found the smile code, but I only have one set in the java.php....can you tell me what/where/how to remove the second set of smilies?

Thanks
Steve
Report to moderator   Logged

Das Rebellion (http://dasrebellion.com)
Check your stats (http://drcstats.com)
Sli
Guest
« Reply #8 on: December 22, 2004, 07:29:29 PM »
Reply with quote

Quote
Quote
Alright I found out what they did check it out now. Sli-Chat

When you gave me a direction on the Frameset it also helped me find the bug with 2 sets of smiles. All Fixed now...

I found the smile code, but I only have one set in the java.php....can you tell me what/where/how to remove the second set of smilies?

Thanks
Steve

Steve, I will be glad to help out a webmaster on IPowerWeb Servers,

IPowerWeb update:

It took me a little while to figure out what IPowerWeb did to the code. But I figured it all out, so here you go.

First make sure you check under preferences that 'show system files' is checked and 'un-check ''use HTML editor.'
Go to the Host Manager and open File Manager within VDeck.
Go here .panel / web / x7chat / frames
You will see that there are multiple top, bottom, and middle php's within the FRAME Directory.
Locate 'new.left.bottom.php' smiles located next to the color palette
Also locate 'new.right.bottom.php' smiles located under the usernames that shows up online

To remove the code next to the color palette:
Locate this line of code under 'new.left.bottom.php'

(Smiles Code To Remove)

$smstart = 0;
                        $tsmilies = 0;
                        $smilies = "";
                        $q = DoQuery("SELECT * FROM $SERVER[TBL_PREFIX]filter WHERE type='1' LIMIT $smstart,52");
                        while($row = Do_Fetch_Row($q)){
                                $row[3] = eregi_replace("^../","./",$row[3]);
                                $smilies .= "<img src=\"$row[3]\" onclick=\"javascript: smclick('$row[2]')\" height=\"15\" width=\"15\">";
                                $tsmilies++;
                        }

(End Of Smiles Code)

Save changes - your done.
Just a reminder -make sure you copy the current code to your hard drive before you remove any code.
Just in case an oops occurs....lol

Good Luck, This worked for me and I hope it goes well for you to.

Have It Good,
SliJ
 
Report to moderator   Logged
Restless
Guest
« Reply #9 on: March 05, 2005, 09:27:44 AM »
Reply with quote

Heya,  Im having the same issue with iPower and this chat room and not having a full black background.  I understand the explaination you gave that they must be adding the extra 70 pixels somewhere, but Im not a programmer and cant find where I need to make the adjustments.  Can someone direct me what file to alter and what I need to change within that file?  

Thanks for your help.

PS.  One other thing, and this is even more important to me than the other....

is there any way at all that that I can make the entire chat room show up within my framed site using only a box of 500x400 ?  When I tried to make that happen, it creates the scroll bars and you cant chat for having to scroll up, down, and over to see what it going on.... In other words, I want the entire chat room window to show completely within a screen of 500x400 so my visitors dont have to scroll up and down to chat.  Can that be done?  and where do I make the change within the program?
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #10 on: March 07, 2005, 05:52:03 PM »
Reply with quote

The frameset code is in the file index.php

You might be able to fit X7 Chat into a small frame like that by editing lib/html.php and trying to fit the table into it.
Report to moderator   Logged
antipathy
Guest
« Reply #11 on: April 07, 2005, 12:40:31 AM »
Reply with quote

This was VERY helpful!  Thank you for posting the help!

I was having this EXACT problem with Dot5Hosting.com and I made the changes to the code and everything is fixed!

It's a real delight to be able to find the solution to your software/code problems so quickly (came here first) and so clearly explained.  

Thanks, again!  Cheesy  
Report to moderator   Logged
Pages: [1] Reply Send this topic Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.086 seconds with 17 queries.