Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Ajax Shoutbox V3
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2019-04-02 07:47:57
Updated for V3 credit to original author.
Ive put in progress because i dont use this and havent tested

[color=rgb(251, 160, 38)]SQL[/color]
CREATE TABLE IF NOT EXISTS `ajshoutbox` (
   `id` mediumint(9) NOT NULL AUTO_INCREMENT,
     `uid` mediumint(9) NOT NULL,
     `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
     `name` tinytext NOT NULL,
     `text` text NOT NULL,
     UNIQUE KEY `id` (`id`)
   ) ENGINE=MyISAM;


[color=rgb(251, 160, 38)]In each theme.css[/color]

   #chat {
           overflow: auto;
           width: 100%;
           height: 450px;
           padding: 0px;
   }
 
   #chatoutput ul {
           list-style: none;
           margin:0px;
           padding:0px;
           font-size: 10pt;
           padding:5px 4px 6px 5px;
   }
 
   div.chatoutput {
           /*background:#465151;#323232;*/
           background:#A8A8A8;
           padding:5px 0px 3px 10px;
           margin:0px;
           color:#000000;
           line-height: 150%;
           margin-bottom:2px;
           border-radius: 5px;
   }
 
   div.loader {
           background-image: url('images/ajshoutbox/random.php');
           background-repeat: no-repeat;
           background-position:center center;
           width:199px;
           height:137px;
   }
 
   #chatoutput ul li {
 
   }
 
   #chatoutput ul li span.name {
           display: block;
           background:url(images/ajshoutbox/bubble.png) no-repeat left;
           padding-left:19px;
           margin-bottom:1px;
           font-weight: normal;
           color:#000000;
   }
 
   #chatoutput ul li:hover span.name {
           background:url(images/ajshoutbox/bubblehover.png) no-repeat left;
   }
 
   form {
           padding:0px;
           margin:0px;
   }
 
   #chatoutput {
           text-align: left;
           margin-right: 0px;
           color: #999;
   }
 
   /* swaps edit and delete images on mouse over */
   #EditSwap {
           width:0px;
           height:0px;
           background:url(images/ajshoutbox/shout_edit_gray.gif) no-repeat bottom;
           padding:10px;
   }
   #EditSwap:hover {
           background:url(images/ajshoutbox/shout_edit.png) no-repeat bottom;
   }
   #DeleteSwap {
           width:0px;
           height:0px;
           background:url(images/ajshoutbox/shout_delete_gray.gif) no-repeat bottom;
           padding:10px;
   }
   #DeleteSwap:hover {
           background:url(images/ajshoutbox/shout_delete.png) no-repeat bottom;
   }
   /* end of swaping */
 
   img.form {
           background:url(images/ajshoutbox/frame.png) no-repeat;
   }
   img.form:hover {
           background:url(images/ajshoutbox/frame_hover.png) no-repeat;
   }
   #chatcornerup {
       width:50%;
           padding: 10px;
           background-color: #E2E2E2;
       border:1px solid #777;
           border-bottom-style:none;
           border-top-right-radius: 2em;
           border-top-left-radius: 2em;
   }
   #chatcornerdown {
           width:65%;
           padding: 10px;
           background-color: #E2E2E2;
       border:1px solid #777;
           border-bottom-style:none;
           border-top-right-radius: 2em;
           border-top-left-radius: 2em;
   }
 
   .marquee {
       width: 650px;
       margin: 0 auto;
       white-space: nowrap;
       overflow: hidden;
       box-sizing: border-box;
   }
 
   .marquee span {
       display: inline-block;
       padding-left: 100%;  /* show the marquee just outside the paragraph */
       animation: marquee 15s linear infinite;
   }
 
   .marquee span:hover {
       animation-play-state: paused
   }
 
   /* Make it move */
   @keyframes marquee {
       0%   { transform: translate(0, 0); }
       100% { transform: translate(-100%, 0); }
   }


[color=rgb(251, 160, 38)]Replace shoutbox code on index.php with[/color]
//AJAX SHOUTBOX/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
   if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
       
           require_once("backend/smilies.php");  
           require_once("shoutfun_new.php");
   begin_frame("".$site_config['SITENAME']." Shoutbox");
               
     function smile() {
 
           print "<div align='center'><table cellpadding='3' cellspacing='3'><tr>";
 
           global $smilies, $count;
           reset($smilies);
 
           while ((list($code, $url) = thisEach($smilies)) && $count<16) {
                     print("\n<td><a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
                                   <img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a></td>");
                           
                     $count++;
           }
 
           print '<br /><td>&nbsp<a href="javascript:show_hide(\'sextra\');"><img src=./images/ajshoutbox/down.gif title=more border=0></a></td></tr></table></div>';
     }
   function smileextra() {
 
     global $smilies;
     reset($smilies);
 
           # getting smilies
           while (list($code, $url) = thisEach($smilies)) {
                   print("\n<a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
                              <img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a>");
 
                  // $count++;
           }
 
    }
 
   ?>
 
   <script src="js/ajshoutbox.js" language="Javascript" type="text/javascript"></script>
 
   <br />
       <table align=center class=ajshoutboxbackground width=98%><tr>
       <td align=center>
   <div align='center'><b><font color=green>Member</font> | <font color=brown>Power User</font> | <font color=dimgray>VIP</font> | <font color=purple>Uploader</font> |<font color=pink>Moderator</font> | <font color=#009AFF>Super Moderator</font> | <font color=red>Administrator</font>| <font color=#00ffbf>Site Owner</font></b></br></br>
                 <p class="microsoft marquee"><span><?php echo "".T_("SHOUTINFO").""; ?></span></p></div></div>

            <div id="shoutheader">
         
           <form id="chatForm" name="chatForm" onsubmit="return false;" action="">
       
             <input type="hidden" name="name" id="name" value="<?php echo $CURUSER["username"] ?>" />
             <input type="hidden" name="uid" id="uid" value="<?php echo $CURUSER["id"] ?>" />

                     <table align=center width=98%><tr>
                     <td align=center>
                     <div align=center><?php echo smile();?></div><br />
                     <input type="text" size="105" maxlength="500"  placeholder=<?php echo"'".T_('SHOUT_HERE')."'" ;?> name="chatbarText" id="chatbarText" onblur="checkStatus('');" onfocus="checkStatus('active');" />
             <input onclick="sendComment();" type="submit" id="submit" name="submit" value="Confirm" />
             &nbsp;
             <a href="javascript: PopMoreSmiles('chatForm','chatbarText');">
             <img src="images/ajshoutbox/smile.gif" border="0" class="form" title="smilies" align="top" alt="" /></a>
 
             <a href="javascript: Pophistory()">
             <img src="images/ajshoutbox/quote.gif" width="24" height="24" border="0" class="form" title="History/Moderate" align="top" alt="" /><b><font color = red><--View old shouts or edit shouts</font></b></a>
                     <br /><br />
             <div style="display: none;" id="sextra"><?php echo shoutfun('chatForm','chatbarText');?></div><div style="display: none;" id="sextra1"><br><?php echo smileextra();?></div>
             <br />
       </td>
       </tr>
   </table><br />
   </form>
   </div>

    <div id="chat">
 
     <div id="chatoutput">
 
             <ul id="outputList">
 
                   <li>
                     <span class="name"><b><?php echo $site_config['SITENAME'];?> Shoutbox:</b></span><h2 style='padding-left:20px;'>WELCOME</h2>
                 
                           <center><div class="loader"></div></center>
 
                     </li>
 
             </ul>
 
     </div>
       
   </div>
   </td>
       </tr>
   </table><br /><br />
 
   <!--<script language="Javascript">
   $(".toggle").on("click", function () {
       $(".marquee").toggleClass("microsoft");
   })
   </script>-->
   <script language="Javascript">
   function show_hide(sextra)
   {
     if(document.getElementById(sextra))
     {
           if(document.getElementById(sextra).style.display == 'none')
           {
             document.getElementById(sextra).style.display = 'inline';
           }
           else
           {
             document.getElementById(sextra).style.display = 'none';
           }
     }
   }
   function show_hide(sextra1)
   {
     if(document.getElementById(sextra1))
     {
           if(document.getElementById(sextra1).style.display == 'none')
           {
             document.getElementById(sextra1).style.display = 'inline';
           }
           else
           {
             document.getElementById(sextra1).style.display = 'none';
           }
     }
   }
   </script>
   </center>
   <?php
   end_frame();
   }                  
 
   //END_AJAX_SHOUTBOX////////////////////////////////////////////////////////////////////////////////////////////////////////


[color=rgb(251, 160, 38)]In english.php add[/color]
    //ajax chat
   $LANG["SHOUT_HERE"] = "Shout Here";
   $LANG["STAFF_SHOUT"] = "Staff Shout";
   $LANG["SHOUTINFO"] = "<b><u>Shoutbox Rules</u></b>: English Only, <font color='red'>No</font> <i>Swearing, Personal Attacks, Abuse,</i> or <i>Spamming</i> and <font color='red'>No</font> <i>Publishing Serials, or Cracks</i> ETC. <img src=images/smilies/razz.png>";


Add contents of root folder to root

to clear shoutbox, in functions.php in format_comment find

           return $s;
   }

add

   global $CURUSER;
           $is_mod=$CURUSER["control_panel"]=='yes';
           
           
   
     if ((preg_match_all ('' . '#^/clean(.*)$#', $s, $Matches, PREG_SET_ORDER) AND $is_mod))
     {
           return execcommand_clean ($Matches);
     }elseif ((preg_match_all ('' . '#^/clean(.*)$#', $s, $Matches, PREG_SET_ORDER) AND !$is_mod))
     {return execcommand_noclean($Matches);}
ajax shoutbox.zip
Download
2019-04-05 10:51:14
clicking on shout does nothing.
2019-04-06 01:57:30
Test please. Upload everything. Directories are intact. Overwrite all.
Remove ajshoutbox.js from your root directory because that is not where it goes
Remove ping.php from your root directory because that is not where it goes
AJshoutshit.rar
Download

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-04-06 04:04:13
to use the hide button in the ajshoutbox, in backend/bbcode.php find
switch(tag)
   {

add after
    case '[hide]':
   var start = document.forms[form].elements[text].selectionStart;
   var end = document.forms[form].elements[text].selectionEnd;
   if (start != end) {
       var body = document.forms[form].elements[text].value;
       var left = body.substring(0, start);
       var middle = "[hide]" + body.substring(start, end) + "[/hide]";
       var rightpos = start + body.substring(start, end).length;
       var right = body.substring(rightpos, end);
       document.forms[form].elements[text].value = left + middle + right;
   } else {
       document.forms[form].elements[text].value = document.forms[form].elements[text].value + "[hide][/hide]";
   }

in backend/functions.php find
$s = preg_replace("/\[\*\]/", "<li>", $s);

add after
        //[hide]Text[/hide] via Tiloup @support-tt-france.fr
   while (preg_match("/\[hide\]\s*((\s|.)+?)\s*\[\/hide\]\s*/i", $s))
       $s = preg_replace(
       "/\[hide\]\s*((\s|.)+?)\s*\[\/hide\]\s*/i",
       "<div style='margin:20px; margin-top:5px'><div><input type='button' value='View' style='text-align:center;width:100px;margin:0px;padding:0px;' onclick=\"if (this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = ''; this.innerText = ''; this.value = 'Close'; } else { this.parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none'; this.innerText = ''; this.value = 'View'; }\" /></div><br/><div><div style='display: none;'>\\1</div></div></div>",$s);

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-04-06 04:26:48
here is a better theme.css to try out
    #chat {
           overflow: auto;
           width: 100%;
           height: 450px;
           padding: 0px;
   }
 
   #chatoutput ul {
           list-style: none;
           margin:0px;
           padding:0px;
           font-size: 10pt;
   }
 
   div.chatoutput {
           /*background:#465151;#323232;*/
           background:#A8A8A8;
           padding:5px 0px 3px 10px;
           margin:0px;
           color:#000000;
           line-height: 150%;
           margin-bottom:2px;
           border-radius: 5px;
   }
 
   div.loader {
           background-image: url('images/ajshoutbox/random.php');
           background-repeat: no-repeat;
           background-position:center center;
           width:199px;
           height:137px;
   }
 
   #chatoutput ul li {
 
   }
 
   #chatoutput ul li span.name {
           display: block;
           background:url(images/ajshoutbox/bubble.png) no-repeat left;
           padding-left:19px;
           margin-bottom:1px;
           font-weight: normal;
           color:#000000;
   }
 
   #chatoutput ul li:hover span.name {
           background:url(images/ajshoutbox/bubblehover.png) no-repeat left;
   }
 
   form {
           padding:0px;
           margin:0px;
   }
 
   #chatoutput {
           text-align: left;
           margin-right: 0px;
           color: #999;
   }
 
   /* swaps edit and delete images on mouse over */
   #EditSwap {
           width:0px;
           height:0px;
           background:url(images/ajshoutbox/shout_edit_gray.gif) no-repeat bottom;
           padding:10px;
   }
   #EditSwap:hover {
           background:url(images/ajshoutbox/shout_edit.png) no-repeat bottom;
   }
   #DeleteSwap {
           width:0px;
           height:0px;
           background:url(images/ajshoutbox/shout_delete_gray.gif) no-repeat bottom;
           padding:10px;
   }
   #DeleteSwap:hover {
           background:url(images/ajshoutbox/shout_delete.png) no-repeat bottom;
   }
   /* end of swaping */
 
   img.form {
           background:url(images/ajshoutbox/frame.png) no-repeat;
   }
   img.form:hover {
           background:url(images/ajshoutbox/frame_hover.png) no-repeat;
   }
   #chatcornerup {
       width:50%;
           padding: 10px;
           background-color: #E2E2E2;
       border:1px solid #777;
           border-bottom-style:none;
           border-top-right-radius: 2em;
           border-top-left-radius: 2em;
   }
   #chatcornerdown {
           width:65%;
           padding: 10px;
           background-color: #E2E2E2;
       border:1px solid #777;
           border-bottom-style:none;
           border-top-right-radius: 2em;
           border-top-left-radius: 2em;
   }

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-04-06 04:54:33
[ATTACH type="full" alt="2613"]5002._xfImport[/ATTACH]



This is now what it looks like. shout is working. still the theme is not up to the mark. i prefer it to be light. and the writing box should be below not above. anyway it's working now.
Screenshot_2.png
Screenshot_2.png
2019-04-06 05:23:09
previous post updated above and theme.css should be light also in the post above. Redownload rar package and overwrite. Class_user mod was commented, but its still in the files if you want to use it. I believe its in getshout and ajshouthistory. Just comment or delete unwanted code
Capture.PNG
Capture.PNG

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-05-19 18:15:10
Thanks you all! (y)
2019-06-08 20:20:14
hi

for all that staff can not edit or delete messages? ?

Thank you for this shout ;)
2019-06-11 15:31:16
"m-jay, post: 66368, member: 20288":

Updated for V3 credit to original author.
Ive put in progress because i dont use this and havent tested

[color=rgb(251, 160, 38)]SQL[/color]
CREATE TABLE IF NOT EXISTS `ajshoutbox` (
   `id` mediumint(9) NOT NULL AUTO_INCREMENT,
     `uid` mediumint(9) NOT NULL,
     `date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
     `name` tinytext NOT NULL,
     `text` text NOT NULL,
     UNIQUE KEY `id` (`id`)
   ) ENGINE=MyISAM;


[color=rgb(251, 160, 38)]In each theme.css[/color]

   #chat {
           overflow: auto;
           width: 100%;
           height: 450px;
           padding: 0px;
   }
 
   #chatoutput ul {
           list-style: none;
           margin:0px;
           padding:0px;
           font-size: 10pt;
           padding:5px 4px 6px 5px;
   }
 
   div.chatoutput {
           /*background:#465151;#323232;*/
           background:#A8A8A8;
           padding:5px 0px 3px 10px;
           margin:0px;
           color:#000000;
           line-height: 150%;
           margin-bottom:2px;
           border-radius: 5px;
   }
 
   div.loader {
           background-image: url('images/ajshoutbox/random.php');
           background-repeat: no-repeat;
           background-position:center center;
           width:199px;
           height:137px;
   }
 
   #chatoutput ul li {
 
   }
 
   #chatoutput ul li span.name {
           display: block;
           background:url(images/ajshoutbox/bubble.png) no-repeat left;
           padding-left:19px;
           margin-bottom:1px;
           font-weight: normal;
           color:#000000;
   }
 
   #chatoutput ul li:hover span.name {
           background:url(images/ajshoutbox/bubblehover.png) no-repeat left;
   }
 
   form {
           padding:0px;
           margin:0px;
   }
 
   #chatoutput {
           text-align: left;
           margin-right: 0px;
           color: #999;
   }
 
   /* swaps edit and delete images on mouse over */
   #EditSwap {
           width:0px;
           height:0px;
           background:url(images/ajshoutbox/shout_edit_gray.gif) no-repeat bottom;
           padding:10px;
   }
   #EditSwap:hover {
           background:url(images/ajshoutbox/shout_edit.png) no-repeat bottom;
   }
   #DeleteSwap {
           width:0px;
           height:0px;
           background:url(images/ajshoutbox/shout_delete_gray.gif) no-repeat bottom;
           padding:10px;
   }
   #DeleteSwap:hover {
           background:url(images/ajshoutbox/shout_delete.png) no-repeat bottom;
   }
   /* end of swaping */
 
   img.form {
           background:url(images/ajshoutbox/frame.png) no-repeat;
   }
   img.form:hover {
           background:url(images/ajshoutbox/frame_hover.png) no-repeat;
   }
   #chatcornerup {
       width:50%;
           padding: 10px;
           background-color: #E2E2E2;
       border:1px solid #777;
           border-bottom-style:none;
           border-top-right-radius: 2em;
           border-top-left-radius: 2em;
   }
   #chatcornerdown {
           width:65%;
           padding: 10px;
           background-color: #E2E2E2;
       border:1px solid #777;
           border-bottom-style:none;
           border-top-right-radius: 2em;
           border-top-left-radius: 2em;
   }
 
   .marquee {
       width: 650px;
       margin: 0 auto;
       white-space: nowrap;
       overflow: hidden;
       box-sizing: border-box;
   }
 
   .marquee span {
       display: inline-block;
       padding-left: 100%;  /* show the marquee just outside the paragraph */
       animation: marquee 15s linear infinite;
   }
 
   .marquee span:hover {
       animation-play-state: paused
   }
 
   /* Make it move */
   @keyframes marquee {
       0%   { transform: translate(0, 0); }
       100% { transform: translate(-100%, 0); }
   }


[color=rgb(251, 160, 38)]Replace shoutbox code on index.php with[/color]
//AJAX SHOUTBOX/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
   if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){
       
           require_once("backend/smilies.php");
           require_once("shoutfun_new.php");
   begin_frame("".$site_config['SITENAME']." Shoutbox");
               
     function smile() {
 
           print "<div align='center'><table cellpadding='3' cellspacing='3'><tr>";
 
           global $smilies, $count;
           reset($smilies);
 
           while ((list($code, $url) = thisEach($smilies)) && $count<16) {
                     print("\n<td><a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
                                   <img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a></td>");
                           
                     $count++;
           }
 
           print '<br /><td>&nbsp<a href="javascript:show_hide(\'sextra\');"><img src=./images/ajshoutbox/down.gif title=more border=0></a></td></tr></table></div>';
     }
   function smileextra() {
 
     global $smilies;
     reset($smilies);
 
           # getting smilies
           while (list($code, $url) = thisEach($smilies)) {
                   print("\n<a href=\"javascript: SmileIT('".str_replace("'","\'",$code)."')\">
                              <img border=\"0\" src=\"images/smilies/$url\" alt=\"$code\" /></a>");
 
                  // $count++;
           }
 
    }
 
   ?>
 
   <script src="js/ajshoutbox.js" language="Javascript" type="text/javascript"></script>
 
   <br />
       <table align=center class=ajshoutboxbackground width=98%><tr>
       <td align=center>
   <div align='center'><b><font color=green>Member</font> | <font color=brown>Power User</font> | <font color=dimgray>VIP</font> | <font color=purple>Uploader</font> |<font color=pink>Moderator</font> | <font color=#009AFF>Super Moderator</font> | <font color=red>Administrator</font>| <font color=#00ffbf>Site Owner</font></b></br></br>
                 <p class="microsoft marquee"><span><?php echo "".T_("SHOUTINFO").""; ?></span></p></div></div>

            <div id="shoutheader">
         
           <form id="chatForm" name="chatForm" onsubmit="return false;" action="">
       
             <input type="hidden" name="name" id="name" value="<?php echo $CURUSER["username"] ?>" />
             <input type="hidden" name="uid" id="uid" value="<?php echo $CURUSER["id"] ?>" />

                     <table align=center width=98%><tr>
                     <td align=center>
                     <div align=center><?php echo smile();?></div><br />
                     <input type="text" size="105" maxlength="500"  placeholder=<?php echo"'".T_('SHOUT_HERE')."'" ;?> name="chatbarText" id="chatbarText" onblur="checkStatus('');" onfocus="checkStatus('active');" />
             <input onclick="sendComment();" type="submit" id="submit" name="submit" value="Confirm" />
             &nbsp;
             <a href="javascript: PopMoreSmiles('chatForm','chatbarText');">
             <img src="images/ajshoutbox/smile.gif" border="0" class="form" title="smilies" align="top" alt="" /></a>
 
             <a href="javascript: Pophistory()">
             <img src="images/ajshoutbox/quote.gif" width="24" height="24" border="0" class="form" title="History/Moderate" align="top" alt="" /><b><font color = red><--View old shouts or edit shouts</font></b></a>
                     <br /><br />
             <div style="display: none;" id="sextra"><?php echo shoutfun('chatForm','chatbarText');?></div><div style="display: none;" id="sextra1"><br><?php echo smileextra();?></div>
             <br />
       </td>
       </tr>
   </table><br />
   </form>
   </div>

    <div id="chat">
 
     <div id="chatoutput">
 
             <ul id="outputList">
 
                   <li>
                     <span class="name"><b><?php echo $site_config['SITENAME'];?> Shoutbox:</b></span><h2 style='padding-left:20px;'>WELCOME</h2>
                 
                           <center><div class="loader"></div></center>
 
                     </li>
 
             </ul>
 
     </div>
       
   </div>
   </td>
       </tr>
   </table><br /><br />
 
   <!--<script language="Javascript">
   $(".toggle").on("click", function () {
       $(".marquee").toggleClass("microsoft");
   })
   </script>-->
   <script language="Javascript">
   function show_hide(sextra)
   {
     if(document.getElementById(sextra))
     {
           if(document.getElementById(sextra).style.display == 'none')
           {
             document.getElementById(sextra).style.display = 'inline';
           }
           else
           {
             document.getElementById(sextra).style.display = 'none';
           }
     }
   }
   function show_hide(sextra1)
   {
     if(document.getElementById(sextra1))
     {
           if(document.getElementById(sextra1).style.display == 'none')
           {
             document.getElementById(sextra1).style.display = 'inline';
           }
           else
           {
             document.getElementById(sextra1).style.display = 'none';
           }
     }
   }
   </script>
   </center>
   <?php
   end_frame();
   }                
 
   //END_AJAX_SHOUTBOX////////////////////////////////////////////////////////////////////////////////////////////////////////


[color=rgb(251, 160, 38)]In english.php add[/color]
    //ajax chat
   $LANG["SHOUT_HERE"] = "Shout Here";
   $LANG["STAFF_SHOUT"] = "Staff Shout";
   $LANG["SHOUTINFO"] = "<b><u>Shoutbox Rules</u></b>: English Only, <font color='red'>No</font> <i>Swearing, Personal Attacks, Abuse,</i> or <i>Spamming</i> and <font color='red'>No</font> <i>Publishing Serials, or Cracks</i> ETC. <img src=images/smilies/razz.png>";


Add contents of root folder to root

to clear shoutbox, in functions.php in format_comment find

           return $s;
   }

add

   global $CURUSER;
           $is_mod=$CURUSER["control_panel"]=='yes';
         
         
   
     if ((preg_match_all ('' . '#^/clean(.*)$#', $s, $Matches, PREG_SET_ORDER) AND $is_mod))
     {
           return execcommand_clean ($Matches);
     }elseif ((preg_match_all ('' . '#^/clean(.*)$#', $s, $Matches, PREG_SET_ORDER) AND !$is_mod))
     {return execcommand_noclean($Matches);}


hi

for all that staff can not edit or delete messages? ?

Thank you for this shout ;)
2019-06-19 14:31:38
"spiritblue, post: 66702, member: 401":

hi

for all that staff can not edit or delete messages? ?

Thank you for this shout ;)


I give you an update for the Adding editing and deleting messages for the staff

search in[color=rgb(251, 160, 38)] getshout.php [/color][color=rgb(204, 204, 204)]:[/color]
[color=rgb(204, 204, 204)]

if ($CURUSER['id'] == $row['uid'] ) {  
  $mid=$row['id'];
  if ($CURUSER["edit_users"]=="yes") {
  $edit="<a href='javascript:editup($mid,$CURUSER[id]);' style='font-size: 8px'><img id='EditSwap' src='images/ajshoutbox/shout_edit_gray.gif' border='0' title=".T_("EDIT")."\n></a><a href='javascript:delup($mid);' style='font-size: 8px'><img id='DeleteSwap' src='images/ajshoutbox/shout_delete_gray.png' border='0' title=".T_("_DEL_")."\n></a>";
  }
  }else
  if ($CURUSER['id']) {
  $edit="<a href='mailbox.php?compose&id=$uid'><img src='images/ajshoutbox/pm.png' border='0' width='22' height='22' title='Send a private message' alt='Send a private message'></a><a href=javascript:Reply_code('&#10148;".$row['name'].":','chatForm','chatbarText')><img src='images/ajshoutbox/reply.png' border='0' width='22' height='22' style='padding: 0px 0px 0px 3px;' title='Reply to this shout' alt='Reply to this shout'\n></a>";
  }
[/color]

Replace with :

if ( ($CURUSER["edit_users"]=="yes") || ($CURUSER['id'] == $row['uid']) ){
  $mid=$row['id'];
  $edit="<a href='javascript:editup($mid,$CURUSER[id]);' style='font-size: 8px'><img id='EditSwap' src='images/ajshoutbox/shout_edit_gray.gif' border='0' title=".T_("EDIT")."\n></a><a href='javascript:delup($mid);' style='font-size: 8px'><img id='DeleteSwap' src='images/ajshoutbox/shout_delete_gray.png' border='0' title=".T_("_DEL_")."\n></a>";
  }else
  if ($CURUSER['id']) {
  $edit="<a href='mailbox.php?compose&id=$uid'><img src='images/ajshoutbox/pm.png' border='0' width='22' height='22' title='Send a private message' alt='Send a private message'></a><a href=javascript:Reply_code('&#10148;".$row['name'].":','chatForm','chatbarText')><img src='images/ajshoutbox/reply.png' border='0' width='22' height='22' style='padding: 0px 0px 0px 3px;' title='Reply to this shout' alt='Reply to this shout'\n></a>";
  }

2019-06-26 19:26:34
Yo gang !

Ago up online users...:giggle:

Search in [color=rgb(251, 160, 38)]getshout[/color] :
$sql =  "SELECT c.* FROM ajshoutbox c left join users u on c.uid=u.id left join groups g on g.group_id=u.class WHERE c.id > ".$lastID." ORDER BY c.id DESC LIMIT 10";


Add before  :

// Online in Offline by spiritblue
$query = SQL_Query_exec("SELECT `id`, `class`, `username`, `last_access` FROM `users` WHERE enabled = 'yes' AND status = 'confirmed' AND privacy !='strong' AND UNIX_TIMESTAMP('".get_date_time()."') - UNIX_TIMESTAMP(users.last_access) <= 900");
// For class
#$datetime = get_date_time(gmtime() - 180);
#$query = SQL_Query_exec("SELECT `id`,  `class`, `username`, `last_access` FROM `users` WHERE `class` >= 2 AND `enabled` = 'yes' AND `status` = 'confirmed'");
echo "<font color='AliceBlue'>En Ligne &#x27A3;</gfont>";
while ($row = mysqli_fetch_array($query)){
echo "<span id='online'><a href=account-details.php?id=".$row["id"]."'><b>".$row["username"]."</b><img src='images/button_o".($row["last_access"] >                 $datetime ? "n":"ff")."line.png' border='0' /></a>&nbsp;</span>";    
}
//End Online in Offline



it works # 1 at home, but I am only a simple human, so let me know if it has erred or corrected, I remain open to espris :geek:
2019-06-30 21:04:46
New message forum on the shoutbox

Open [color=rgb(251, 160, 38)]forums.php[/color] and search for:

//Update topic last post
update_topic_last_post($topicid);


Replace with:

//Update topic last post
   update_topic_last_post($topicid);

$debut ="[url=".$site_config['SITEURL']."/forums.php?action=viewtopic&topicid=".$topicid."&page=last]";
$fin = "[/url]New Post on the Forum :[url=".$site_config['SITEURL']."/forums.php?action=viewtopic&topicid=".$topicid."]here " .$subjectp. "to see the subject [/url] which was published by  [url=".$site_config['SITEURL']."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "[/url]";
$post_text = sqlesc($debut." ".$_POST["subject"]." ".$fin);
SQL_Query_exec("INSERT INTO ajshoutbox(uid, date, name, text) VALUES('0', '".get_date_time()."', 'System',".$post_text.")");

2019-07-13 12:18:45
little question, or can we change the update time? :unsure:

Thanks
2019-09-07 18:37:34
I have the shout installed and everything works .but not the smileys.If I click on a smiley, the code is not entered in the writing list .
but the manual input eg: shepp1: works .maybe someone has an idea why that may be ?

Thank you
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728