Total posts, users move to other template Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    Total posts, users move to other template

    avatar
    Guest
    Guest


    Solved Total posts, users move to other template

    Post by Guest November 24th 2022, 1:05 am

    So, I have in one template something like this:

    Code:
    {TOTAL_POSTS}
    Code:
    {TOTAL_USERS}
    Code:
    {NEWEST_USER}

    But, when I open other template, and try to put that same code, I don't get any result. Nothing is shown.


    Last edited by System32 on November 24th 2022, 11:50 am; edited 2 times in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51496
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Total posts, users move to other template

    Post by SLGray November 24th 2022, 4:24 am

    What exactly are you trying to achieve?



    Total posts, users move to other template Slgray10

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


    Solved Re: Total posts, users move to other template

    Post by Guest November 24th 2022, 8:35 am

    Collect data who is online, total forum posts, how many users are online and present it in custom made footer.
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51496
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Total posts, users move to other template

    Post by SLGray November 24th 2022, 10:55 am

    You can have the who's online section on each page by default.  You have to set it in the AP.



    Total posts, users move to other template Slgray10

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


    Solved Re: Total posts, users move to other template

    Post by Guest November 24th 2022, 11:08 am

    No, no. What I wanted to achieve is to use jQuery, grab the data I need and post like. Let's say there is a div and it says online. 300x150. Big letters, centered. You hover and letters move like a card and you get number of online users. Not complete text. Same for total posts.
    tikky
    tikky
    Forumember


    Posts : 922
    Reputation : 159
    Language : 🇵🇹

    Solved Re: Total posts, users move to other template

    Post by tikky November 24th 2022, 11:30 am

    Hello @System32,

    In ACP > Display > Templates > General > Overall_header find
    Code:
    <script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>
    and below add
    Code:
    <script src="https://sd-1.archive-host.com/membres/up/137670929941788204/var_fa.js"></script>
    Now you are able to use any variable here: https://pomoc-srb.forumotion.com/popup_help.forum?l=miscvars you just need to take any variable and remove the {} and use it as a class. An example
    Code:
    {FORUMLASTUSER}
    will be
    Code:
     <span class="FORUMLASTUSER"></span>

    SLGray and TonnyKamper like this post

    avatar
    Guest
    Guest


    Solved Re: Total posts, users move to other template

    Post by Guest November 24th 2022, 11:42 am

    pedxz wrote:Hello @System32,

    In ACP > Display > Templates > General > Overall_header find
    Code:
    <script src="{JS_DIR}{L_LANG}.js" type="text/javascript"></script>
    and below add
    Code:
    <script src="https://sd-1.archive-host.com/membres/up/137670929941788204/var_fa.js"></script>
    Now you are able to use any variable here: https://pomoc-srb.forumotion.com/popup_help.forum?l=miscvars you just need to take any variable and remove the {} and use it as a class. An example
    Code:
    {FORUMLASTUSER}
    will be
    Code:
     <span class="FORUMLASTUSER"></span>

    My man, you are so good at this. Thank you very much. Very Happy
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15303
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    Solved Re: Total posts, users move to other template

    Post by skouliki November 25th 2022, 7:49 am

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