• 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

Removing a few buttons from the bottom of the chat stops aut

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

Post a reply
10 posts • Page 1 of 1

Postby BULLETPROOF123 » Thu Jun 14, 2012 6:14 am

hello there I'm currently trying to customize your free php chat to my liking and i'm having some trouble removing the "enable sound notification" "show dates and hours" "show nickname marker"
and "disconnect/connect" buttons, my problem is that i can remove them all but after doing so it wont allow users to connect to the chat automatically and therefore have to press connect button which i want taking off


do you have any help or idea why its doing this?

i understand you must be very busy but any suggestions and help would be greatly appreciated.
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top

Postby re*s.t.a.r.s.*2 » Thu Jun 14, 2012 7:09 am

Hi.
Did you rehashed?

that must be done in order for things to work properly..

"/rehash"
Regards.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby BULLETPROOF123 » Thu Jun 14, 2012 7:17 am

hello I've tried to rehash after taking the buttons off but still no luck, this is how I'm removing them

<div class="pfc_btn">
<img src="<?php echo $c->getFileUrlFromTheme('images/sound-on.gif'); ?>"
alt="" title=""
id="pfc_sound"
onclick="pfc.sound_swap()" />
</div>

that's the original and all I'm doing to take the button off is removing this part of the code

<img src="<?php echo $c->getFileUrlFromTheme('images/sound-on.gif'); ?>"
alt="" title=""
id="pfc_sound"
onclick="pfc.sound_swap()" />

then i rehash but it doesn't connect auto, am i taking the button off the right way?
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top

Postby BULLETPROOF123 » Thu Jun 14, 2012 9:12 am

I'm really stuck on this atm i'm editing the code from chat.html.tpl.php to remove the buttons

is that the right way to do it??
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top

Postby Myth024 » Thu Jun 14, 2012 4:55 pm

I believe you have to remove the div tags as well otherwise there is still a placeholder that is attempting to reference the pfc_button in the CSS sheet but without any arguments it might be messing up the rest of the code.
Myth024
Member
 
Posts: 19
Joined: Sun Jun 03, 2012 3:35 am
Top

Postby BULLETPROOF123 » Fri Jun 15, 2012 6:29 am

hello mate thanks for the reply but I've tried doing that, still no luck

i can't get my head around this, still haven't figured it out, if i cant remove them and still have people auto connect then i cant use this chat:(


would anyone be willing to try this on their own chat? just to see if you can figure out how to do it.

if your not to busy
Last edited by BULLETPROOF123 on Fri Jun 15, 2012 6:44 am, edited 1 time in total.
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top

Postby BULLETPROOF123 » Fri Jun 15, 2012 6:53 am

i just noticed it does the same thing if you remove the minimize maximize button too
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top

Postby BULLETPROOF123 » Tue Jun 26, 2012 2:04 am

well does no one have any idea?
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top

Postby re*s.t.a.r.s.*2 » Tue Jun 26, 2012 2:34 am

hi,

haven't try but should work no?

Code: Select all
<div class="pfc_btn" style="display:none">
        <img src="<?php echo $c->getFileUrlFromTheme('images/sound-on.gif'); ?>"
             alt="" title=""
             id="pfc_sound"
             onclick="pfc.sound_swap()" />
      </div>

I don't just an idea.
Free Singles Chat Rooms No Registration Required
Text and Chat Singles no need to register or app required
Sala De Bate Papo Online Grátis E Sem Cadastro
re*s.t.a.r.s.*2
Support Team
 
Posts: 612
Joined: Wed Sep 24, 2008 4:04 pm
Location: los angeles CA
  • Website
Top

Postby BULLETPROOF123 » Tue Jun 26, 2012 2:46 am

its ok i got it working now, all i did was change the code like this

ORIGINAL:
<div class="pfc_sound">
<img src="<?php echo $c->getFileUrlFromTheme('images/sound-on.gif'); ?>"
alt="" title=""
id="pfc_sound"
onclick="pfc.sound_swap()" />
</div>

MODDED:
<div id="pfc_sound"></div> <-----MODDED LINE
<img src="<?php echo $c->getFileUrlFromTheme('images/sound-on.gif'); ?>" <-----DELETED ENTIRE LINE
alt="" title=""<-----DELETED ENTIRE LINE
id="pfc_sound"<-----DELETED ENTIRE LINE
onclick="pfc.sound_swap()" /><-----DELETED ENTIRE LINE
</div><-----DELETED ENTIRE LINE


that's what i did to the sound time connect/disconnect

and it works
Last edited by BULLETPROOF123 on Tue Jun 26, 2012 4:25 am, edited 1 time in total.
BULLETPROOF123
Member
 
Posts: 17
Joined: Thu Jun 14, 2012 6:11 am
Top


Post a reply
10 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 56 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