Page 1 of 1

Top poster in sidebar

Posted: Fri Oct 19, 2018 4:50 am
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 .

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 12:27 pm
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.

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 12:36 pm
by Mixlight

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 12:53 pm
by Mick

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 1:01 pm
by Mixlight
but i don't need support from his ext .
I just need a code for top posters ..

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 1:10 pm
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>

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 1:18 pm
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

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 1:34 pm
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.

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 1:38 pm
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

Re: Top poster in sidebar

Posted: Fri Oct 19, 2018 2:16 pm
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.

Re: Top poster in sidebar

Posted: Sat Oct 20, 2018 2:16 pm
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 ?

Re: Top poster in sidebar

Posted: Sat Oct 20, 2018 2:27 pm
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.