Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Adding Admin link to a Theme?

Asked Modified Viewed 4,555 times
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
asked
Member

hi. I wan to add a Admin link to my Theme that i am using at http://www.djdanni.com but how can i do that?
0 replies

14 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Hey Danni,

Here is the code you need just put it where you want the admin link in your theme...

global $aidlink;

if (iADMIN) {
echo" <a href='".ADMIN."index.php".$aidlink."' title='Admin' class='side'>Admin</a>\n";
}
0 replies
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
answered
Member

Hey can you come on MSN? I need a help with this. If you look now it dose not look's Right.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Sorry only support via the forums here.

What's wrong?
0 replies
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
answered
Member

Look how it is now. The white bar below the black one is gone where the Copyright shut be.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Why is it gone what has this got to do with the code I gave you?

Where have you put the copyright this time?
0 replies
M
Mangee
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
answered
Senior Member

Most likely Craig's code overwrote some of my code.

I had several " if " statements and " if {} else {} " in the theme.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Why in the first place did you not say you had a login area you want an admin link added to?

What exactly is it you are trying to do?

AGAIN where is the copyright?
0 replies
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
answered
Member

ok i use this code like this
<li>
"
?>
<?php
   global $aidlink;

if (iADMIN) {
echo" <a href='".ADMIN."index.php".$aidlink."' title='Admin' class='side'>Admin</a>\n";
}
?>
<?php
"
</li>
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Is the copyright fixed yet?
0 replies
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
answered
Member

no when i have this in there like this then it dissapeare but when not it shows up.
0 replies
M
Mangee
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
answered
Senior Member

Remove the code you have so the copyright can be seen.

There are two themes coded in the theme.php file. So you have to work with both.

If you want an admin link I'll send you a new theme.php file with the code added to the logout area in upper right corner.
0 replies
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
answered
Member

That would be GRATE.
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Thread Moved to Themes support!
0 replies
D
DJ Danni
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions
answered
Member

Grate. ty boath. Now it woorks.
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

  • Views 0 views
  • Posts 14 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
M
M
Mangee 10
Mangee's Conversions

Convert
  • Senior Member, joined since
  • Contributed 242 posts on the community forums.
  • Started 30 threads in the forums
D
D
DJ Danni
  • Member, joined since
  • Contributed 72 posts on the community forums.
  • Started 17 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet