How to display number of posts in header

I'm not even sure if this is possible, but if anyone can shed some light on this, it would be appreciated. I would like to show the number of posts in a node in the header of the node (see mock-up below) I would change posts to 'Movies' so it would give members an indication of how many movies are in that category.

mock-up.webp

Each category of movies is a node and each movie is a post, if those parameters help. With thanks to anyone who can help.

Читать далее...

Thread Creator - Get new Thread's ID

I'm using the following code in a php script to generate a forum thread:

Code:

Код:
$dir = WEBSITE_PATH.'/forums';
require($dir . '/src/XF.php');
XF::start($dir);

$forumId = '20';  //Forum ID of where to post thread
$userId = '2';  //User ID # of account to post thread as
$title = "Testing";
$message = '[b]Name:[/b] Test';

$forum = \XF::em()->find('XF:Forum', $forumId);
$user = \XF::em()->find('XF:User', $userId);
\XF::asVisitor($user, function() use ($forum, $title, $message)
{
    $creator =...

Read more

Читать далее...

Приветствуем нового пользователя, Алибек

@Алибек, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

questions about /whats-new/posts/ uri

Hi,

we see that our forum generate many urls under/whats-new/posts/, eg: https://abc.com/whats-new/posts/282387/, and https://abc.com/whats-new/posts/xxxx/.
and also, /whats-new/posts/xxxx/page-1, /whats-new/posts/xxxx/page-2......

it keeps generate many new urls on this format.

how to prevent it?

can i to be /whats-new/page-1, /whats-new/page-2 etc only?

Regards

Читать далее...

Приветствуем нового пользователя, Mishka

@Mishka, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

Error: Call to a member function getType() on null

Any idea how to solve these?

Code:

Код:
Error: Call to a member function getType() on null src/XF/Service/User/ProfileBannerService.php:193



Stack trace
#0 src/XF/Pub/Controller/AccountController.php(721): XF\Service\User\ProfileBannerService->updateBanner()
#1 src/XF/Mvc/Dispatcher.php(362): XF\Pub\Controller\AccountController->actionBanner(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'Banner', Object(XF\Mvc\RouteMatch)...

Read more

Читать далее...

(Resolved) Posting a message takes a long time to complete, can't find cause?

Hello, we are experiencing an issue where a user will post a response in a thread, either via quick reply or full reply, and that user will occasionally experience a 10-60 second wait before they see that post operation complete. However, from a separate tab it shows the post operation is almost instantly completed. This seems to occur regardless of post length or complexity - even the word "test" with nothing else can prompt a 60 second wait time before the poster's page refreshes. At...

Read more

Читать далее...

Selected Button Colour in Editor

I have been digging through the style properties, trying to find one specific colour. The colour for selected buttons in drop downs in the editor.

Example of what I mean:
1727632797415.webp

I have been able to find the lighter grey (the hover colour). However, the darkest grey (the 15) I have not been able to target. I know it uses Colour 1 and is affected by Basic Colours -> Highlighted Content Background colour, but changing those also changes other parts of the theme I don't want to touch...

Read more

Читать далее...

A strange glitch with the GMP

I am migrating the forum from a managed server to an independent VPS server.
When I try to enable push notifications on the new server, I get an error stating that GMP is not enabled.
In the control panel, it also shows 'gmp support no.'
However, I have installed its dependencies, and it even appears in phpinfo.
Why isn't the forum recognizing the package?

1727629935249.webp

Читать далее...

Приветствуем нового пользователя, asjajfasf

@asjajfasf, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

Toggle BB Code Automatically Turns On?

A few of our members have had an issue where their Toggle BB Code will turn on (without their knowing of it), which greys out the post menu and prevents them from writing their post:

Screenshot from 2022-04-02 00-08-15.webp

Screenshot from 2022-04-02 00-08-22.webp

This was with Android (mobile), Brave browser.

Though at least one member had an issue with it on Google Chrome or Mozilla Firefox browsers.

Two solutions exist to fix it:
  • Clear browser cache
  • Simply toggle the BB Code to be back off

However, not all of our members...

Read more

Читать далее...

Приветствуем нового пользователя, knefmix

@knefmix, Добро пожаловать на наш форум! Территория возможностей 💥 😉

Зарегистрированный пользователь не может скачивать ресурсы ознакомившись с условиями на странице с повышениями групп или в личном профиле!


Описания платных групп:

API GET /nodes/{id} no permission error

Hi all,

I am having issues trying to get a node id throught the API.

The API Key I am using is for my admin user and have allowed all scopes. No permissions on the admin user or Administrator groups have changed as this is a new install.

Using the api in postman:
1\ I create a new category node - works (y)
2\ I then create a normal forum node with the category as the parent - works (y)
3\ I then try and GET the new forum node using it's id - api/nodes/3

That always fails and returns an...

Read more

Читать далее...

bloblo был заблокирован Pokschubin

bloblo был заблокирован Pokschubin

Начало блокировки: 29.09.2024 в 17:02
Окончание блокировки: Никогда
Причина блокировки: Спам.

Фильтровать

Назад
Верх Низ