TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,004
  • Total Topics: 21,330
  • Online today: 468
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 383
  • Total: 383

Cant delete article categories...

Started by jeremyyeo, October 08, 2006, 03:38:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jeremyyeo

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.

jeremyyeo

ok nvm..found the [bug] article. will try it out first.

jeremyyeo

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.

G6Cad

Why and what have you edit in the TPortalAdmin.template.php  ???

jeremyyeo

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'].'\')">

G6Cad

So why change the file in the Default theme, why change the file? for what reason ?

jeremyyeo

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?

G6Cad

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 ?

jeremyyeo

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...

G6Cad

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 ?

This website is proudly hosted on Crocweb Cloud Website Hosting.