Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-04 14:42:52

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Add an admin side navigational tab to this php?

As the subject says, I just need to add an admin side navigational tab. Essentially a “home” tab for the /textpattern/index.php so that when I am using sencer’s experimental “welcome screen plugin”=http://www.sencer.de/code/txp/asy_dashboard.txt I can have end users refer back to it from other menu tabs.

Here is the PHP I need to add it to

Thanks,

As always,

Matthew


Offline

#2 2005-12-07 05:56:20

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Add an admin side navigational tab to this php?

I also made some other adjusments: (link removed)

Last edited by Mary (2013-01-24 17:30:44)

Offline

#3 2005-12-07 06:10:46

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Add an admin side navigational tab to this php?

Mary,
I used the code from asy_dashboard (revised), to replace the existing code, via the edit function in admin/plugins.

When doing so I got the following error:

Parse error: parse error, unexpected ‘<’ in /home/.emperior/xxxxxx/artiswork.org/textpattern/lib/txplib_misc.php(455) : eval()’d code on line 1
The above errors were caused by the plugin:asy_dashboard

Thanks for your help on this:
By the way, what other changes did you make? Just curious?

Matthew

Last edited by ma_smith (2005-12-07 13:12:41)


Offline

#4 2005-12-07 07:59:29

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Add an admin side navigational tab to this php?

You only want the part between # --- BEGIN PLUGIN CODE --- and --- END PLUGIN CODE ---.

It caused a couple errors and didn’t work quite properly. I just adjusted where it needed adjusting. :)

Last edited by Mary (2005-12-07 08:03:00)

Offline

#5 2005-12-07 08:34:28

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Add an admin side navigational tab to this php?

pssst, mary, don’t you want to rename it and open a thread for it? ;)

Offline

#6 2005-12-07 11:02:52

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Add an admin side navigational tab to this php?

No way, got too much to do already! :D

Offline

#7 2005-12-07 11:09:53

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Add an admin side navigational tab to this php?

Oh go on. :) I haven’t had a problem with this so what errors were you getting?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#8 2005-12-07 11:18:45

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Add an admin side navigational tab to this php?

Constants getting redefined and an undefined function.

Offline

#9 2005-12-07 11:39:41

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Add an admin side navigational tab to this php?

Oh very nice. I like the little “asy_dashboard” tab. I might play around with it a bit more now. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#10 2005-12-07 12:48:19

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Add an admin side navigational tab to this php?

Mary,
Getting there :)

Now I get the following error IN the asy_dashboard tab.
Warning: unknown_tag in /home/.emperior/xxxxxx/artiswork.org/textpattern/lib/txplib_misc.php(455) : eval()’d code on line 100

Also,
I was really hoping the the “asy_dashboard” tab would be something that could be accessed as a top level navigation. ie: admin, content, view site etc. (is this a matter of changing a few permissions? and hierarchy?)

I am hoping to use it like a “tutorials” tab for artiswork

Thanks,

Matthew

ps. I checked for extra white space around the plugin (thinking that might have been an issue) and couldn’t find any?

Last edited by ma_smith (2005-12-07 13:12:18)


Offline

#11 2005-12-07 13:26:06

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: Add an admin side navigational tab to this php?

> Constants getting redefined and an undefined function.

yeah, that happens in debug-mode (the production status is changed accordingly because publish.php is included). Anyway I had already checked in some code into the core to prevent error-messages when constants are already defined – but the next release is still a while away…

Offline

#12 2005-12-07 13:35:41

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: Add an admin side navigational tab to this php?

Sencer beet me to my edit :)

So, it’s not hard to put the “asy_dashboard” tab into the contents area. That worked smoothly.
Placing it in the “contents” tab allowed access to the “dashboard” for all authors – this is good.

I notice though, that when the “asy_dashboard” is displaying, the tab (when its in the contents section) does not highlight, and instead the “write” tab remains highlighted, which was the how the original version acted as well.

In addition, I’m still getting the error message (mentioned in my last post), which, again, only shows up in the “asy_dashboard” tab itself.

Mary, from the sounds of it, you are busy. If you are able to help me with the error message, that’s the most important thing to me. Thanks a bagiillion,

Matthew


Offline

Board footer

Powered by FluxBB