News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SimplePortal

Started by SimplePortal Team, March 10, 2008, 11:16:07 PM

Previous topic - Next topic

Ilkharnos

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.

Madirex

Quote from: Ninja ZX-10RR on December 03, 2017, 09:54:19 PM
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.

<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']]>"

Arantor

You just find the #c part, the CDATA stuff is how you write raw stuff in XML.

Madirex

Quote from: Arantor 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.
I can not find "<! [CDATA ['# c']]>" in my script.js ...

Arantor

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.

Madirex

Quote from: Arantor 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.

That is what I did




Arantor

Please attach your script.js file, I'll take a look when I get home from work.

Madirex

Quote from: Arantor 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.

Arantor

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.

Gluz

Quote from: Ilkharnos 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.

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.

Madirex

Quote from: Arantor 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.

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

Arantor

It's nothing to do with script.js.

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

Madirex

Quote from: Arantor 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?

I have not changed anything, I just installed it

Arantor

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?

Madirex

Quote from: Arantor 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?
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

Arantor

Is your forum currently in maintenance mode?

Chen Zhen

Madirex,

Did you edit the SPortalAdmin language file?

Ensure this variable has 4 options separated by | (or).

$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

Arantor

I assumed this was OK based on the screenshot showing this ;)

Chen Zhen


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

Arantor

Seems like there's a possible case where if the forum is in maintenance mode, SP can become disabled.

Advertisement: