TinyPortal

Development => Support => Topic started by: jeremyyeo on October 08, 2006, 03:38:24 PM

Title: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 03:38:24 PM
Hey guys, Im running TP0.95 with the Blue101 theme. Somehow I cant delete article categories, what is happening?

An Error Has Occurred!
You are not allowed in this section.
Title: Re: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 03:54:29 PM
ok nvm..found the [bug] article. will try it out first.
Title: Re: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 04:04:33 PM
okay, using the blue 101 theme, I cant find the TPortalAdmin.template.php file there to edit. So what next?

PS. I have edited the TPortaladmin.php file.

deleting a category now gets me:

An Error Has Occurred!
Session verification failed. Please try logging out and back in again, and then try again.
Title: Re: Cant delete article categories...
Post by: G6Cad on October 08, 2006, 05:00:20 PM
Why and what have you edit in the TPortalAdmin.template.php  ???
Title: Re: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 05:03:40 PM
Well I followed this instructions: http://www.tinyportal.net/smf/index.php?topic=8261.0

I have done this:

QuoteOpen TPortaladmin.php and find:
        elseif(isset($_GET['featured']) || isset($_GET['artdelete']) || isset($_GET['arton']) || isset($_GET['artoff'])){

replace with:
        elseif(isset($_GET['catdelete']) || isset($_GET['featured']) || isset($_GET['artdelete']) || isset($_GET['arton']) || isset($_GET['artoff'])){

But am not able to do this because there is no TPortalAdmin.template.php file in my blue101 theme folder:

QuoteOpen up TPortalAdmin.template.php and find:
      <td><a href="' . $scripturl . '?action=tpadmin;catdelete=' .$mg['id']. '" onclick="javascript:return confirm(\''.$txt['tp-confirmcat1'].'  \n'.$txt['tp-confirmcat2'].'\')">

replace with:
      <td><a href="' . $scripturl . '?action=tpadmin;catdelete=' .$mg['id']. ';sesc='.$context['session_id'].'" onclick="javascript:return confirm(\''.$txt['tp-confirmcat1'].'  \n'.$txt['tp-confirmcat2'].'\')">
Title: Re: Cant delete article categories...
Post by: G6Cad on October 08, 2006, 05:08:44 PM
So why change the file in the Default theme, why change the file? for what reason ?
Title: Re: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 05:11:15 PM
Urm...I need to change the file to fix my problems? Is that right?

Reason for all the changing: fixing problem of not being able to delete article categories

Also, I didnt change any file in the default theme, I changed: TPortaladmin.php and according to the instructions, I need to change a TPortalAdmin.template.php (or something similiar which I am unable to find in the Blue 101 theme folder). Is it wrong or something?
Title: Re: Cant delete article categories...
Post by: G6Cad on October 08, 2006, 05:13:29 PM
The code you change to is the update codes if you want to upgrade themes from 1.1rc2 to 1.1rc3, and Blue101 is already up to date, so im not sure what you are trying to do.
What error was it from the start you were trying to fix? I see your error posted, but you posted it AFTER you have changed code in some file ?
Title: Re: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 05:16:36 PM
Ok well, with a new install of 1.1 RC3 + TP 0.95 + Blue 101 and with the old database, when trying to remove an article category, I get the following error (even with admin permissions):

An Error Has Occurred!
You are not allowed in this section.


That was my reason for trying to fix things...
Title: Re: Cant delete article categories...
Post by: G6Cad on October 08, 2006, 05:36:04 PM
I cant say whats causing this, but it have happend before, and the fix Bloc posted have worked, so i cant say whats causing yours, and why the fix dont work.

Have you changed the TPortalAdmin.template.php in the default theme directory ?
Title: Re: Cant delete article categories...
Post by: jeremyyeo on October 08, 2006, 05:46:01 PM
aha, It works Mrs G6...sorry for being such a klutz. thanks again.

Ps. How do i add a link (like the downloads link) so that I can link it to a general article section and not just a specific category?

edit: another error guys, while trying to approve an article submission. I get the same error:

An Error Has Occurred!
You are not allowed in this section.
Title: Re: Cant delete article categories...
Post by: G6Cad on October 08, 2006, 06:06:01 PM
Clear cache, cookies, and temp internet files, and then click ctrl and F5