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: 55
Joined: Wed Aug 31, 2016 2:59 pm

Top poster in sidebar

Post by Mixlight » Fri Oct 19, 2018 4:50 am

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: 564
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Top poster in sidebar

Post by GanstaZ » Fri Oct 19, 2018 12:27 pm

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.
"When answer lies in the question,.. question becomes redundant!"

User avatar
Mixlight
Registered User
Posts: 55
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight » Fri Oct 19, 2018 12:36 pm


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

Re: Top poster in sidebar

Post by Mick » Fri Oct 19, 2018 12:53 pm

"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

User avatar
Mixlight
Registered User
Posts: 55
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight » Fri Oct 19, 2018 1:01 pm

but i don't need support from his ext .
I just need a code for top posters ..

User avatar
GanstaZ
Registered User
Posts: 564
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Top poster in sidebar

Post by GanstaZ » 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>
"When answer lies in the question,.. question becomes redundant!"

User avatar
Mixlight
Registered User
Posts: 55
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight » Fri Oct 19, 2018 1:18 pm

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
Jr. Extension Validator
Posts: 14898
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Top poster in sidebar

Post by david63 » 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.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
Mixlight
Registered User
Posts: 55
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight » Fri Oct 19, 2018 1:38 pm

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: 564
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Top poster in sidebar

Post by GanstaZ » 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.
"When answer lies in the question,.. question becomes redundant!"

User avatar
Mixlight
Registered User
Posts: 55
Joined: Wed Aug 31, 2016 2:59 pm

Re: Top poster in sidebar

Post by Mixlight » Sat Oct 20, 2018 2:16 pm

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: 564
Joined: Wed Oct 11, 2017 10:29 pm
Location: Zverse

Re: Top poster in sidebar

Post by GanstaZ » Sat Oct 20, 2018 2:27 pm

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.
"When answer lies in the question,.. question becomes redundant!"

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 2 guests