[RC3]Ajax Shoutbox

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

thats just it how do i do that lol sorry new to editing this stuff !
can you tell me what i need to change please, thankyou for taking the time :)

Code: Select all

<table width="100%" cellspacing="0" cellpadding="2" border="0" align="center">
  <tr> 
	<td align="left" valign="bottom"><span class="gensmall">
	<!-- BEGIN switch_user_logged_in -->
	{LAST_VISIT_DATE}<br />
	<!-- END switch_user_logged_in -->
	{CURRENT_TIME}<br /></span><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
	<td align="right" valign="bottom" class="gensmall">
		<!-- BEGIN switch_user_logged_in -->
		<a href="{U_SEARCH_NEW}" class="gensmall">{L_SEARCH_NEW}</a><br /><a href="{U_SEARCH_SELF}" class="gensmall">{L_SEARCH_SELF}</a><br />
		<!-- END switch_user_logged_in -->
		<a href="{U_SEARCH_UNANSWERED}" class="gensmall">{L_SEARCH_UNANSWERED}</a></td>
  </tr>
</table>

<!-- BEGIN catrow -->
<table width="100%" cellpadding="2" cellspacing="0" class="forumline">
<thead>
	<caption><table border="0" cellspacing="0" cellpadding="0" width="100%" class="forumheader">
	<tr>
		<td align="left" valign="bottom" width="25"><img src="templates/AcidTech/images/hdr_left.gif" width="25" height="27" alt="" /></td>
		<td align="center" class="forumheader-mid"><a href="{catrow.U_VIEWCAT}">{catrow.CAT_DESC}</a></td>
		<td align="right" valign="bottom" width="25"><img src="templates/AcidTech/images/hdr_right.gif" width="25" height="27" alt="" /></td>
	</tr></table></caption>
</thead>
<tbody>
<tr> 
	<th colspan="2">{L_FORUM}</th>
	<th width="50">{L_TOPICS}</th>
	<th width="50">{L_POSTS}</th>
	<th>{L_LASTPOST}</th>
</tr>
<!-- BEGIN forumrow -->
<tr> 
	<td class="row1" align="center" valign="middle" style="padding: 5px;"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="23" height="23" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<td class="row1" width="100%"><span class="forumlink"> <script language="JavaScript">FolderStart('{catrow.forumrow.FORUM_FOLDER_IMG}');</script><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><script language="JavaScript">FolderEnd();</script><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
	  </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
	<td class="row2" align="center" valign="middle"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row2" align="center" valign="middle"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
	<td class="row2" align="center" valign="middle" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
</tbody>
</table>
<br class="spacer" />
<!-- END catrow -->

<table width="100%" cellspacing="0" border="0" align="center" cellpadding="2">
  <tr> 
	<td align="left">
 	<!-- BEGIN switch_user_logged_in -->
 		<span class="gensmall"><a href="{U_MARK_READ}" class="gensmall">{L_MARK_FORUMS_READ}</a></span>
 	<!-- END switch_user_logged_in -->
 	</td>
	<td align="right"><span class="gensmall">{S_TIMEZONE}</span></td>
  </tr>
</table>

<table width="100%" cellpadding="3" cellspacing="0" class="forumline">
<thead>
	<caption><table border="0" cellspacing="0" cellpadding="0" width="100%" class="forumheader">
	<tr>
		<td align="left" valign="bottom" width="25"><img src="templates/AcidTech/images/hdr_left.gif" width="25" height="27" alt="" /></td>
		<td align="center" class="forumheader-mid"><a href="{U_VIEWONLINE}">{L_WHO_IS_ONLINE}</a></td>
		<td align="right" valign="bottom" width="25"><img src="templates/AcidTech/images/hdr_right.gif" width="25" height="27" alt="" /></td>
	</tr></table></caption>
</thead>
<tbody>
<tr> 
	<td class="row1" align="center" valign="middle" rowspan="2" style="padding: 5px;"><img src="templates/AcidTech/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" width="23" height="23" /></td>
	<td class="row1" align="left" width="100%"><span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span>
	</td>
</tr>
<tr> 
	<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} &nbsp; [ {L_WHOSONLINE_ADMIN} ] &nbsp; [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
</tbody>
</table>

<table width="100%" cellpadding="1" cellspacing="1" border="0">
<tr>
	<td align="left" valign="top"><span class="gensmall">{L_ONLINE_EXPLAIN}</span></td>
</tr>
</table>

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr><td class="row1"><p class="gensmall" id="shoutbox"></p></tr></td>
</table>

<script type="text/javascript">
display_shoutbox = true;
load_shout();
</script>

<!-- BEGIN switch_user_logged_out -->
<form method="post" action="{S_LOGIN_ACTION}">
  <table width="100%" cellpadding="2" cellspacing="0" class="forumline">
<thead>
	<caption><table border="0" cellspacing="0" cellpadding="0" width="100%" class="forumheader">
	<tr>
		<td align="left" valign="bottom" width="25"><img src="templates/AcidTech/images/hdr_left.gif" width="25" height="27" alt="" /></td>
		<td align="center" class="forumheader-mid"><a name="login"></a>{L_LOGIN_LOGOUT}</td>
		<td align="right" valign="bottom" width="25"><img src="templates/AcidTech/images/hdr_right.gif" width="25" height="27" alt="" /></td>
	</tr></table></caption>
</thead>
<tbody>
	<tr> 
	  <td class="row1" align="center" valign="middle"><table border="0" cellspacing="0" cellpadding="1">
	  <tr>
		<td><span class="gensmall">{L_USERNAME}:</span></td>
		<td><input class="post" type="text" name="username" size="10" /></td>
		<td><span class="gensmall">&nbsp;&nbsp;&nbsp;{L_PASSWORD}:</span>
		<td><input class="post" type="password" name="password" size="10" maxlength="32" /></td>
		<!-- BEGIN switch_allow_autologin -->
		<td><span class="gensmall">&nbsp;&nbsp; &nbsp;&nbsp;{L_AUTO_LOGIN}</span></td>
		<td width="20"><span class="cbstyled"><input type="checkbox" name="autologin" /></span></td>
		<!-- END switch_allow_autologin -->
		<td><span class="gensmall">&nbsp;&nbsp;&nbsp;</span></td>
		<td><input type="submit" class="mainoption" name="login" value="{L_LOGIN}" /></td>
	  </tr>
	  </table></td>
	</tr>
   </tbody>
  </table>
</form>
<!-- END switch_user_logged_out -->

<br clear="all" />

<table cellspacing="3" border="0" align="center" cellpadding="0">
  <tr> 
	<td width="20" align="center"><img src="templates/AcidTech/images/folder_new_big.gif" alt="{L_NEW_POSTS}" width="23" height="23" /></td>
	<td><span class="gensmall">{L_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/AcidTech/images/folder_big.gif" alt="{L_NO_NEW_POSTS}" width="23" height="23" /></td>
	<td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
	<td>&nbsp;&nbsp;</td>
	<td width="20" align="center"><img src="templates/AcidTech/images/folder_locked_big.gif" alt="{L_FORUM_LOCKED}" width="23" height="23" /></td>
	<td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
  </tr>
</table>
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

anyone gonna help me out lol with this post above ? all i wanna do is put the shoutbox at the top of my forum i just need to know what to edit in the index_body.tpl which is what i posted , Paul can you hook me up dude , i would really apreciate it. thanks
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28617
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [RC3]Ajax Shoutbox

Post by Paul »

JUst try to move it, and look where it is displayed :?
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

yeah i would but i used easymod to install this , and i dont know which code is the correct code to move lol :cry:
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28617
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [RC3]Ajax Shoutbox

Post by Paul »

Look in the install file what code it is? Sorry, but you really need to try things a bit yourself.
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

ok well i looked through the whole install file and i have no idea what to look for thats why im asking lol can you at least give me a hint lol, if i knew what word "s" or general area then i would just do it as fast as i could :geek: really apreciate your help.

im not triying to be lazy i just really have no clue as to what to look for so i can move it thats all i hope you understand.
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

would this be the code that i need to move ?

Code: Select all

<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr><td class="row1"><p class="gensmall" id="shoutbox"></p></tr></td>
</table>

<script type="text/javascript">
display_shoutbox = true;
load_shout();
</script>
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28617
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [RC3]Ajax Shoutbox

Post by Paul »

yes.
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

wow i got it on the first try yes :P
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

hey Paul is there a way to get the posts to prune faster than the usual time ? its 2 weeks right ?
reason i say this, is because if a board member uses the chat a bunch then once the numbers at the bottom fill up the page that the chat is on , then it starts to put the numbers at the next forum title , so by keeping the prune posts deleting at a faster rate that would never happen :) and also is there a way to clear the entire shoutbox of all posts messages ? with the push of one button ?
Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 28617
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Re: [RC3]Ajax Shoutbox

Post by Paul »

To clear the entire shoutbox you need to delete all messages in phpmyadmin. The pruning time can be edited in ajax.php.
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

exactly what i needed thankyou
L0c
Registered User
Posts: 1
Joined: Wed Dec 05, 2007 1:38 am

Re: [RC3]Ajax Shoutbox

Post by L0c »

Hey Paul999.

I assume that you are already aware of the problem I have, and I also assume that you can't fix it, as it is still present in the demo board.

Anyway heres my problem:

I decided to change the shoutbox around a bit, because i didnt want it as a "100%" width table on the bottom of the page, but instead as a thin little box on the side of the page.

So i simply changed the position of the shoutbox in the index_body tpl file.
The first probem i encountered here was that because the shoutbox was now so thin, a sentece more than 5 words would stretch it.

So i simply added in post.style.wordwrap = "break-word"; into the actual post box div.

This seemed to work fine, however, i noticed that when typing in a word or letters without a space that was longer than the actual box (in my case, the box is very thin) that the box would be stretched.

On your demo board the box stretches, making the page bigger. On my board however, because i implemented the break-word display function into the post div, the box doesnt stretch, but the actual blocks inside the shoutbox, which forces horizontal scrollign on the shoutbox.

So my problem is i want to get rid of the horizontal scroll bar, by somehow breaking up letters if a word is too long, just like wordwrap = "break-word" breaks up words if a sentence is too long.

Is there any way i can do this?

Also, i suggest that if you cant fix this problem, you add in the wordwrap = "break-word" to the next update, has horizontal scrollign on the shoutbox is better than forcing the whole actual page to become wider than the screen.

Thanks in advance Paul.
pic-o-matic
Registered User
Posts: 1
Joined: Sat Dec 15, 2007 10:18 am

Re: [RC3]Ajax Shoutbox

Post by pic-o-matic »

Hi, first off all, very nice shoutbox. It works very well. I only have one little problem. When i press the smilies button, no smilies apear. if i type : ), it does appear in the shoutbox.

I read the whole topic, but couldn't find the solution. Anyone a tip for me?
BurnOmatic
Registered User
Posts: 52
Joined: Mon Oct 29, 2007 2:07 am

Re: [RC3]Ajax Shoutbox

Post by BurnOmatic »

im still waiting for a fix to that anoying ass hell XML error ? is there gonna be one or is it in the works Paul :)
or is there something i missed , that would fix this ?
Post Reply

Return to “[2.0.x] MODs in Development”