Raised This Month: $51 Target: $400
 12% 

ChatLog v1.3.7 (Extended)


Post New Thread Reply   
 
Thread Tools Display Modes
ineedh3lp
Member
Join Date: Dec 2009
Old 12-08-2010 , 05:06   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #121

Quote:
Originally Posted by matrixmark View Post
Hmm <iframe> would probably work
Thanks. I've looked into that too. Couldn't get it to work, but then again maybe I'm doing something wrong. If you have time to test it and if it works for you, please share the solution.

Thank you.
ineedh3lp is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-08-2010 , 06:11   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #122

Quote:
Originally Posted by ineedh3lp View Post
Hello!

I would like to merge the php of this plugin with the index of the l4d stats, so it shows the chat-log under the stats (on the same page). Is that possible, and if it is, please show me how.

Thank you!

EDIT: I did try to include one in the other, but I get an error from the chatlog module and the page looks funky.
THIS IS JUST AN EXAMPLE!

Save and extract the index_stats.php to your chatlog folder, then...
Modify your web stats index.php like this:
PHP Code:
// YOU CAN FIND THIS AT THE BOTTOM OF THE SCRIPT
    
if (strlen($googlemaps) > && ($googlemaps_markercounter || $googlemaps_servers 0))
    {
        if (
$googlemaps_markercounter == && $googlemaps_servers == || $googlemaps_markercounter == && $googlemaps_servers == 1)
            
$googlemaps .= "&zoom=" $googlemaps_playersonline_zoom;

        
$googlemaps .= $googlemaps_playersonline_addparam;

        
$output .= "<br><br><img src=\"" $googlemaps "\">";
    }
    
// EDIT START
    
$output .= "
        <br><br>
        <iframe src =\"../chatlog/index_stats.php\" width=\"600\" height=\"200\" scrolling=\"no\" frameborder=\"0\">
          <p>Your browser does not support iframes.</p>
        </iframe>
    "
;
// EDIT STOP
}

$tpl->set('body'trim($output));

// Output the top 10 
$tpl->set("top10"$top10);

// Print out the page!
echo $tpl->fetch("./templates/" $templatefiles['layout.tpl']);
?> 
Attached Files
File Type: zip index_stats.zip (3.1 KB, 209 views)
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.

Last edited by muukis; 01-10-2011 at 03:00.
muukis is offline
ineedh3lp
Member
Join Date: Dec 2009
Old 12-08-2010 , 06:25   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #123

Most AWESOME! Thank you matrixmark and thank you muukis!

I have one more question: what do I have to do to display the chat log under "Copyright © 2010 muukis | Left 4 Dead Stats written for SourceMod" on any l4dstats page?
ineedh3lp is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-08-2010 , 06:43   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #124

Quote:
Originally Posted by ineedh3lp View Post
I have one more question: what do I have to do to display the chat log under "Copyright © 2010 muukis | Left 4 Dead Stats written for SourceMod" on any l4dstats page?
One way is to add the iframe code in to layout.tpl. I suggest you create a new template for that file and edit it in there.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
ineedh3lp
Member
Join Date: Dec 2009
Old 12-08-2010 , 06:55   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #125

Quote:
Originally Posted by muukis View Post
One way is to add the iframe code in to layout.tpl. I suggest you create a new template for that file and edit it in there.
Extreme! Thank you. It looks amazing.
ineedh3lp is offline
Jumpman
Senior Member
Join Date: Mar 2010
Location: Denmark
Old 01-24-2011 , 18:30   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #126

I get this error when i active zblock on my server

Code:
SourceMod error session started
Info (map "de_dust") (file "errors_20110125.log")
[chatlogex.smx] ChatLogEx: Cannot log message, handle hdatabase is not set!
[SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
[SM] Displaying call stack trace for plugin "chatlogex.smx":
[SM] [0] Line 778, /home/groups/alliedmodders/forums/files/5/2/0/8/2/47687.attach::SendQuery()
[SM] [1] Line 386, /home/groups/alliedmodders/forums/files/5/2/0/8/2/47687.attach::CleanDB()
[SM] [2] Line 370, /home/groups/alliedmodders/forums/files/5/2/0/8/2/47687.attach::OnMapEnd()
Error log file session closed.
If zblock not active i have no errors
Jumpman is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 01-25-2011 , 04:42   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #127

Quote:
Originally Posted by Jumpman View Post
I get this error when i active zblock on my server

Code:
SourceMod error session started
Info (map "de_dust") (file "errors_20110125.log")
[chatlogex.smx] ChatLogEx: Cannot log message, handle hdatabase is not set!
[SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
[SM] Displaying call stack trace for plugin "chatlogex.smx":
[SM] [0] Line 778, /home/groups/alliedmodders/forums/files/5/2/0/8/2/47687.attach::SendQuery()
[SM] [1] Line 386, /home/groups/alliedmodders/forums/files/5/2/0/8/2/47687.attach::CleanDB()
[SM] [2] Line 370, /home/groups/alliedmodders/forums/files/5/2/0/8/2/47687.attach::OnMapEnd()
Error log file session closed.
If zblock not active i have no errors
I'm sorry, but what is zblock? And what does the activation of it do?
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 01-26-2011 , 01:28   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #128

Quote:
Originally Posted by muukis View Post
I'm sorry, but what is zblock? [...]
http://wiki.hlsw.net/index.php/ZBlock Intrusive Anti-cheat.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
muukis
Veteran Member
Join Date: Apr 2009
Old 01-27-2011 , 02:12   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #129

Quote:
Originally Posted by rautamiekka View Post
From the looks of the log output, your database connection was either not able to be created, or it was terminated by something? I have no experience with zBlock or anything that does similar things to a plugins connection to a database. I'm sorry but I don't think I can help you with your problem.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
Lucky_luck
AlliedModders Donor
Join Date: May 2011
Location: Germany
Old 06-09-2011 , 11:18   Re: ChatLog v1.3.7 (Extended)
Reply With Quote #130

Hi,

its nice Plugin ;) but i have a question, we make 2 server in this ?
Lucky_luck is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode