? ? Pending

User tests: Successful: Unsuccessful:

avatar rjharishabh
rjharishabh
28 Mar 2021

Pull Request for Issue #32909.

Testing Instructions

Enable Content - Vote plugin with Bottom option selected
Enable Voting in Article options
Visit an article

Actual result BEFORE applying this Pull Request

content then pagination then voting

Expected result AFTER applying this Pull Request

content then voting then pagination

ppp

Documentation Changes Required

No

avatar rjharishabh rjharishabh - open - 28 Mar 2021
avatar rjharishabh rjharishabh - change - 28 Mar 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Mar 2021
Category Front End com_content
avatar rjharishabh rjharishabh - change - 28 Mar 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 28 Mar 2021
avatar rjharishabh rjharishabh - change - 28 Mar 2021
Title
Pagination set to bottom after voting
[4.0] Pagination set to bottom after voting
avatar rjharishabh rjharishabh - edited - 28 Mar 2021
avatar rjharishabh
rjharishabh - comment - 29 Mar 2021

@PhilETaylor please test this PR

avatar PhilETaylor PhilETaylor - test_item - 29 Mar 2021 - Tested successfully
avatar PhilETaylor
PhilETaylor - comment - 29 Mar 2021

I have tested this item successfully on 0e1f307

much better - thanks


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32914.

avatar rjharishabh
rjharishabh - comment - 29 Mar 2021

@PhilETaylor Thnx for testing

avatar sandramay0905
sandramay0905 - comment - 29 Mar 2021

@SharkyKZ can i ask you please why you sometimes give a "thumps-down" without a comment? i'm interested about reasons for thumps-down but without a word its for me a strange behaviour.

avatar rjharishabh
rjharishabh - comment - 29 Mar 2021

@SharkyKZ can i ask you please why you sometimes give a "thumps-down" without a comment? i'm interested about reasons for thumps-down but without a word its for me a strange behaviour.

same question @SharkyKZ

avatar PhilETaylor
PhilETaylor - comment - 29 Mar 2021

He does it a lot, and never answers why :-(

avatar rjharishabh
rjharishabh - comment - 29 Mar 2021

Please test this PR @ceford

avatar ceford ceford - test_item - 29 Mar 2021 - Tested successfully
avatar ceford
ceford - comment - 29 Mar 2021

I have tested this item successfully on 0e1f307

I had to enable the Vote plugin and position it below - then the PR works as described and it is clearly more logical for Vote to appear above Next/Previous than below.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32914.

avatar rjharishabh
rjharishabh - comment - 29 Mar 2021

Thnx for testing

avatar rjharishabh rjharishabh - change - 29 Mar 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 29 Mar 2021
avatar Quy Quy - change - 29 Mar 2021
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 29 Mar 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32914.

avatar Quy Quy - change - 29 Mar 2021
Status Ready to Commit Pending
avatar Quy
Quy - comment - 29 Mar 2021

I assume by moving it that it is no longer afterDisplayContent.

avatar rjharishabh
rjharishabh - comment - 29 Mar 2021

I assume by moving it that it is no longer afterDisplayContent.

I think it's related to voting

avatar rjharishabh rjharishabh - change - 30 Mar 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 30 Mar 2021
avatar rjharishabh
rjharishabh - comment - 31 Mar 2021

@Quy
is there anything that I have to change

avatar infograf768
infograf768 - comment - 1 Apr 2021

There is a reason @SharkyKZ thumbed down... Just add an image in the article and look at the stars placement.

Before patch

Screen Shot 2021-04-01 at 12 16 49

After patch

Screen Shot 2021-04-01 at 12 10 25

avatar PhilETaylor
PhilETaylor - comment - 1 Apr 2021

There is a reason @SharkyKZ thumbed down...

Trust me there was not... he just went to all my PR's and did it. its obviously personal. He did it to a load of other PRs within seconds too.

Just add an image in the article and look at the stars placement.

This is unrelated.All the PR did was move the stars from after the pagination (which is completely the wrong place for it) to above the pagination. If then the css needs tweaking at a template level it should be.

CSS needs tweaking for the size of the vote select too.

avatar joomdonation
joomdonation - comment - 1 Apr 2021

Trust me there was not... he just went to all my PR's and did it. its obviously personal. He did it to a load of other PRs within seconds too.

I don't think so. I don't know why he is not happy with Joomla! now but from what I see, most of the time, @SharkyKZ is usually right with his thumb down.

avatar PhilETaylor
PhilETaylor - comment - 1 Apr 2021

Well if he cannot be bothered to give feedback then I'll just ignore the thumbs down. They are totally unhelpful.

avatar joomdonation
joomdonation - comment - 1 Apr 2021

If I get his thumb down for my PR, I would look at my code again to see if I could make any mistake :D.

avatar rjharishabh
rjharishabh - comment - 1 Apr 2021

He should be given some feedback on how to improve

avatar infograf768
infograf768 - comment - 1 Apr 2021

All the PR did was move the stars from after the pagination (which is completely the wrong place for it) to above the pagination. If then the css needs tweaking at a template level it should be.

So be it, but in the same PR. It may also need to insert the code into a div.

avatar PhilETaylor
PhilETaylor - comment - 1 Apr 2021

No worries - Im not invested in this, I just reported it as a bug, which it clearly was. Im trying to work on the bigger issues this week ;)

avatar rjharishabh
rjharishabh - comment - 1 Apr 2021

@PhilETaylor @infograf768
no problem, I am working on it, I have some other stuff to complete then I will look into this later

avatar rjharishabh rjharishabh - change - 14 Apr 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 14 Apr 2021
Category Front End com_content Front End com_content Plugins
avatar rjharishabh rjharishabh - change - 14 Apr 2021
Labels Added: ?
Removed: ?
avatar rjharishabh rjharishabh - change - 14 Apr 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 14 Apr 2021
avatar rjharishabh rjharishabh - change - 14 Apr 2021
The description was changed
avatar rjharishabh rjharishabh - edited - 14 Apr 2021
avatar rjharishabh
rjharishabh - comment - 14 Apr 2021

@infograf768 @Quy
please test

It's looking better now.

avatar rjharishabh rjharishabh - change - 16 Apr 2021
Labels Added: ?
Removed: ?
avatar sandramay0905 sandramay0905 - test_item - 16 Apr 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 16 Apr 2021

I have tested this item successfully on 9c699ae

image


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32914.
avatar infograf768
infograf768 - comment - 16 Apr 2021

This needs some margin/padding when no images, displayed in blog and placed at bottom.

Screen Shot 2021-04-16 at 10 15 15

avatar sandramay0905
sandramay0905 - comment - 16 Apr 2021

@infograf768 i had made an issue #33164

avatar rjharishabh
rjharishabh - comment - 16 Apr 2021

when I am testing the output is this

page

avatar sandramay0905
sandramay0905 - comment - 16 Apr 2021

@rjharishabh you have to look at the blog-menu, not the article-view.

avatar sandewt
sandewt - comment - 16 Apr 2021

when I am testing the output is this

Are you using the latest version of J4? In the last few days several changes have been merged to the vote plugin !

avatar rjharishabh
rjharishabh - comment - 16 Apr 2021

when I am testing the output is this

Are you using the latest version of J4? In the last few days, several changes have been merged to the vote plugin!

This branch is not updated.
How can I update this branch with the latest changes? Please help @sandewt

avatar sandewt
sandewt - comment - 16 Apr 2021

How can I update this branch with the latest changes? Please help @sandewt

See: https://docs.joomla.org/J4.x:Setting_Up_Your_Local_Environment

  • Install: composer, node.js and git

In Windows, I use the cmd prompt to clone the latest Joomla 4 version.

git clone https://github.com/joomla/joomla-cms.git -b 4.0-dev /xampp/htdocs/bugtesting/joomla

I would like to hear if it could be simpler !?

avatar rjharishabh
rjharishabh - comment - 16 Apr 2021

the 4.0-dev branch is updated with new changes
but the PR branch pagination is not updated
So how can I pagination branch with the new changes?

avatar drmenzelit
drmenzelit - comment - 16 Apr 2021

I don't think this PR is correct: changing the position of afterDisplayContent has effects on all plugins using this event. For me the "pagination" = navigation between articles is part of the content, so afterDisplayContent should be below the pagination.

avatar brianteeman
brianteeman - comment - 16 Apr 2021

I don't think this PR is correct: changing the position of afterDisplayContent has effects on all plugins using this event. For me the "pagination" = navigation between articles is part of the content, so afterDisplayContent should be below the pagination.

Correct. Changing it here will change every plugin using afterDisplayContent

avatar PhilETaylor
PhilETaylor - comment - 16 Apr 2021

The implementation in this PR of the fix for #32909 may be incorrect, but Im sure we can all agree that the voting should be before the pagination and not after it like it is currently as per the screenshots here #32909

avatar sandramay0905
sandramay0905 - comment - 16 Apr 2021

the voting should be before the pagination

agree

avatar drmenzelit
drmenzelit - comment - 16 Apr 2021

The implementation in this PR of the fix for #32909 may be incorrect, but Im sure we can all agree that the voting should be before the pagination and not after it like it is currently as per the screenshots here #32909

I agree with that, but we have to find another way than moving the afterDisplayContent

avatar rjharishabh
rjharishabh - comment - 16 Apr 2021

The implementation in this PR of the fix for #32909 may be incorrect, but Im sure we can all agree that the voting should be before the pagination and not after it like it is currently as per the screenshots here #32909

I agree with that, but we have to find another way than moving the afterDisplayContent

Yes, I agree

avatar rjharishabh rjharishabh - change - 17 Apr 2021
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2021-04-17 13:26:51
Closed_By rjharishabh
Labels Added: ?
Removed: ?
avatar rjharishabh rjharishabh - close - 17 Apr 2021
avatar PhilETaylor
PhilETaylor - comment - 17 Apr 2021

Has anyone looked at joomla 3 and worked out how it's done there?

avatar sandewt
sandewt - comment - 17 Apr 2021

Has anyone looked at joomla 3 and worked out how it's done there?

The same issue, see image.

issue_vote

avatar sandewt
sandewt - comment - 17 Apr 2021

I don't think this PR is correct: changing the position of afterDisplayContent has effects on all plugins using this event. For me the "pagination" = navigation between articles is part of the content, so afterDisplayContent should be below the pagination.

What do you think of this minor adjustment? afterDisplayContent direct before pagination

Now

if (!empty($this->item->pagination) && $this->item->paginationposition && $this->item->paginationrelative) :
	echo $this->item->pagination;
?>
<?php endif; ?>
<?php // Content is generated by content plugin event "onContentAfterDisplay" ?>
<?php echo $this->item->event->afterDisplayContent; ?>

Proposal

<?php // Content is generated by content plugin event "onContentAfterDisplay" ?>
<?php echo $this->item->event->afterDisplayContent; ?>
<?php
if (!empty($this->item->pagination) && $this->item->paginationposition && $this->item->paginationrelative) :
	echo $this->item->pagination;
?>
avatar rjharishabh
rjharishabh - comment - 18 Apr 2021

@sandewt This PR is the same as your proposal.

avatar sandewt
sandewt - comment - 18 Apr 2021

@sandewt This PR is the same as your proposal.

Yes, but the voting (content plugin) is loaded immediately before the pagination. So, no other actions are happening in the meantime. Or am I wrong?

[EDIT] Oops, I cannot reproduce my suggestion ?

avatar sandewt
sandewt - comment - 23 Apr 2021

This needs some margin/padding when no images, displayed in blog and placed at bottom.

#33164 (comment)

Add a Comment

Login with GitHub to post a comment