Top poster in sidebar

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
User avatar
Mixlight
Registered User
Posts: 86
Joined: Wed Aug 31, 2016 2:59 pm

Top poster in sidebar

Post by Mixlight »

Well i've tried to use that "most active" from Top five ext. but it shows me this :

Code: Select all

{top_five_active.USERNAME_FULL}
  {L_POSTS}{L_COLON} {top_five_active.POSTS}
i have the sidebar but i need the code from top poster .
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Top poster in sidebar

Post by GanstaZ »

What is top 5 extension or have you asked in that extensions support forum for help? Post a link to that extension and we can take a look.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
Mixlight
Registered User
Posts: 86
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight »

User avatar
Mick
Support Team Member
Support Team Member
Posts: 26505
Joined: Fri Aug 29, 2008 9:49 am

Re: Top poster in sidebar

Post by Mick »

  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Mixlight
Registered User
Posts: 86
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight »

but i don't need support from his ext .
I just need a code for top posters ..
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Top poster in sidebar

Post by GanstaZ »

You may need to change html tags or css + this will only work on index page.

Code: Select all

	<ul>
	    <!-- BEGIN top_five_active -->
		<li>
		    <span class="meta">{top_five_active.USERNAME_FULL}<span><br />&nbsp;&nbsp;{L_POSTS}{L_COLON} <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a></span></span>
		</li>
            <!-- END top_five_active -->
	</ul>
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
Mixlight
Registered User
Posts: 86
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight »

GanstaZ wrote: Fri Oct 19, 2018 1:10 pm You may need to change html tags or css + this will only work on index page.

Code: Select all

	<ul>
	    <!-- BEGIN top_five_active -->
		<li>
		    <span class="meta">{top_five_active.USERNAME_FULL}<span><br />&nbsp;&nbsp;{L_POSTS}{L_COLON} <a href="{top_five_active.S_SEARCH_ACTION}">{top_five_active.POSTS}</a></span></span>
		</li>
            <!-- END top_five_active -->
	</ul>
Image
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Top poster in sidebar

Post by david63 »

You cannot just add some code from an extension into another file - it does not work like that. You will need to install the extension and then use whatever event there is in your sidebar to create a template html event file for your sidebar.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
Mixlight
Registered User
Posts: 86
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight »

david63 wrote: Fri Oct 19, 2018 1:34 pm You cannot just add some code from an extension into another file - it does not work like that. You will need to install the extension and then use whatever event there is in your sidebar to create a template html event file for your sidebar.
i have the ext already installed and the theme has a CP where has the costum html for sidebar
Image
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Top poster in sidebar

Post by GanstaZ »

Thanks to that cp it doesn't work. I just enabled that extension on my test environment and it's working without problems.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
User avatar
Mixlight
Registered User
Posts: 86
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight »

GanstaZ wrote: Fri Oct 19, 2018 2:16 pm Thanks to that cp it doesn't work. I just enabled that extension on my test environment and it's working without problems.
CAn you tell me where can i put it to work ?
User avatar
GanstaZ
Registered User
Posts: 1187
Joined: Wed Oct 11, 2017 10:29 pm
Location: GZOverse

Re: Top poster in sidebar

Post by GanstaZ »

If that extension is enabled, it will be displayed at top or bottom. You can use those template vars anywhere on index, but no need to duplicate it and move it to side. If one wants to make it work anywhere (on any page, then event should be changed to core.page_header or core.page_header_after). To move it to sidebar, template events will need a change.
Usus est magister optimus! phpBB pre-Triton & latest php environment.
When answer lies in the question, question becomes redundant!
Post Reply

Return to “phpBB Custom Coding”