Posts: 1,028
Threads: 75
Joined: Sep 2008
Reputation:
23
The {$download_table} remains in the newthread template when I uninstall. I have to manually remove it.
If not, if I re-install it, the table appears twice.
Posts: 245
Threads: 34
Joined: May 2007
Reputation:
2
(2010-01-30, 06:15 PM)x-Treme Wrote: The {$download_table} remains in the newthread template when I uninstall. I have to manually remove it.
If not, if I re-install it, the table appears twice.
Easy to fix.
In download_system.php file search for:
function download_system_deactivate()
{
require MYBB_ROOT.'/inc/adminfunctions_templates.php';
find_replace_templatesets("postbit", '#'.preg_quote("{\$post['download_system']}").'#', '');
find_replace_templatesets("postbit_classic", '#'.preg_quote("{\$post['download_system']}").'#', '');
find_replace_templatesets("newthread", '#'.preg_quote("{\$download_table}").'#', '');
find_replace_templatesets("editpost", '#'.preg_quote("{\$download_table}").'#', '');
}
Replace with
function download_system_deactivate()
{
require MYBB_ROOT.'/inc/adminfunctions_templates.php';
find_replace_templatesets("postbit", '#'.preg_quote("{\$post['download_system']}").'#', '',0);
find_replace_templatesets("postbit_classic", '#'.preg_quote("{\$post['download_system']}").'#', '',0);
find_replace_templatesets("newthread", '#'.preg_quote("{\$download_table}").'#', '',0);
find_replace_templatesets("editpost", '#'.preg_quote("{\$download_table}").'#', '',0);
}
Posts: 4,241
Threads: 113
Joined: Jan 2006
Reputation:
111
I don't think it solves the problem because it has nothing to do with the regex. But I will test it.
Posts: 245
Threads: 34
Joined: May 2007
Reputation:
2
(2010-02-17, 08:37 AM)StefanT Wrote: I don't think it solves the problem because it has nothing to do with the regex. But I will test it.
What with your tests?
Posts: 4,241
Threads: 113
Joined: Jan 2006
Reputation:
111
Oh... I will test it soon.
Posts: 4,241
Threads: 113
Joined: Jan 2006
Reputation:
111
2010-05-04, 09:05 AM
(This post was last modified: 2011-01-08, 01:11 PM by StefanT.)
(2010-02-28, 11:47 PM)DamYan Wrote: What with your tests? I had some time to test and I think you hint was really good. Thank you!
New Version: http://mods.mybboard.net/view/inline-downloads
https://github.com/Stefan-ST/MyBB-Inline-Downloads
Posts: 1,009
Threads: 47
Joined: Jun 2007
Reputation:
7
(2010-05-04, 09:05 AM)StefanT Wrote: (2010-02-28, 11:47 PM)DamYan Wrote: What with your tests? I had some time to test and I think you hint was really good. Thank you!
New Version: http://mods.mybboard.net/view/inline-downloads
Bug-Tracker, SVN and Web-SVN
Thanks a lot
Posts: 327
Threads: 33
Joined: Feb 2009
Reputation:
2
MyBB has experienced an internal SQL error and cannot continue.
SQL Error:
1366 - Incorrect integer value: '' for column 'last' at row 1
Query:
INSERT INTO mybb_downloads ( tid , aid , link , title , version , preview , author , author_website , author_original , license , last , guestdl , own , downloads ) VALUES ('0','0','http://www.something.info/zapper.zip',' 2.1.X Uploads','2.1.X','','','','','','','1','1','0')
this error is coming when i tried to check the mod in localhost
Posts: 6,835
Threads: 303
Joined: Jun 2007
Reputation:
94
For those experiencing problems with this plugin and in case you do not want to wait for a fixed version you can try XThreads available here:
http://mybbhacks.zingaburga.com/index.php
It has a very neat attachments system and you can easily create a downloads section for your website.
All my plugins are available for free at MyBB Extend and on my GitHub. MyBB-Plugins.com has been closed and none of my plugins are officially maintained or supported.
Posts: 101
Threads: 7
Joined: Jan 2010
Reputation:
3
2011-07-28, 05:24 PM
(This post was last modified: 2011-07-28, 08:19 PM by Maechlis.)
Very nice plugin.
Some remarks.
1) For English language downloads.lang.php should read Quote:]$l['ds_title'] = 'Title';
(not "Titel")
2) I can not understand what is the flag "Mark as newest version?" for, from the user's point of view. I have not succeeded in finding out whether it is influencing something.
3) It would be nice to have the field "Version" as optional, not mandatory. Also, adding the version number to the thread title is IMHO an excessive feature. At least it should be optional.
4) It makes sense to have the "Title" field independent from the thread title.
5) If we permit inline downloads in some forum, then all threads in this forum require to have inline downloads. Otherwise we can not create the thread. This is very inconvenient.
|