Main Menu
collapse

Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

User Info

Welcome Guest.
Please log in.

Who's Online

  • Dot Guests: 1133
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]


Installation errors? Mod incompatibilities? Upgrade problems? Make your way over to the Install and Upgrade Support board for all your solutions!

Contact admin button?

Started by Itchigo, June 04, 2014, 10:40:04 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Itchigo

I'd like to make a "Contact" admin button for my site. I was going to make an extra button at the top for this, but I decided to do something within the "Forum Staff" block.

while I don't want to give out my site email, I had thought about having the button send a pm to the administrator (me). I want guests to have this privilege too, even though I have it set so guests can't view members profiles.

How do I do this?

AngelinaBelle

Maybe you would like a contact page for your forum.
You can put a button for it in the forum staff block or add it to the main nav menu.

Here is one example of how to do something like this:
http://custom.simplemachines.org/mods/index.php?mod=377

I hope it helps.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Itchigo

Thank you. I was actually directed to that exact mod, which I tried, and it cut off the right side of my forum. The right edge of my middle blocks were the right edge of the site. I had also tried with some success to make a button for it in the top navbar. I got the button to appear, but couldn't get the action.  I tried this in Sources/subs.php.

'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(
            ),
         ),

AngelinaBelle

Did the mod cut off your forum?  Or did your button addition cut off your forum?

If you installed the mod, and it did not add a button to your nav bar, something went wrong.
Either it failed its changes to Subs.php or the theme is ignoring the buttons in Subs.php.


Did you get any errors on install?
http://custom.simplemachines.org/mods/index.php?action=parse;mod=377;attach=218512;smf_version=2.0.7


Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Itchigo

#4
Yes, it cutoff the whole right side of the forum. It did install the button though. ;D

If I could get the "action" right in that code I'd be set. Adding that code gives me a button, but it doesn't do anything because I don't know what to do.

AngelinaBelle

Did you try contacting the mod author? I assume the problem with the mod was that there was something wrong with the button, since it broke every page of the forum. This implies that there was some problem with the text string that goes on the button.  Looking at the install instructions, I cannot figure out what that is, but if you test he mod again on a test forum, you'd be able to look at the html at that point on the page, and probably spot what has gone .

You should be able to keep the action and fix the button after that.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

AngelinaBelle

You are getting slightly different advice at simolemachines.org.
Does the contact page action itself work?

Try the url with ?action=contact and see what happens.

Good lipuck!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Itchigo

Sorry for the late reply. The mod itself works. It just makes the forum cut off (resizes) on the right side. But, I think the mod is for older smf than what I have. I'm going to do the button code, the action line was what I was missing.

The only thing I may have an issue with is if I run out of space and have top do 2 rows of nav buttons. We'll see. Thanks again, you're making a career out of helping me.... 8)

AngelinaBelle

Enjoy!  This is not really so much a simple portal issue as a SimpleMachines issue, so you might get more and better input over in one of the simplemachines coding boards, if the author is not responsive to your questions.
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?

Itchigo

Just to update this I marked it as solved because I got the info I needed at the SMF site. I haven't had time to try it mind you, but I'm pretty sure it's what I need.

Thanks as always.

AngelinaBelle

I'm glad you got the answer you needed!
Please to keep this website running, if you like SimplePortal, make a
one-time subscription. Thank you for your support.

Have you tried the SimplePortal documentation?