Advertisement:

Author Topic: SimplePortal  (Read 1577611 times)

Offline Ilkharnos

  • Jr. Member
  • **
  • Posts: 128
  • Gender: Male
    • Kara Miğfer Hanı
Re: SimplePortal
« Reply #5240 on: December 04, 2017, 07:33:44 AM »
Hello,

I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.

I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?

Thank you in advance.

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5241 on: December 04, 2017, 08:55:24 AM »
Yes, fix your script.js issue and it will probably start to work. Why did you install with errors anyway?

More files presented the errors and I edited them manually, but that file could not be edited because I could not find the text to replace.

Code: [Select]
<file name="$themedir/scripts/script.js">
<operation>
<search position="replace"><![CDATA['#c']]></search>
<add><![CDATA['?action=forum#c']]></add>
</operation>
</file>
that's what I have to change but I can not find "<! [CDATA ['# c']]>"

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5242 on: December 04, 2017, 10:55:05 AM »
You just find the #c part, the CDATA stuff is how you write raw stuff in XML.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5243 on: December 04, 2017, 11:02:10 AM »
You just find the #c part, the CDATA stuff is how you write raw stuff in XML.
I can not find "<! [CDATA ['# c']]>" in my script.js ...

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5244 on: December 04, 2017, 11:23:08 AM »
No, you won't because it isn't there!

Just literally look for the #c part. Not the rest of the line. Just literally a hash and a letter c.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5245 on: December 04, 2017, 12:17:09 PM »
No, you won't because it isn't there!

Just literally look for the #c part. Not the rest of the line. Just literally a hash and a letter c.

That is what I did




Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5246 on: December 04, 2017, 12:27:55 PM »
Please attach your script.js file, I'll take a look when I get home from work.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5247 on: December 04, 2017, 12:42:35 PM »
Please attach your script.js file, I'll take a look when I get home from work.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5248 on: December 04, 2017, 01:30:01 PM »
You already have a mod that has modified it. The change would have been to line 1073 but something else has modified it to instead read action=forum;c=

Do you by any chance have the 'view single category' mod in place? If so, you don't need to worry about this change.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Gluz

  • Sr. Member
  • ****
  • Posts: 985
  • Gender: Male
Re: SimplePortal
« Reply #5249 on: December 04, 2017, 04:10:08 PM »
Hello,

I use the latest version of SP. I use a few "Recent Posts/Topics" blocks (set to "topics"). As far as I can see, this block doesn't show somewhat old topics. I cannot see the topics which I posted a few months ago.

I would like to have a recent posts/topics block which is timeless. Is there any way I can do that?

Thank you in advance.

Well, that defeat the purpose of being Recent.

If you want a list of topics similar to how it's done in that block, but with your own set of topics you need to make a custom PHP block, have the topic IDs in an Array, fetch the id of first message of each topic, and use the ssi_fetchPosts function.

Someone asked a similar question yesterday, but as I'm in my mobile phone it's hard to put code, but that is what I remember from one site I used something similar.
Quote
Think in spanish, habla en inglés.

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5250 on: December 04, 2017, 05:15:10 PM »
You already have a mod that has modified it. The change would have been to line 1073 but something else has modified it to instead read action=forum;c=

Do you by any chance have the 'view single category' mod in place? If so, you don't need to worry about this change.

Yes, I have that mod.
So we go back to the initial problem:

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5251 on: December 04, 2017, 05:21:47 PM »
It's nothing to do with script.js.

What did you try to change it to, exactly? What other settings did you change?
No good deed goes unpunished
All helpful urges should be circumvented

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5252 on: December 04, 2017, 05:23:59 PM »
It's nothing to do with script.js.

What did you try to change it to, exactly? What other settings did you change?

I have not changed anything, I just installed it

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5253 on: December 04, 2017, 05:25:01 PM »
You just installed it, and you said you tried to change the setting and it didn't save. What did you try to change it to?
No good deed goes unpunished
All helpful urges should be circumvented

Offline Madirex

  • Jr. Member
  • **
  • Posts: 161
Re: SimplePortal
« Reply #5254 on: December 04, 2017, 05:29:32 PM »
You just installed it, and you said you tried to change the setting and it didn't save. What did you try to change it to?
I sent a photo the first time I reported the problem, i do not know if you have not understood me well, anyway I will explain it in a clearer way:

1. Click on Configuration


2. Click on General Settings


3. Change the Portal Mode from disabled to any other option


4. Press Save button


5. It is not modified, it is still disabled


Any other option can be edited without any problem, but just that option does not let me edit it

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5255 on: December 04, 2017, 05:38:06 PM »
Is your forum currently in maintenance mode?
No good deed goes unpunished
All helpful urges should be circumvented

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,317
  • Gender: Male
  • The Quest is the Quest
    • Underdog-01 on GitHub
    • WebDev.ca
Re: SimplePortal
« Reply #5256 on: December 04, 2017, 06:27:41 PM »
Madirex,

Did you edit the SPortalAdmin language file?

Ensure this variable has 4 options separated by | (or).
Code: [Select]
$txt['sp_portal_mode_options'] = 'Disabled|Front Page|Integration|Standalone';



My SMF Mods & Plug-Ins

WebDev

“Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune.” - Noam Chomsky

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5257 on: December 04, 2017, 06:30:48 PM »
I assumed this was OK based on the screenshot showing this ;)
No good deed goes unpunished
All helpful urges should be circumvented

Offline Chen Zhen

  • Sophist Member
  • *****
  • Posts: 1,317
  • Gender: Male
  • The Quest is the Quest
    • Underdog-01 on GitHub
    • WebDev.ca
Re: SimplePortal
« Reply #5258 on: December 04, 2017, 06:32:30 PM »

Ya I didn't notice that.. just trying to figure out things that would cause that behavior.

My SMF Mods & Plug-Ins

WebDev

“Either you repeat the same conventional doctrines everybody is saying, or else you say something true, and it will sound like it's from Neptune.” - Noam Chomsky

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: SimplePortal
« Reply #5259 on: December 04, 2017, 06:34:54 PM »
Seems like there's a possible case where if the forum is in maintenance mode, SP can become disabled.
No good deed goes unpunished
All helpful urges should be circumvented