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

Recent

Welcome to TinyPortal. Please login or sign up.

Recent posts

#1
Feedback / Re: Article Category URL Gener...
Last post by @rjen - April 01, 2025, 08:07:50 AM
Quote from: [chrisB] on March 31, 2025, 09:28:26 PMWhich confirms I can make the tab active, just not with the page's ID.

I am assuming you are using some code to do that, like in the mod I shared.
I updated that mod to work with both Short text and ID links. See below code for an example

/**
 * Sets the current action to highlight the correct menu option
 *
 * Called by: integrate_current_action
 */
function fjrclub_current_action(&$current_action)
{
global $context, $scripturl;

// Cats
$cat_overdefjr = array('6', 'Over-de-FJR');
$cat_shop = array('18', 'Shop');
$cat_evenementen = array('17', 'Onze-activiteiten');
// Pages
$page_overdefjr = array('4', 'Geschiedenis-van-de-FJR', '75', 'Model-RP28-Ultimate', '62', 'Model-RP28', '8', 'Model-RP23', '69', 'Model-RP13A', '6', 'Model-RP13', '5', 'Model-RP08-en-RP11', '3', 'Model-RP04', '36', 'Modellen-Verenigde-Staten');
$page_shop = array('30', 'Shop', '25', 'caps-stickers-en-overige', '24', 'Kleding-met-clublogo');
$page_evenementen = array('9', 'Onze-activiteiten', '10', 'Fotohoek', '20', 'filmhoek', '83', 'Filmhoek-2022', '49', 'Filmhoek-2015', '59', 'Filmhoek-2014', '19', 'Filmhoek-2013', '18', 'Filmhoek-2012', '17', 'Filmhoek-2011', '11', 'Filmhoek-2010');

// Set the current action
if (isset($_GET['cat'])) {
if (in_array($_GET['cat'], $cat_overdefjr))
$current_action = 'Over_de_FJR';
elseif (in_array($_GET['cat'], $cat_shop))
$current_action = 'Shop';
elseif (in_array($_GET['cat'], $cat_evenementen))
$current_action = 'Evenementen';
}
if (isset($_GET['page'])) {
if (in_array($_GET['page'], $page_overdefjr))
$current_action = 'Over_de_FJR';
elseif (in_array($_GET['page'], $page_shop))
$current_action = 'Shop';
elseif (in_array($_GET['page'], $page_evenementen))
$current_action = 'Evenementen';
}
}
#2
Feedback / Re: Article Category URL Gener...
Last post by @rjen - April 01, 2025, 07:44:01 AM
Quote from: [chrisB] on March 31, 2025, 09:28:26 PMIn addition to this, my menu is active if I use the "article" URL, but isn't active with the page's number.

That should not really matter: if you have a short name all the standard generated url's point to the page with the short name, not the ID.
And on the 'edit' page the URL is way different: instead of page it has the action: tpadmin, which highlights the TinyPortal menu option
#3
Support / Re: A couple more questions (s...
Last post by @rjen - April 01, 2025, 06:55:49 AM
No.

This is input voor TinyPortals Sitemap block

This is part of the TP docs: Sitemap - this shows any menu manager item you have selected in a sitemap block

Please note that although some mods have settings for Portals there are NO settings in TinyPortal that are specific to any other mod.
If possible we try to make TinyPortal not conflict with other mods but we do not specifically integrate with any.
We are not planning to either
#4
Support / Re: A couple more questions (s...
Last post by [chrisB] - April 01, 2025, 12:30:40 AM


I assume with the Optimus mod, the site links created with TinyPortal are included; is this correct?
#5
Feedback / Re: Article Category URL Gener...
Last post by @rjen - March 31, 2025, 09:40:26 PM
No, the short names are only used when displaying articles and categories. Edits are always on ID
#6
Feedback / Re: Article Category URL Gener...
Last post by [chrisB] - March 31, 2025, 09:28:26 PM
rjen;

Should the link, when inside an article, to view the page also be ?page=about instead of ?page=6



If the page has a "Short name", I would have thought for consistency, just like the categories, that the URL would be "about" and not the page's number?

I think for consistency it would make more sense, but it might be as it is intended.

In addition to this, my menu is active if I use the "article" URL, but isn't active with the page's number.

https://poetryartonline.com/?page=about

As a fix to an issue I am experiencing, it was suggested that I uninstall the Pretty URLs Pro mod. Which confirms I can make the tab active, just not with the page's ID.
#7
Support / Re: BBC Buttons aligning verti...
Last post by Senkusha - March 30, 2025, 11:02:50 PM
Awesome!  Thank you!

So in the /Reseller/css/custom/custom_edits.css file, I added the following:

.sceditor-button {
  float: left;
}

And that did the trick!
#8
Support / Re: BBC Buttons aligning verti...
Last post by @rjen - March 30, 2025, 10:28:39 PM
The problem is in the css for the SCE editor, that is in the theme

If youa add float: left; to the css for .sceditor-button { that will fix it.
It may have undesired effectes elsewhere in the them though...

#9
Support / Re: BBC Buttons aligning verti...
Last post by Senkusha - March 30, 2025, 10:03:02 PM
Okay.  I disabled CSS/Javascript Minification.

The theme is Reseller, it's a free one available at SMF here
#10
Resources / Re: [How To] Using a TinyPorta...
Last post by Skhilled - March 30, 2025, 08:05:07 PM
Quote from: Senkusha on March 21, 2025, 09:20:58 PMThank you for sharing this!  I made my own, rather dynamic 404 page.  I want to add some more personality to it to fit my site theme!
Custom 404 Page
I love it! Sounds like something I do or would say! LMAO

This website is proudly hosted on Crocweb Cloud Website Hosting.