[BETA] AJAX Chat MOD

MODs and Styles for phpBB3.

To post your MOD or style, go to the STG MOD Manager
Forum rules
Go to http://startrekguide.com/mods to submit your MOD or style

Re: [BETA] AJAX Chat MOD

Postby nicholasalipaz » 16 Dec 2008, 20:57

soaknfused wrote:I had that problem, and posted about it several times in the old topic, it was fixed for me by using a new download (the one that is available in the first post of this thread) and by reducing the fastest refresh time from 5 seconds to 10.. seems that every 5 seconds was too fast for some on a slow connection, it just would hang there cycling forever and eventually lock of the browser.

try that to fix Internet Explorer. the settings for the number of seconds are near the top of the chat.php file.
nicholasalipaz    
Supporter
Supporter
 
Posts: 110
Joined: 28 Jun 2007, 18:23
Location: Los Angeles, CA
Gender: Male
phpBB Knowledge: 8


Re: [BETA] AJAX Chat MOD

Postby paralyz3 » 17 Dec 2008, 07:07

Hey,

First off all, thanks for this great chatbox, I love it :thumbsup:

It worked fine for 5 months, and suddenly there was this error message:
Code: Select all
Parse error: syntax error, unexpected '}' in .../forum/cache/tpl_centura-old_chat_body.html.php on line 276


This also deleted the lower part of the forum, online stats etc etc. What can i do to fix this? I tried clearing cache, but that just temporarily gives another error in template.php :cry:

I hope you can help me :)
paralyz3    
Crewman
Crewman
 
Posts: 3
Joined: 05 Dec 2008, 13:05
Gender: Male
phpBB Knowledge: 6

Re: [BETA] AJAX Chat MOD

Postby bannedfromvortex » 17 Dec 2008, 12:21

I am a complete newb and an idiot with a fast learning curve....HELP!!!

I need either someone to do it for me or give me some first hand help with installing ajax chat. I want it to appear as it did at the top of my forum when I was hosted by freeforums. I really dont want to have to link to a sep. window.


Thanks
admin.filthypoordubs.com


Nevermind.....was using the wrong text editor...switched to notepad++ and it works great
Thanks for the MOD
Last edited by bannedfromvortex on 18 Dec 2008, 11:20, edited 1 time in total.
bannedfromvortex    
Cadet I
Cadet I
 
Posts: 11
Joined: 16 Dec 2008, 21:04
Location: Harrisburg, PA
Gender: Male
phpBB Knowledge: 3

Re: [BETA] AJAX Chat MOD

Postby nicholasalipaz » 17 Dec 2008, 22:23

paralyz3 wrote:Hey,

First off all, thanks for this great chatbox, I love it :thumbsup:

It worked fine for 5 months, and suddenly there was this error message:
Code: Select all
Parse error: syntax error, unexpected '}' in .../forum/cache/tpl_centura-old_chat_body.html.php on line 276


This also deleted the lower part of the forum, online stats etc etc. What can i do to fix this? I tried clearing cache, but that just temporarily gives another error in template.php :cry:

I hope you can help me :)

that is a little hard to gather what the issue might be without seeing line 276 from your file. Have you made any other additions to your site recently?
nicholasalipaz    
Supporter
Supporter
 
Posts: 110
Joined: 28 Jun 2007, 18:23
Location: Los Angeles, CA
Gender: Male
phpBB Knowledge: 8

Re: [BETA] AJAX Chat MOD

Postby paralyz3 » 18 Dec 2008, 09:25

nicholasalipaz wrote:that is a little hard to gather what the issue might be without seeing line 276 from your file. Have you made any other additions to your site recently?


The problem is that it's in the cache folder, and those files i cannot download, nor chmod.

chat_body.html line 265 - 278
Code: Select all
<!-- IF S_USER_LOGGED_IN -->
      <div class="forabg">
         <div class="inner">
            <span class="corners-top"><span></span></span>
            <div class="chatform" align="center">         
               <form name="text" id="text" method="post" action="javascript:void(0);" onsubmit="handle_send('add', this)" autocomplete="off">
                  <strong style="color: white;">{L_MESSAGE}:</strong> <input type="text" tabindex="1" name="message" id="message" class="inputbox chatinput" />
                  <input type="submit" class="button1" value="{L_SUBMIT}" name="submit" tabindex="6" accesskey="s"/> <img src="{T_IMAGESET_PATH}/act_indicator.gif" id="act_indicator" /><br />
               </form>
            </div>
            <span class="corners-bottom"><span></span></span>
<!-- 276 -->   </div>
      </div>
   <!-- ENDIF -->


When i delete the cache file, the bottom of the page returns, and the error changes:

Code: Select all
Parse error: syntax error, unexpected '}' in .../public_html/forum/includes/template.php(614) : eval()'d code on line 276


includes/template.php line 275/276
Code: Select all
if (isset($user->theme['template_storedb']) && $user->theme['template_storedb'])
      {


It seems the problem lies somewhere with the DB, 'template_storedb' explains tpl_centura-old_chat_body.html;

:shock:

To bad i didn't make a backup last week ~-~
paralyz3    
Crewman
Crewman
 
Posts: 3
Joined: 05 Dec 2008, 13:05
Gender: Male
phpBB Knowledge: 6

Re: [BETA] AJAX Chat MOD

Postby bannedfromvortex » 18 Dec 2008, 11:46

Cr33per wrote:Is there any way I can make it so that guests cant see the chat box ?
Edit: index_body.html
<!-- IF S_USER_LOGGED_IN -->
<!-- INCLUDE chat_body.html -->
<!-- ENDIF -->


I have the same question..tried this but it does not work
bannedfromvortex    
Cadet I
Cadet I
 
Posts: 11
Joined: 16 Dec 2008, 21:04
Location: Harrisburg, PA
Gender: Male
phpBB Knowledge: 3

Re: [BETA] AJAX Chat MOD

Postby abish » 18 Dec 2008, 11:57

How do I install it with another template like 360 elite? I know it says subsilver.. I've seen others with the same one with different templates.. can someone help?
abish
Crewman
Crewman
 
Posts: 4
Joined: 17 Dec 2008, 12:57
Gender: Male
phpBB Knowledge: 10

Re: [BETA] AJAX Chat MOD

Postby Sniper_E » 18 Dec 2008, 12:32

The subsilver2 template for the chat should drop into your subsilver2 type style and match your style.
We have a lot of styles out there that have a special layout and codes that may need to be added.

If you have a special layout and the chat template does not match the look of your style....
go here for help on your custom style's chat layout: viewtopic.php?p=75995#p75995
Show a snap shot of what you get with the original downloaded files.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 6983
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [BETA] AJAX Chat MOD

Postby bannedfromvortex » 18 Dec 2008, 18:27

Soooooo does anyone know how to make it so you have to be logged in to see chat? It seems to have been posted a few times but as of yet no answer
bannedfromvortex    
Cadet I
Cadet I
 
Posts: 11
Joined: 16 Dec 2008, 21:04
Location: Harrisburg, PA
Gender: Male
phpBB Knowledge: 3

Re: [BETA] AJAX Chat MOD

Postby Yuki » 18 Dec 2008, 20:59

Handyman wrote:you can change it however you need to, to make it work.
I just wonder how you got phpBB to work?


well when installing phpbb3 i just follow the instruction...

the instruction say "for sqlite you have to write the path and file name to your database, no username or password needed"... i just following it and make a file and stored it in unreadable folder "not readable by bots or hacker, just readable by me or the hosting server admin only" (for the safety) and phpbb3 automatic store the database at that file (that i made for the database stored).

but when i install ajax chat, there no page that i have to write to locate my database.. it just automatic read the "db" folder from phpbb3 which are stored the includes files to make the database table..

so how to add some script so "chat_install.php" read my database and i manually locate my database files.. so ajax chat read that file as my database.

the logical just like this :
phpbb3 used "db" folder that stored includes to make table at database but before that phpbb3 ask me where the database locate so phpbb3 can read the path to it before it read the "db" folder.. after phpbb3 can read the database location it follow the instruction from "db" folder and make the table that needed by phpbb3 at my selection database and path, and phpbb3 make "config.php" for the future read to locate my database.

But at ajax chat.. when i used "chat_install.php?mode=install" it directly follow the instruction from "db" folder and not ask me where i stored my database first.. that why i get the error that say "missing database, blah.. blah.. blah..".


so can u help me to make a new lines of script so ajax chat ask me where i stored my database before it follow the instruction to make table from "db" folder includes instruction..

so the new lines of script can be like this
ajax chat read "Config.php" as a global include before ajax chat follow the instruction from "db" folder to make table

or

before ajax chat follow the instruction from "db" folder to make table at database, it ask me the path to my database first.. after all instruction have been made, by automatic ajax chat make new *.php as a global include for the future read to my database location


i just can't implementation it with php language.. i really suck with php language :scratch:

so can u help me with this
thanks
Yuki    
Crewman
Crewman
 
Posts: 6
Joined: 08 Dec 2008, 15:09
Gender: Male
phpBB Knowledge: 1

PreviousNext

Return to phpBB3 Customizations

Who is online

Users browsing this forum: Discovery Bot, Exabot [Bot], Google Adsense [Bot] and 17 guests