Phpbb 3.2 prosilver contact field

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
Iulyyy
Registered User
Posts: 30
Joined: Fri Feb 09, 2018 1:53 pm

Phpbb 3.2 prosilver contact field

Post by Iulyyy » Tue Mar 06, 2018 1:35 pm

Hello !

This is the code in viewtopic_body.html

Code: Select all

<!-- IF not S_IS_BOT and .postrow.contact -->
			<dd class="profile-contact">
				<b>{L_CONTACT}{L_COLON}</b>
				<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 -->
						</div>
					</div>
				</div>
			</dd>
		<!-- ENDIF -->
And when I click the contact icon I see like this --> https://i.imgur.com/JDzeewa.png

I want when I click the icon from the contact field to directly go into send private message , i don't want options like "send email" or anything else..
just send private message (with quote of post as well).

Does anyone knows what I need to change?

User avatar
david63
Jr. Extension Validator
Posts: 13891
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Phpbb 3.2 prosilver contact field

Post by david63 » Tue Mar 06, 2018 4:09 pm

And what if a user has turned off in their UCP other users sending PMs?
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

Iulyyy
Registered User
Posts: 30
Joined: Fri Feb 09, 2018 1:53 pm

Re: Phpbb 3.2 prosilver contact field

Post by Iulyyy » Tue Mar 06, 2018 5:00 pm

david63 wrote:
Tue Mar 06, 2018 4:09 pm
And what if a user has turned off in their UCP other users sending PMs?
Isn't a problem.
Will contact the other user posting on spam using a mention ;)
Or don't contact.. is not a problem
You know how to do it ?

User avatar
warmweer
Registered User
Posts: 963
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Belt ... well actually Belgium

Re: Phpbb 3.2 prosilver contact field

Post by warmweer » Wed Mar 07, 2018 9:55 am

Iulyyy wrote:
Tue Mar 06, 2018 1:35 pm

I want when I click the icon from the contact field to directly go into send private message , 1. i don't want options like "send email" or anything else..
just send private message (2. with quote of post as well).
1. Just turn off e-mails for users.
2. will need an extension
A bug is a feature that hasn't made it to the manual (yet)

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 3 guests