Caricamento...
Mostra Eventi

Estensione Report Dead link

Request extensions that didn't exist.
Richiedi estensioni che non esistono ancora.
Avatar utente
systemcrack
Messaggi: 119
Iscritto il: mer feb 18, 2015 11:38 am
Has thanked: 24 times
Been thanked: 3 times
Contatta:

Estensione Report Dead link

Messaggio da leggereda systemcrack » mer feb 18, 2015 4:23 pm

Anche se ne avevamo parlato sul phpbbitalia.net mi sembra giusto riproporlo anche qui e completo di tutto.
Come per l'altra richiesta ti allego file originali screenshot e riporto di seguito l'install
Immagine

Il comando si trovava integrato con il bbcode code, ma sinceramente se si potesse utilizzare un nuovo bbcode sarebbe meglio.

Immagine

dopo avere confermato

Immagine

ammetto che la traduzione faceva effettivamente un pò schifo... :lol:
Ad ogni modo l'autore del post in cui era contenuto il bbcode interessato, riceveva un messaggio privato in cui veniva avvisato della segnalazione

Immagine

Immagine

Screenshot PCA/permessi/permessi forum-gruppi

Immagine

Files to edit
viewtopic.php,
language/en/common.php

Included files
root/report_code.php

Copy: root/report_code.php
To: report_code.php

Codice: Seleziona tutto

<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2012 [email protected] www.phpbb3hacks.com
*
*/

/**
* @ignore
*/
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_privmsgs.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();

$post_id   = request_var('p', 0);

if (!$post_id)
{
   trigger_error('NO_POST_SELECTED');
}             

$sql = 'SELECT poster_id, forum_id
          FROM ' . POSTS_TABLE . '
            WHERE post_id = ' . $post_id;
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

$redirect_url = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "f=".$row['forum_id']."&amp;p=$post_id") . "#p$post_id";

$sql = 'SELECT username, user_colour
          FROM ' . USERS_TABLE . '
            WHERE user_id = ' . $row['poster_id'];
$result = $db->sql_query($sql);
$row2 = $db->sql_fetchrow($result);
$db->sql_freeresult($result);

if (confirm_box(true))
{
   $subject   = $user->lang('REPORT_CODE_SUBJECT');
   $message   = sprintf($user->lang['REPORT_CODE_MESSAGE'], get_username_string('full', $user->data['user_id'], $user->data['username'], $user->data['user_colour']), generate_board_url() . "/viewtopic.{$phpEx}?f=".$row['forum_id']."&amp;p={$post_id}#p{$post_id}");

   $poll = $uid = $bitfield = $options = '';
   generate_text_for_storage($message, $uid, $bitfield, $options, true, true, true);

   $data = array(
      'address_list'      => array ('u' => array($row['poster_id'] => 'to')),
      'from_user_id'      => $user->data['user_id'],
      'from_username'      => $user->data['username'],
      'icon_id'             => 0,
      'from_user_ip'      => $user->data['user_ip'],
      'enable_bbcode'      => true,
      'enable_smilies'   => true,
      'enable_urls'        => true,
      'enable_sig'        => false,
      'message'             => $message,
      'bbcode_bitfield'   => $bitfield,
      'bbcode_uid'        => $uid
   );
   submit_pm('post', $subject, $data, false);

  meta_refresh(3, $redirect_url);
  $message = sprintf($user->lang['REPORT_CODE_SUCCESS'], get_username_string('full', $row['poster_id'], $row2['username'], $row2['user_colour'])) . '<br /><br />' . sprintf($user->lang['RETURN_TOPIC'], '<a href="' . $redirect_url . '">', '</a>');
  trigger_error($message);
}
else
{
   $s_hidden_fields = build_hidden_fields(array(
      'u'      => $row['poster_id'],
      'f'      => $row['forum_id'],
      'p'      => $post_id
   ));

   confirm_box(false, sprintf($user->lang['REPORT_CODE_CONFIRM'], get_username_string('full', $row['poster_id'], $row2['username'], $row2['user_colour'])), $s_hidden_fields);
}

redirect($redirect_url);

?>


Open: viewtopic.php
Find
Tip: This may be a partial find and not the whole line.

Codice: Seleziona tutto

//
   $postrow = array(


Add before
Tip: Add these lines on a new blank line before the preceding line(s) to find.

Codice: Seleziona tutto

 if (strstr($message, $user->lang['CODE'].': '))
  {
    $message = str_replace($user->lang['SELECT_ALL_CODE'].'</a>', $user->lang['SELECT_ALL_CODE'].'</a> &bull; <a href="'.generate_board_url() . "/report_code.{$phpEx}?p=".$row['post_id'].'">'.$user->lang['REPORT_CODE'].'</a>', $message);
  }


Open: language/en/common.php
Find
Tip: This may be a partial find and not the whole line.

Codice: Seleziona tutto

'7_DAYS'      => '7 days',


Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.

Codice: Seleziona tutto

'REPORT_CODE'            => 'Report dead links',
   'REPORT_CODE_SUBJECT'    => 'Notification about dead links in your post',
   'REPORT_CODE_MESSAGE'    => '%1$s has notified you about dead links in your post %2$s',
   'REPORT_CODE_CONFIRM'    => 'Are you sure you want to notify %s about dead links in his post?',
   'REPORT_CODE_SUCCESS'    => '%s has been notified about dead links in his post.',
Allegati
Report dead links MOD 1.0.0.rar
(25.98 KiB) Scaricato 1252 volte


Avatar utente
brunino
Site Admin
Messaggi: 665
Iscritto il: dom nov 02, 2014 7:21 pm
Has thanked: 2 times
Been thanked: 57 times

Re: Estensione Report Dead link

Messaggio da leggereda brunino » mer feb 18, 2015 4:54 pm

Vedrò di fare il possibile, ma mi sa che devi aspettare un po'. Ho 2 estensioni in programma + una retribuita e parecchio complessa... Prima di aprile non penso


Avatar utente
brunino
Site Admin
Messaggi: 665
Iscritto il: dom nov 02, 2014 7:21 pm
Has thanked: 2 times
Been thanked: 57 times

R: Estensione Report Dead link

Messaggio da leggereda brunino » mar apr 28, 2015 5:42 pm

Ma di questa ne sei venuto aa capo?

Inviato dal mio GT-S5360 con Tapatalk 2


Avatar utente
systemcrack
Messaggi: 119
Iscritto il: mer feb 18, 2015 11:38 am
Has thanked: 24 times
Been thanked: 3 times
Contatta:

Re: Estensione Report Dead link

Messaggio da leggereda systemcrack » mar apr 28, 2015 9:28 pm

No.. è una settimana che litigo sul com con gente che mi dice che non sarebbe utile come estensione... oppure che non andrebbe bene perchè gli utenti segnalerebbero per dispetto agli autori.. bah! Per me si sono bevuti il cervello tutti.. e poi vedo l'estensione che ti mette l'orologio nella navbar :roll: :lol: :lol: :lol:

P.s.
Comunque tra le mille richieste fatte per me la più importante lo sai qual'è ;) non vorrei che dedicandoti a troppe estensioni alla volta alla fine.. sai com'è :roll:



Chi ha visto questo topic

brunino (4), systemcrack (6), MadCon88 (1), Galixte de EzCom (1), serialcode (1)

Torna a “Extensions request - Richiesta Estensioni”

Chi c’è in linea

Visitano il forum: Nessuno e 3 ospiti

  • Argomenti più visti
    Top Poster
    Ultimi Post
cron

Login