The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

my posts

4 posters

Go down

Solved my posts

Post by poesia-verses January 1st 2023, 1:18 pm

https://stihi-podval.forumotion.com/spa/u1

here is such a link from the profile: user messages, how to make this link displayed in the Login widget, of course, the messages of the user who sees this widget when logging in, that is, their avatar, the number of personal accounts, etc.

so that a personal uN is generated at the end of the link
poesia-verses
poesia-verses
Forumember

Male Posts : 522
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: my posts

Post by skouliki January 1st 2023, 3:24 pm

Hello

Have you seen this to a forumotion forum ?
Iam not sure I understand what you want to do
skouliki
skouliki
Manager
Manager

Female Posts : 15133
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: my posts

Post by SLGray January 1st 2023, 11:18 pm

Are you talking about the widget on the portal of the support forum?


staff posts - my posts Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51493
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: my posts

Post by SirLaplace January 1st 2023, 11:28 pm

Hello there,
If I understood correctly, you want to edit a widget to show stat links belonging to person who is logged in currently.
To do such a thing, you can simply add something like this to the main code of the widget;

Code:
<a rel="nofollow" href="/spa/{USERNAME}">Your Messages</a>

Code:
{USERNAME}
part gets the information from the logged in user. So, if you want to give link for messages, you can use /spa/. If you want to give link for topics, you can turn it into /sta/ and so on.

For further editing, I suggest you take a look at this topic as well;
https://help.forumotion.com/t48637-list-of-variables

Hope it helps.
SirLaplace
SirLaplace
Forumember

Male Posts : 50
Reputation : 4
Language : Turkish, English

http://innoctem.forum.st/

skouliki likes this post

Back to top Go down

Solved Re: my posts

Post by poesia-verses January 2nd 2023, 8:46 am

SirLaplace wrote:Hello there,
If I understood correctly, you want to edit a widget to show stat links belonging to person who is logged in currently.
To do such a thing, you can simply add something like this to the main code of the widget;

Code:
<a rel="nofollow" href="/spa/{USERNAME}">Your Messages</a>

Code:
{USERNAME}
part gets the information from the logged in user. So, if you want to give link for messages, you can use /spa/. If you want to give link for topics, you can turn it into /sta/ and so on.

For further editing, I suggest you take a look at this topic as well;
https://help.forumotion.com/t48637-list-of-variables

Hope it helps.

this not job
poesia-verses
poesia-verses
Forumember

Male Posts : 522
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

Back to top Go down

Solved Re: my posts

Post by skouliki January 2nd 2023, 9:31 am

did you try it and it didn't work ?

skouliki
skouliki
Manager
Manager

Female Posts : 15133
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Solved Re: my posts

Post by SirLaplace January 2nd 2023, 12:01 pm

I'm not sure if hitting "dislike" was necessary Razz

I've tried it myself in a dummy forum before suggesting here (ModernBB and Invision as well, though it shouldn't depend on the forum version), it works perfectly fine for me but maybe I misunderstood the question. (It does not show as uN in the link, rather shows the username, but still, it directs to the correct page anyway.)

It looks like none of us understood what you need precisely. Could you give us screenshots of where you want these links to appear? Because maybe we are having communication problems regarding the proper names of the sections. Maybe you meant the toolbar, the navigation bar, a custom widget, or the login pop-up, I'm not entirely sure.

I can also suggest something like this maybe?

Modules > Javascript Codes Management > Create New > Name: Doesn't Matter, Placement: In All the Pages

Code:
(function($) {
    'use strict';

    $(function() {

        if (!_userdata.session_logged_in) return;

        var userId = _userdata.user_id;

        $('#user-msg').attr('href', '/spa/u' + userId);
        $('#user-pst').attr('href', '/sta/u' + userId);

    });
}(jQuery));

This will create a variable for the users ID number. Then we can use it in anywhere we want.
Simply adding something like this;

Code:
<a id="user-msg" href="">link to messages</a>
<a id="user-pst" href="">link to posts</a>

I honestly don't know how or if we can use JS variable directly in HTML link, so that's why I created the link in the JS as well.
Note: ID's I used also doesn't matter as long as HTML matches with JS.



SirLaplace
SirLaplace
Forumember

Male Posts : 50
Reputation : 4
Language : Turkish, English

http://innoctem.forum.st/

skouliki, SarkZKalie, TonnyKamper and poesia-verses like this post

Back to top Go down

Solved Re: my posts

Post by poesia-verses January 3rd 2023, 8:35 am

solved
/
it's a giant script! thank you. it creates a FEED of messages
poesia-verses
poesia-verses
Forumember

Male Posts : 522
Reputation : 20
Language : and small english

https://stihi-podval.forumotion.com/

SirLaplace likes this post

Back to top Go down

Solved Re: my posts

Post by skouliki January 3rd 2023, 9:05 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 15133
Reputation : 1696
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum