Hello, my TP version is 1.0 beta 4 (1.083 as appears on my packages page) and i want to upgrade to the versione 1.0 RC 1.1.
What is the best way to do it?
If you are able to uninstall and then install the new package that would be the best way. No data should be lost in the database. However, always backup as a precaution.
Uhm, i understand... but for me it will be an hard work due this modification (http://www.tinyportal.net/index.php?topic=2790.msg266208#msg266208)... do you remember of it?
I need to upgrade because TP stopped to work. I mean when i try to add a new block it appears in the admin side, but it doesn't appear on home page...
Well all you need to do is to diff the TPdlmanager.php file that you have to the one in the package. Any change that is not yours, simply merge my changes into yours. Then just add the two .htaccess files from the package to your site for the tp-downloads/ and tp-images/ directories. That should get you updated just fine.
As for the block problem, please start another topic with all the details we ask for, and any additional information that would be helpful.
First problem:
In /Source/TPmodules.php file of old TP version...
if($sort=='weekdownloads')
$request = tp_query("SELECT dlm.id, dlm.description, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.authorID, dlm.icon, dlm.created, dlm.screenshot, dlm.filesize,
dlcat.name AS catname, mem.realName
FROM (" . $tp_prefix . "dlmanager AS dlm, " . $db_prefix . "members AS mem)
LEFT JOIN " . $tp_prefix . "dlmanager AS dlcat ON dlcat.id=dlm.category
WHERE dlm.type = 'dlitem'
AND dlm.category IN (" . implode(',' , $mycats) . ")
AND dlm.authorID=mem.ID_MEMBER
" . $sortstring . " LIMIT $number ", __FILE__, __LINE__);
else
$request = tp_query("SELECT dlm.id, dlm.description, dlm.name, dlm.category, dlm.file, dlm.downloads, dlm.views, dlm.authorID, dlm.icon, dlm.created, dlm.screenshot, dlm.filesize,
dlcat.name AS catname, mem.realName
FROM (" . $tp_prefix . "dlmanager AS dlm, " . $db_prefix . "members AS mem)
LEFT JOIN " . $tp_prefix . "dlmanager AS dlcat ON dlcat.id=dlm.category
WHERE dlm.type = 'dlitem'
AND dlm.category IN (" . implode(',' , $mycats) . ")
AND dlm.authorID=mem.ID_MEMBER
" . $sortstring . " LIMIT $number ", __FILE__, __LINE__);
I had replaced this row
WHERE dlm.type = 'dlitem'
with this
WHERE dlm.type <> 'dlcat'
But i can't find it in new version :(
Well I haven't changed the new version since you last edited it, so either your file is older than you think it is, or something else is going on.
Can you help me to find the right row to edit?
Do you remember of this modification? It was made by a friend of mine and i had shared with you via email last year...
I don't remember you sharing the files with me. I just remember you posting about it.
I'm sorry, i was wrong, it was Zar Prime, not you!
Anyway, any idea to help me?
Get yourself a good text editor that allows you to search a directory of files. (Notepad++). That code is now in TPSubs.php
I have already used Notepad++ for make search in files... but i didn't do it in this case, sorry...
Anyway, before make any changes i want to talk with Crip to definitely fix/update my old so loved theme!
I will came back here to update this topic... thanks ;)
Quote from: IchBinâ,,¢ on May 11, 2011, 05:13:25 PM
If you are able to uninstall and then install the new package that would be the best way. No data should be lost in the database. However, always backup as a precaution.
After the upgrade to TP 1.0 RC1.1 i have lost all my downloads. The new version keeps only categories, but no files there are in them.
Why?
(I have first to solve this problem before trying to apply my modify for external download links).
smartmouse,
Not sure why that might happen. Maybe Ichbin will see this and respond. For now, you should be able to use the FTP function in the TP Download Manager to assign the downloads back to their proper categories --> ?action=tpmod;dl=adminftp
ZarPrime
I don't have downloads in my FTP to assign to. I had all external links for every download. But why they don't appear anymore?
That shouldn't happen at all as there were no database changes in the update. Well I can only assume that the changes are because of the modifications that you have added.
I understand why they don't appear. In the database every download has "dllink" in Type column, instead of "dlitem".
I have this due my modify (my friend did it) to TP v1.0 Beta 4 to make it to allow external links in the download page.
I have made the same modify to the new files of TP v1.0 RC1.1 but i get an Internal Error.
Can i submit my modify to someone here to make it suitable for RC1.1?
Do you have a list of the modifications you have made to do this? I don't have the time to troubleshoot this for you, but might be able to see it with a quick glance.
I have attached modified file in this post.
You can see every modification searching for "Modifica" in every files.
The modifications are the same that i made with TP beta 4 and it worked.
But they don't work with RC1.1: i get some errors.
PS: If you want i can upload modified file of beta 4.
PPS: Maybe it's better if you cut and merge latest posts of this topic to this old thread: http://www.tinyportal.net/index.php?topic=2790.msg266208#msg266208
Well code has been changed significantly since beta4. I really think you are going to have to get your friend to help you or someone else. I don't have time to figure out the problem for you. Sorry.
Quote from: IchBinâ,,¢ on June 02, 2011, 09:44:56 PM
Well code has been changed significantly since beta4. I really think you are going to have to get your friend to help you or someone else. I don't have time to figure out the problem for you. Sorry.
I understand. Thank you anyway.
Will TP support external download links in future release?
That feature has long been in the list. However, I'd suggest you add it to the bug tracker we have as a feature request so that it's not forgotten. :)
Quote from: IchBinâ,,¢ on June 03, 2011, 01:28:55 AM
That feature has long been in the list. However, I'd suggest you add it to the bug tracker we have as a feature request so that it's not forgotten. :)
Done, thanks.
http://www.tinyportal.net/index.php?topic=34011.0