[ABD] eD2k links processing with availability statistics

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

[ABD] eD2k links processing with availability statistics

Post by DonGato » Fri Jul 06, 2007 2:02 am

MOD Title: eD2k links processing with availability statistics
MOD Description: Displays all kind of ed2k links formatted in any possible way and provides a link to file statistics.
MOD Version: 3.0.2

This is an update over an abandoned mod (old thread) and I plan to maintain it so far. Thanks to the people (Meithar, Bill Hicks and C0de_m0nkey) who made it and updated it until now.

phpBB 2.0.x version is at this thread.

MOD Download: ed2kmod_3.0.2.zip

Tested on phpBB version 3.0

Examples:
Image

Updates:
2008.03.10 - Fixed issue with Moderation tasks and https links
2008.01.16 - Fixed issue with PMs not supporting ed2k links
2007.12.21 - Update for phpBB3 release
2007.10.19 - Update for phpBB3 RC7 big changes
2007.10.05 - Added ed2k processing to MCP
2007.07.30 - Fixed an issue with [URL] bbcode processing
2007.07.08 - Fixed an issue with Add All Links processing
2007.07.05 - Finished changes and updated coding style
2007.07.01 - Made phpBB 3 version
Last edited by Sam on Tue May 11, 2010 5:17 am, edited 11 times in total.
Reason: Marked mod as abandoned, if the original poster wish to continue this, please PM any MOD team member to have it unlocked.

ThiagoInfo
Registered User
Posts: 4
Joined: Wed Jun 06, 2007 5:27 pm

Re: [BETA] eD2k links processing with availability statistics

Post by ThiagoInfo » Fri Jul 06, 2007 4:38 am

thanks, but no correting.

Image

murnauvsbuñuel
Registered User
Posts: 177
Joined: Mon Jun 20, 2005 9:49 am

Re: [BETA] eD2k links processing with availability statistics

Post by murnauvsbuñuel » Fri Jul 06, 2007 7:38 am

true, the same problem. thanks DonGato
sorry for my bad english i am spanish.
ImagemxBB Portal the best portal to phpBB2

DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

Re: [BETA] eD2k links processing with availability statistics

Post by DonGato » Fri Jul 06, 2007 9:31 am

Sorry, I made a last minute change I didn't check and so this happened. Now it should work.

murnauvsbuñuel
Registered User
Posts: 177
Joined: Mon Jun 20, 2005 9:49 am

Re: [BETA] eD2k links processing with availability statistics

Post by murnauvsbuñuel » Fri Jul 06, 2007 9:50 am

yes dongato, now seems work fine to me :D
sorry for my bad english i am spanish.
ImagemxBB Portal the best portal to phpBB2

ThiagoInfo
Registered User
Posts: 4
Joined: Wed Jun 06, 2007 5:27 pm

Re: [BETA] eD2k links processing with availability statistics

Post by ThiagoInfo » Fri Jul 06, 2007 1:41 pm

thanks,

works perfect.

User avatar
Tmac
Registered User
Posts: 141
Joined: Wed Dec 13, 2006 4:54 am

Re: [BETA] eD2k links processing with availability statistics

Post by Tmac » Sun Sep 02, 2007 8:28 pm

Help dongato

Changes are being aplied only to posts made after the mod installation. The links posted before the mod are not being properly displayed.

DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

Re: [BETA] eD2k links processing with availability statistics

Post by DonGato » Sun Sep 02, 2007 9:10 pm

Yes, if you look into DB the posts with ed2k links are being preprocessed and some additional code was added. You will have to strip it.

User avatar
Tmac
Registered User
Posts: 141
Joined: Wed Dec 13, 2006 4:54 am

Re: [BETA] eD2k links processing with availability statistics

Post by Tmac » Sun Sep 02, 2007 9:36 pm

How can i do that (theres a lot of links to edit)?

Will that work if i install the mod first and then import the old DB?

DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

Re: [BETA] eD2k links processing with availability statistics

Post by DonGato » Sun Sep 02, 2007 9:50 pm

Yes. That will do.

DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

Re: [BETA] eD2k links processing with availability statistics

Post by DonGato » Mon Sep 03, 2007 12:21 am

As I already did this code if someone can try it when he/she has the same problem as Tmac.
Just take in account the conversion is commented out, it outputs some data for visual confirmation and it's limited to two results.

Code: Select all

    <?php

       // Connects to DB
       $db_connect_id = mysql_connect('localhost', 'username', 'password') or die('Connection Failure to Database');
       mysql_select_db('arforum', $db_connect_id) or die ('Database not found.');

       // Sets Character Encoding
       mysql_query('SET NAMES utf8') or die('Failed setting connection character enconding (utf8)');

       // Gets data [remove "LIMIT 0,2" for conversion]
       $result = mysql_query("SELECT post_id, post_text FROM phpbb_posts WHERE post_text LIKE '%ed2k:/%' LIMIT 0,2") or die('Failed obtaining post');

       // Loop
       while ($row = mysql_fetch_row($result))
       {
          // Check - Bad Post [comment out these 3 lines for conversion]
          echo '<B>OLD POST</B><BR><BR>';
          echo $row[1];
          echo '<BR>-----------------------------------------------------------------------<BR><BR>';

          // Replaces data
          $text = eregi_replace('<!-- m --><a class="postlink" href="ed2k.*">', '', $row[1]);
          $text = str_replace('|/</a><!-- m -->', '|/', $text);
          $text = str_replace("'", "''", $text);

          // Check - Fixed Post [comment out these 3 lines for conversion]
          echo '<B>NEW POST</B><BR><BR>';
          echo $text;
          echo '<BR>-----------------------------------------------------------------------<BR><BR>';

          // Updates DB [uncomment line for conversion]
    //      mysql_query("UPDATE phpbb_posts SET post_text = '" . $text . "' WHERE post_id = '" . $row[0] . "'") or die('Failed updating post');
       }

       // Closes connection to DB
       mysql_close($db_connect_id);

       // Done
       echo '<br><br>Conversion done!<br><br>';

    ?>

DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

Re: [BETA] eD2k links processing with availability statistics

Post by DonGato » Fri Oct 05, 2007 7:07 pm


User avatar
mrgtb
Registered User
Posts: 469
Joined: Wed Oct 03, 2007 10:51 am

Re: [BETA] eD2k links processing with availability statistics

Post by mrgtb » Sun Oct 14, 2007 9:22 pm

I would just like to say this mod doesn't work now with RC6 version, the code your asked to find in the "includes/functions.php" file is not there anymore. Thats as far as I got and had to halt the install unfortunately.

I hope this is still being supported and updated for RC6

DonGato
Registered User
Posts: 127
Joined: Wed Apr 20, 2005 7:48 am

Re: [BETA] eD2k links processing with availability statistics

Post by DonGato » Sun Oct 14, 2007 9:59 pm

When I have some time I will check it.

User avatar
mrgtb
Registered User
Posts: 469
Joined: Wed Oct 03, 2007 10:51 am

Re: [BETA] eD2k links processing with availability statistics

Post by mrgtb » Mon Oct 15, 2007 2:51 pm

Just to let you know, RC7 version has now been released today. I'll double check that functions.php file again.

EDIT: Still the same, can't find the code to look for in "includes/functions.php". Not sure about anymore files your asked to edit after that file, as I didn't check any further on.

Locked

Return to “[3.0.x] Abandoned MODs”

Who is online

Users browsing this forum: No registered users and 19 guests

cron