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.

Total posts, users move to other template

3 posters

Go down

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
avatar
Guest
Guest


Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50755
Reputation : 3484
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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.
avatar
Guest
Guest


Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50755
Reputation : 3484
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

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.
avatar
Guest
Guest


Back to top Go down

Solved Re: Total posts, users move to other template

Post by pedxz 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>
pedxz
pedxz
Forumember

Posts : 737
Reputation : 143
Language : 🇵🇹

View user profile https://www.forumotion.com/create-forum/modernbb

SLGray and TonnyKamper like this post

Back to top Go down

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
avatar
Guest
Guest


Back to top Go down

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
skouliki
skouliki
Manager
Manager

Female Posts : 13318
Reputation : 1585
Language : English,Greek
Location : Greece

View user profile 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