Need help with AJAX Chat!

Need some coding help with a MOD or tweak you are working on? - Ask here.
Forum rules
Ask for support specifically regarding coding help with phpBB3.
Not for generic usability questions or support.

Need help with AJAX Chat!

Postby xXxShadowxXx » 06 Jun 2012, 16:53

Hey guys, i recently installed AJAX Chat. Well i joined this other forum with AJAX.
And they had a tut on how to add chat backgrounds.
Well it didn't work.

It looks like this.

http://img1.uploadscreenshot.com/images/orig/6/15709361055-orig.jpg

Click the link to see it..

I want coding help to get that..

Please help..

Visit my forum if you are interested in helping

http://thelostadventures.zapto.org/forum

Or just reply to this or PM me.
xXxShadowxXx    
Crewman
Crewman
 
Posts: 8
Joined: 06 Feb 2012, 23:37
Gender: Male
phpBB Knowledge: 5




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Need help with AJAX Chat!

Postby Sniper_E » 07 Jun 2012, 09:03

Yes, you need a little styling on your chat so it will match your style.
We have a topic in the Styles forum for this chat you can post in.

Of course, I see that you removed Handyman's credits from the footer in your chat... So you will not be able to get any kind of support from us until you put the chat credits back where they were.

[ Post made via HTC Inspire] Image
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: 6985
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: Need help with AJAX Chat!

Postby xXxShadowxXx » 07 Jun 2012, 11:39

Sorry, i just noticed it.. I didn't remove it.. Some other admin did it.. Via VPS.. I will restore right now.. So could you help me on it?
xXxShadowxXx    
Crewman
Crewman
 
Posts: 8
Joined: 06 Feb 2012, 23:37
Gender: Male
phpBB Knowledge: 5

Re: Need help with AJAX Chat!

Postby xXxShadowxXx » 07 Jun 2012, 11:45

Edit: I have restored the credits. Sorry for my staff's undoings.
xXxShadowxXx    
Crewman
Crewman
 
Posts: 8
Joined: 06 Feb 2012, 23:37
Gender: Male
phpBB Knowledge: 5

Re: Need help with AJAX Chat!

Postby xXxShadowxXx » 07 Jun 2012, 17:45

Here's the code i've been working on.. But after this i can't get any further..

Code: Select all
<?php
$sql = "SELECT * FROM tla_users WHERE user_id = '".$row['user_id']."' LIMIT 1";
$result = $db->sql_query($sql);
$sqlrows = $db->sql_fetchrowset($result);

foreach ($sqlrows as $sqlrows2){
$group_id = $sqlrows2['group_id'];
}
switch($group_id){
case '5': //Admin
$sql1 = "SELECT * FROM tla_profile_fields_data WHERE user_id = '".$row['user_id']."' LIMIT 1";
$result1 = $db->sql_query($sql1);
$rows1 = $db->sql_fetchrowset($result1);

foreach ($rows1 as $row2){
$adminBG = $row2['pf_chat_bg_color'];
}
$class4 = 5;
if($adminBG != NULL && $adminBG != ""){
$class4 = $adminBG;
}
break;
case '4':
$class4 = 10;
break;
case '8': //Add Group Name Here
$class4 = 9;
break;
default:
$class4 = ($row['message_id'] % 2) ? 1 : 2;
break;
}
?>


I don't even know how to add the tables in the database for it
xXxShadowxXx    
Crewman
Crewman
 
Posts: 8
Joined: 06 Feb 2012, 23:37
Gender: Male
phpBB Knowledge: 5


Return to phpBB3 Coding Assistance

Who is online

Users browsing this forum: Googlebot and 13 guests