Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
frontpage wrote:
SAX 1.0, the Simultaneous Asynchronous Exchange, adds realtime chat functionality to your forum via AJAX. It integrates seamlessly into phpBB with very little modification; install time is typically less than fifteen minutes. The SAX sidebar allows you to chat with your fellow forum members, alerts you of new posts and topics, and records when members arrive and leave. It dynamically adjusts its refresh rate to balance latency and bandwidth usage. In addition, features such as "!whereis " and "!calc " demonstrate the additional tools SAX can provide for users; it can easily be expanded with other such triggers based on your own needs. Now available as a phpBB MOD, and no longer the exclusive domain of Cemetech; I look forward to its adoption across the web.


Download
SAX 1.0 for phpBB

Very Happy Ill release SAXJAX now so that everyone can link their IRC channels to their sax.
Awesome! I wonder if 5 years down the line, all sorts of forums have these. That would be so cool to be a member of the forum that started it all. Good job Kerm and elfprince. Good Idea

Edit: Why did you choose a picture of the SAX that had a link to a pr0n topic?
Chipmaster wrote:
Awesome! I wonder if 5 years down the line, all sorts of forums have these. That would be so cool to be a member of the forum that started it all. Good job Kerm and elfprince. Good Idea


Wink 5 years down the line nobody will be on phpBB 2 since 3 is now in its 3rd beta Wink fortunately it shouldn't be too hard to port since it's mostly JS, not phpBB dependent phpBB code....
You know what I meant. Wink Laughing
w00t, been waiting for this forever!! Finally Very Happy

Thanks alot Smile
swivelgames wrote:
w00t, been waiting for this forever!! Finally Very Happy

Thanks alot Smile
Are you installing it now? I'd love to see how it looks on other peoples' sites.
Yah, I will in a sec.

Is the CSS easy to change?
Piece of cake. If you're using a separate stylesheet, just insert the CSS in there instead.
Got the SAX up on my site, and looks great. I did a bit of modifying to the code, and looks/functions awesome.

The only problem I have is with the "!whereis" command, its not working, its basically ignored. =,

I'll look over the code in a sec actually.

Say, any chance you will release the 'extras' that are on the Cemetech SAX?

Like...
Commands "I am..." and "/pm"
Expanding SAX
Smilies
etc...

Also, do you know if its possible to fix the \' when the topics are displayed?
I also got it installed, although I had a couple complaints. the biggest being that SaxTemplates() should be called by page_header.php, not functions.php.

also, you should add DIY instructions to make sure that saxlog.dat is CHMODed to 666.
awesome Kerm! but all I noticed was the shakira porn movies post in the cemetech sax screenshots Very Happy
Laughing Oh, and I already fixed the issues with quotes in topic names.
*bump* Looks like I have a bit of work to do to comply with their rather rigorous guidelines:

MOD Database Manager wrote:
-------------------------------------------------------------------------------------
This PM is automatically generated. Please do not reply.

If you wish to discuss anything in this PM please contact: ycl6
-------------------------------------------------------------------------------------

Hello,

As you may know, all MODs submitted to the phpBB MOD Database must be validated and approved by members of the phpBB Team.

Upon validating your MOD, the phpBB MOD Team regrets to inform you that we have had to deny your MOD.

To correct the problem(s) with your MOD, please following the below instructions:
  1. Make the necessary changes to correct any problems (listed below) that resulted in your MOD being denied.
  2. Increase your version number. (See Knowledge Base Article 43 for help.)
  3. Change the filename. (For example, my_mod_1.0.0.zip would become my_mod_1.0.1.zip.)
  4. Re-upload your MOD into our MOD Database.

Please ensure you tested your MOD on the latest version of phpBB (see the Downloads page) before you reupload your MOD.

Before you resubmit your MOD, please check your MOD Syntax via our MOD Syntax Validator to ensure your MOD is using the correct MOD Template Syntax.

Here is a report on why your MOD was denied:
-------------------------------------------------------------------------------------

TerraFrost wrote:
(from sax.mod)


Code:
loadXMLDoc('{U_SAXSAYPATH}/saxsay.php?sid={U_SID}&what='+saywhat,null);

Hard-coded PHP extension.


Code:
                        <input type="button" class="saxsubmit" name="submit" value="Say" onClick="saxAdd();"/>&nbsp;<a href="http://www.cemetech.net" target="_blank"><img src="images/saxtiny.png" border="0" /></a>

"Say" constitutes hard-coded language.


Code:
         $ajaxurl = preg_replace('/(^.*)(posting\.php.*$)/',"$1viewtopic.php",$_SERVER['PHP_SELF']);
         ajaxSaxAddItem(0,$userdata['username'],$topicname,$ajaxurl .'?p='.$post_id.'#'.$post_id);

More hard-coded php extensions. Also, should use $HTTP_SERVER_VARS instead of $_SERVER and... $_SERVER['PHP_SELF'] needs to be passed through htmlspecialchars to prevent XSS.

(from sax.php)

Code:
         $out=SAXformatstring('<span class="saxgray">***'.$who.' added a post in <a href="'.$where.'">'.stripslashes($what).'</a></span>');

Hard-coded language.


Code:
            $outstring = $row['username'] . ' was last online at ' . date('H:i:s',$row['user_lastvisit']);

More hard-coded language.


Code:
               $out .= SAXformatstring('<span class="saxmaroon">SAX:</span> <span class="saxblack">I don\'t know who you mean, '.$who.'.</span>');
            } else {
            //too many users found
               $out .= SAXformatstring('<span class="saxmaroon">SAX:</span> <span class="saxblack">I found more than one user.  Could you be more specific, '.$who.'?</span>');

Hard-coded language, again.

(I'm not going to point out anymore instances of hard-coded language; sufficide to say, there are more)

(from saxsay.php)

Should use the $HTTP_X_VARS varient

Code:
$tempsay = stripslashes(strip_tags(urldecode($_GET['what'])));


~Mac

-------------------------------------------------------------------------------------
Please refer to the following links before you reupload your MOD:

For further reading, you may want to review the following:


For help with writing phpBB MODs, the following resources exists:


If you feel this denial was not warranted, you can contact the MOD Team Leader, wGEric.

Thank You,
phpBB MOD Team
Ive noticed they are certainly rather stringent
So, Kerm, will there be documentation on how to mod SAX?
what do they mean "hard coded?"
Harq wrote:
what do they mean "hard coded?"


"hard coded" means that Kerm specified it in the code, rather than making it a variable. For example,


Code:
<input type="button" class="saxsubmit" name="submit" value="Say" onClick="saxAdd();"/>&nbsp;<a href="http://www.cemetech.net" target="_blank"><img src="images/saxtiny.png" border="0" /></a>


Note the value="Say" part is "hard coded", meaning the button will always have the text "Say" rather than looking up the language-appropriate variant, for example.

A second example


Code:
loadXMLDoc('{U_SAXSAYPATH}/saxsay.php?sid={U_SID}&what='+saywhat,null);


That line forces the user of the mod to have it be called saxsay.php, where it should instead look that up somehow

Having something be hard coded is generally considered bad programming practice, as it makes it harder to customize/update/fix Wink
ah...
Well he did originally make it for Cemetech Wink

Good luck converting and testing it.
I did the conversion, and now Glenn is setting me up a spare board to test it on.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 6
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum