TinyPortal

Development => Support => Topic started by: MrMike on March 06, 2012, 12:11:54 AM

Title: TP startup questions and setup assistance
Post by: MrMike on March 06, 2012, 12:11:54 AM
Link to my site: http://www.centosforum dot org/forum/ (test site)
SMF version: SMF 2.0.2
TP version: 1.106 / 1.0 RC4
Default Forum Language: English
Theme name and version: Curve & Silent Wave
Browser Name and Version: Firefox 10.0.2
Mods installed: None yet

We're trying to convert a site to use TP and have a couple of questions, plus an offer of some paid work. The site we're looking to convert is http:// www deltabravo . net (remove spaces).

We've installed a bare copy of the forum (and TP) on a test domain at http://www.centosforum dot org so we can become familiar with it.

We're wondering if we can get some advice and assistance in setting up the basic categories or overall structure. We have a large number of articles and an FAQ section (~300 pages) that we'd like to convert to TP, but we're not sure of the best way to go about it.

The articles seem straight forward- we'll just cut and paste them into TP article pages once the categories are set up.

The FAQ section is still up in the air. Should we create an FAQ category with subcategories for them and just make more articles (1 per page) for them, or is there an FAQ mod for SMF that might be better to use for this?

We'd be willing to pay a modest amount for someone to do the following:

1) Do the initial category/subcategory creation and get these to display in a block on the left side, with the top level links leading to the various parts of the site (we'll create the articles and convert all the articles and other stuff). We'll get some screenshots together of what we're hoping to do in terms of the block content.

2) Create a couple sample pages that we can add some PHP code into (we've got a lot of custom code on the site that we'll create TP pages for). For example, the "Resources By State" page.

We've created some test categories but we not sure how to get the top-top category links to appear in the blocks. For example, we have an FAQ section with several subcategories. All we want to appear in the block is a link to the page that shows all the FAQ subcategories. Something like this:

-----------------------------------
FAQ Section  <- goes to a page with all the subcategories shown
Divorce Articles <- same as above, but for articles
Resources By State <- a custom page with PHP in it
...etc...
-----------------------------------

It's possible that all we'll need is someone to walk us through doing some of this on Skype, but wither way we'd be willing to pay for the time it takes to do it.


Title: Re: TP startup questions and setup assistance
Post by: IchBin on March 06, 2012, 01:29:23 AM
Hey MrMike,

First of all, welcome to TP.net!

I'm thinking you would really benefit from a script to automate the conversion of your FAQ articles into TinyPortal articles. Are your FAQ articles stored in a database? Or are they hard coded into the PHP files? If they are in the DB, it could be an intermediate job of putting some code together to convert all the data into articles.

To answer a few of your questions.

Concerning the block with your categories in it. This could very easily be done with the menu manager built into TP. You can create a menu. Then inside that menu you can add several different types of links. One of them is choosing to link to a category. You can then organize all the category links in the order you want after you've created them in the list. Then when you want them to show up in a block, you create a block and select the type of "menu". Then choose the name of the menu you created for it and it will display that menu in the block.

I think articles will work just fine for an FAQ system. Articles have a lot of options. One of them is to show other articles in the same category in the list. There isn't an option to show other categories like that, but it certainly could be added as a custom block using the menu manager again. There is an FAQ mod, but I don't know anything about it. So I can't really give advice on whether it would work for you or not.

I really think what you are asking for can be explained in here. And hopefully others will benefit from it. :) Feel free to ask questions if you are trying to achieve something that you don't understand how to do in TP. Often times, TP can't be everything. But it's customizable enough that there can be little tricks and things used to get results that aren't standard features.





Title: Re: TP startup questions and setup assistance
Post by: MrMike on March 06, 2012, 02:14:24 AM
Quote from: IchBinâ,,¢ on March 06, 2012, 01:29:23 AM
I'm thinking you would really benefit from a script to automate the conversion of your FAQ articles into TinyPortal articles. Are your FAQ articles stored in a database? Or are they hard coded into the PHP files? If they are in the DB, it could be an intermediate job of putting some code together to convert all the data into articles.
They're in old, old PHP files, and I plan to write some scripts to transfer a lot of the old pages (and articles too, probably). I do a lot of data conversion work so that part shouldn't be a problem.

Quote from: IchBinâ,,¢ on March 06, 2012, 01:29:23 AMConcerning the block with your categories in it. This could very easily be done with the menu manager built into TP. You can create a menu. Then inside that menu you can add several different types of links. One of them is choosing to link to a category. You can then organize all the category links in the order you want after you've created them in the list. Then when you want them to show up in a block, you create a block and select the type of "menu". Then choose the name of the menu you created for it and it will display that menu in the block.
This is exactly the part we need some help with...I've been making some test pages and categories, but what would likely take me days to figure out I'm guessing someone familiar with TP could do in an hour or so.  Let me take some time to look at the menu manager and see if I can figure out what to do. If not, we (my partner and I) would be willing to pay something for someone to do a little of the initial setup, basically just to get us going.



Quote from: IchBinâ,,¢ on March 06, 2012, 01:29:23 AMI think articles will work just fine for an FAQ system. Articles have a lot of options. One of them is to show other articles in the same category in the list. There isn't an option to show other categories like that, but it certainly could be added as a custom block using the menu manager again.
I had a feeling that articles would be the way to go with this, it seems like there's a lot of flexibility there. I'd be glad to write some custom code to do some sort of category display, but I probably won't know what to write until the basic stuff is in place.

Quote from: IchBinâ,,¢ on March 06, 2012, 01:29:23 AMI really think what you are asking for can be explained in here. And hopefully others will benefit from it. :) Feel free to ask questions if you are trying to achieve something that you don't understand how to do in TP.
Great. At this point, what I don't understand is almost everything, lol.

I'm also interested in writing some custom blocks for TP, things that might be useful to others. I'd be glad to donate the code come up with, whatever that turns out to be. I'm a big believer in FOSS and in giving back to the community, as it were. I've created a few simple mods for SMF and run a number of sites that try and do some good. If you look at the one official mod package of mine on the SMF site, you'll see what I mean. :)

Cheers

Title: Re: TP startup questions and setup assistance
Post by: MrMike on March 08, 2012, 05:35:31 PM
Well...I spent some time with the Menu Manager, but I'm just not getting the hang of it...I must be missing some basic concept here. (It wouldn't be the first time, lol.)

I can create menus, but I'm unsure as to whether to make the item(s) links or categories or (??). I'm also trying to figure out the relationships or process for making them lead to categories and lists of articles or FAQs.

I know once I "get it" it'll make sense but for now I'm just making as mess of things, lol.

Does anyone here want to take pity on me and give me a walk-through or set up a sample menu for us? We're just not sure where to start, and maybe we need to create some items before moving on to the menu-building parts, but I'm at a loss at the moment.

We just want something like this in a left-side menu (block?):

-----------------------------------
FAQ Section  <- goes to a page with all the subcategories shown
Divorce Articles <- same as above, but for articles
Resources By State <- a custom page with PHP in it
...etc...
-----------------------------------

Title: Re: TP startup questions and setup assistance
Post by: IchBin on March 08, 2012, 06:30:11 PM
MrMike,

The different types of menu items are this:

1. Category > using this type you select the category in the drop down to the right. It will then create a link in the menu that leads to the category you selected. Don't forget you need to put a title in. You can name it whatever you like, even the same name as the category you selected.
2. Articles > Same thing, only you select the article you want to link to in the drop down below the category section.
3. Link - Using this option you can create a HTML link. You put the link like "http://www.google.com" into the textbox that is below the articles dropdown. And don't forget you have to give it a title. :)
4. Header - This isn't really a link, but a way to organize if you want items to appear under a category. For example say you want things to appear categorized in your menu:

FAQ's <-- This would be the header (not a link).
- How to create a menu <-- this would be a link in the FAQ category. It will appear indented under the header menu item.

5. Spacer - This just creates a space or empty item to create some space in the menu items.

It's really not that hard once you understand it.

The position attribute depending on which radio button you select will indent the menu item to a certain extent.

When reviewing all the items in a menu you can then order them in the POS column like you can see in my screenshot. Here's the menu block after I created it. And here's what the menu items look like after I created them in the admin section.