News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how can members contact admin

Started by simply-bulgaria, July 13, 2009, 06:16:32 PM

Previous topic - Next topic

simply-bulgaria

i have logged in as a member on my forum ,but i can not see anywhere they can contact admin  ????? in  the boards

Kenny01

Go to the admin profile and send pm.

Reflection

Either that, or you could put a "contact admin" button somewhere if you want.
Good "SMF" Portals
Tiny Portal [SMF 1.1.x only]
Simple Portal [SMF 1.1.x and 2.0]


Good "SMF" Theme Sites
SMF Themes [SMF 1.1.x and 2.0]
Dziner Studio [SMF 1.1.x and 2.0]

N3RVE

Simply-bulgaria, do you require any further support?

-[n3rve]
Ralph "[n3rve]" Otowo
Former Marketing Co-ordinator, Simple Machines.
ralph [at] simplemachines [dot] org                       
Quote"Somewhere, something incredible is waiting to be known." - Carl Sagan

Itchigotim

This is what I want to do exactly. How can I make a "Contact Admin" button that sends a pm to the Admin (me)?

I should note that guests can't view profiles, and I want guests to have this permission.
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


a10

Maybe this one: http://custom.simplemachines.org/mods/index.php?mod=377

Won't send a pm, but an email, and using the forum's antispam questions. Been very useful here.
2.0.19, php 8.0.23, MariaDB 10.5.15. Mods: Contact Page, Like Posts, Responsive Curve, Search Focus Dropdown, Add Join Date to Post.

Itchigotim

Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Itchigotim

Just tried it and it messed up my theme. It cut off the whole right side on my blocks. I uninstalled it and back to normal. (I'm going out so I cant leave the forum like this).

I am using a custom theme by the way. Dark Classic by Crip. I forgot to say, 2.07. ;)
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Sir Osis of Liver

Do you want to add a menu button, or just a text link somewhere?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Itchigotim

I tried to add a menu button at the top.

'Contact' => array(
            'title' => $txt['Contact'],
            'href' => $scripturl . '?action=help',
            'show' => true,
            'sub_buttons' => array(
            ),
         ),
         'search' => array(
            'title' => $txt['search'],
            'href' => $scripturl . '?action=search',
            'show' => $context['allow_search'],
            'sub_buttons' => array(
            ),
         ),

I copied code from another button in Sources/Subs.php
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Arantor

Well, that's not going to work unless $txt['Contact'] is defined somewhere - but in any case that literally just has a menu button, it won't magically *do* anything.

Sounds like you kind of want the contact page mod...

Sir Osis of Liver



'contact' => array(
'title' => 'Contact',
'href' => $scripturl . '?action=pm;sa=send;u=1',
'show' => true,
'sub_buttons' => array(
),
),



u=1 requires your user id, which may not be '1'.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor


Sir Osis of Liver

Does op want it to work for guests?  If so, would have to make it an email link.  Otherwise, don't show it to guests -



'show' => !$user_info['is_guest'],


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Doesn't matter. Guests cannot under any circumstances send PMs.

Sir Osis of Liver

No, but if it's set up as a mailto it should work (haven't tried it).
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Arantor

Your change specifically says to direct users to the PM system... doesn't matter what you do with it, trying to direct guests to the action=pm area is *guaranteed* to fail. Guests cannot ever have pm_send permission, it's one of the permissions explicitly enforced as cannot-be-given-to-guests.

Sir Osis of Liver

Topic title is 'how can members contact admin', not guests, so just don't show button to guests.  If you want guests to contact admin -



'href' => 'mailto:[email protected]',



It werks gud!
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Itchigotim

I know that's not going to magically do anything, but I didn't know what to do there. :)

I did try the contact page mod, and it cutoff the whole right side of my forum. i uninstalled it. I am thinking this  is for guests too, but I didn't know about the "no pm's" for guests. So site email it is I guess.
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Sir Osis of Liver

Really isn't a better way to do it.  Even if you managed to diddle the code to allow guests to pm, wouldn't be any way for admin to reply.  Might be a good idea to create a mail forward to use there, if bots pick up the address and become a pia, you can always change it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Itchigotim

Sorry for the late reply. The only reason I'm thinking of guests is if someone for some reason can't validate their account.

Thanks for that line- it's what I was looking for.  :)
Roguepinball: ¡¡ɟooɹ ǝɥʇ uo ǝʇıs ןןɐquıd ʇsǝq ǝɥʇ


Advertisement: