collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 374
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Error in Package Installation  (Read 6220 times)

0 Members and 1 Guest are viewing this topic.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Error in Package Installation
« on: June 01, 2010, 07:27:58 PM »
Hey SP forum members,

I have this problem when I try to Apply Mod. The tests fail.



I have just recently entered into SMF so assume I don't know much.

How do I fix up these errors?

Would I have to update my SMF version or download an older version of SP?

Thanks for replies.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #1 on: June 01, 2010, 08:35:33 PM »
Those two edits are related to changing urls, so that link which refer to a specific category on your forums work, even if you have the frontpage mode turned on.

Do you have any Url related mods installed?
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #2 on: June 01, 2010, 08:40:22 PM »
I have TinyPortal and SimplePortal uploaded.

I have ADK Portal applied.

Would you suggest that I uninstall the other portals to be able to successfully install and use SimplePortal?

Also, if this helps, the tests that failed are:
  • ./Sources/BoardIndex.php
  • ./Sources/Recent.php

Thanks.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #3 on: June 01, 2010, 08:43:26 PM »
I can see the failed tests from your image, they are likely to be compatibility issues with another mod.

As Portal mods are large and alter quite a few files, you should probably only have one installed at a time. Uninstalling the other portals should make it easier to install SimplePortal.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #4 on: June 01, 2010, 08:54:01 PM »
Thanks. That solved it. Now that I have it installed I want to use it for what I intended - creating pages.

I've created a page and what I don't see is a link to the created page that I saw in ADK Portal. How I need a link to the page so I can link the tab that is to be pressed to that tab.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #5 on: June 01, 2010, 09:11:12 PM »
If you want a link on the SMF menu, then you will have to manually add one. You can get the url for the page from the page list area in the SimplePortal admin section.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #6 on: June 01, 2010, 09:45:25 PM »
If you want a link on the SMF menu, then you will have to manually add one. You can get the url for the page from the page list area in the SimplePortal admin section.
I created a new tab in a custom theme by adding a new action:
Code: [Select]
   if ($context['current_action'] == 'test')
      $current_action = 'test';

And also, creating the tab:
Code: [Select]
            // Show the [test] button.
            echo '<li><a' , $current_action=='test' ? ' class="current"' : '' , ' href="index.php?page=page3102"', $scripturl, '?action=test"><span>Test</span></a></li>';

It turns out that my "Test" tab is not highlighted... the Index tab is.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #7 on: June 01, 2010, 09:52:21 PM »
That's because pages aren't actions.

Try this for the first segment of code:
Code: [Select]
   if (!empty($_REQUEST['page']) && in_array($_REQUEST['page'], array('pageid1', 'pageid2', 'pageid3', 'etc')))
      $current_action = $_REQUEST['page'];

You will need to change the array which contains page ids, so that it only contains the page ids that you want. You may only want to have "array('pageid')" if you only want to add a single tab.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #8 on: June 02, 2010, 12:11:57 AM »
Cool. That created a new tab for me and it's linking correctly.

But the test page is highlighting another tab. For example - The Test page should have the Test tab highlighted. At the moment, the Test page has the Forum tab highlighted.

EDIT: As many test pages I create, they all have the Forum tab highlighted.
« Last Edit: June 02, 2010, 12:23:03 AM by yangtastic »

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #9 on: June 02, 2010, 04:09:17 AM »
Make sure that your have changed the "array('pageid1', 'pageid2', 'pageid3', 'etc')" example array of page ids, to the ids of your pages. You will also need to change the "$current_action=='test'" part of the code for each tab you add, so that it has the correct page id (where 'test' is the page id).
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #10 on: June 02, 2010, 07:19:52 PM »
This is the upper part of the code for the tabs.
Code: [Select]
   if (!empty($_REQUEST['test']) && in_array($_REQUEST['test'], array('test')))
      $current_action = $_REQUEST['test'];

This is the lower part of the code for the tabs.
Code: [Select]
            // Show the [test] button.
            echo '<li><a' , $current_action=='test' ? ' class="current"' : '' , ' href="index.php?page=page3102"', $scripturl, '?action=test"><span>' , $txt[test] = 'Test' , '</span></a></li>';

These pieces of code create the test tab correctly, link it correctly but the wrong tab is highlighted on the test page.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #11 on: June 02, 2010, 07:39:51 PM »
I found this mod for custom tabs.

http://custom.simplemachines.org/mods/index.php?mod=1402

It doesn't say that it is compatible with 1.1.11 but there are instructions, related to chagning the code,  as found with other mods. Does applying the mod automatically install those instructions or do I have to manually change the code when I apply the mod.

I read the code instructions of SimplePortal but I didn't need to apply them manually.
http://custom.simplemachines.org/mods/index.php?action=parse

Thanks.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #12 on: June 02, 2010, 08:30:47 PM »
I haven't used that mod, although any tabs mod for SMF 1.1.x, will most likely have to be applied manually to any custom theme you are using, to me that would seem to be more effort than its worth.

What is the id for your page? I have altered the code below so that it will work for a page with id 'page3102'.

Try the code below:
Code: [Select]
   if (!empty($_REQUEST['page']) && in_array($_REQUEST['page'], array('page3102')))
      $current_action = $_REQUEST['page']; 

(for that code you should not have changed the 'page' part to 'test', just the array part needs changing)

Code: [Select]
            // Show the [test] button.
            echo '<li><a' , $current_action=='page3102' ? ' class="current"' : '' , ' href="', $scripturl, '?page=page3102"><span>Test</span></a></li>';

(you had an extra part in the url that said 'action=test')
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #13 on: June 02, 2010, 08:46:20 PM »
Didn't seem to make a difference the test tab still higlights the index tab.

I haven't used that mod, although any tabs mod for SMF 1.1.x, will most likely have to be applied manually to any custom theme you are using, to me that would seem to be more effort than its worth.

So the easiest way to get to my destination would be to upgrade my SMF version to the latest SMF version which is...
SMF 2.0 RC3?

Thanks.

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Error in Package Installation
« Reply #14 on: June 02, 2010, 08:51:26 PM »
What is the id for your page?

You can find the id of a page by looking at the url when you visit that page (format: 'index.php?page=id').

Upgrading to SMF 2 RC3 would not be the easiest way to add a tab to your forum... Upgrading to SMF 2 RC3, breaks themes and mods, meaning that you have to reinstall all of them (if they are compatible with SMF 2). If you have a large forum then this can be a pain (its also a pain if you have 50 mods installed or a theme that doesn't support SMF 2 RC3).
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline yangtastic

  • Semi Newbie
  • *
  • Posts: 13
  • SMF Version: 1.1.11
  • SP Version: 2.3.2
Re: Error in Package Installation
« Reply #15 on: June 02, 2010, 08:59:09 PM »
The page id is page3102. So it would be "index.php?page=page3102"

I'm only using SimplePortal as the only mod at the moment.