Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: vbgamer45 on November 05, 2012, 01:43:44 AM

Title: Broken Link List
Post by: vbgamer45 on November 05, 2012, 01:43:44 AM
Link to the mod (https://custom.simplemachines.org/index.php?mod=3507)

(http://bit.ly/kZVDB6)

[glow=black,2,300]BROKEN LINK LIST[/glow]
Developed by for SMFSimple.com 4kstore (http://www.smfsimple.com/index.php?action=profile;u=55) for SMFSimple.com (http://www.smfsimple.com/)
SMF 2.X



[glow=black,2,300]El soporte oficial de los desarrolladores de nuestros mods lo encontraras en SMFSimple.com
Official Support in www.SmfSimple.com (http://www.smfsimple.com/)
[/glow]



[glow=black,2,300]Description:[/glow]
With this mod you will have a whole reporting system for messages with broken links

[glow=black,2,300]Descripcion:[/glow]
Con este mod podras tener todo un sistema de reportes para mensajes con links rotos



[glow=black,2,300]Features:[/glow]
• Permissions per board
• Edit and Delete Reports (only admins and mods can do and regular users can only edit their own)
• 12 Ways to sort the table reports for better reading of the same
• 3 Status for each report to dispute the importance and necessity of each report
• Add additional notes to report
• button on the menu to go to the list, the button also has a counter that reports have reported few links to check

Personal Messages
• Send PM to the user who create the msg
• Select user sending the MP (Ideal for creating a bot user report)
• Set the title of MP
• Create a template with some useful variables for MP content is more friendly

• Set how many days must pass before a report happens to be in Warning state (Old - Priority)
• Configurable Scheduler time to change the status of this improves performance reports

[glow=black,2,300]Caracteristicas:[/glow]
•   Seleccionar en que foros se puede reportar links
•   Editar y Borrar Reportes (Solo admins y mods pueden hacerlo y los users regulares solo pueden editar sus propios)
•   12 Formas de ordenar la tabla de reportes para una mejor lectura de la misma
•   3 Status para cada reporte para diferencia la importancia y necesidad de cada reporte
•   Agregar notas adicionales para poder notificar mejor la situacion de cada reporte
•   Boton en el menu para ir a la lista, el boton tambien posee un contador que informa cuantos links reportados tenemos que revisar

•   Envio de MP al usuario creador del mensaje reportado
•   Seleccionar usuario que envia el MP (Ideal para crear un usuario bot que informe)
•   Configurar el titulo del MP
•   Crear una plantilla con algunas variables utiles para que el contenido del MP sea mas amigable     

•   Configurar cuantos dias deben pasar para que un reporte pase a estar en estado de Warning (Viejo - Prioridad)
•   Tareas programadas configurables en tiempo para cambiar el estado de los reportes esto mejora el rendimiento


[glow=black,2,300]Screenshots | Imagenes[/glow]
(http://i.imgur.com/CKPbW.png)
(http://i.imgur.com/b1USN.png)
(http://i.imgur.com/mEr1F.png)
(http://i.imgur.com/ACtSU.png)
(http://i.imgur.com/ep6WF.png)
(http://i.imgur.com/jAI9Q.png)
(http://i.imgur.com/sgipk.png)
(http://i.imgur.com/HhWdP.png)


Language Support | Lenguajes Soportados

- English
- Spanish_latin
- Spanish_es



Settings
Administration Center » Configurations -> Broken Links List

License:
* This SMF modification is subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this SMF modification except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/

[glow=black,2,300]Broken Link List[/glow]

[glow=black,2,300]Copyright 2011 | SMFSimple.com (http://www.smfsimple.com/)[/glow]
Title: Re: Broken Link List
Post by: littlenicki on November 05, 2012, 07:26:41 AM
Hello, this looks like a very interesting mod. Could it be backported to SMF 1.1 please?`Thank you
Title: Re: Broken Link List
Post by: 4Kstore on November 05, 2012, 11:22:44 AM
Quote from: littlenicki on November 05, 2012, 07:26:41 AM
Hello, this looks like a very interesting mod. Could it be backported to SMF 1.1 please?`Thank you

Sorry, we only do mods for SMF 2.X
Thanks!
Title: Re: Broken Link List
Post by: vicram10 on November 05, 2012, 01:00:44 PM
great mod.. congrats guys ;)
Title: Re: Broken Link List
Post by: Jessica. on November 05, 2012, 04:33:15 PM
interesting mod
Title: Re: Broken Link List
Post by: 4Kstore on November 06, 2012, 05:50:09 PM
Quote from: vicram10 on November 05, 2012, 01:00:44 PM
great mod.. congrats guys ;)
Quote from: Jessica. on November 05, 2012, 04:33:15 PM
interesting mod

Enjoy it... thanks!
Title: Re: Broken Link List
Post by: Antechinus on November 06, 2012, 06:29:42 PM
Looks interesting. :)
Title: Re: Broken Link List
Post by: 4Kstore on November 09, 2012, 02:34:29 AM
Quote from: Antechinus on November 06, 2012, 06:29:42 PM
Looks interesting. :)

Thanks, all translates are welcome.
Title: Re: Broken Link List
Post by: lean on November 10, 2012, 08:19:43 PM
Excellent!
Title: Re: Broken Link List
Post by: Smog on December 01, 2012, 07:20:45 AM
Useful mod, thanks  :)
Title: Re: Broken Link List
Post by: 4Kstore on December 01, 2012, 02:49:45 PM
Quote from: Smog on December 01, 2012, 07:20:45 AM
Useful mod, thanks  :)

Thanks to you, enjoy it...
Title: Re: Broken Link List
Post by: Kreator on December 05, 2012, 09:46:37 AM
This is a nightmare, I installed this mod which gave no errors, it then shut me out of everything the whole forum crashed so |I have removed all the files and reinstated all the old .php files, but now I cannot get into admin I keep getting a "hacking attempt"
screen.


Please advise what I should un-install to get the admin back again.
Title: Re: Broken Link List
Post by: TrickyRicky on December 17, 2012, 01:48:58 PM
Fantastic mod been looking for a mod like this for quite some time

Thanks
Title: Re: Broken Link List
Post by: puaj on December 17, 2012, 02:30:29 PM
Hi,

Just a little question before I install the mod, which seems very useful:

Can the admin see the list of broken links without sending PMs to the link creators?
I have migrated domains and forums a number of times, so internal links appear broken even when the messages are still there. My idea is to get a list of those messages that show broken internal links and edit them manually. Is that possible with your mod?
Thank you.
Title: Re: Broken Link List
Post by: 4Kstore on December 17, 2012, 09:40:19 PM
You can see the list of broken links without send the PM, The PM is sended when you report a message...
Title: Re: Broken Link List
Post by: puaj on December 18, 2012, 06:01:21 AM
Gracias, agus!
Title: Re: Broken Link List
Post by: Game.ruler on December 25, 2012, 01:43:31 AM
Hi 4kstore, this is a great mod. But will you please tell me on how to enable it only for 1st post in the topic, not all posts.
Title: Re: Broken Link List
Post by: Game.ruler on December 25, 2012, 01:44:12 AM
Hi 4kstore, this is a great mod. But will you please tell me on how to enable it only for 1st post in the topic, not all posts.
Title: Re: Broken Link List
Post by: 4Kstore on December 26, 2012, 04:38:39 AM
Quote from: Game.ruler on December 25, 2012, 01:43:31 AM
Hi 4kstore, this is a great mod. But will you please tell me on how to enable it only for 1st post in the topic, not all posts.

You can add a new rule in the conditional from display.template.php, Now I am in vacations and this is not my computer I can't help you so much, but is a simple conditional, something like this

!empty($message['first_msg'])

I can't see the code right now, sorry
Title: Re: Broken Link List
Post by: Eclipse16V on January 02, 2013, 02:02:33 AM
Doesn´t work with the PostHistory Mod.

Fatal error: Cannot redeclare loadEdit() (previously declared in /xxx/Sources/PostHistory.php:221) in /xxx/Sources/BrokenLinksList.php on line 416

:(

Can you help me?
Title: Re: Broken Link List
Post by: 4Kstore on January 02, 2013, 04:37:32 AM
Quote from: Eclipse16V on January 02, 2013, 02:02:33 AM
Doesn´t work with the PostHistory Mod.

Fatal error: Cannot redeclare loadEdit() (previously declared in /xxx/Sources/PostHistory.php:221) in /xxx/Sources/BrokenLinksList.php on line 416

:(

Can you help me?

Yes, please search in the file Sources/BrokenLinksList.php

if(!empty($id))
loadEdit($id);


And replace with:
if(!empty($id))
loadEditBll($id);


In the same file search for:
function loadEdit($id)

And replace with:
function loadEditBll($id)

right now I can't try this solution but I think this should work.
Title: Re: Broken Link List
Post by: Eclipse16V on January 02, 2013, 07:45:03 AM
Thanks
Work fine.

Now i have a problem with this Mod:
Menu Editor Lite (http://custom.simplemachines.org/mods/index.php?mod=3310)

In the Menu show this:
Quote[1]
Title: Re: Broken Link List
Post by: Eclipse16V on January 02, 2013, 09:00:23 AM
And this error:

Notice: Undefined index: broken_link_list in /xxx/Sources/Subs.php on line 4868

Notice: Undefined index: title in /xxx/Sources/Subs.php on line 4869
Title: Re: Broken Link List
Post by: Eclipse16V on January 02, 2013, 11:18:57 AM
OK
fix it with this.

<file name="$sourcedir/Subs.php">   
<operation>
<search position="before"><![CDATA[$current_action = 'moderate';]]></search>
<add><![CDATA[
elseif ($context['current_action'] == 'brokenlinkslist2')
$current_action = 'broken_link_list';]]></add>
</operation>
<operation>
<search position="after"><![CDATA[}

// Generate a random seed and ensure it's stored in settings.]]></search>
<add><![CDATA[
global $sourcedir;
require_once($sourcedir . '/BrokenLinksList.php');
countBrokenLinks();
if (!$user_info['is_guest'] && $context['broken_links_count'] > 0)
{
$context['menu_buttons']['broken_link_list']['alttitle'] = $context['menu_buttons']['broken_link_list']['title'] . ' [' . $context['broken_links_count'] . ']';
$context['menu_buttons']['broken_link_list']['title'] .= ' [<strong>' . $context['broken_links_count'] . '</strong>]';
}
]]></add>
</operation>
</file>


replace with


<file name="$sourcedir/Subs.php">   
<operation>
<search position="before"><![CDATA[$current_action = 'moderate';]]></search>
<add><![CDATA[
elseif ($context['current_action'] == 'brokenlinkslist2')
$current_action = 'broken_link_list';]]></add>
</operation>
<operation>
<search position="after"><![CDATA[}

// Generate a random seed and ensure it's stored in settings.]]></search>
<add><![CDATA[
global $sourcedir;
require_once($sourcedir . '/BrokenLinksList.php');
countBrokenLinks();
if (!$user_info['is_guest'] && $context['broken_links_count'] > 0 && isset($context['menu_buttons']['broken_link_list']))
{
$context['menu_buttons']['broken_link_list']['alttitle'] = $context['menu_buttons']['broken_link_list']['title'] . ' [' . $context['broken_links_count'] . ']';
$context['menu_buttons']['broken_link_list']['title'] .= ' [<strong>' . $context['broken_links_count'] . '</strong>]';
}
]]></add>
</operation>
</file>
Title: Re: Broken Link List
Post by: 4Kstore on January 02, 2013, 03:30:55 PM
You have many mods, glad to hear now works fine!
Title: Re: Broken Link List
Post by: vms on January 06, 2013, 06:16:52 PM
please tell me how to activate it only for 1st place in the topic does, all posts'm not getting.

Title: Re: Broken Link List
Post by: 4Kstore on January 06, 2013, 06:50:24 PM
Quote from: vms on January 06, 2013, 06:16:52 PM
please tell me how to activate it only for 1st place in the topic does, all posts'm not getting.



Sorry I don't understand what you say...
Title: Re: Broken Link List
Post by: vms on January 07, 2013, 06:27:23 AM
Quote from: 4Kstore on January 06, 2013, 06:50:24 PM

Sorry I don't understand what you say...

Please tell me on how to enable it only for 1st post in the topic, not all posts.
Title: Re: Broken Link List
Post by: 4Kstore on January 07, 2013, 11:09:06 AM
You can try something like this:

Edit Themes/{yourtheme}/Display.template.php

Search for:
if (!empty($modSettings['bll_enabled']) && $context['bll_enabled'] && allowedTo('brokenlinklist'))

And Replace for:
if (!empty($modSettings['bll_enabled']) && $context['bll_enabled'] && allowedTo('brokenlinklist') && $message['id'] == $context['first_message'])
Title: Re: Broken Link List
Post by: vms on January 07, 2013, 04:22:04 PM
Quote from: 4Kstore on January 07, 2013, 11:09:06 AM
You can try something like this:

Edit Themes/{yourtheme}/Display.template.php

Search for:
if (!empty($modSettings['bll_enabled']) && $context['bll_enabled'] && allowedTo('brokenlinklist'))

And Replace for:
if (!empty($modSettings['bll_enabled']) && $context['bll_enabled'] && allowedTo('brokenlinklist') && $message['id'] == $context['first_message'])


thank you perfect
Title: Re: Broken Link List
Post by: 4Kstore on January 07, 2013, 04:29:07 PM
You're welcome
Title: Re: Broken Link List
Post by: Tomcraft on February 01, 2013, 10:16:49 AM
Hi there,

it would be a great feature to have a broken link checker, that automatically detects broken links and reports them to a new admin section like the WordPress plugin "Broken Link Checker" already does.

Is there a way to add this automatic link check enhancement to your mod?

Regards, Torsten
Title: Re: Broken Link List
Post by: 4Kstore on February 01, 2013, 10:46:05 AM
No, Tomcraft, sorry..
Title: Re: Broken Link List
Post by: Tomcraft on February 01, 2013, 10:49:05 AM
Okay no problem. :)

Regards, Torsten
Title: Re: Broken Link List
Post by: Skaty on April 06, 2013, 01:08:24 PM
Feature Request.

When link is mark green automatic send pm to reporter that the link is fine now.

(http://i.imgur.com/PE7q5UR.png)

is to hard to do ?
Title: Re: Broken Link List
Post by: 4Kstore on April 18, 2013, 03:12:45 PM
Quote from: Skaty on April 06, 2013, 01:08:24 PM
Feature Request.

When link is mark green automatic send pm to reporter that the link is fine now.

(http://i.imgur.com/PE7q5UR.png)

is to hard to do ?

Maybe not, but I don't have time for do that
Title: Re: Broken Link List
Post by: Skaty on April 18, 2013, 04:50:17 PM
Quote from: 4Kstore on April 18, 2013, 03:12:45 PM
Quote from: Skaty on April 06, 2013, 01:08:24 PM
Feature Request.

When link is mark green automatic send pm to reporter that the link is fine now.

(http://i.imgur.com/PE7q5UR.png)

is to hard to do ?

Maybe not, but I don't have time for do that

mod is already good enought, thank you for your effort.
Title: Re: Broken Link List
Post by: zzuzu on May 04, 2013, 02:30:05 PM
Hello,

when I click on "Broken Links List" in AdminCP, page is blank. When I check error log, there's no error. When I check server error log (in Kloxo), there's no error too.

Can you help me out, please? I have 2.0.4

Thank you in advance
Title: Re: Broken Link List
Post by: warezxts on July 05, 2013, 02:16:24 PM
I really need this MOD, everything i want is included.
People can share external links in seperate posts, and needs to be managed.
My only problem because of my theme. It was an error in the theme's display.template when tried to install the mod.
there was no <div class="smalltext reportlinks">';, so i put it in manually at the end of that, the //Mod Brokenlinklist... line.
Everything looks fine, except i cant see the report link in the post.
i set  the mark on in the topic's settings also.
Do you have any idea?
It would be nice :)
Title: Re: Broken Link List
Post by: 4Kstore on July 05, 2013, 04:33:33 PM
attach the display.template.php maybe I can help you
Title: Re: Broken Link List
Post by: warezxts on July 06, 2013, 10:04:40 AM
Lajos Norbert from SMF-Portal.hu helped me, and point the proper place in the php file where to insert the "//Mod Brokenlinklist....." line for working, based on themes/default/display.template.
For detailed information, please check the page (hungarian)
http://smf-portal.hu/modositasok-es-csomagok/torott-linkek-listaja-1-1-uni/

BTW, its a really good idea what Skaty mentioned: When link is marked green automatic send pm to reporter that the link is fine now.
It is because maybe none of the links interested only that one, and easier to get know its working than follow the status updates of every links.

All together, Your mod is excellent and useful one, exactly what i am looked for. Thank You for Your work!