TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,236
  • Total Topics: 21,353
  • Online today: 739
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 443
  • Total: 444
  • lurkalot

Upgrade to RC1.1

Started by smartmouse, May 11, 2011, 12:08:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smartmouse

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?

IchBin

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.

smartmouse

Uhm, i understand... but for me it will be an hard work due this modification... 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...

IchBin

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.

smartmouse

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 :(

IchBin

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.

smartmouse

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...

IchBin

I don't remember you sharing the files with me. I just remember you posting about it.

smartmouse

I'm sorry, i was wrong, it was Zar Prime, not you!
Anyway, any idea to help me?

IchBin

Get yourself a good text editor that allows you to search a directory of files. (Notepad++).  That code is now in TPSubs.php

This website is proudly hosted on Crocweb Cloud Website Hosting.