Custom Site Pages Download 1.5

This component/theme works with latest OSSN version.
5.0
Indonesian Arsalan Shah 4 years ago

Add a custom page for your website. You may use menu builder component to link those pages to any menu.

Custom Page
Custom Page View

1.4

  • Fixed the issue with OSSN 6.6

1.5

  • Allow you to use style and script tags.
Comments
Indonesian Arsalan Shah Replied 2 years ago

Fixed

au Joel Sullivan Replied 2 years ago

Hey Guys just letting you know that there is no edit or delete button on OSSN 6.0 under settings on the right

Work around: administrator/settings/cpages?mpage=edit&guid=XX
XX repalace with custom page number
Custompage unable to edit on OSSN 6.0

us Roman Lohov Replied 3 years ago

Please add Russian. You are welcome. And change target _bla2nk in english.

<?php
/**
 * Open Source Social Network
 *
 * @packageOpen Source Social Network
 * @author    Open Social Website Core Team <[email protected]>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
$ru = array(
            'admin:cpages' => 'Доп. страницы',
            'cpages:title' => 'Название',
            'cpages:description' => 'Содержимое',
            'cpages:fillfields' => 'Пожалуйста, заполните все поля',
            'cpages:page:added' => 'Страница была создана',
            'cpages:page:add:failed' => 'Страница не может быть добавлена',
            'cpages:edit' => 'Редактировать',
            'cpages:view' => 'Посмотреть',
            'cpages:delete' => 'Удалить',
            'cpages:settings' => 'Дополнительные страницы',
            'cpages:settings:title' => 'Настройки',
            'cpages:invalid:page' => 'Неверная страница',
            'cpages:page:saved' => 'Страница была сохранена',
            'cpages:page:save:failed' => 'Невозможно сохранить страницу',
            'cpages:page:deleted' => 'Страница была удалена',
            'cpages:page:delete:failed' => 'Невозможно удалить страницу',
            'cpages:addnew' => 'Добавить Новую Страницу',
            'cpages:pageurl' => 'URL Страницы',
            'cpages:menubuilder' => 'Вы можете использовать компонент menubuilder для ссылки на страницу в любом меню вашего сайта. <a href="https://www.opensource-socialnetwork.org/component/view/3377/menubuilder" target="_blank"><strong>Посмотреть MenuBuilder</strong></a>',
);
ossn_register_languages('ru', $ru);
gb JACK AMPERES Replied 4 years ago

@ ~Z~ Man

Thanks i will see what i can do with the view.php file.

German Michael Zülsdorff Replied 4 years ago

@James
Ah, saw your screenshot. Well, the only change without hurting stuff is to replace 'col-md-11' with 'col-md-12' in view.php of the component. This will result in a little more righthand space.

Since the basic structure of any theme looks like

<div>
   <div>
       <div>
       </div>
   </div>
</div>

it makes sense that inner divs shouldn't have more width than outer ones, because otherwise some unwanted overlapping will start. Keeping with this rule, the browser itself will take care of scaling pics, doing linebreaks, etc. depending on your current screen width.

You may in fact override the 'col-md-11' with a construct like

<style>
@media only screen and (min-width: 1400px) {
    .packer_hacker_style {
        margin-left: -9%;
        width: unset;
    }
}
</style>
<div class="packer_hacker_style">

but you'll break any browser's self adjusting that way, and need to keep track of sreenwidths yourself by implementing your own rules as shown.

That said, the only clean solution would be to develop a different theme taking more care about wider screens right from the beginning.

gb JACK AMPERES Replied 4 years ago

oh hey there, sorry for late reply, and my description was a little lacking .Iit looks fine on my smaller screen with my laptop, but i have a much larger spare screen. can we set the page to stretch 100% for larger screens.

here's a visual
https://i.imgur.com/EyAeSIu.png

as you see there is left and right show unused space. in this custom page i'm using a iframe with 100% width. im thinking purely from an aesthetic point of view . that it would just look better if we could control the width manually just for custom pages .

keep up the good work. ive been impatient in the past about ossn. but really its awesome. ;)

German Michael Zülsdorff Replied 4 years ago

@James,

it's not quite clear what you want to achieve? These custom pages already have the maximium width (same as About-, Terms- pages).

Please provide a screenshot showing where you want to get that 'extra' space.

gb JACK AMPERES Replied 4 years ago

awesome , just one of the things i needed, however id like to be able to increase the width of the custom page with out effecting width of main site pages, any suggestions?

gb Steven Downer Replied 4 years ago

Amending the Private Network array with the applicable page(s) created with this component seems to have done the trick.

Custom site pages can now be added as a footer link without the user being logged in.

gb Steven Downer Replied 4 years ago

@Arsalan,

the component works quite well but I have a question.

We would like to place one of the Custom pages as an "Introduction/help/guide" for users in the FOOTER, after the "About, T&Cs and Privacy" site pages. Those pages can be viewed without the user actually logging in.

If we wish to place our "help" page, created with the Custom Site Page component, in the Footer, using Menu Builder, so that Users can see the help page before they register/login, then OSSN reports "You are required to login before viewing that page", as we are also using Private Network.

I am not asking you for coding instructions, but merely guidance as to if this Custom page can be placed in the Footer whilst private Network is installed so that all users can see it it they are logged in or not, and where do I look, which component would hold this, etc, so i can fix it myself. I have looked at SITE PAGES, FOOTER LINKS(although not being used) and I cannot find a way to show a Custom page in the footer if private network is installed and the user is not logged in, as at present, the only way to see a custom page in the footer is if the user is logged in.

Any guidance on this would be appreciated.

Thanks

Component

Developer: Arsalan
License ossnv3
Type: Site admin
Requires Ossn Version : 5.0
Latest Version: 1.5
Last Updated 1 month ago
Repository Url View Repository

Versions