redsk
Forum Replies Created
-
Forum: Plugins
In reply to: [Wiki] link to non-existing pageHi guys,
I was writing down some notes about the installation of my CMS and I noticed that part of my previous post is wrong. This is probably because I didn’t put the code in between backtics. Sorry for that.
That’s the correct version:
I’ve find a solution to use “Wiki Page Links” with wordpress wiki plugin.
I edited file wikipagelinks.php of plugin wiki page links.
First I modified line 118 from
if ( $page = get_page_by_title(html_entity_decode($link, ENT_QUOTES) ) ) {
to this
if ( $page = get_page_by_title(html_entity_decode($link, ENT_QUOTES), $output = OBJECT, $post_type = 'incsub_wiki') ) {
and then I modifiled line 128 from
$content = str_replace($match, "{$page_title}[<a href='$home/wp-admin/post-new.php?post_type=page&post_title=$encodedlink' class='nonexistant_page' title='Create this page (requires a valid \"contributer\" account)'>?</a>]", $content);
to this
$content = str_replace($match, "{$page_title}[<a href='$home/wp-admin/post-new.php?post_type=incsub_wiki&post_title=$encodedlink' class='nonexistant_page' title='Create this page (requires a valid \"contributer\" account)'>?</a>]", $content);
Now the Wiki Page Links plugins only works for wiki pages, not for normal pages anymore. However, for me it’s perfectly fine.
HTH
NicoForum: Plugins
In reply to: [Wiki] link to non-existing pageHi @david,
thank you for pointing that out. I’m going to get feedback from my users and maybe I’ll give a try to Jetpack Markdown.
Cheers,
NicoHi,
I was in a hurry so I hacked the code to get this result. The result is that meetings can be added and managed with the same permissions the recordings can be managed. To do so, I modified the file bigbluebutton-plugin.php.
First of all, I added two more shortcodes (add the following two lines after line 68):
add_shortcode('bigbluebutton_create_meetings', 'bigbluebutton_create_meetings_shortcode'); add_shortcode('bigbluebutton_list_meetings', 'bigbluebutton_list_meetings_shortcode');
Then, I added the following three functions (add this block after the function bigbluebutton_recordings_shortcode(), after line 382):
function bigbluebutton_create_meetings_shortcode() { if ( bigbluebutton_can_manageRecordings(get_bbb_role()) ) { return bigbluebutton_create_meetings(); } //else { // echo "You don't have permissions to access this page."; //} } function bigbluebutton_list_meetings_shortcode() { if ( bigbluebutton_can_manageRecordings(get_bbb_role()) ) { return bigbluebutton_list_meetings(); } //else { // echo "You don't have permissions to access this page."; //} } function get_bbb_role() { global $wpdb, $wp_roles, $current_user; $role = null; if( $current_user->ID ) { $role = "unregistered"; foreach($wp_roles->role_names as $_role => $Role) { if (array_key_exists($_role, $current_user->caps)){ $role = $_role; break; } } } else { $role = "anonymous"; } return $role; }
Now, you can simply create a page like this:
[bigbluebutton_create_meetings] [bigbluebutton_list_meetings] [bigbluebutton_recordings title="List of recordings"] [bigbluebutton]
Allowed users will be able to manage meetings and recordings. Unregistered users will only be able to view recordings.
HTH
NicoForum: Plugins
In reply to: [Wiki] link to non-existing pageHi,
I’ve find a solution to use “Wiki Page Links” with wordpress wiki plugin.
I edited file wikipagelinks.php of plugin wiki page links.
First I modified line 118 from
if ( $page = get_page_by_title(html_entity_decode($link, ENT_QUOTES) ) ) {
to this
if ( $page = get_page_by_title(html_entity_decode($link, ENT_QUOTES), $output = OBJECT, $post_type = ‘incsub_wiki’) ) {and then I modifiled line 128 from
$content = str_replace($match, “{$page_title}[?]”, $content);to this
$content = str_replace($match, “{$page_title}[?]”, $content);
Now the Wiki Page Links plugins only works for wiki pages, not for normal pages anymore. However, for me it’s perfectly fine.
Just in case someone is interested to this.
Forum: Plugins
In reply to: [Flexible Map] Link to Google Maps websiteHi Ross,
thank you for your answer. That is exactly what I was looking for. ?? Now my only fear is that my users will miss that behaviour as well… I hope they are not as dumb as their admin… :PP
Cheers!
Hi,
I’ve the same problem. I’ve tried to do what summer313 says in the previous post but I was not able to find that option. Did the settings page change, recently?