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

How-to Requests

A collection of how-to's, submitted by users for other users!

Moderator: re*s.t.a.r.s.*2

Post a reply
41 posts • Page 3 of 3 • 1, 2, 3

Postby timhill » Mon Jan 23, 2012 5:43 pm

I want to embed chat into a dating website so that a user logs in, selects a currently logged in user to chat with, and then opens up a one-to-one chat window. There would not be a public chat room on the site. How to create this?
timhill
New member
 
Posts: 1
Joined: Mon Jan 23, 2012 5:32 pm
Top

Postby charlesbrown678 » Thu Feb 09, 2012 3:02 pm

please tell me how to add "IF" test in a loop?...

Thanks
Last edited by charlesbrown678 on Thu Feb 09, 2012 3:46 pm, edited 1 time in total.
charlesbrown678
New member
 
Posts: 6
Joined: Tue Jan 31, 2012 12:30 pm
  • Website
Top

Postby re*s.t.a.r.s.*2 » Thu Feb 09, 2012 6:16 pm

hi,

$strings = array('hello', 'test', 'happy');

Where $strings hold an array with strings

$repetitions =count($strings);

Code: Select all
for($i = 0; $i < $repetitions; $i++){

   if($string[$i] == 'hello') echo ' The loop found what I was looking for';
}

that's one way to use a loop.

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 charlesbrown678 » Fri Feb 10, 2012 10:23 am

Thanks.... this IF is actually a code which is adjusted in a for loop, i think ... I will try, will definitely execute..

Thanks again
charlesbrown678
New member
 
Posts: 6
Joined: Tue Jan 31, 2012 12:30 pm
  • Website
Top

Postby DaNGuS » Wed Jun 13, 2012 6:38 pm

Ok, here's my request - i need that my chat will show for different gender different icons near the nicknames in the chatroom (my members, womens, killing me, and do not leaving me alone, keep asking, when it will be sorted). I tried my self, i tried to search on this forum - no luck, tried to google it, but no result, i tried think, how to do it my self, but i must admit it, i'm not that good, this is my first php script i ever seen, so im do not know much... so please, please, can you help me with this? Can you show how to do it?

Thanks
Regards
DaNGuS
DaNGuS
Member
 
Posts: 20
Joined: Fri Nov 11, 2011 9:33 am
Top

Postby AJsWebCreations » Sun Jul 08, 2012 5:55 pm

Can we get updates to all the how to's that are current and work? I have been trying to change the background image for the user area and the main content area using the how to's and the only thing I can get to change is about a 10px wide strip between the main content and the user list box.
AJsWebCreations
New member
 
Posts: 8
Joined: Sun Jul 08, 2012 3:50 pm
Top

Postby OldWolf » Sun Jul 08, 2012 8:15 pm

They should be current, we've had no major changes that should have affected any of them.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby AJsWebCreations » Sun Jul 08, 2012 9:39 pm

ok maybe it is something going on between the chat and wordpress. I am using the latest version of wordpress.
AJsWebCreations
New member
 
Posts: 8
Joined: Sun Jul 08, 2012 3:50 pm
Top

Re: How-to Requests

Postby lanvin » Tue Jan 29, 2013 10:30 am

Hello,

My english is not very well, but i tried to explain me :
I want to do that when a user create a new channel, he can put a pass for this. So, if a another user want to go to this channel, he must give the pass to access. Is it possible ?
Thank you for your answer, and thank for this tool ! It's great !
lanvin
New member
 
Posts: 1
Joined: Tue Jan 29, 2013 10:20 am
Top

Re: How-to Requests

Postby nobtiba » Wed Aug 14, 2013 8:02 am

I follow the instruction here for installation:
http://www.phpfreechat.net/quickstart
I download, extract but no "data" folder under the main folder, so I created it and "public" and "private" then give it permission right 777.
Then I go to the link of the main folder but there's no chat or anything.
Pls tell me how to do it right ! Thank you!
nobtiba
New member
 
Posts: 3
Joined: Wed Aug 14, 2013 7:59 am
Top

Re: How-to Requests

Postby viningc » Sun Nov 24, 2013 5:54 pm

OK, there is so much good information here I could spend all year just reading and never gt a chatroom up and running, so I am going to take the plunge after skimming through and hope I don't step on any toes or, worse, propose an idea that has already been shot down!

Ultimately, I'm after information and assistance to generate something that will help me but aren't we all. If I have transgressed by not reading 100% of the "required" reading, I hope I have at least read enough that I don't get banned. I think this package has great potential and would hate to get banned because that would mean that I would not return here, could not get the support I need, and would have to find an alternate solution, probably someone else's, lesser chat system.

Support Template
PFC Version:
1.7 release
PHP Version: 5.3.13

Shared or Dedicated Hosting:
Link to your website:
https://wildtangentfansite.com/
Chat install: https://wildtangentfansite.com/Chat/index.php

Are you able to reproduce the issue on the official demo (http://www.phpfreechat.net/demo)?
No "issue"

Have you set any parameters?
If so, please include your entire code, using the [code ] and[/code ] tags (without the space).

The only thing I've attempted to change so far has been to set up a permanent admin using code I found in here elsewhere. Seems to work pretty good too. :)

I also commented out the directory listing on the left with the idea that I may replace it with "other" information later.
Code: Select all
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["title"] = "WTFS chat";
$params["nick"] = "";  // setup the intitial nickname to request one each time
$params['firstisadmin'] = false;
//$params["isadmin"] = false; // makes everybody admin: do not use it on production servers ;)
$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["debug"] = false;
$params["admins"]= array("admin" => "password"); //sets the admin username and password
$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>phpFreeChat- Sources Index</title>
  <link rel="stylesheet" title="classic" type="text/css" href="style/generic.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/header.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/footer.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/menu.css" />
  <link rel="stylesheet" title="classic" type="text/css" href="style/content.css" />
 </head>
 <body>

<div class="header">
      <img alt="phpFreeChat" src="style/logo.gif" class="logo2" />
</div>

<div class="menu">
      <ul>
        <li class="sub title">General</li>
        <li>
          <ul class="sub">
          <!--
            <li class="item">
              <a href="demo/">Demos</a>
            </li>
            <?php if (file_exists(dirname(__FILE__)."/checkmd5.php")) { ?>
            <li>
              <a href="checkmd5.php">Check md5</a>
            </li>
            <?php } ?>
            -->
            <!--
            <li class="item">
              <a href="admin/">Administration</a>
            </li>
            -->
          </ul>
        </li>
        <li class="sub title">Documentation</li>
        <li>
          <ul>
          <!--
            <li class="item">
              <a href="http://www.phpfreechat.net/overview">Overview</a>
            </li>
            <li class="item">
              <a href="http://www.phpfreechat.net/quickstart">Quickstart</a>
            </li>
            <li class="item">
              <a href="http://www.phpfreechat.net/parameters">Parameters list</a>
            </li>
            <li class="item">
              <a href="http://www.phpfreechat.net/faq">FAQ</a>
            </li>
            <li class="item">
              <a href="http://www.phpfreechat.net/advanced-configuration">Advanced configuration</a>
            </li>
            <li class="item">
              <a href="http://www.phpfreechat.net/customize">Customize</a>
            </li>
          -->
          </ul>
        </li>
      </ul>
      <p class="partner">
        <a href="http://www.phpfreechat.net"><img alt="phpfreechat.net" src="style/logo_88x31.gif" /></a><br/>
      </p>
</div>

<div class="content">
  <?php $chat->printChat(); ?>
  <?php if (isset($params["isadmin"]) && $params["isadmin"]) { ?>
    <p style="color:red;font-weight:bold;">Warning: because of "isadmin" parameter, everybody is admin. Please modify this script before using it on production servers !</p>
  <?php } ?>
</div>

<div class="footer">
  <span class="partners">-</span>
</div>

</body></html>


What is the issue you are experiencing in detail?
Not an issue per se, just a total lack of training in this particular version of chat. I have run a Linux Chat Server before and wanted a similar level of control. I have heavily modded phpbb fora before (until updates beat me on the head and taught me that less is better! ). I have programmed custom databases from scratch for a living in the distant, prehistoric past (late 19080's to early 1990's). This all just goes to show that I am an old dog trying to learn new tricks. :(

What I would like to propose would be a Mod or add-on that would make this chat system useable, controllable, and much more easy to setup with appropriate controls than it is now. I feel I am a casual user right now but know what I want. If I'm presented with a complete system that does almost what I want, I am fully capable of tinkering in incremental fashion until I get it working exactly like I want.

Presented with a basic system like PHPFREECHAT 1.7, I'm like a dog behind the counter in a butcher shop, I don't know where to run first and I'm not aware of the implications of over-eating.

Are you seeing any error messages, such as javascript errors?
None right now ...
viningc
New member
 
Posts: 3
Joined: Sat Nov 23, 2013 2:37 am
Top

Previous

Post a reply
41 posts • Page 3 of 3 • 1, 2, 3

Return to How-to (v1.x)

Who is online

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