SimplePortal

Support => Install and Upgrade => Topic started by: texasman1979 on June 13, 2012, 03:34:55 PM

Title: simple portal and smf without the forum??
Post by: texasman1979 on June 13, 2012, 03:34:55 PM
what im wanting to do for a new site im putting together is use smf security and simple portal pages and use simple portal like a cms.

i wish to not have available the forum and a couple other features and have custom php pages, and the portal front page only.

is there a predefined method of doing this?

if not, what would be the easiest way to accomplish this?
Title: Re: simple portal and smf without the forum??
Post by: Old Fossil on June 13, 2012, 04:58:56 PM
I believe it isn't possible.

Simple Portal is a mod made for smf forums.
Title: Re: simple portal and smf without the forum??
Post by: texasman1979 on June 13, 2012, 06:02:55 PM
yes that, but what im after is not having forum access of any kind.

i know i can remove forum related blocks, and take out the forum related menu items, but im needing to go one step forward and make all forum functionality unavailable and just use the portals front page and custom page making ability.

im wanting smf/simple portal with all forum related things disabled. and basically turn smf/simple portal into a CMS like drupal.

the reason is that i have already worked heavily with the code of smf and simple portal for another site i made, and i am very familiar with how both work programmatically.
Title: Re: simple portal and smf without the forum??
Post by: Fog on June 13, 2012, 09:21:47 PM
You can do it. The forum will always be there but if one where to edit the NAV BAR and changed the link to a page instead of the forum that would work.

You won't make the forum go away per say but instead you make it so thay can't find the forum by clicking on the NAV BAR.

If you need help finding where to edit the NAV BAR just let me know.
Title: Re: simple portal and smf without the forum??
Post by: Old Fossil on June 13, 2012, 09:23:36 PM
The link is related to this topic I believe.

http://www.simplemachines.org/community/index.php?topic=479057.msg3346497;boardseen#new
Title: Re: simple portal and smf without the forum??
Post by: Chen Zhen on June 13, 2012, 11:21:28 PM
@texasman1979,

Yes this is possible with some minor edits.
In order to completely disable the nav bar as Fog suggests you would need to edit the index.template.php file of the template being used (just editing Sources/Subs.php with an empty array will show 1 blank entry in the nav bar.. not what you want).

In order to disable the actual functions from working imo edit the action array in your main index.php file.
Some actions including admin, login & logout will have to remain so you can manage your site.
 
Do you also want the default page header hidden/disabled (forum title, login (default theme), search, news, etc.) leaving only the portal?

Would you like an example using the default theme?
 
Title: Re: simple portal and smf without the forum??
Post by: Fog on June 13, 2012, 11:31:51 PM
Underdog...You see where it says "Forum" on the NAV BAR above.

I'm trying to find where you can edit the name of those buttons along with the url.

I've been there before and it's going to be under the default theme.

Think about this way...how would one change the names of the buttons used in the NAV BAR?
Title: Re: simple portal and smf without the forum??
Post by: Chen Zhen on June 14, 2012, 12:04:50 AM
Underdog...You see where it says "Forum" on the NAV BAR above.

I'm trying to find where you can edit the name of those buttons along with the url.

I've been there before and it's going to be under the default theme.

Think about this way...how would one change the names of the buttons used in the NAV BAR?

Fog,

The actual text that is visible can be edited from within the language files unless you wish to hard code it directly in Sources/Subs.php $buttons array. (ie... 'title' => 'HOME!',)
The action names that load the php file from the Sources folder & execute a function are done in the main index.php file (or added to the same array from an integration hook).

button names:  language file (unless opting to hard code the text in Subs.php file under $buttons['action']['title'])
button names/actions:  Sources/Subs.php, $buttons array .. edit href when changing corresponding action names in index.php file
action names: index.php file (located in main forum archive).. $actionArray contains action -> file, function .. edit action name.
Title: Re: simple portal and smf without the forum??
Post by: Fog on June 14, 2012, 12:34:03 AM
Cool Underdog...that helps

texasman you have an idea that can be done, but don't think about getting rid of the forum code.

Rather how do you create a NAV BAR that shows your pages instead of the forum.
Title: Re: simple portal and smf without the forum??
Post by: movedgoalposts on June 14, 2012, 08:22:40 AM
You can manually add, or edit your nav bar / menu by following this : http://wiki.simplemachines.org/smf/How_do_I_add_buttons_to_SMF_2.0.

Portal pages are simply added as links into the above.

Alternatively there are mods out there which will do some of the legwork, look at the SMF site for customisations such as "menu editor lite or "6 custom buttons" (there are others too).
Title: Re: simple portal and smf without the forum??
Post by: AngelinaBelle on June 14, 2012, 09:53:08 AM
Also -- you might like to see how the blog mods do this stuff.
They actually use boards for storing blog content, but then don't show those boards on the board index.

This might not be exactly what you are after; just getting rid of the "forum" button for everyone but "content providers" might be enough for you.
Title: Re: simple portal and smf without the forum??
Post by: Chen Zhen on June 16, 2012, 11:20:36 PM
texasman1979,

I'm fairly sure I understand what you're after here which involves more than the nav bar which others seem to be fixated on.
You want:

- no nav bar
- no actions less admin, login & logout
- no title up top in the theme (eliminate: title, logo, login/out, search, etc..) ... portal to start at top of page
- all attempted actions (less login/logout because you as admin has to have the option) to be redirected to the same portal page.

Unless you want to create a block for login/logout and/or a block with a link for admin (permission based) you would need to access those actions directly via url with this sort of setup.

Let me know if I am correct as to what you are trying to accomplish.
I can provide an example using the default theme if requested.

ie.
(http://i766.photobucket.com/albums/xx301/askus/portal_truly_standalone-1.jpg)
SimplePortal 2.3.8 © 2008-2024, SimplePortal