How can you remove the "+Add Photo", "+Add Blog" links - I only want admins to have this function.

Views: 69

Reply to This

Replies to This Discussion

I'm uncertain but I'm guessing you're not seeing a response b/c Ning promotes social interaction, which would mean members *can* upload photos and share.  Maybe someone else can chime in here but my best guess would be you utilize your Controls and have photos approved before they appear.  The only other suggestion I would have is to use the Language Editor and search for "add photo" and replace that wording with "admin" or something that maybe your members won't click as readily.  idk if deleting the words altogether would be prudent.  Unsure.  Not what you're looking for I know but we'll see if anyone else responds.  Good luck

Thanks, Kos.  Ran through all those scenarios, but none really solve what I am trying to do.  I'll have to come up with something...I guess that's why they call us creators.

Kos,

Thanks again for the post...tried TJ's code but it didn't get me what I needed, so I went back to the drawing board on the language editor.  I do think TJ's code will help with another issue I have on another network, though!

-Tony

Hi Anthony,

I was asked a similar question once, on my site:

http://jqueryhelp.ning.com/forum/topics/remove-the-option-to-add

I gave some code there that may work.  Here is a mod of that code.  You can try this and see if it does what you want.  This goes in your Custom Code box:

<script type="text/javascript">

// Only allow Admins to see +Add buttons:
if (ning.CurrentProfile.id != '1wtvjg4o8ruf3') {
  x$('a.xg_sprite-add:contains("Add")').parent().hide();
}
</script>

Some details on how to make this work for your site is in this reply:

http://jqueryhelp.ning.com/xn/detail/2818000:Comment:28953

Look under where it says, "How to make it work on your network:" as it applies to the code above as well.

I hope this points you in the right direction.

Best wishes!

"TJ"

Wow, that is wicked cool TJ!   Can't wait to see his response if it does the trick for him.

TJ,

Thanks for the code...it didn't accomplish what I needed, but may have solved a problem I have with another network!  To solve this particular dilemma, I actually ended up modifying the language editor with wording that makes the end user think of something totally different.

-Tony

RSS

Latest Activity

Fire-Tech replied to soaringeagle's discussion '3.0 feature request'
"+1"
7 hours ago
Allison Leahy replied to soaringeagle's discussion '3.0 feature request'
"Thanks. I'll make sure this is filed as a feature improvement for 3.0."
9 hours ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Ha!  Nevermind.  Suddenly it's back to normal again.  Gremlins in the hardware,…"
9 hours ago
Kos replied to SweetPotato's discussion 'Simple, Responsive Slider for Ning 3.0'
"Hey SP is your slide still running alright?  Came back from dinner and saw this.  idk if…"
10 hours ago
FedMedic replied to soaringeagle's discussion '3.0 feature request'
"+1"
12 hours ago
Kos replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"It's a glitch on Ning's end; plain and simple"
13 hours ago
John Bizley replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"Thanks Riccardo, it took a bit of moving the mouse about to find it but my mouse does change to the…"
13 hours ago
Riccardo Rossini replied to John Bizley's discussion 'File Manager NO DELETION option anymore ? Plus can you expand the file name size box.' in the group The Sandbox
"John, actually the button is only hidden, more or less you'll find it here your pointer will…"
13 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service