TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

April 18, 2024, 05:27:32 PM

Login with username, password and session length
Members
  • Total Members: 3,885
  • Latest: Growner
Stats
  • Total Posts: 195,164
  • Total Topics: 21,219
  • Online today: 203
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 177
  • Total: 177

Pages

Started by jernatety, May 20, 2018, 02:44:32 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jernatety

Can you make pages with tinyportal?

tino

Quote from: jernatety on May 20, 2018, 02:44:32 PM
Can you make pages with tinyportal?


Short answer is yes, I think you just create a article and then style it how you want. lurkalot or @rjen know more about that feature than me and will be able to guide you more.

The docs site might help; https://www.tinyportal.net/docs/index.php

I think what lurkalot does on his site is creates a article then links to it with the advanced menu modification. The side panel on the docs site is created with the TinyPortal menu manager.

jernatety

Quote from: tino on May 20, 2018, 03:13:43 PM
Quote from: jernatety on May 20, 2018, 02:44:32 PM
Can you make pages with tinyportal?


Short answer is yes, I think you just create a article and then style it how you want. lurkalot or @rjen know more about that feature than me and will be able to guide you more.

The docs site might help; https://www.tinyportal.net/docs/index.php

I think what lurkalot does on his site is creates a article then links to it with the advanced menu modification. The side panel on the docs site is created with the TinyPortal menu manager.

I just want to create pages. I'm trying to figure out the articles thing and it's driving me nuts. I can't figure out where the page goes when I'm done editing. I don't know how to view the actual finished page.

tino

#3
You need to ensure that it is assigned to a category I found and also that it is approved and published. It's not that intuitive if I'm honest.

edit: I should learn to spell...

lurkalot

#4
Quote from: tino on May 20, 2018, 03:24:09 PM

It's not that intuative if I'm honest.


Agreed, not intuitive at all.  But I'm so used to it that it comes really easy with time. 

Yep you need to choose or create a new category for your pages.  Once in that category you can choose a type of article, either html, bbc, or php. 

When you've put your page together you can save it and then preview it.  To make it live, you will need to scroll down on that article you're working on, and make sure it's Approved: Scroll down some more make sure it's Status: Article is active.

Your address for the finished page will be the same as the preview one, but with preview removed from the end of it.  If you used a Query title then you can replace the page number with that title.

https://yoursite/index.php?page=38;tpreview

https://yoursite/index.php?page=38
https://yoursite/index.php?page=whatever-your-query-title-is.

Perhaps I'll do a video tut for this if I get time.

Meanwhile there's a tut here in the docs,https://www.tinyportal.net/docs/index.php?topic=177

lurkalot

Just knocked up a quick and dirty example.


jernatety

I'm trying to make an html article and there's two editors. One at the top and one at the bottom. When I write my html that's exactly how it shows up when I preview.

wildenborch

To make writing articles a bit easier for me, I changed some settings in the tportaladmin.php file so that most article settings are set to active / inactive by default. These are mine current settings:
Around line 1416
// are we starting a new one?
if(isset($_GET['sa']) && substr($_GET['sa'], 0, 11) == 'addarticle_')
{
TPadd_linktree($scripturl.'?action=tpadmin;sa='.$_GET['sa'], $txt['tp-addarticle']);
$context['TPortal']['editarticle'] = array(
            'id' => '',
            'date' => time(),
            'body' => '<p>
Start hier een nieuwe artikel!...... <br /> <br /> <br /> <br /> <br />
</p>
<hr />
<p>
<i><br /></i> <span style="color: rgb(0, 54, 155);"><i><strong><span style="font-size: 13px;">Wil je reageren?<br /> Klik dan op de het onderwerp en dan opent dit bericht zich opnieuw en dan kun je naar onderen scrollen en daar heb heb je een reactie veld!<br /> Gewoon doen want dat vinden we leuk!<br /><br /> Vergeet niet je naam bij je reactie te zetten want reacties zonder naam eronder zullen worden verwijderd!</span></strong></i></span>
</p>
<p>
<span style="color: rgb(193, 3, 0);"><strong><span style="font-size: 13px;"><br /></span></strong></span>',
            'intro' => 'Put some intro text here',
            'useintro' => 0,
            'category' => !empty($_GET['cu']) ? $_GET['cu'] : 0,
            'frontpage' => 1,
            'author_id' => $context['user']['id'],
            'subject' => '',
            'author' => $context['user']['name'],
            'frame' => 'theme',
            'approved' => 1,
            'off' => 1,
            'options' => 'date,title,author,top,comments,commentallow,commentupshrink,views,rating,ratingallow,inherit,social,avatar',
            'parse' => 1,
            'comments' => 1,
            'comments_var' => '',
            'views' => 1,
            'rating' => 1,
            'voters' => '',
            'id_theme' => 0,
            'shortname' => '',
            'sticky' => 0,
            'fileimport' => '',
            'topic' => 1,
            'locked' => 0,
            'illustration' => '',
            'headers' => '',
            'type' => substr($_GET['sa'],11),
            'featured' => 0,
            'realName' => $context['user']['name'],
            'authorID' => $context['user']['id'],
            'articletype' => substr($_GET['sa'],11),
            'ID_THEME' => 0,
'pub_start' => 0,
'pub_end' => 0,
        );



And to make things even more easier, I created an article admin menu were I can simply click a create an artice in a specific categorty link: for example: /index.php?action=tpadmin;sa=addarticle_html;cu=###


jernatety

Yeh, I don't get it, I can't figure it out. I don't understand why there's two editing windows either.

I made one and it doesn't even show up unless I view it, nobody else can.

http://www.youthhockeyinfo.com/index.php?page=2

lurkalot

Quote from: jernatety on May 20, 2018, 08:03:54 PM
I'm trying to make an html article and there's two editors. One at the top and one at the bottom. When I write my html that's exactly how it shows up when I preview.

There's a a editor for the main article, and one below it for the intro should you wish to use it.

If you add part of the article to the intro, and toggle this article to show on front page, it will only show the intro on the front page with a Read More (first screenshot) link which will take you to the full article. (second screenshot)