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: 229
  • 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]

Welcome to SimplePortal.net! You can download SimplePortal from the Downloads Area!

Author Topic: Subs php issue on SMF2.0RC2  (Read 5097 times)

0 Members and 1 Guest are viewing this topic.

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Subs php issue on SMF2.0RC2
« on: September 24, 2010, 07:58:11 AM »
Hey Team,

Am trying to install SP 2.3.2 in SMF2.0RC2.

Error @ ./Sources/Subs.php   Test failed + Same page ( 3 Test Failed with ignore errors  )

Code: [Select]
if (empty($parse_tags) || in_array($code['tag'], $parse_tags))
$bbc_codes[substr($code['tag'], 0, 1)][] = $code;
}
$codes = null;
}

But i dont have such code in my subs.php ( attached for reference )

Kindly support .
- Thanks & Regards,
Sudhakar, IT Acumens

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Subs php issue on SMF2.0RC2
« Reply #1 on: September 24, 2010, 09:44:09 AM »
XVP40, you are correct.
 
I would add only one more hint to that.
 
If you are having trouble finding the string in YOUR copy of Subs.php, try looking for it in a REFERENCE copy of Subs.php (like one straight out of the download archive). Then find something nearby to use as a landmark.
 
Shhhh! would work in this case.
 
Then you can do the automated install, and fix up that one spot by hand.
 
You can handle this!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: Subs php issue on SMF2.0RC2
« Reply #2 on: September 25, 2010, 06:55:15 PM »
Good Ideas,

But any one there from tech to support me on this issue.
- Thanks & Regards,
Sudhakar, IT Acumens

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Subs php issue on SMF2.0RC2
« Reply #3 on: September 26, 2010, 12:59:19 AM »
Have you tried making that edit yourself? You can always try searching that file for similar code (using a smaller part of SimplePortal's search code), it should be somewhere in the parse_bbc function.
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 ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Subs php issue on SMF2.0RC2
« Reply #4 on: September 26, 2010, 01:17:08 AM »
Upgrade to SMF 2.0 RC3

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Subs php issue on SMF2.0RC2
« Reply #5 on: September 26, 2010, 02:56:30 AM »
ccbtimewiz raises a very good point. Its likely that this is a problem with your older SMF version. Running the latest version is always a good idea anyways.
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 ccbtimewiz

  • Hero Member
  • *****
  • Posts: 2185
  • Gender: Male
  • $("div.content:dd").hide();
  • SMF Version: None
  • SP Version: None
  • Elkarte Version: None
  • EhPortal Version: None
Re: Subs php issue on SMF2.0RC2
« Reply #6 on: September 26, 2010, 11:29:15 PM »
The moment I noticed the title saying "SMF 2.0 RC2" I looked at the date (thinking it was an old topic) but consequently was not old.

SMF is slowly dropping support for older 2.0 candidates, and the most recent candidate is what most mods are made and maintained for.

Which is why I stated to upgrade. You could try making the edits yourself, but the latest SP build was made for SMF 2.0 RC3

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: Subs php issue on SMF2.0RC2
« Reply #7 on: October 04, 2010, 07:12:47 AM »
Any updates on this issue Sudhakar? Have you tried updating to the latest version of SMF?
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 Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: Subs php issue on SMF2.0RC2
« Reply #8 on: October 04, 2010, 04:57:49 PM »
Hi Nathaniel & ccbtimewiz,

I appreciate your comments here. It is completely true, which i could not say No to it.

I am personally running smf board for almost 4 years, and i still remember the date when smf 2.0 RC candidate 3 is released. Unfortunately, i have around 100 mods, and as you know i dont have immediate update from most of the modders, i have left upgrading to the latest version. And as i said it , earlier i have simple portal installed, but unfortunately some big mod would have disturbed a small portion of code in subs.php. So i have posted here, assuming that either SiNaN or some tech support people will help me in editing the subs.php page to fix the install issue with 2.0 RC 2. Once this small issue is fixed, i dont want to take my complete day out to upgrade to latest version or simple machines.

Hope my answer would yield me some ways to solve my issue to install simple portal again in my forum.

Have a good day...
- Thanks & Regards,
Sudhakar, IT Acumens

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Subs php issue on SMF2.0RC2
« Reply #9 on: October 05, 2010, 11:33:15 AM »
Again, I suggest that you search like this:
 
1) Get a copy of the un-modded or clean Subs.php from the SMF distribution.
2) Find, in the clean version of Subs.php, the piece of code the package manager is searching for
3) Find, in the clean version of Subs.php, a nearby piece of code you can use as a landmark.
 
In this case, you will find Shhhh! just before.
 
4) Figure out what has become of the code the package manager was looking for.
 
In this case, you seem to have
Code: [Select]
  foreach ($codes as $c)
   $bbc_codes[substr($c['tag'], 0, 1)][] = $c;
  $codes = null;

Which seems to be functionally equivalent to
Code: [Select]
  foreach ($codes as $code)
  {
   // If we are not doing every tag only do ones we are interested in.
   // if (empty($parse_tags) || in_array($code['tag'], $parse_tags))
    $bbc_codes[substr($code['tag'], 0, 1)][] = $code;
  }
  $codes = null;

So, this way, I think you can find the right place to add the remaining portion of code.
 
You can do this.
 
 
 
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Offline Sudhakar

  • Jr. Member
  • **
  • Posts: 67
  • Gender: Male
  • Simple Portal is Good
    • IT Acumens - An Edu Community
  • SMF Version: 2 RC1
  • SP Version: 2.2.1
Re: Subs php issue on SMF2.0RC2
« Reply #10 on: February 14, 2011, 06:22:36 AM »
Thanks for all your support.

The recent version fixed the issue for me and it had installed perfectly on my forum.

Thank you , i will mark this topic as solved.
- Thanks & Regards,
Sudhakar, IT Acumens

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Subs php issue on SMF2.0RC2
« Reply #11 on: February 14, 2011, 07:03:50 AM »
I'm glad you were able to solve this problem.
It can be confusing, when several mods want to change code in the same part of the file.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?