TinyPortal

Development => Support => Topic started by: superQ on January 21, 2006, 06:55:35 PM

Title: back again. category issues driving me nuts
Post by: superQ on January 21, 2006, 06:55:35 PM
I know I am the only one with this prob ,but I am going crazy. All I want to do is add a category or 2 or 3. What is the trick. I go to tp admin and click edit category and then add category then fill in the name then click send=nada. I assume the general category is in fact a category and that the one i just created shuld appear somewhere.

What am I missing.

smf 1.1rc1 tp 0.75 amber theme



Right now inside tp admin in edit categories is local issues I have clicked send like 5 times.Of couse I cannot add aor edit categories in admin either.


What I want to do is lke on this frum where you have General category  then you have tiny portal category then themes category. I can't seem to get it done. :uglystupid2:
Title: Re: back again. category issues driving me nuts
Post by: Nokonium on January 21, 2006, 08:30:09 PM
I believe that you are refering to the 'Content' block. That is set up in the Menu Manager. In 0.75 You don't need 'Categories', you can link directly to articles.
Title: Re: back again. category issues driving me nuts
Post by: superQ on January 21, 2006, 08:32:39 PM
No I can work the content edit fine. I am trying to add categories to the forum. Right now it just has general.
Title: Re: back again. category issues driving me nuts
Post by: Nokonium on January 21, 2006, 08:42:53 PM
You mean boards. They are not part of TP, they are part of SMF.

Admin>Forum>Boards> Manage Boards and Categories>Create new category

That should add a Board Category, you can then add boards to the Category.

I have an RC1 test site with TP 0.75 and I've just tried it.
Title: Re: back again. category issues driving me nuts
Post by: superQ on January 21, 2006, 08:52:34 PM
let me try again. I tried it before and i ger an error and it does not take effect. I have like 6 categories in the admin section and none of them show up. I know it should be done in admin. What I don't udderstand is why you can do it and it works, but I do it and it doesn't
Title: Re: back again. category issues driving me nuts
Post by: Rasyr on January 21, 2006, 08:55:54 PM
Empty categories are not shown, IIRC. They won't show up unless you actually add a board to the category.

Title: Re: back again. category issues driving me nuts
Post by: Nokonium on January 21, 2006, 08:59:09 PM
One lesson I was told to do and can confirm works, about installing TP, is start with a completely clean install of SMF and add TP tp it, then add other mods etc. and the other lesson is leave the default theme totally untouched except by the file changes done by the Package Manager.

Though you will have problems installing anything through the Package Manager with RC1.
Title: Re: back again. category issues driving me nuts
Post by: superQ on January 21, 2006, 09:08:37 PM
Thanks to both of you. Not having a board was the prolem. :uglystupid2:
I think I am still seeing this error though

Here are the lines


      // add the linktree for category here, if its empty of articles
      if($mycat!=''){
            TPstrip_linktree();
            // get the name of category
            TPadd_linktree($scripturl.'?cat='.$mycat , $context['TPortal']['categories']['name'][$mycat]);      }

      if (mysql_num_rows($request) > 0)
      {

        while($row = mysql_fetch_assoc($request)){



285 is the one that is not black.


I also get this error if I try to delete a category. It does not delete

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 3
File: /home//public_html/Sources/Subs-Boards.php
Line: 1190

the line.


   // Delete ALL topics in the selected boards. (done first so topics can't be marooned.)
   $request = db_query("
      SELECT ID_TOPIC
      FROM {$db_prefix}topics
      WHERE ID_BOARD IN (" . implode(', ', $boards_to_remove) . ')', __FILE__, __LINE__);   $topics = array();
   while ($row = mysql_fetch_assoc($request))
      $topics[] = $row['ID_TOPIC'];
   mysql_free_result($request);

   require_once($sourcedir . '/RemoveTopic.php');
   removeTopics($topics, false);




Title: Re: back again. category issues driving me nuts
Post by: Nokonium on January 21, 2006, 11:10:46 PM
Don't worry about that error, Bloc knows about it and it will be fixed in the next beta release.
Title: Re: back again. category issues driving me nuts
Post by: superQ on January 21, 2006, 11:56:24 PM
That's what superQ likes to hear. Thanks

Btw is there any way to position articles. I would like to keep 1 at the top and be able to adjust the others. Do I just change the date. Appreciate a reply on that one.

I have another on creating links in articles. Especially the window that pops up is a little mysterious.Maybe start another thread on that unless someone feels like explaining the process to link to an external site like say amazon.com. I highlighted the word and clicked insert hyperlink or whatever, and it didn't work out too good.
Title: Re: back again. category issues driving me nuts
Post by: bloc on January 22, 2006, 12:09:48 AM
The links in the editor - which is changed for TP0.8 - works strange , thats why I have gone away from it.

Articles you just change the date to set the order, yes.
Title: Re: back again. category issues driving me nuts
Post by: superQ on January 22, 2006, 01:31:07 AM
Thanks Bloc. That info will do wonders for my sanity. I always think I am missing something.