TinyPortal

Development => Support => Topic started by: rockon123 on April 30, 2007, 05:18:53 AM

Title: Article Default Settings
Post by: rockon123 on April 30, 2007, 05:18:53 AM
When I go into manage articles and click "add" so I can add a new one, the only way for me to alter the settings is to type in everything I need, save it.  And then edit it, click edit the visual options, and then add the comment box, take off the top blocks when the article is displayed..etc...

How can I set up some default settings for any articles I make, and then if I need to change one as a special circumstance I can?

Thanks in advance
Title: Re: Article Default Settings
Post by: G6Cad on April 30, 2007, 09:30:39 AM
At this time (and proably in future releases) this will be how you have to go with the articles.
There is no way to make a "default" article at this time.
Title: Re: Article Default Settings
Post by: rockon123 on April 30, 2007, 04:38:19 PM
Ew.....

Thanks for the reply :P
Title: Re: Article Default Settings
Post by: Silversound on September 20, 2007, 05:23:32 AM
I have the same question so I will add it here.

How are the default check boxes added in then? There has to be a place the script that enters "checks" in the boxes that are checked by default. i.e.

...this is default.
(https://www.tinyportal.net/index.php?action=dlattach;topic=15547.0;attach=12023;image)
So how does it fill some of those boxes and not the others. I Imagine it could be changed in the script.

And the data entry box could have something in it as default if you entered it into the script as well?   ...i.e. Hack the script for a global change.

I really don't know, but I think it should be possible to work around the problem. Anyone have more info?

Title: Re: Article Default Settings
Post by: Ianedres on September 20, 2007, 06:37:38 AM
As requested for a feature in the bug tracker... here (http://www.tinyportal.net/index.php?action=bugtracker;sa=bug205)

Would be cool to see this in TP 1.0!
Title: Re: Article Default Settings
Post by: G6Cad on September 20, 2007, 12:50:35 PM
You dont put feature requersts in the bugtracker, the bug tracker is for bug and bugs only.
Requests are posted in the development request board.
Title: Re: Article Default Settings
Post by: Ianedres on September 20, 2007, 06:06:52 PM
Quote from: G6 on September 20, 2007, 12:50:35 PM
You dont put feature requersts in the bugtracker, the bug tracker is for bug and bugs only.
Requests are posted in the development request board.


(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.bayoumx.com%2Fimages%2Ffeature_request.gif&hash=d5f4366fcea633535bef784b5d01f33f20ad2a49)

For clarification, what is this for?

Reading the graphic, it says ' In this section you can report any bugs you find in TinyPortal, as well as enhancement/bugfixes you might have.'

I also see that some of my feature requests have been marked closed now...
Title: Re: Article Default Settings
Post by: JPDeni on September 20, 2007, 08:13:18 PM
QuoteHow can I set up some default settings for any articles I make

You can do it now, but you have to be confident in editing files. Open TPortalAdmin.php (in your Sources folder) and search for


// article


Find the line below that


$artoptions = 'date,title,author,linktree,top,cblock,rblock,lblock,views,rating,ratingallow';


It's pretty clear which of these goes with which options. Others are

Show all articles in same category = category
Show links to other categories = catlist
Show comments underneath article = comments
Allow to comment? = commentallow
Do not collapse comments initially = commentupshrink

Be careful to follow the pattern already there. If you do it wrong, the file will crash.
Title: Re: Article Default Settings
Post by: IchBin on September 21, 2007, 12:05:16 AM
Quote from: G6 on September 20, 2007, 12:50:35 PM
You dont put feature requersts in the bugtracker, the bug tracker is for bug and bugs only.
Requests are posted in the development request board.
Actually, its allowed to put features in there G6. :)
Title: Re: Article Default Settings
Post by: G6Cad on September 21, 2007, 08:48:32 AM
Totally missed that Sorry !  :buck2:
Title: Re: Article Default Settings
Post by: domeen on September 21, 2007, 01:10:45 PM
great!! it works!