Skip to content

Display bug: Tag changes in HTML template#85

Closed
attoPascal wants to merge 1 commit into
RobertHeim:masterfrom
attoPascal:background-bug
Closed

Display bug: Tag changes in HTML template#85
attoPascal wants to merge 1 commit into
RobertHeim:masterfrom
attoPascal:background-bug

Conversation

@attoPascal

@attoPascal attoPascal commented Sep 26, 2016

Copy link
Copy Markdown

I compared the HTML structure of your show_tag template and the standard phpBB topic view and found some minor differences. So I made the appropriate changes to the template, which fixed the display bug in the we_universal theme.

Compare https://www.phpbb.com/community/viewtopic.php?f=456&t=2263616&start=240#p14476431

I suppose that with some further tweaks the CSS workaround from #84 shouldn't be needed anymore.

@attoPascal attoPascal changed the title Background bug: Tag changes in HTML template Display bug: Tag changes in HTML template Sep 26, 2016
<!-- EVENT viewforum_body_topic_row_before -->
<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
<!-- EVENT viewforum_body_topic_row_prepend -->
<dl class="row-item {topicrow.TOPIC_IMG_STYLE}">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the source of your comparison? As on the official phpbb 3.2.x branch [1], the dl tag has the class="row-item"
[1] https://github.com/phpbb/phpbb/blob/3.2.x/phpBB/styles/prosilver/template/viewforum_body.html#L158

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, it appears to be a quirk of the we_universal theme: https://github.com/melvingb/we_universal/blob/master/template/viewforum_body.html#L157

Still, it's one of the most popular ones, pity that it doesn't work out of the box.


<!-- EVENT topiclist_row_append -->
</div>
</dt>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<li class="row<!-- IF topicrow.S_ROW_COUNT is even --> bg1<!-- ELSE --> bg2<!-- ENDIF --><!-- IF topicrow.S_POST_GLOBAL --> global-announce<!-- ENDIF --><!-- IF topicrow.S_POST_ANNOUNCE --> announce<!-- ENDIF --><!-- IF topicrow.S_POST_STICKY --> sticky<!-- ENDIF --><!-- IF topicrow.S_TOPIC_REPORTED --> reported<!-- ENDIF -->">
<!-- EVENT viewforum_body_topic_row_prepend -->
<dl class="row-item {topicrow.TOPIC_IMG_STYLE}">
<dt<!-- IF topicrow.TOPIC_ICON_IMG and S_TOPIC_ICONS --> style="background-image: url({T_ICONS_PATH}{topicrow.TOPIC_ICON_IMG}); background-repeat: no-repeat;"<!-- ENDIF --> title="{topicrow.TOPIC_FOLDER_IMG_ALT}">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants