View Single Post
  #87  
Old 04-02-2004, 05:19 PM
CarolinaKid CarolinaKid is offline
 
Join Date: Jun 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have this working on my forums.
in /newthread.php find:
// ### NOT PREVIEW - ACTUAL POST ###
if ($newpost['postpoll'])
{
$url = "poll.php?$session[sessionurl]t=$newpost[threadid]&polloptions=$newpost[polloptions]";
}
else if ($newpost['visible'])
{
$url = "showthread.php?$session[sessionurl]p=$newpost[postid]#post$newpost[postid]";
}
else
{
$_REQUEST['forceredirect'] = 1;
$url = "forumdisplay.php?$session[sessionurl]f=$foruminfo[forumid]";
}

BELOW it add
PHP Code:
// irc addon
      
$ircdata $DB_site->query_first("SELECT * FROM ircaddon");
             if(
$ircdata[ircthread] == "1") {
                 
$Action "new";
                
$fid $ircdata[ircchan1forum];
                
$ircforum preg_replace("/[[:space:]]+/"" "$fid);
                
$ircforum " ".$ircforum." ";
                 
$forumtoirc "/ ".$forumid." /";
                        if (
preg_match($forumtoirc ,$ircforum)) {
                        
$ircchan=$ircdata[ircchannel1];
                        require(
"irc.php");
                    }
                
$fid $ircdata[ircchan2forum];
                
$ircforum preg_replace("/[[:space:]]+/"" "$fid);
                
$ircforum " ".$ircforum." ";
                 
$forumtoirc "/ ".$forumid." /";
                        if (
preg_match($forumtoirc ,$ircforum)) {
                        
$ircchan=$ircdata[ircchannel2];
                        require(
"irc.php");
                    }
                
$fid $ircdata[ircchan3forum];
                
$ircforum preg_replace("/[[:space:]]+/"" "$fid);
                
$ircforum " ".$ircforum." ";
                 
$forumtoirc "/ ".$forumid." /";
                        if (
preg_match($forumtoirc ,$ircforum)) {
                        
$ircchan=$ircdata[ircchannel3];
                        require(
"irc.php");
                    }
            }
// 

Run the install.sql as normal.
In the irc.php find:
$postusername
and replace it with
PHP Code:
$bbuserinfo['username'
then find:
$subject
and replace it with
PHP Code:
$_POST['subject'
and last find:
$goto
and replace it with
PHP Code:
$url 
as for the admin pannel the ircadmin.php is going to have to be rewote.
But don't let this stop you...just change the vaules in database tot he ip,channel,port and forum id's and run it. then when the ircadmin.php is rewrote its just a admincp/index.php edit and a file upload and your done.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01200 seconds
  • Memory Usage 1,805KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete