<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/9319" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-03-03T07:06:44-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/9319</id>

		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2006-03-03T07:06:44-04:00</updated>

		<published>2006-03-03T07:06:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60809#p60809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60809#p60809"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60809#p60809"><![CDATA[
Thanx, that helps alot!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2989">AxS</a> — Fri Mar 03, 2006 7:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-03-03T01:34:13-04:00</updated>

		<published>2006-03-03T01:34:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60796#p60796</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60796#p60796"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60796#p60796"><![CDATA[
many people have been requesting this, noone delivered - so if you really want it that bad, pay someone to write it for you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Mar 03, 2006 1:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[AxS]]></name></author>
		<updated>2006-03-03T01:25:30-04:00</updated>

		<published>2006-03-03T01:25:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60794#p60794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60794#p60794"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60794#p60794"><![CDATA[
Is anyone able to write a working script or a modification of the one available to make it work?  Really want this script running... so far i got the eggdrop saying lost telnet connection, eitherway - if you guys have it running and working - please point me in the right direction - if not, can someone clever enough, which i'm sure one of you here is, write a script... its something which I find very useful.<br><br>Many thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2989">AxS</a> — Fri Mar 03, 2006 1:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-03-14T09:36:06-04:00</updated>

		<published>2005-03-14T09:36:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47624#p47624</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47624#p47624"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47624#p47624"><![CDATA[
hmm, I believe "set line [join $args]" should " set line [<strong class="text-strong">split</strong> $args]"<br>btw. there are known issues with the var name "args", better use arg or something like this.<br>your error leads to this TCL FAQ entry:<br><a href="http://forum.egghelp.org/viewtopic.php?t=2603" class="postlink">http://forum.egghelp.org/viewtopic.php?t=2603</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Mon Mar 14, 2005 9:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jsilvestre]]></name></author>
		<updated>2005-03-14T06:13:11-04:00</updated>

		<published>2005-03-14T06:13:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47615#p47615</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47615#p47615"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47615#p47615"><![CDATA[
.set errorInfo<div class="codebox"><p>Code: </p><pre><code>Currently: list element in braces followed by "ngel" instead of spaceCurrently:     while executingCurrently: "lindex $arg 5"Currently:     (procedure "raw_352" line 3)Currently:     invoked from withinCurrently: "raw_352 $_raw1 $_raw2 $_raw3"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6034">jsilvestre</a> — Mon Mar 14, 2005 6:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-13T16:27:30-04:00</updated>

		<published>2005-03-13T16:27:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47563#p47563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47563#p47563"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47563#p47563"><![CDATA[
<strong class="text-strong">next time use</strong> <div class="codebox"><p>Code: </p><pre><code> tag when pasting code[/b]remove that for($i=0;$i&lt;400000;$i++) from your PHP scriptuse .set errorInfo from eggdrop's party line to obtain full error traceback</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Mar 13, 2005 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jsilvestre]]></name></author>
		<updated>2005-03-13T15:06:42-04:00</updated>

		<published>2005-03-13T15:06:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47549#p47549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47549#p47549"/>
		<title type="html"><![CDATA[Problem with phpbb2egg]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47549#p47549"><![CDATA[
I use phpbb2egg tcl but when have a new post or any action in forum bot show an error in partyline and the script don´t work.<br>The error is: <strong class="text-strong">Tcl error: no value given for parameter "idx" to "phpbb2eggaccept"</strong><br><blockquote class="uncited"><div>phpbb2egg.tcl<br># found on egghelp.org a posting by ShavdApe about a phpbb2egg script<br># to post live into a channel when a post on a board is made<br># add the line source/phpbb2egg.tcl into your .conf and rehash the bot<br><br># you can change the port here, but pls think about to change it to<br># the same port on functions_phpbb2egg.php:<br>listen 6551 script phpbb2eggaccept<br><br>proc phpbb2eggaccept {idx} {<br>control $idx phpbb2eggincoming<br>}<br><br>proc phpbb2eggincoming {idx args} {<br><br>putlog "$args"<br>             set line [join $args]<br>        if {[join $args] != "" } {<br>              set chan [lindex $line 0]<br>set line [lrange $line 1 end]<br>set line [join $line]<br>               set line [split $line ";"]<br>foreach line $line { putserv "PRIVMSG $chan :$line" }<br>putlog "$line"<br>        }<br>killdcc $idx<br>}<br>putlog "phpbb2egg.tcl Loaded..."</div></blockquote><br><blockquote class="uncited"><div>functions_phpbb2egg.php<br>&lt;?php<br>// version 1.0.1 beta[development]<br><br>$channel = "#fiodental";<br>$ids = "1 2 3 4 5"; // forums to display posts from<br>$botip = "207.44.155.125"; // your bot's ip<br>$botport = "6551"; // a nice port<br>$boardurl = "<a href="http://www.fiodental.net/forum" class="postlink">www.fiodental.net/forum</a>";<br><br>function send2egg($mode, $forumid, $topic_id, $user_id, $subject, $message, $poll_title, $channel, $ids, $botip, $botport, $boardurl )<br>{<br>        global $userdata;<br><br>        $nick = $userdata[$user_id];<br><br>                //strip BBCode off<br>        $message = preg_replace("#\[(.*?)]#si", "", $message);<br><br>        // shorten longer postings to 300 signs<br>        $text = wordwrap($message, 300, "\0") . ' ...';<br><br><br>                //here we ask for several cases and do some formating stuff with tcl readable colors.<br>                if ( $poll_title != '' )<br>                {<br>                        $text2  = "\00300,02 New poll! \00301,99 on our board:&lt;br&gt;";<br>                }<br>                else if ( $mode = 'newtopic' )<br>                {<br>                        $text2  = "\00300,02 New topic! \00301,99 on our board:&lt;br&gt;";<br>                }<br>                else<br>                {<br>                        $text2  = "\00300,02 Fresh! \00301,99 from our board:&lt;br&gt;";<br>                 }<br><br>        if ( $poll_title != '' )<br>        {<br>                $text2  .= "\00300,04 $nick \00302,99 asks: $poll_title &lt;br&gt;";<br>        }<br><br>                 else if ( $subject != '' )<br>                 {<br>                $text2  .= "\00300,04 $nick \00302,99 about the subject $subject :&lt;br&gt;";<br>                $text2 .= " \00302,99 $message &lt;br&gt;";<br>        }<br><br>        else<br>        {<br>                $text2  .= "\00300,04 $nick".":";<br>                $text2 .= " \00302,99 $message &lt;br&gt;";<br>        }<br><br><br><br>                $text2 .= " Link: \00312,99 $boardurl/viewtopic.php?t=$topic_id ";<br><br>        $chan = checkid( $forumid, $channel, $ids );<br><br>        phpbb2egg($chan, $text=$text2, $botip, $botport );<br><br>}<br><br><br><br>function phpbb2egg( $channel, $text, $botip, $botport)<br>{<br>        if ( $channel == '' || $text == '') {<br>        return;<br>        }<br><br>        $text = ereg_replace(";", ":", $text);<br>        $text = ereg_replace("&lt;br&gt;", ";", $text);<br><br>        $line = "$channel $text";<br><br>        $socket = @fsockopen ($botip, $botport, $null, $null, 60);<br><br>        if (!$socket)<br>        {<br>                echo " no connection made ";<br>        }<br>        if ($socket) {<br>        @fputs($socket,"$line\n");<br><br>              for($i=0;$i&lt;400000;$i++)<br>            {<br>                $g=$i;<br>            }<br>            fclose($socket);<br>        }<br>}<br><br><br>        // a little tricky from unknown<br>function checkid($forumid, $channel, $ids )<br>{<br><br>        $public[forumids]   = " $ids ";<br>        $public[chan]       = " $channel ";<br><br>        $forumids=explode(" ", $public[forumids]);<br><br>        while ( list($n, $id) = each($forumids))<br>        {<br><br>            if ($forumid == $id)<br>            {<br>                                return "$public[chan]";<br>            }<br><br>        }<br><br>        return "";<br>}<br><br><br><br>?&gt;</div></blockquote>i wait for yours sugestions <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6034">jsilvestre</a> — Sun Mar 13, 2005 3:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
