vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Eggdrop IRC Manager (https://vborg.vbsupport.ru/showthread.php?t=61570)

Fusion.nl 05-26-2005 10:47 PM

Sweet hack!

/me clicks install

Forum-Style 06-02-2005 06:25 PM

for recognising oper'd users, you can do if{iso ..... (iso is the oper version of isop)

if that helps at all :) I ended up putting a line and manually inputting nicks (if($nick = me||$nick = him) etc.

Activity isn't being passed into my sql :( did just after installing. so dont know where to go from that. may just remove that idle image all together. Got a base tho so can modify for the next vb version. :)

my channel's not that active anyway but i thought it would read something atleast.

Snort_2005 06-05-2005 02:07 AM

Nice.. The only thing I need is the ~ and & to show up for me. -_-

Jaxx 07-01-2005 04:42 AM

Exactly.... since i'm owner of the chan, I only show up as a normal user.

I'm also using one the latest versions of eggdrop, but i get the ishalfop command error in the party line. :/

Carnage 07-04-2005 04:09 PM

unreal ircd's ~ and & modes aren't supported by most things at the moment. This is your problem. I at one point attempted to write some code of my own to deal with this problem based off the smart irc php class. Perhaps i should code that up to a releasable script package...

edit:

having spent the past 8hrs coding, i've finially got a working ircbot that handles unreal ircd correctly. Expect a full release of something when i've finnished the vb side of things. (nb my bot is NOT an eggdrop.)

od3m 07-18-2005 02:53 PM

Hi all !

Has any one got an solution for implementing this nice Hack into vBAdvanced Portal home ?

Thx 4 ideas

od3m

Vizionz 08-17-2005 09:13 AM

Someone port this to 3.50

Disi 09-19-2005 03:42 PM

Yeah is there a 3.5 Port already :)

khurt 10-16-2005 03:09 AM

Quote:

Originally Posted by Disi
Yeah is there a 3.5 Port already :)

In the part of this hack that modifies the forum index page, the original instructions tell you to add this...
Quote:

$channels = $DB_site->query("
SELECT *
FROM `irc_channel`
");

while ($channel = $DB_site->fetch_array($channels))
For 3.5, it should be changed to this...
Quote:

$channels = $db->query_read("
SELECT *
FROM `irc_channel`
");

while ($channel = $db->fetch_array($channels))
note: I just included the first couple of lines from the code he tells you to add to index.php because that's the only part that changes. Everything else seems to work fine.

Anti-Gremlin 10-19-2005 01:23 AM

Here is a fix to get it work on 3.5.0

Make sure you compare to Velocd's version to know exactly where to place it.
PHP Code:

/////////// Eggdrop IRC Manager - By Velocd ///////////
//          Modified by Anti-Gremlin                 //
   

$channels $db->query("SELECT * FROM `irc_channel`");

while (
$channel $db->fetch_array($channels))
{
    
$nick_style explode('||'$channel['nick_style']);

    
$ops     explode(' '$channel['operators']);
    
$halfops explode(' '$channel['halfops']);
    
$voiced  explode(' '$channel['voiced']);
    
$users   explode(' '$channel['users']);

    if (!empty(
$ops[0]))
    {
        foreach (
$ops AS $op)
        {
            
$channel['nick_list'] .= str_replace('{nick}'$op$nick_style[0] . ', ');
        }
    }
    
    if (!empty(
$halfops[0]))
    {
        foreach (
$halfops AS $halfop)
        {
            
$channel['nick_list'] .= str_replace('{nick}'$halfop$nick_style[1] . ', ');
        }
    }

    if (!empty(
$voiced[0]))
    {
        foreach (
$voiced AS $voice)
        {
            
$channel['nick_list'] .= str_replace('{nick}'$voice$nick_style[2]) . ', ';
        }
    }

    if (!empty(
$users[0]))
    {
        foreach (
$users AS $user)
        {
            
$channel['nick_list'] .= str_replace('{nick}'$user$nick_style[3]) . ', ';
        }
    }

    
$channel['nick_list'] = substr($channel['nick_list'], 0, -2);

    if (
$channel['activity'] > 100)
    {
        
$channel['alevel'] = 5;
    }
    else if(
$channel['activity'] == 0)
    {
        
$channel['alevel'] = 0;
    }
    else
    {
        
$channel['activity'] *= .05;

        
$channel['alevel'] = round($channel['activity']);

        if (
$channel['alevel'] < 1)
        {
            
$channel['alevel'] = 1;
        }
    }

    
$channel['aname']      = $channel["act$channel[alevel]"];

    
$channel['online_max'] = number_format($channel['online_max']);
    
$channel['online']     = number_format($channel['online']);

    
$channel['date_max']   = vbdate($vbulletin->options['dateformat'], $channel['dateline_max']);
    
$channel['time_max']   = vbdate($vbulletin->options['timeformat'], $channel['dateline_max']);

    eval(
'$irc_channels .= "' fetch_template('irc_loggedin') . '";');

    unset(
$channel['nick_list']);




All times are GMT. The time now is 09:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.27708 seconds
  • Memory Usage 1,779KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete