Ning Developer Docs

I've created a Ning application and requested access to the source so that I could wipe it out and start from scratch. That is, I wanted to get rid of all the social networking application code and use my own framework.

Now that I've done this, I really only have an index.php file and the xn* directories left in my application.

In the index.php file, I have the following as a test:

<h1>Foo!</h1>

That's all that's in there.

As you might guess, when I go to the site in a browser, I see "Foo!" displayed as I should, but I don't see the ningbar. How do I add the ningbar to a bare site?

It's been a while since I've used ning and some of the earlier sites I created a couple of years ago (and are still running) automatically put the ningbar into the output, but now, new sites created do not appear to have this functionality.

Views: 6

Replies to This Discussion

Hi Ben,

First, you don't need to request the code and then wipe out everything if you want a bare website without the social network on it, just use this URL:

http://www.ning.com/home/apps/create

As for the ningbar for pages on your "app from scratch", take a look at the widgets/index/templates/embed/header.php template on the social network code to get an idea of how the regular page is built. Basically, what you will need is the <ning:ningbar/> tag. Something similar to this:

<html>
<head></head>
<body>
<ning:ningbar/>
<h1>Foo!</h1>
</body>
Thanks for your reply. <ning:ningbar/> appears to work just fine, though it's styled weird, but this might be because I've removed everything else from the directory.

In short, I removed everything from the directory because I wanted a clean slate. I'm a bit obsessive about having clean directories and not having any files in there that I'm not using. :-)
don't worry, I feel your pain.

everybody likes clean slates :)

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service