Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
See my comment in your above post.

Fryedsoft: after mucking about with countdown.php for about an hour, I discovered that the version of sax.zip on the server was the wrong size; I guess the transfer failed halfway through. Crying
Well it downloads fine now Smile

It's definetly going to be interesting to translate sql calls into e-blah's flat file calls. They used to use encrypted logins via cookies but recently switched to a more secure session system that changes a few things.
Hmm, so you're going to port it? Cool! I look forward to seeing how that works out.
Well I'm going to at least look into it. Smile

Apparently, making portal modifications in e-blah is a near impossible task. either that, or no one wants to try and make one, since the functionality has been in final eblah since august, and in beta builds since at least march.

I also don't know how well PHP will integrate in a perl based system. it would almost have to be a seperate frame I would think.
Well, I hope it works out for ya. I would love to be able to support a concurrent e-Blah SAX.
Kerm, there be's an error with your current version of the mod.

the js include file for sax is uploaded to the includes directory, but the changes to overall_header.tpl tell it to look in the parent directory of the forum. I noticed this while helping mcgurrin with his board.
Can you please elaborate? The only thing I see are the dynamic paths that are generated by the templating system...
go down to <script language="Javascript" type="text/javascript" src="/saxjax.js"></script> in the header file and change it <script language="Javascript" type="text/javascript" src="./includes/saxjax.js"></script>
....clearly you're using an outdated version:

overall_header.tpl:

Code:
<script language="Javascript" type="text/javascript" src="{U_SAXLOGPATH}/saxjax.js"></script>


sax.php:

Code:
   $template->assign_var('U_SAXLOGPATH' , $phpbb_root_path.'includes');
KermMartian wrote:
....clearly you're using an outdated version:

overall_header.tpl:

Code:
<script language="Javascript" type="text/javascript" src="{U_SAXLOGPATH}/saxjax.js"></script>


sax.php:

Code:
   $template->assign_var('U_SAXLOGPATH' , $phpbb_root_path.'includes');


huh, Glenn said he had the newest version....
Perhaps he made an error during installation or something?
KermMartian wrote:
Perhaps he made an error during installation or something?


well, he used EasyMod, anyway, he tried uninstalling sax, easymod screwed his board over, so he reinstalled everything and now it works.
Superb. That's one of the reasons I never installed EasyMOD here (besides the fact that it doesn't install correctly on this server anyway) - it seems rather unstable.
well, it is only Alpha software (I have had issues with it also).
Kerm, what template is the Cemetech themes based on? SubSilver? I tried adding SAX to a theme on my bourd, and I couldn't find some code in a TPL file, might of been TPL... anyways, I am creating another forum, well trying to, that will use SAX. (By 'trying' to I mean that my Dreamweaver isn't placing all the files for the bourd).

Summing up, if Cemetech is based off SubSilver, could you, or someone help me put it on a few other themes (2 to be percise). I even did a Find and pasted the code into the find box in Dreamweaver and dreamweaver coldn't even find the code segment in the theme I was installing it on. =X

I do believe I've posted about this before... never got a sure answer, if one at all.
Sure, just let me know which template you're using, and I'll patch the necessary template files for you.
I'm trying to put it on AdInfinitum and DigiTech. I can send over the files, but not at the moment, currently at school. Laughing

Thanks!

EDIT: Also, does SAX saves the chat log to a file; like .txt, or to the MySQL DB? I usually like to save everything. Its fine if it doesn't, just curious =D.
Try this for Ad Infinitum (preferably, do this by hand):


Code:
#
#-----[ OPEN ]------------------------------------------
#
templates/AdInfinitum/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
{META}
{NAV_LINKS}
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/* SAX Styles */
div.ajax { overflow: hidden; padding: 8px 1px 1px; position: relative; left: 0px; width=100%; z-index:2;top:-20px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 10px; float: left;}
.saxred {color: {T_FONTCOLOR1}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 1.0em;}
.saxgray {color: {T_FONTCOLOR1}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 1.0em;}
.saxmaroon {color: {T_TH_COLOR2}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 1.0em;}
.saxblack {color: {T_BODY_TEXT}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 1.0em;}
a.saxblack {color: {T_FONTCOLOR1}; font-family: Verdana, Arial, Helvetica, sans-serif; font-size : 10px;}
input.saxinput {
   border: 1px solid {T_BODY_TEXT};
   width:100px;
   height:16px;
   font-size: 10px;
   color: {T_FONTCOLOR3};
   filter:alpha(opacity=50);
   opacity: 0.5;
   -moz-opacity:0.5;
   }
input.saxsubmit {
   border: 1px solid {T_BODY_TEXT};
   width:40px;
   height:16px;
   font-size: 10px;
   color: {T_FONTCOLOR3};
   filter:alpha(opacity=50);
   opacity: 0.5;
   -moz-opacity:0.5;
   }
-->
</style>

<!-- BEGIN switch_user_logged_in -->
<script language="Javascript" type="text/javascript" src="{U_SAXLOGPATH}/saxjax.js"></script>
<script language="Javascript" type="text/javascript">
<!--
   saxrefreshtime=7000;
   oldsaxhtml = '';
   saxjaxUpdate();
   function saxjaxUpdate() {
      var d = new Date()
      loadXMLDoc('{U_SAXLOGPATH}/saxlog.dat?usertime='+d.getTime(),'ajaxinfobox');
      setTimeout('saxjaxUpdate()',saxrefreshtime);
   }
   function saxaddenter(myfield,e)
   {
   var keycode;
   if (window.event) keycode = window.event.keyCode;
   else if (e) keycode = e.which;
   else return true;

   if (keycode == 13)
      {
      saxAdd();
      return false;
      }
   else
      return true;
   }
   function saxAdd() {
      var saywhat=URLEncode(document.saxin.saxtalk.value);
      if (saywhat=='' || saywhat==null)
      {
         return false;
      } else {
         document.getElementById('ajaxinfobox').innerHTML = '<BR /><span class="saxgray">{L_SAX_YOUSAID}:'+document.saxin.saxtalk.value+document.getElementById('ajaxinfobox').innerHTML;
         loadXMLDoc('{U_SAXSAYPATH}?sid={U_SID}&what='+saywhat,null);
         saxjaxUpdate();
         document.saxin.saxtalk.value='';
         return true;
      }
   }
//-->
</script>
<!-- END switch_user_logged_in -->
#
#-----[ FIND ]------------------------------------------
#
      <div class="clear"></div>
#
#-----[ AFTER, ADD ]------------------------------------------
#
      <!-- BEGIN switch_user_logged_in -->
      <table border="0" width="100%" cellspacing="0" cellpadding="4" border="0" align="center">
         <tr>
            <td width="25%" valign="top">
               <table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
                  <tr><td class="row1">
                     <div id="ajaxinputs" style="position: relative; height:20px; top:0px;left:0px; z-index: 12;">
                     <form style="display:inline" name="saxin" method="post" action="#" onsubmit="javascript:return false;">
                        <input type="text" class="saxinput" name="saxtalk" onkeypress="return saxaddenter(this,event);"/>
                        <input type="button" class="saxsubmit" name="submit" value="{L_SAY}" onClick="saxAdd();"/>&nbsp;<a href="http://www.cemetech.net" target="_blank"><img src="images/saxtiny.png" border="0" /></a>
                     </form>
                     </div>
                     <div class="ajax" id="ajaxinfobox"></div>
                  </td></tr>
               </table>
            </td>
            <td valign="top">
      <!-- END switch_user_logged_in -->
      <!-- BEGIN switch_user_logged_out -->
      <br />
      <!-- END switch_user_logged_out -->
#
#-----[ OPEN ]------------------------------------------
#
templates/AdInfinitum/overall_footer.tpl
#
#-----[ FIND ]------------------------------------------
#
      <div class="spacing"></div>
      <div class="spacing"></div>
      <div class="spacing"></div>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
         </td>
      </tr>
   </table>
Cool. Thanks Kerm! If you want me to send any files for DigiTech (if you want to do it) let me know. I'm home know. =D
Did you try the Ad Infinitum fix? I just registered on your server, but alas, thou has't not yet added it.
  
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 5 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

 

Advertisement