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
Connected, yes or no!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / M-BiTsy / M-BiTsy Support

2020-08-13 16:34:36
ive had nothing but headache with shoutbox and the stupid iframe, replying is working -  the form is like you suggest
but passing the username into the message itself
but if the message does not say @storrents its just as easy to post new shout its the $_POST['message'] its trying to post   @$username/$message it should be $message so its just null

$result = DB::run("SELECT user FROM shoutbox WHERE msgid=?", [$reply])->fetchColumn();
?>        
<td width='75%' align='center'>
<input type="text" name="reply" class='shoutbox_msgbox' value="@<?php echo $result;?>" /><?php


For that mod  propaganda and every other old TT shoutbox mod is not possible in a controller due to the iframe
because the iframe it reads the full controller (you cant use methods/functions) so you would need maybe 5 shoutbox controllers
i might go back to it but its not a priority i might replace it in future or try put all methods wrapped in a get request

    public function index()
   {}

   public function main()
   {
       // Get Page from url
      $main = isset($_GET['main']) ? $_GET['main'] : null;
      if ($main){
      // code
      }
   }

   public function edit()
   {
       // Get Page from url
      $edit = isset($_GET['edit']) ? $_GET['edit'] : null;
      if ($edit){
      // code
      }
   }
 
   public function staff()
   {
       // Get Page from url
       $staff = isset($_GET['staff']) ? $_GET['staff'] : null;
      if ($staff){
      // code
      }
   }
2020-08-13 23:58:30
Take my advice and kill the frames, that’s why I was going on about that a while back, once day chrome won’t be rendering frames and nothing will work,. It’s old HTML4 standards back in our KaZAa days. No need for it today, that’s why I recorded and mines solid.

AJAX isn’t even necessary if you don’t want cpu load, you can convert the existing php code of that mod and drop in place.
I can do a hundreds things to mine I just get tied up on files and no one really uses shoutbox that much there. They confuse it with search and it annoys everyone reading it, sometimes trolling.


if your ready to kick the thing, ill do it up for you and add your dB class in. But JS is needed for events / refresh / DOM load. Your class will accept it with open arms trust me.
2020-08-14 02:39:07
"m-jay, post: 69013, member: 20288":

ive had nothing but headache with shoutbox and the stupid iframe, replying is working -  the form is like you suggest
but passing the username into the message itself
but if the message does not say @storrents its just as easy to post new shout its the $_POST['message'] its trying to post   @$username/$message it should be $message so its just null

$result = DB::run("SELECT user FROM shoutbox WHERE msgid=?", [$reply])->fetchColumn();
?>      
<td width='75%' align='center'>
<input type="text" name="reply" class='shoutbox_msgbox' value="@<?php echo $result;?>" /><?php


For that mod  propaganda and every other old TT shoutbox mod is not possible in a controller due to the iframe
because the iframe it reads the full controller (you cant use methods/functions) so you would need maybe 5 shoutbox controllers
i might go back to it but its not a priority i might replace it in future or try put all methods wrapped in a get request

    public function index()
   {}

   public function main()
   {
       // Get Page from url
      $main = isset($_GET['main']) ? $_GET['main'] : null;
      if ($main){
      // code
      }
   }

   public function edit()
   {
       // Get Page from url
      $edit = isset($_GET['edit']) ? $_GET['edit'] : null;
      if ($edit){
      // code
      }
   }
 
   public function staff()
   {
       // Get Page from url
       $staff = isset($_GET['staff']) ? $_GET['staff'] : null;
      if ($staff){
      // code
      }
   }



Dear [USER=20288]@m-jay[/USER] , please let it rest for awhile until you think of a better solution.

I also have never liked the iFrame the shoutbox is captured in. But then again the shoutbox is used on our site frequently - and has always been a part of TT.
I am aware of different solutions like ajax shoutbox versions...but my technical knowledge is limited. Hope ST can provide help on the technical side ;-)
If It Ain't Dutch, It Ain't Much!!
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728