Page 1 of 2

Send private message in thread view on mobile

Posted: Thu Feb 15, 2018 2:41 pm
by rinu
On desktop, there is a contact button with 3 dots next to the post. When I click on it, I get the option to send a private message or email.
On mobile however, there is no such option. I need that button on mobile as well.

I recently upgraded that forum from 3.0 to 3.2.2. No plugins or themes are installed, no old source code survived.

Re: Send private message in thread view on mobile

Posted: Thu Feb 15, 2018 3:00 pm
by stevemaury
That is by design, it appears. If you want to send a post author a PM, you can click the username and from the resulting profile there is a link to PM that user.

It is true that this method does not quote the post as the ... icon does. But you could use the Quote icon, copy the result and paste it into the email. I realize this is rather awkward if you need the post quoted in the PM.

I am not much of a styles guy, but all thiss appears to happen HERE in viewtopic_body.html:

Code: Select all

<!-- EVENT viewtopic_body_contact_fields_before -->
		<!-- IF not S_IS_BOT and .postrow.contact -->
			<dd class="profile-contact">
				<strong>{L_CONTACT}{L_COLON}</strong>
				<div class="dropdown-container dropdown-left">
					<a href="#" class="dropdown-trigger" title="{postrow.CONTACT_USER}">
						<i class="icon fa-commenting-o fa-fw icon-lg" aria-hidden="true"></i><span class="sr-only">{postrow.CONTACT_USER}</span>
					</a>
					<div class="dropdown">
						<div class="pointer"><div class="pointer-inner"></div></div>
						<div class="dropdown-contents contact-icons">
							<!-- BEGIN contact -->
								{% set REMAINDER = postrow.contact.S_ROW_COUNT % 4 %}
								<!-- DEFINE $S_LAST_CELL = ((REMAINDER eq 3) or (postrow.contact.S_LAST_ROW and postrow.contact.S_NUM_ROWS < 4)) -->
								<!-- IF REMAINDER eq 0 -->
									<div>
								<!-- ENDIF -->
									<a href="<!-- IF postrow.contact.U_CONTACT -->{postrow.contact.U_CONTACT}<!-- ELSE -->{postrow.U_POST_AUTHOR}<!-- ENDIF -->" title="{postrow.contact.NAME}"<!-- IF $S_LAST_CELL --> class="last-cell"<!-- ENDIF --><!-- IF postrow.contact.ID eq 'jabber' --> onclick="popup(this.href, 750, 320); return false;"<!-- ENDIF -->>
										<span class="contact-icon {postrow.contact.ID}-icon">{postrow.contact.NAME}</span>
									</a>
								<!-- IF REMAINDER eq 3 or postrow.contact.S_LAST_ROW -->
									</div>
								<!-- ENDIF -->
							<!-- END contact -->
Just as a wild guess, try changing "true" to "false" and then purge the cache and test. If that doesn't work, post in the Styles Support & Discussion forum and see if someone will give you the right code hack to show the icon in mobile mode. I assume the style is prosilver?

Send private message in thread view on mobile

Posted: Thu Feb 15, 2018 3:07 pm
by rinu
The style is prosilver.

Re: Send private message in thread view on mobile

Posted: Thu Feb 15, 2018 4:05 pm
by canonknipser

Re: Send private message in thread view on mobile

Posted: Thu Feb 15, 2018 5:58 pm
by rinu
So the comment on that issue is saying UX on mobile doesn't matter? Why even bother with responsive then? That is such bs.

I'll try some hack solution when I find more time. I don't know phpBB internals but I'm a PHP developer, I'll figure something out. If something works, I'll post it here. But this should really be solved in a future version of phpBB.

Re: Send private message in thread view on mobile

Posted: Fri Feb 16, 2018 7:45 am
by Hanakin
for clarity, the issue is that prosilver has poor design and codebase due the how old it is. We can not really handle a lot of the necessary changes to mobile with this theme. That is why we are creating a new theme to replace it eventually, but it's still a long way out. As stevemaury pointed out you can click the username for now, as senky pointed out in the tracker comments mobile design is not something that is easily accomplished. Most of the time you have to way your options and hide a lot of features due to the small screen space. In the new theme you would still click the username but instead of going to a new screen it will give you a popup menu with a pm button amongst other things.

Re: Send private message in thread view on mobile

Posted: Sat Feb 24, 2018 3:19 pm
by Mannix_
I've manage to make it work by doing this :

Code: Select all

@media (max-width:700px){
	.profile-contact {
	display: inline-block !important;
    	margin-left: 0 !important;
	position:absolute;
	}
	.profile-contact .contact-icons a {
    	padding: 5px;
}
}
It might not be the optimal way to do it but it works :)

Re: Send private message in thread view on mobile

Posted: Mon Feb 26, 2018 1:30 pm
by Hanakin
Mannix_ wrote: Sat Feb 24, 2018 3:19 pm I've manage to make it work by doing this :

Code: Select all

@media (max-width:700px){
	.profile-contact {
	display: inline-block !important;
    	margin-left: 0 !important;
	position:absolute;
	}
	.profile-contact .contact-icons a {
    	padding: 5px;
}
}
It might not be the optimal way to do it but it works :)
Can you post a screenshot

Re: Send private message in thread view on mobile

Posted: Mon Feb 26, 2018 4:01 pm
by Mannix_
Hanakin wrote: Mon Feb 26, 2018 1:30 pm

Can you post a screenshot
sure
2018-02-26_16h59_24.png

Re: Send private message in thread view on mobile

Posted: Tue Feb 27, 2018 8:39 am
by rinu
That seems to work really well. But I couldn't find any way to force the CSS version to change, everyone needs to clear their browser's cache to make it work for them.

Re: Send private message in thread view on mobile

Posted: Tue Feb 27, 2018 10:10 am
by david63
rinu wrote: Tue Feb 27, 2018 8:39 am But I couldn't find any way to force the CSS version to change
In your stylesheet.css file change the version number for the file that you have changed

Re: Send private message in thread view on mobile

Posted: Wed Feb 28, 2018 10:02 am
by rinu
david63 wrote: Tue Feb 27, 2018 10:10 am
rinu wrote: Tue Feb 27, 2018 8:39 am But I couldn't find any way to force the CSS version to change
In your stylesheet.css file change the version number for the file that you have changed
And then what? stylesheet.css is also cached in the browser.

Re: Send private message in thread view on mobile

Posted: Wed Feb 28, 2018 10:12 am
by rinu
rinu wrote: Wed Feb 28, 2018 10:02 am And then what? stylesheet.css is also cached in the browser.
I found the tiny cache purge button in ACP > General.

Re: Send private message in thread view on mobile

Posted: Wed Feb 28, 2018 10:33 am
by david63
rinu wrote: Wed Feb 28, 2018 10:02 am stylesheet.css is also cached in the browser.
Not when you add a version - it forces a reload of the css

Re: Send private message in thread view on mobile

Posted: Wed Feb 28, 2018 11:44 am
by Hanakin
hmm that's also in 3.2 which will never happen, it would have to be in 3.3 so would need to test it there, also not sure i like it underneath might play around to see if it could be floated to the right and hide the word contact