TinyPortal

Development => Support => Topic started by: waxzy on August 06, 2006, 03:23:03 AM

Title: Breadcrumbs in category and category view settings
Post by: waxzy on August 06, 2006, 03:23:03 AM
Breadcrumbs show when you are looking at an article but not when you are looking at a category

how can i make it show breadcrumbs in the category?

Also, how can I make articles in a category have the same viewing settings?
Its a pain to go to each article and set individual viewing settings.

thanks!
Title: Re: Breadcrumbs in category and category view settings
Post by: waxzy on August 06, 2006, 02:36:35 PM
ok i've figured out how to add a menu with the categories list in it, but I still need breadcrumbs

anyone figure this out?
Title: Re: Breadcrumbs in category and category view settings
Post by: waxzy on August 06, 2006, 02:52:49 PM
for the view settings to be automatic

open sources/TPortalAdmin.php

find line #378
---------------------------------------------
db_query("INSERT INTO {$tp_prefix}articles (date,body,intro,useintro,category,frontpage,subject,authorID,author,frame,approved,off) VALUES('$artd','$artbb','$arti','$artu','$artc','$artf','$arts','$nameb','$name','','$artpp','0')", __FILE__, __LINE__);
---------------------------------------------
and change to
---------------------------------------------
db_query("INSERT INTO {$tp_prefix}articles (date,body,intro,useintro,category,frontpage,subject,authorID,author,frame,approved,off,options) VALUES('$artd','$artbb','$arti','$artu','$artc','$artf','$arts','$nameb','$name','','$artpp','0','date,title,author,linktree,top,rblock,lblock')", __FILE__, __LINE__);
---------------------------------------------

the settings I want are date,title,author,linktree,top,rblock,lblock
you can change to suit what you want

this is handy if you hate having to select these options each time you make an article

;)
Title: Re: Breadcrumbs in category and category view settings
Post by: G6Cad on August 06, 2006, 03:06:59 PM
One way to post code like that to make it easier to read is use the code wrap when you post.

I edited your post with a code wrapper now :)
Title: Re: Breadcrumbs in category and category view settings
Post by: waxzy on August 06, 2006, 04:00:24 PM
tx  :D

neat it scrolls the code if you drag on it