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 login or register.

* Who's Online

  • Dot Guests: 441
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* 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]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: Contact admin button?  (Read 6303 times)

0 Members and 1 Guest are viewing this topic.

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Contact admin button?
« on: June 04, 2014, 10:40:04 PM »
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?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Contact admin button?
« Reply #1 on: June 05, 2014, 12:13:22 PM »
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?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Contact admin button?
« Reply #2 on: June 05, 2014, 01:35:47 PM »
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(
            ),
         ),

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Contact admin button?
« Reply #3 on: June 05, 2014, 01:56:30 PM »
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?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Contact admin button?
« Reply #4 on: June 07, 2014, 09:34:14 PM »
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.
« Last Edit: June 07, 2014, 09:41:23 PM by Itchigo »

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Contact admin button?
« Reply #5 on: June 09, 2014, 02:11:00 PM »
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?

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Contact admin button?
« Reply #6 on: June 09, 2014, 02:14:49 PM »
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?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Contact admin button?
« Reply #7 on: June 11, 2014, 05:56:22 PM »
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)

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Contact admin button?
« Reply #8 on: June 12, 2014, 04:59:28 PM »
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?

Offline Itchigo

  • Semi Newbie
  • *
  • Posts: 25
  • SMF Version: 2.0.7
  • SP Version: 2.3.5
Re: Contact admin button?
« Reply #9 on: June 18, 2014, 10:37:12 AM »
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.

Offline AngelinaBelle

  • Comrade
  • *
  • Posts: 4870
  • Gender: Female
  • SMF Version: 2 RC3
  • SP Version: 2.3.2
Re: Contact admin button?
« Reply #10 on: June 18, 2014, 03:22:18 PM »
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?