But... I have a few questions about dyn_params though, and about a few other glitches I seem to be seeing (and a bug).
But first, the formalities...
Support Template
PFC Version: PFC 1.3 on both dev and live site (same code on both).
PHP Version: Apache/2.2.17 (Win32) PHP/5.3.3 on my local development server, and nginx/0.8.52 PHP/5.3.2-1ubuntu4.5 on the live version I've linked here.
Shared or Dedicated Hosting: Live site is hosted on a Linode virtual host.
Link to your website: http://nnb.me/chat/
Are you able to reproduce the issue on the official demo (http://www.phpfreechat.net/demo)? -- Not really applicable to the issues I'm dealing with.
Have you set any parameters?
If so, please include your entire code, using the [code ] and[/code ] tags (without the space). -- Yes, but see explanation below. I'll include the code if necessary.
What is the issue you are experiencing in detail? -- See below.
Are you seeing any error messages, such as javascript errors? -- Only the one minor CSS error about an undefined background-color.
With that out of the way...
![Smile :)](./images/smilies/icon_smile.gif)
First, for the dyn_params, I'm pulling the language settings from the phpbb profile, so I included that... and if I'm understanding things correctly, any variables that are user specific should be included in dyn_params as well? So would that include "language","nick","nickmeta","ip","useragent","isadmin","time_offset" etc? I don't get the impression that it's supposed to, but I'm not grasping why.
Second (and rather less important), I have a persistent warning in the developer console about
- Code: Select all
15:21:36.752: Warning: Expected color but found 'undefined'. Error in parsing value for 'background-color'. Declaration dropped. Source File: http://(localdevserver)/chat/index.php?sid=6363f9bf76ceaffe1337a33c591e1cab Line: 0, Column: 9 Category: CSS Parser
I've dug around for it, but can't seem to find what's causing it.
![Sad :(](./images/smilies/icon_sad.gif)
Third, I also see on many of my refreshes (I think only after a rehash) that initially the chat path variables don't get set and everything looks for the files without prepending the data paths... a second refresh generally fixes everything. Again, not a very important problem, but a minor irritation I'd like to fix if possible.
![Smile :)](./images/smilies/icon_smile.gif)
Fourth, and lastly... in the "/chat/i18n/ja_JP/main.php" file, on lines 294-299 (shown below) it appears that one of the SVN revisions didn't apply correctly.
- Code: Select all
// line 83 in chat.js.tpl.php
<<<<<<< .mine
$GLOBALS["i18n"]["Choosen nickname is allready used"] = "選択したニックネームは既に試用されています";
=======
$GLOBALS["i18n"]["Chosen nickname is already used"] = "選択したニックネームは既に試用されています";
>>>>>>> .r1249
simply changing it to the following fixes that problem...
- Code: Select all
// line 83 in chat.js.tpl.php
$GLOBALS["i18n"]["Chosen nickname is already used"] = "選択したニックネームは既に試用されています";
Also, on line 344 (and a few others)...
- Code: Select all
$GLOBALS["i18n"]["kicked from %s by %s - reason: %s"] = "%1$s により %1$s から追い出されました - 理由: %3$s";
first I got an error because of using an uninitialized variable, the $s. Simply adding
- Code: Select all
$s = '';
at the top of the file fixed this...
second, I believe the correct code for that line should be
- Code: Select all
$GLOBALS["i18n"]["kicked from %s by %s - reason: %s"] = "%2$s により %1$s から追い出されました - 理由: %3$s";
changing the first translated variable from %1$s to %2$s.
This my first time really setting this up (I looked at PFC 1.1 awhile back, but passed on it at the time, but am a bit more experienced and liking PFC 1.3 a lot more this time around), so I've made a few rookie mistakes so far, such as not keeping the PFC sources in a separate directory for ease of upgrade.
![Wink ;)](./images/smilies/icon_wink.gif)
I also had some trouble getting my own custom theme to work... it seemed to insist on using the variables from the default theme even when I wasn't using it, so I ended up just modifying the default theme... again, probably something I overlooked?
![Sad :(](./images/smilies/icon_sad.gif)
I'd include my code here straight off, but I had to include 2 functions from PHPBB to modify them slightly to be able to use their output in PFC (for the avatar and profile stuff... again, probably due to my own lack of programming ability), and I have other code included for a quiz above the chat etc... so the code is quite a bit larger than usual. But I'd be glad to provide the relevant parts if needed.
![Smile :)](./images/smilies/icon_smile.gif)
I'm just getting up to speed on this, so please go gently on me.
![Wink ;)](./images/smilies/icon_wink.gif)
![Surprised :o](./images/smilies/icon_surprised.gif)
![Smile :)](./images/smilies/icon_smile.gif)
(I've read all the required guides and FAQs as noted in the Announcement thread linked up top.)
Thanks in advance!