TinyPortal

Development => Support => Topic started by: Kerry on April 02, 2012, 03:41:18 AM

Title: TinyPortal 1.0 Final ~ Install Questions
Post by: Kerry on April 02, 2012, 03:41:18 AM
Thanks IchBin. Congrats!

My version 1.1.04 (http://www.bigislandforum.org/forums/index.php) appears to be working fine. Do I need to upgrade?

Thanks,

Kerry
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: ZarPrime on April 02, 2012, 09:09:06 AM
Quote from: Kerry on April 02, 2012, 03:41:18 AM
Thanks IchBin. Congrats!

My version 1.1.04 (http://www.bigislandforum.org/forums/index.php) appears to be working fine. Do I need to upgrade?

Thanks,

Kerry

Kerry,

Your forum is actually using TP 1.0 RC2 so you are a few versions behind.  There are still some bugs in that version even if you haven't seen any.  The latest version is TP 1.0 Final and that came after RC4.  So, yes, you should probably update at some point.

ZarPrime
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: keyrocks on April 02, 2012, 07:41:40 PM
Quote from: ZarPrime on April 02, 2012, 09:09:06 AM
The latest version is TP 1.0 Final and that came after RC4.  So, yes, you should probably update at some point.
ZarPrime

Thanks to IchBin for sending out an email notice of the release of 1.0.
Question:
How do we update an existing install of 1.105 to 1.0 without losing data already in the tp_ d-base tables?
Or, would the revisions in 1.0 already be in 1.105?
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: IchBin on April 02, 2012, 07:44:20 PM
You can uninstall, and then install the new version. Always backup your files and database before you make any changes though. You should not lose anything in the database.
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: keyrocks on April 02, 2012, 07:52:15 PM
Thanks for the quick reply! Two more questions.
1) I've installed a couple of themes after I installted TP 1.105. Will installing 1.0 add the TP files to the other themes too?
2) Looking at my Package Manager panel, there is an "Uninstall" link available on the right of Tiny Portal in my Modification Packages panel. Do I unstall first before installing 1.0?
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: Lesmond on April 02, 2012, 08:15:47 PM
TinyPortal doesn't affect your themes, only the core theme.

Yes you can safely use the uninstall option, the new internal version number for TP is 1.107
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: keyrocks on April 02, 2012, 08:27:04 PM
Thanks Les.  8)
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: jarska on April 04, 2012, 01:19:40 PM
/sources/TPdlmanager.php

Tpdownloads in admin panel-->error main template.

I found this:

   // add to the linktree
      TPadd_linktree($scripturl.'?action=tpmod;dl=adminitem'.$item , $itemname);
   }
   if(loadlanguage('TPdladmin') == false)
      loadlanguage('TPdladmin', 'english');
   if(loadlanguage('TPmodules') == false)
      loadlanguage('TPmodules', 'english');
   if(loadlanguage('TPortalAdmin') == false)
      loadlanguage('TPortalAdmin', 'english');

Should it be something like this: ::)

   // add to the linktree
      TPadd_linktree($scripturl.'?action=tpmod;dl=adminitem'.$item , $itemname);
   }
   if(loadtemplate('TPdladmin') == false)
      loadlanguage('TPdladmin', 'english');
   if(loadlanguage('TPmodules') == false)
      loadlanguage('TPmodules', 'english');
   if(loadlanguage('TPortalAdmin') == false)
      loadlanguage('TPortalAdmin', 'english');
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: IchBin on April 04, 2012, 02:33:04 PM
The only change I see is that you added the first loadtemplate() call?

The only real error I see is that I mistyped the function name... doh!

It should be loadLanguage ( with the capital "L").
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: jarska on April 04, 2012, 02:58:23 PM
I dont understand anything, but loadlanguage gives error and with  loadtemplate everything working. :-[

With older RC4 version`s TPdlmanager.php its working.

Attached error:
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: IchBin on April 04, 2012, 03:14:17 PM
Ah yes... I did muff that up. Sorry about that. It needs to be this code instead:


Code (find) Select
if(loadLanguage('TPdladmin') == false)
loadLanguage('TPdladmin', 'english');
if(loadLanguage('TPmodules') == false)
loadLanguage('TPmodules', 'english');
if(loadLanguage('TPortalAdmin') == false)
loadLanguage('TPortalAdmin', 'english');


Code (replace with) Select
loadTemplate('TPdladmin');
if(loadLanguage('TPmodules') == false)
loadLanguage('TPmodules', 'english');
if(loadLanguage('TPortalAdmin') == false)
loadLanguage('TPortalAdmin', 'english');


Also, further down in the file you need to make this change.
Code (find) Select

if(loadLanguage('TPdlmanager') == false)
loadLanguage('TPdlmanager', 'english');
if(loadLanguage('TPmodules') == false)
loadLanguage('TPmodules', 'english');
if(loadLanguage('TPortalAdmin') == false)
loadLanguage('TPortalAdmin', 'english');


Code (replace with) Select
loadTemplate('TPdlmanager');
if(loadLanguage('TPmodules') == false)
loadLanguage('TPmodules', 'english');
if(loadLanguage('TPortalAdmin') == false)
loadLanguage('TPortalAdmin', 'english');
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: jarska on April 04, 2012, 05:14:59 PM
Thank you, now its working. :)
Sorry about my bad explanation.
Title: Re: TinyPortal 1.0 Final Install Questions
Post by: keyrocks on April 06, 2012, 04:04:39 PM
Quote from: Lesmond Ƹ̴Ӂ̴Ʒ on April 02, 2012, 08:15:47 PM
TinyPortal doesn't affect your themes, only the core theme.
Yes you can safely use the uninstall option, the new internal version number for TP is 1.107

Update:
I received a warning message when trying to use the uninstall option so aborted it.
I used the "Download New Packages" panel >  Upload a Package
- browsed to the TinyPortal_1.zip where I had it on my hard drive.
- Clicked UPLOAD - Message - "Uploaded Successfully"
- Clicked "Intall Mod" link to the right.
  Notice - the following actions will be performed:
   1.    Extract Tree    ./Themes    
   2.    Extract Tree    ./Themes    
   3.    Extract Tree    ./Sources    
   4.    Extract Tree    ./tp-downloads    
   5.    Extract Tree    ./tp-images    
   6.    Extract Tree    ./tp-files    
   7.    Execute Code    SMF2/do_hooks.php
- Clicked Install Now.
   Message:
   "The package was installed successfully.
   You should now be able to use whatever functionality it adds or changes; or not be able to use functionality it removes."

Quote from: IchBinâ,,¢ on April 04, 2012, 03:14:17 PM
Ah yes... I did muff that up. Sorry about that. It needs to be this code instead:
(snipped)

I assumed IchBin's patches were necessary so applied them after completed the install sequence.
All appears to be working fine so far.
Thanks again.