Advertisement:
2by2host

Author Topic: Broken Link List  (Read 6738 times)

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #20 on: January 02, 2013, 04:37:32 AM »
Doesn´t work with the PostHistory Mod.

Code: [Select]
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

Code: [Select]
if(!empty($id))
loadEdit($id);

And replace with:
Code: [Select]
if(!empty($id))
loadEditBll($id);

In the same file search for:
Code: [Select]
function loadEdit($id)
And replace with:
Code: [Select]
function loadEditBll($id)
right now I can't try this solution but I think this should work.

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,044
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Broken Link List
« Reply #21 on: January 02, 2013, 07:45:03 AM »
Thanks
Work fine.

Now i have a problem with this Mod:
Menu Editor Lite

In the Menu show this:
Quote
[1]
All my Mods & Addons you can found here: My SMF Mods
- Meta Tags Mod
- Personal address BBCode Mod
- eBay BBCode Mod
- Countdown BBCode Mod
- Routemap Mod
- ...

I work with:
SMF 2 in German
Tornado Map

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,044
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Broken Link List
« Reply #22 on: January 02, 2013, 09:00:23 AM »
And this error:

Code: [Select]
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
All my Mods & Addons you can found here: My SMF Mods
- Meta Tags Mod
- Personal address BBCode Mod
- eBay BBCode Mod
- Countdown BBCode Mod
- Routemap Mod
- ...

I work with:
SMF 2 in German
Tornado Map

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,044
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: Broken Link List
« Reply #23 on: January 02, 2013, 11:18:57 AM »
OK
fix it with this.

Code: [Select]
<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

Code: [Select]
<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>
All my Mods & Addons you can found here: My SMF Mods
- Meta Tags Mod
- Personal address BBCode Mod
- eBay BBCode Mod
- Countdown BBCode Mod
- Routemap Mod
- ...

I work with:
SMF 2 in German
Tornado Map

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #24 on: January 02, 2013, 03:30:55 PM »
You have many mods, glad to hear now works fine!

Offline vms

  • Jr. Member
  • **
  • Posts: 298
  • Gender: Male
Re: Broken Link List
« Reply #25 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.


Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #26 on: January 06, 2013, 06:50:24 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...

Offline vms

  • Jr. Member
  • **
  • Posts: 298
  • Gender: Male
Re: Broken Link List
« Reply #27 on: January 07, 2013, 06:27:23 AM »

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.

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #28 on: January 07, 2013, 11:09:06 AM »
You can try something like this:

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

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

Offline vms

  • Jr. Member
  • **
  • Posts: 298
  • Gender: Male
Re: Broken Link List
« Reply #29 on: January 07, 2013, 04:22:04 PM »
You can try something like this:

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

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


thank you perfect

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #30 on: January 07, 2013, 04:29:07 PM »
You're welcome

Offline Tomcraft

  • Jr. Member
  • **
  • Posts: 109
Re: Broken Link List
« Reply #31 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

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #32 on: February 01, 2013, 10:46:05 AM »
No, Tomcraft, sorry..

Offline Tomcraft

  • Jr. Member
  • **
  • Posts: 109
Re: Broken Link List
« Reply #33 on: February 01, 2013, 10:49:05 AM »
Okay no problem. :)

Regards, Torsten

Offline Skaty

  • Jr. Member
  • **
  • Posts: 309
Re: Broken Link List
« Reply #34 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.



is to hard to do ?

Offline 4Kstore

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,462
  • Gender: Male
  • |-|Principito|-|
    • agustintari on Facebook
    • @agustintarifa on Twitter
    • SSIMPLE TEAM PAGE
Re: Broken Link List
« Reply #35 on: April 18, 2013, 03:12:45 PM »
Feature Request.

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



is to hard to do ?

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

Offline Skaty

  • Jr. Member
  • **
  • Posts: 309
Re: Broken Link List
« Reply #36 on: April 18, 2013, 04:50:17 PM »
Feature Request.

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



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.

Offline zzuzu

  • Semi-Newbie
  • *
  • Posts: 49
Re: Broken Link List
« Reply #37 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