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.
ok nvm..found the [bug] article. will try it out first.
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.
Why and what have you edit in the TPortalAdmin.template.php ???
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'].'\')">
So why change the file in the Default theme, why change the file? for what reason ?
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?
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 ?
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...
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 ?
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.
Clear cache, cookies, and temp internet files, and then click ctrl and F5