PDA

View Full Version : "Active Links" on admin page


Toby
07-02-2005, 12:15 AM
Hi!

When i log on to the admin page "Active Links" has reached 99 links but i have more than 99 links. Is there a bug so it will never go higher than 99?

Is there any simple solution to get Active Links on the public pages. For example in top_bar.

Regards
Toby

Ap0s7le
07-02-2005, 12:33 AM
Hello Toby, welcome to the forums.

Open up your main index.php in the PLD root and add the line
Content visible to registered users only.Above the line
Content visible to registered users only.Towards the bottom of the file.

Then open up one of your TPL files, such as header, main, footer and add
Content visible to registered users only.Where ever it is you want the number placed.

You can see mine in the header here as an example:
{url removed because it is no longer active}

That's just my playground, nothing serious.

Hope this helped.

David
07-02-2005, 04:22 AM
That's pretty cool the way you display the number of active links on the homepage. I like that. :)

Ap0s7le
07-02-2005, 04:29 AM
Haha, it's just a work copy installed there so I can hack it to death when someone wants something.

Glad you liked it. Hopefully it'll help out someone else.

later bro

yktan
07-02-2005, 04:49 AM
Cool hack Ap0s7le :).
:idea: With a simple change to your query you can even display something like:
Directory Home with 5 active links getting 1205 hits!

Ap0s7le
07-02-2005, 05:14 AM
Yeah, like so?
{url removed because it is no longer active}

Change the above query to
Content visible to registered users only.And reference them in templates like so...
Content visible to registered users only.Content visible to registered users only.later

yktan
07-02-2005, 05:25 AM
Ap0s7le that's fast :D

I was just shooting ideas, don't mind me :)

Ap0s7le
07-02-2005, 07:20 AM
Ah I thought you wanted it.

No bother, it's time for me to get off and pay attention to my wife.

later

Toby
07-02-2005, 09:28 AM
Thanks a lot!

Ap0s7le
07-04-2005, 01:05 AM
No prob

later