How to customize “New Wiki Page” template
June 19, 2015 at 6:38 pm #5673
I’m trying to find the PHP template that drives the page for adding new
Wiki pages (it’s titled “New Wiki Page” but it actually creates a new
BuddyDoc, not a Wiki).
Specifically, I’d like to add the the following things to this template:
1. The ability to add images to the new wiki page through the editing
2. The ability to add new custom fields (specifically, to allow users to
paste <iframe>’d content and widgets)
I’ve downloaded a copy of cbox-theme and searched for all permutations of
the phrase “New Wiki Page” (which usually allows me to find what I’m
looking for) but with no success.
DamianJune 23, 2015 at 8:38 am #5676
Hi Damian – The wiki is actually a CBOX plugin – can you look here to see if you find what you want?
Let us know if you still have questions, and thanks!June 24, 2015 at 7:05 pm #5677
No problem, I’m happy to check the docs of this plugin. However, I’m not seeing a feature list on the Github page, only a changelog. Presumably I’m missing something?
DamianJune 24, 2015 at 7:53 pm #5679
Hi Damian – I’m thinking (correct me if I’m wrong) that you want to view the source code for the plugin. In GitHub, there is a button on the right sidebar that should accomplish this – “Download Zip” — I am attaching a screenshot.
Let us know if this doesn’t help. Thanks!
Attachments:You must be logged in to view attached files.June 25, 2015 at 4:04 pm #5683
Thanks for the clear screen shot, that’s useful. I’m afraid that I was actually asking the wrong question. (I spoke with my client today and we clarified the question.) Here goes:
I would like to add the Add Media button to the WordPress editor on the following page. Currently in the back end, there is an Add Media button, but it doesn’t show up on the front end.
Perhaps this is simply a matter of changing the type of WP user that’s created when new users sign up to be members of the website?
DamianJune 25, 2015 at 10:11 pm #5684
Hi Damian –
I see that BP Docs offers that functionality (Add Media button) in the toolbar while BP Docs Wiki does not. I don’t think this would be a big deal to implement on our side – but I am copying @haystack and @r-a-y to see if we can implement an “Add media” button on the BP Docs Wiki to simplify the addition of images on wiki pages.
If so, you may be able to grab a new version of the plugin, provided the change is not too intensive on our side.June 26, 2015 at 3:37 pm #5685
I’m unclear on the difference between BP Docs and BP Wiki. Is the Wiki simply the Docs functionality, packaged in the front-end interface?
If you could add the Add Media button to the Wiki front end, I’d be very grateful, and re-downloading the plug in is no problem at all.
It sounds like if I want to add additional functionality or fields to the front-end template I referenced, I would need to branch and edit the BP Docs Wiki plugin. Is that correct?
DamianJune 27, 2015 at 3:21 pm #5686
Hi Damian – Actually I misspoke when I said that BuddyPress docs has the add image button in its toolbar. It doesn’t. I have opened up a ticket for the plugin author to investigate the possibility of adding this, both to wiki docs and BP Docs. You can follow the progress here:
There is actually not a lot of difference between BP Docs and BP Docs Wiki. The wiki has automatic global access for logged on users, though you can tighten permissions. BP Docs is initially a doc for your group – and it has granular permissions for members of the group – but it can also be shared across multiple groups – or even be available globally. And of course, by default, the Wiki is a separate menu option, while BP Docs is an option off the group menu.
CBOX is an open source project, and we provide access to our source code. If you have programming skills we welcome you to customize our plugins and theme for your purposes. If you want to share your changes with the community – even better. You can offer possible enhancements – and the plugin authors will consider incorporating them into our code base, or they might choose to work together to make the changes even better.
So yes, you can branch off and develop according to you needs – or wait to see if our developers have bandwidth available to address the enhancements you want.
Hope this answers your questions. Thanks!June 27, 2015 at 3:25 pm #5687
Hi Damian – I forgot to say that you can go to the “Text” view and add img tags to display images in both BP Docs and BP Docs Wiki – they work well – but presumes that user has html skills.
June 27, 2015 at 5:48 pm #5689RayKeymaster
- This reply was modified 5 years, 6 months ago by Scott Voth.
I looked into this and posted a response over on the Github issue that Scott opened:
The response includes a code snippet that will add an “Add Image” button to the BP Docs editor. It will only allow you to insert an image via URL though, not upload.July 8, 2015 at 5:25 pm #5710
Thank you, Ray and Scott for your replies. I will continue this conversation on the Github page since that seems a more sensible place to discuss feature requests.
Unfortunately, the image upload options that you both mentioned requiring a user to upload an image URL will not work, as the target audience is not very tech-savvy.
- You must be logged in to reply to this topic.