TinyPortal

Development => Support => Topic started by: smartmouse on May 11, 2011, 12:08:52 PM

Title: Upgrade to RC1.1
Post by: smartmouse on May 11, 2011, 12:08:52 PM
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?
Title: Re: Upgrade to RC1.1
Post by: 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.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on May 11, 2011, 07:24:21 PM
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...
Title: Re: Upgrade to RC1.1
Post by: IchBin on May 11, 2011, 08:05:23 PM
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.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on May 12, 2011, 06:03:43 PM
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 :(
Title: Re: Upgrade to RC1.1
Post by: IchBin on May 12, 2011, 06:43:24 PM
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.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on May 13, 2011, 12:53:55 AM
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...
Title: Re: Upgrade to RC1.1
Post by: IchBin on May 13, 2011, 02:03:08 AM
I don't remember you sharing the files with me. I just remember you posting about it.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on May 13, 2011, 10:29:59 AM
I'm sorry, i was wrong, it was Zar Prime, not you!
Anyway, any idea to help me?
Title: Re: Upgrade to RC1.1
Post by: IchBin on May 13, 2011, 04:40:45 PM
Get yourself a good text editor that allows you to search a directory of files. (Notepad++).  That code is now in TPSubs.php
Title: Re: Upgrade to RC1.1
Post by: smartmouse on May 14, 2011, 12:46:37 AM
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 ;)
Title: Re: Upgrade to RC1.1
Post by: smartmouse on June 02, 2011, 01:54:13 PM
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).
Title: Re: Upgrade to RC1.1
Post by: ZarPrime on June 02, 2011, 02:52:46 PM
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
Title: Re: Upgrade to RC1.1
Post by: smartmouse on June 02, 2011, 06:27:39 PM
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?
Title: Re: Upgrade to RC1.1
Post by: IchBin on June 02, 2011, 06:30:50 PM
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.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on June 02, 2011, 06:34:05 PM
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?
Title: Re: Upgrade to RC1.1
Post by: IchBin on June 02, 2011, 07:09:36 PM
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.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on June 02, 2011, 07:41:35 PM
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
Title: Re: Upgrade to RC1.1
Post by: 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.
Title: Re: Upgrade to RC1.1
Post by: smartmouse on June 02, 2011, 11:59:43 PM
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?
Title: Re: Upgrade to RC1.1
Post by: 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. :)
Title: Re: Upgrade to RC1.1
Post by: smartmouse on June 03, 2011, 12:28:01 PM
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