TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,946
  • Latest: Sparo
Stats
  • Total Posts: 195,713
  • Total Topics: 21,274
  • Online today: 74
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 49
  • Total: 49

A couple more questions (sorry) 😊

Started by [chrisB], March 19, 2025, 09:49:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[chrisB]

Are they picked up from the name then?

Usually, there's something like this in the code of the file that is responsible for generating it.
//Set the page title
$context['page_title'] = 'Title - ' . $mbname;

@rjen

I already said it...

look in TPortal.php, look for $context['page_title'].

I am guessing you want line 740
Running Latest TP on SMF2.1 at: www.fjr-club.nl

[chrisB]

Quote from: @rjen on March 24, 2025, 04:44:23 PMI already said it...

look in TPortal.php, look for $context['page_title'].

I am guessing you want line 740

Thanks rjen.

I didn't notice any references before. However, looking back now, I can see them. I am not suggesting that you edited your post, as I fully acknowledge that I may have simply missed it. If it was edited, that would explain why.

The code I seeked, is this.
$context['page_title'] = $context['TPortal']['article']['subject'];

@rjen

I did edit my post... do not worry about it
Running Latest TP on SMF2.1 at: www.fjr-club.nl

[chrisB]

Does TinyPortal generate any URL outputs, such as an RSS feed? I have read that there's an edit that does it for articles.

This would help me and vbgamer to automatically add URLs to the sitemap his mod generates.

I completely understand that it's not something you will look into yourself, but it sounds like my code would be almost functional if TinyPortal had something like this.

@rjen

I do not understand what you are asking. TinyPortal generates urls for Articles and Categories. Those you can add to a sitemap.

If you see an edit somewhere to do it, please link to the resource, I cannot read minds...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

[chrisB]

I'll come back it, rjen.

Is it me, or a bug?

No matter what value I enter—be it 200px, 200, or 20% - the size on the article (page) doesn't change. I save the value, refresh the page, and the default size stays the same.

I can adjust it through CSS, but surely the value I input should override the default. Am I doing something wrong, or is this a bug?


@rjen

what does the article page size have to do with the panel sizes?
The screenshot is the setting for defining the WIDTH of the right and left panel, nothing to do with Articles
Running Latest TP on SMF2.1 at: www.fjr-club.nl

[chrisB]

..... It's the panel sizes I am trying to change, but just for that article - via the settings I shared in the screenshot.

-Edit-

If it has nothing to do with the article, why is it in that artcles settings nearer the bottom?

This is the link to edit the TP article: https://poetryartonline.com/tpadmin/?sa=editarticle;article=2
This is the link to the article page: https://poetryartonline.com/dashboard/

The values have no effect, unless I am entering them incorrectly.

@rjen

Quote from: [chrisB] on March 26, 2025, 12:40:11 PM..... It's the panel sizes I am trying to change, but just for that article - via the settings I shared in the screenshot.

-Edit-

If it has nothing to do with the article, why is it in that artcles settings nearer the bottom?

Can I ask you to provide clearer screenshots going forward?
These settings are in multiple places, and bij just seeing a setting it does not tell me where you are...
Running Latest TP on SMF2.1 at: www.fjr-club.nl

This website is proudly hosted on Crocweb Cloud Website Hosting.