Ning Developer Docs

Want only creator and admins to have ability to add photos

How would I go about this? We only need the Add Photo link on the Photos page to show up for the creator and admins. I've already removed the My Page successfully. I'm not real scared of the code if thats what it takes to do this. Of course, I'd rather not go into it, if at all possible.

Also, how would I remove the My Photos and My Albums secondary tabs that show up on the Photos page?

Views: 18

Replies to This Discussion

Hi zenseeker,

Hmm. If you would like to get around this with Javascript, you could detect if your page has a "Manage" tab (available to the network creator & admins) and if so, remove the Add photo link that way. I'll try to make a tutorial out of this.

As far as removing the My Photos and My Albums secondary tab, have you thought about using the Translation Editor? Try changing the phrases "My Photos" to "<!-- My Photos -->" and so on.
OK, to do this, you'll have to add CSS in the Advanced box in your Appearances page, as well as add Javascript to your Manage tracking box.

Add the following CSS:

.module_photo .add { display:none; }
.xg_widget_photo .add { display:none; }

And the following JS:

<script type="text/javascript">
if (dojo.byId("xg_tab_manage")) {
document.writeln("<style type='text/css'>");
document.writeln(".module_photo .add { display:block; } .xg_widget_photo .add { display:block; }");
document.writeln("</style>");
}
</script>
That would be sweeeet. Thanks. Will I need the code for that? I'll need to request it if so. I do have a test site that has decentralized code that I can play with the javascript though. I'm no javascript guru, but I can usually follow things if they're spelled out for me.

Commenting out the My Photos and My Albums worked fine. You rock, Ernie!

On an unrelated note: What does it mean in the language editor when it says the translation is 99% complete? It usually says 100%. Just curious.
Lovely! You're the greatest! Thanks so much.
Im sorry Ernie,

Could you try explaining this to me.

- I want to remove "Add Photos" everywhere (home page slide show, photos page, etc.)
- I want to remove "My Photos" from the photos page, as well as "My Albums" & "My Favorites"

Please help!
Thank You!

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service