Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 1 Year, 5 Months, 1 Week ago Who's Online
#1
Solved: 1 Year, 5 Months, 1 Week ago
Does anyone have any ideas how I can move the whos online variable which is this..
{$onlinemembers}

To the footer template? I'm guessing this can be done but a code is needed inside the global.php maybe? If yes I'd appreciate it if anybody could help me out.

Thank you!
Do NOT PM me for support unless I ask you on your support thread.
Reply
#2
Solved: 1 Year, 5 Months, 1 Week ago
Nope it can not be posible due it is hooked into index file and his hooks are only available for that template and not for the footer template, you need to add it globally the code of that var to make it works at your needs.

You can do it with core mods or via plugin.

Otherwise you can use it into index template at your owns.

NOTE: More easy use this plugin.

https://community.mybb.com/mods.php?action=view&pid=937

And add a hook into global_intermediate to the stats and the you can use the var of this plugin and can change his templates to make it at your owns.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
#3
Solved: 1 Year, 5 Months, 1 Week ago
(12-11-2017, 10:48 PM)Whiteneo Wrote: Nope it can not be posible due it is hooked into index file and his hooks are only available for that template and not for the footer template, you need to add it globally the code of that var to make it works at your needs.

You can do it with core mods or via plugin.

Otherwise you can use it into index template at your owns.

NOTE: More easy use this plugin.

https://community.mybb.com/mods.php?action=view&pid=937

And add a hook into global_intermediate to the stats and the you can use the var of this plugin and can change his templates to make it at your owns.

That's for who's online today though 24 hours, I need to move main whos online to the footer, but I don't know the code or var whatever. I've seen it being done before on multiple forums so that's why I'm asking.
Do NOT PM me for support unless I ask you on your support thread.
Reply
#4
Solved: 1 Year, 5 Months, 1 Week ago
Yes that is the fact, you have to modify the code at own needs.

You can take the code and bring it up with a new hook. But if you can not modify this plugin only how did you spect to write the code that's not posible.

Maybe in that forums the users have paid for that mod, or is only a change inside index template as i said at first glance.

Or better you can ask for that forums on how they did it, then you can approach to same think you've asked for. But imo thi is the only way i knew.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
#5
Solved: 1 Year, 5 Months, 1 Week ago
(12-12-2017, 12:47 AM)Whiteneo Wrote: Yes that is the fact, you have to modify the code at own needs.

You can take the code and bring it up with a new hook. But if you can not modify this plugin only how did you spect to write the code that's not posible.

Maybe in that forums the users have paid for that mod, or is only a change inside index template as i said at first glance.

Or better you can ask for that forums on how they did it, then you can approach to same think you've asked for. But imo thi is the only way i knew.

The code for index template do you know? If yes mind sharing it please?
Do NOT PM me for support unless I ask you on your support thread.
Reply
#6
Solved: 1 Year, 5 Months, 1 Week ago
Bump.
Do NOT PM me for support unless I ask you on your support thread.
Reply
#7
Solved: 1 Year, 5 Months, 1 Week ago
Nevermind solved, had to play around with global.php & index.php.
Do NOT PM me for support unless I ask you on your support thread.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)