Ning Developer Docs

I would like to change the value of the parameter $showCreator in the file \widgets\photo\model-templates\photo\listItem.php but I cannot find where it is set.
The Ning Help Center was not able to help. May be someone in the forum knows the answer.

Thank you

Views: 9

Attachments:

Replies to This Discussion

Hi Hien,

This is likely being set in /widgets/photo/templates/photo/list.php around line 21:

'extraTemplateArgs' => array('showCreator' => true, 'context' => null),


Thanks,
Phil
Phil,

Thank you for the prompt response.
is $showCreator a global variable?
If yes is there a way for me to set its value without modifying the source code?
If not then I have to request the source code.
I have created other Ning network sites for which I am trying not to change the source code if at all possible.
What I want to do is suppress the display of the photo creator in the photo module on the main page.

Regards,

Hien Ha
Hi Hein,

No, it's not something you can modify without source code access. If you're familiar with css you could try using some css to obscure it, but I've had a look and that will probably be a bit difficult. The other option without getting the source code might be to write some javascript that will go through and hide it after the page has loaded.

Thanks,
Phil
Thank you.

Ning is a great platform and the support I get through the forum is outstanding.

Hien Ha

RSS

© 2026   Created by Ning Developer Admin.   Powered by

Badges  |  Report an Issue  |  Terms of Service