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

Allow users to select different font size and fonts

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
4 posts • Page 1 of 1

Postby rick001 » Mon Jan 02, 2012 1:56 pm

Hi, it would be really gr8 if users were able to select different font sizes and fonts, every other chat client has this option why is it that phpFreeChat doesnt?

I am gonna start with it abt now let's se if i can make it, i will post it under contribution if i make it else its upto you guys to help us out

Regards
Rick
http://www.techbreeze.in/chat
rick001
Member
 
Posts: 35
Joined: Sun Oct 16, 2011 1:28 pm
Top

Postby rick001 » Mon Jan 02, 2012 3:52 pm

hi i am back again and i have finally made some progress here is what i did first open pfcclient.js then i did the following

added the code

// change font of the text

changeFont: function()
{

fcookie = getCookie('font');
var wval = '<font ' + 'face' + '=' + fcookie + '>' + wval + '</font>';
}

now i have tested this while using the font name directly,(Check the code below it is working)


// change font of the text

var wval = '<font ' + 'face' + '=' + 'bookman' + '>' + wval + '</font>';

see here i am setting the font before hand now when i use the cookie version i will get the font that the user select.

i am sure it will work for the cookie version too like in the code above but i have hit a major snag because when i try to make the drop down menu from which users are to choose the font he/se wants, I want something along these lines

when the user clicks on the dropdown menu and select a font I want a cookie ('font') to be created which will store the name of the font that the user wants and then the changFont function will call that cookie and change the font for the user.

Thats how much i have done for now any help or suggestion in this area would be very helpful
rick001
Member
 
Posts: 35
Joined: Sun Oct 16, 2011 1:28 pm
Top

Postby charlesbrown678 » Thu Feb 09, 2012 2:39 pm

rick001 wrote:hi i am back again and i have finally made some progress here is what i did first open pfcclient.js then i did the following

added the code

// change font of the text

changeFont: function()
{

fcookie = getCookie('font');
var wval = '<font ' + 'face' + '=' + fcookie + '>' + wval + '</font>';
}

now i have tested this while using the font name directly,(Check the code below it is working)


// change font of the text

var wval = '<font ' + 'face' + '=' + 'bookman' + '>' + wval + '</font>';

see here i am setting the font before hand now when i use the cookie version i will get the font that the user select.

i am sure it will work for the cookie version too like in the code above but i have hit a major snag because when i try to make the drop down menu from which users are to choose the font he/se wants, I want something along these lines

when the user clicks on the dropdown menu and select a font I want a cookie ('font') to be created which will store the name of the font that the user wants and then the changFont function will call that cookie and change the font for the user.

Thats how much i have done for now any help or suggestion in this area would be very helpful

Thanks for the precious information about this code... hey can you demonstrate me the basic PHP codes or refer me a website or other stuff like that?...
Thanks
charlesbrown678
New member
 
Posts: 6
Joined: Tue Jan 31, 2012 12:30 pm
  • Website
Top

Postby rick001 » Thu Apr 19, 2012 4:13 pm

charlesbrown678 wrote:Thanks for the precious information about this code... hey can you demonstrate me the basic PHP codes or refer me a website or other stuff like that?...
Thanks

Sure i will be happy to help it would be very helpful if u could make mail me at rick@techbreeze.in with stuff you want to know abt.

Rick
visit www.techbreeze.in for Free SEO and Web Design Services
rick001
Member
 
Posts: 35
Joined: Sun Oct 16, 2011 1:28 pm
Top


Topic locked
4 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 3 guests

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