Cerrar Ventana

Algunas cookies de este sitio son esenciales, y el sitio no funcionará como se espera sin ellas. Estas cookies se establecen en el momento de enviar un formulario, inicie sesión o interactuar con el sitio realizando una acción que va más allá de hacer clic en un simple enlace.


Leer Más

Somos un foro de soporte en español que no tiene publicidad y tiene muchas cosas gratuitas aportadas por la comunidad, contribuye con el foro para poder así obtener alguna membresía de manera gratuita.
SoporteMyBB tiene un total de
1124 temas de soporte.
0 quedan aún por resolver, 244 han quedado obsoletos y 880 han sido resueltos.
Aún no tienes una cuenta, regístrate es gratis.

Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Modification of inferno shoutbox
 fahim95
SuperlikeEgg

Estado: Sin conexión Registrados
8
23
1
Algeria
7
0
1
25
29 May 2023, 13:30
#1
0

  1. Is there a possibility to make Inferno a multi-channel such as a channel for chatting, a channel for topics... ect. 

  2. as well as is it possible to make it 
    • auto shout awards granted - OUGC Awards (1.8.22) Omar G.
    • auto shout upgraded users -  Subscriptions  (1.2.2)  Pirata Nervo.
    • auto shout user who reach acheivements - My Achievements (1.11) - Diogo Parrinha.
      • auto shout user who reach new level .
      • auto shout user who grant new achievement.
  3. include forum in user write thread auto shout.




Corazón thnx
Última modificación: 29 May 2023, 13:30 por fahim95.
 
 Whiteneo
Equipo de Soporte

Estado: Sin conexión Soporte Técnico
354
4,693
Mexico
5
93
576
29 May 2023, 23:07
#2
0
The real thing there is that many of that plugins are individual and many users just use mybb core add-ons. Anyways it can be done but i don't think like that due it use many extra things not just core add-ons, but for the other one like a new channel for some new things i think it can be done and all improvements can be done due i had make in the past many additions for DVZ Shoutbox to add notifications and new channels but all of that was a paid job due many boards use own customizations.

But yeah it can be done for sure but it would be hard to improve and maintain Sonrisa
 
 fahim95
SuperlikeEgg

Estado: Sin conexión Registrados
8
23
1
Algeria
7
0
1
25
30 May 2023, 00:20
#3
0
i would like to pay for that ❤
 
 Whiteneo
Equipo de Soporte

Estado: Sin conexión Soporte Técnico
354
4,693
Mexico
5
93
576
1 June 2023, 21:57
#4
0
The real thing in here is that maybe some hooks are not allowed to work with that stuff i am not sure due many times i have done into plugin cores to make it work some times and when a hooks is available yeah it can be done by that point or you must change plugin files to add hooks and use it.

I will see it this weekend if i have some time to do because right now i was taken a rest till now and now i have to do all things i have to do with less time in my hand.

But yeah i will review it and let you know about this for sure.
 
 fahim95
SuperlikeEgg

Estado: Sin conexión Registrados
8
23
1
Algeria
7
0
1
25
3 June 2023, 17:15
#5
0
💛 thnk you sir
(1 June 2023, 21:57 )Whiteneo escribió: Registrate o inicia tu sesión para ver este contenidoThe real thing in here is that maybe some hooks are not allowed to work with that stuff i am not sure due many times i have done into plugin cores to make it work some times and when a hooks is available yeah it can be done by that point or you must change plugin files to add hooks and use it.

I will see it this weekend if i have some time to do because right now i was taken a rest till now and now i have to do all things i have to do with less time in my hand.

But yeah i will review it and let you know about this for sure.
 
 Whiteneo
Equipo de Soporte

Estado: Sin conexión Soporte Técnico
354
4,693
Mexico
5
93
576
7 June 2023, 16:55
#6
0
This last days it was complicated to review due i need to finish many things right now, but once i have some free time i will review it just give me a chance to do Sonrisa

But yeah this is on my prior list of todo.
 
 Whiteneo
Equipo de Soporte

Estado: Sin conexión Soporte Técnico
354
4,693
Mexico
5
93
576
9 June 2023, 01:00
#7
0
@ fahim95 i had reviewed but there are some facts that can not be handled due it is not like you receive an award in some fact but just by tasks sometimes and for achievements, so always it will appear if users have it because the plugin works as is is not like you make something and the awards appear and for some parts of awards for custom yeah due it has an event when you gave awards to that user, but not like you have earned something and then you get the award all was added by a request so all pms must appear that way unless you make some other plugin that really handles it but if we make it that way then some massive requests must been added.

For that reason only will works for awards or things on demand like new posts, threads, etc. Where we have an even per each thing.

About channels yeah it can be added i have it working already but the fact is about those two mods that i can get it but subscriptions i do not find that version, but if it works as the same i have it already yeah for sure will work due it has an event to give and revoke subscriptions so the shouts can be handled by the way and now you can use the channels but it would be not easily to maintain due you always need from the beginning where do you need to leave all shouts.
 
 fahim95
SuperlikeEgg

Estado: Sin conexión Registrados
8
23
1
Algeria
7
0
1
25
11 June 2023, 05:58
#8
0
@ Whiteneo i just used this function to fetch data from DB

function BROADCAST_ACTION()
{
    global $db, $mybb, $lang, $newpoints, $log;

    $GET_SUBS_INFO = $db->query("SELECT * FROM " . TABLE_PREFIX . "newpoints_log WHERE action='subscriptions'");
    
    while ($subs_row = $GET_SUBS_INFO->fetch_assoc()) {
        $data_parts = explode('-', $subs_row['data']);
        $subs_data_parts = $data_parts[7]; // Index 7 corresponds to the "prime" value
        // Check if the record has been inserted before
        $existing_check = $db->simple_select('inferno_shout', 'sid', "shout LIKE '%{$subs_data_parts}%'");
        if ($db->num_rows($existing_check) === 0) {
            $db->insert_query('inferno_shout', [
                'uid'       => intval($subs_row['uid']),
                'shout'     => "user upgrade to {$subs_data_parts}",
                'me'        => 1,
                'private'   => 0,
                'timestamp' => TIME_NOW,
                'channel_id' => 2,
            ]);
        }
    }
}

function BROADCAST_ACHVS()
{
    global $db, $mybb, $lang, $myachievements, $log;

    $GET_ACHVS_INFO = $db->query("SELECT * FROM " . TABLE_PREFIX . "myachievements_log WHERE type='updated_via_task' AND data LIKE '%New achievement(s) and/or new rank:%'");
    
    while ($achvs_row = $GET_ACHVS_INFO->fetch_assoc()) {
        $data_parts = explode(':', $achvs_row['data']);
        $rank_info = trim($data_parts[1]);

        // Extract the rank name from the rank_info
        $rank_name_parts = explode(' ', $rank_info);
        $rank_name = trim($rank_name_parts[0]);

        // Check if the record has been inserted before
        $existing_check = $db->simple_select('inferno_shout', 'sid', "shout LIKE '%{$rank_name}%'");

        if ($db->num_rows($existing_check) === 0) {
            $db->insert_query('inferno_shout', [
                'uid'       => intval($achvs_row['uid']),
                'shout'     => "user achieve {$rank_name}",
                'me'        => 1,
                'private'   => 0,
                'timestamp' => TIME_NOW,
                'channel_id' => 2,
            ]);
        }
    }
}

and hooks
$plugins->add_hook('index_start','BROADCAST_ACTION');
$plugins->add_hook('index_start','BROADCAST_ACHVS');
Última modificación: 11 June 2023, 05:58 por fahim95.
 
 Whiteneo
Equipo de Soporte

Estado: Sin conexión Soporte Técnico
354
4,693
Mexico
5
93
576
12 June 2023, 23:57
#9
0
Yes that can de used but there must be an event that can add shouts when the method has runned to add the right instance when user has updated or if you like another shout when user has revoked, and as inferno shoutbox has not enought entried to deal with, just plain texts we need to add it on each event we run, for awards it is complicated because there is not a way to know what awards has earned and this plugins runs to rebuild all user awards when it is necessary, so all shouts must appear when you run it, i add it directly into that routines for current plugins i has tested and it was just into tasks files, but into the other ones, yeah it can be added when custom has given from admin functions, but it is complicated to handle other events for sure.
 


Posibles temas similares…
Tema Autor Respuestas Vistas Último mensaje
  Modification of inferno shoutbox pololoko111 11 6,655 27 July 2018, 23:04
Último mensaje: Whiteneo



Usuarios navegando en este tema: 1 invitado(s)