Title: redsk's Replies | WordPress.org

---

# redsk

  [  ](https://wordpress.org/support/users/redsk/)

 *   [Profile](https://wordpress.org/support/users/redsk/)
 *   [Topics Started](https://wordpress.org/support/users/redsk/topics/)
 *   [Replies Created](https://wordpress.org/support/users/redsk/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/redsk/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/redsk/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/redsk/engagements/)
 *   [Favorites](https://wordpress.org/support/users/redsk/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wiki] link to non-existing page](https://wordpress.org/support/topic/link-to-non-existing-page/)
 *  Thread Starter [redsk](https://wordpress.org/support/users/redsk/)
 * (@redsk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/link-to-non-existing-page/#post-4960059)
 * Hi 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
    Nico
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wiki] link to non-existing page](https://wordpress.org/support/topic/link-to-non-existing-page/)
 *  Thread Starter [redsk](https://wordpress.org/support/users/redsk/)
 * (@redsk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/link-to-non-existing-page/#post-4959963)
 * Hi [@david](https://wordpress.org/support/users/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,
    Nico
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[BigBlueButton] allow non-admins to create meeting rooms and manage recordings](https://wordpress.org/support/topic/allow-non-admins-to-create-meeting-rooms-and-manage-recordings/)
 *  Thread Starter [redsk](https://wordpress.org/support/users/redsk/)
 * (@redsk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/allow-non-admins-to-create-meeting-rooms-and-manage-recordings/#post-4963504)
 * Hi,
 * 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
    Nico
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wiki] link to non-existing page](https://wordpress.org/support/topic/link-to-non-existing-page/)
 *  Thread Starter [redsk](https://wordpress.org/support/users/redsk/)
 * (@redsk)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/link-to-non-existing-page/#post-4959862)
 * Hi,
 * 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}[
   [?](https://wordpress.org/support/users/redsk/replies/$home/wp-admin/post-new.php?post_type=page&post_title=$encodedlink)]”,
   $content);
 * to this
 * $content = str_replace($match, “{$page_title}[[?](https://wordpress.org/support/users/redsk/replies/$home/wp-admin/post-new.php?post_type=incsub_wiki&post_title=$encodedlink)]”,
   $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](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Flexible Map] Link to Google Maps website](https://wordpress.org/support/topic/link-to-google-maps-website/)
 *  Thread Starter [redsk](https://wordpress.org/support/users/redsk/)
 * (@redsk)
 * [12 years ago](https://wordpress.org/support/topic/link-to-google-maps-website/#post-4934637)
 * Hi 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!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Members - Membership & User Role Editor Plugin] Set default Content Permissions](https://wordpress.org/support/topic/set-default-content-permissions/)
 *  [redsk](https://wordpress.org/support/users/redsk/)
 * (@redsk)
 * [12 years ago](https://wordpress.org/support/topic/set-default-content-permissions/#post-4209577)
 * 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?

Viewing 6 replies - 1 through 6 (of 6 total)