Forum Replies Created

Viewing 15 replies - 1 through 15 (of 45 total)
  • Thread Starter macmiller

    (@macmiller)

    I’m not really sure how to add images to the reply. Just checked on my profile and it shows I have no subscriptions. I followed the above link and I am not subscribed to it. Yet I get many emails, even though I am not subscribed anywhere. Would like to attach images if possible.

    Thread Starter macmiller

    (@macmiller)

    file: wpbb_admin.php

    add before:
    update_option('wpbb_width, $wpbb_width);

    this:
    if (!isset($wpbb_width)) {$wpbb_width = 30;}

    Thread Starter macmiller

    (@macmiller)

    Here are the changes to wpbb_links_widget.php

    change

    $title = $instance['wpbb_links_title'];
            $display_index = $instance['wpbb_links_index'];
            $display_faq = $instance['wpbb_faq'];
            $display_search = $instance['wpbb_search'];
            $display_active_topics = $instance['wpbb_active_topics'];
            $display_unanswered_posts = $instance['wpbb_unanswered_posts'];
            $display_your_posts = $instance['wpbb_your_posts'];
            $display_new_posts = $instance['wpbb_new_posts'];
            $display_pms = $instance['wpbb_pms'];
            $display_send_pm = $instance['wpbb_send_pm'];
            $display_members = $instance['wpbb_members'];
            $display_team = $instance['wpbb_team'];
            $display_whos_online = $instance['wpbb_whos_online'];

    to

    $title = (array_key_exists('wpbb_links_title',$instance)) ? $instance['wpbb_links_title'] : "";
            $display_index = (array_key_exists('wpbb_links_index',$instance)) ? $instance['wpbb_links_index'] : "";
            $display_faq = (array_key_exists('wpbb_faq',$instance)) ? $instance['wpbb_faq'] : "";
            $display_search = (array_key_exists('wpbb_search',$instance)) ? $instance['wpbb_search'] : "";
            $display_active_topics = (array_key_exists('wpbb_active_topics',$instance)) ? $instance['wpbb_active_topics'] : "";
            $display_unanswered_posts = (array_key_exists('wpbb_unanswered_posts',$instance)) ? $instance['wpbb_unanswered_posts'] : "";
            $display_your_posts = (array_key_exists('wpbb_your_posts',$instance)) ? $instance['wpbb_your_posts'] : "";
            $display_new_posts = (array_key_exists('wpbb_new_posts',$instance)) ? $instance['wpbb_new_posts'] : "";
            $display_pms = (array_key_exists('wpbb_pms',$instance)) ? $instance['wpbb_pms'] : "";
            $display_send_pm = (array_key_exists('wpbb_send_pm',$instance)) ? $instance['wpbb_send_pm'] : "";
            $display_members = (array_key_exists('wpbb_members',$instance)) ? $instance['wpbb_members'] : "";
            $display_team = (array_key_exists('wpbb_team',$instance)) ? $instance['wpbb_team'] : "";
            $display_whos_online = (array_key_exists('wpbb_whos_online',$instance)) ? $instance['wpbb_whos_online'] : "";

    change:
    echo $before_widget . $before_title . $title . $after_title . '<ul>';
    to:
    echo $before_widget . $before_title . (isset($title) ? $title : "") . $after_title . '<ul>';

    change:

    if($display_index == 'yes')
            {
                echo '<li><a href="' . $forum_url . '?' . $session_id . '">';
                echo _e('Forum index', 'wpbb');
                echo '</a></li>';
            }
    
            if($display_faq == 'yes')
            {
                echo '<li><a href="' . $forum_url . 'faq.php?' . $session_id . '">';
                echo _e('FAQ', 'wpbb');
                echo '</a></li>';
            }
    
            if($display_search == 'yes')
            {
                echo '<li><a href="' . $search_url . '?' . $session_id . '">';
                echo _e('Forum search', 'wpbb');
                echo '</a></li>';
            }
    
            if($display_active_topics == 'yes')
            {
                echo '<li><a href="' . $search_url . '?search_id=active_topics&' . $session_id . '">';
                echo _e('View active topics', 'wpbb');
                echo '</a></li>';
            }
    
            if($display_unanswered_posts == 'yes')
            {
                echo '<li><a href="' . $search_url . '?search_id=unanswered&' . $session_id . '">';
                echo _e('View unanswered posts', 'wpbb');
                echo '</a></li>';
            }
    
            if(wpbb_is_user_logged_in())
            {
                if($display_your_posts == 'yes')
                {
                    echo '<li><a href="' . $search_url . '?search_id=egosearch&' . $session_id . '">';
                    echo _e('View your posts', 'wpbb');
                    echo '</a></li>';
                }
    
                if($display_new_posts == 'yes')
                {
                    echo '<li><a href="' . $search_url . '?search_id=newposts&' . $session_id . '">';
                    echo _e('View new posts', 'wpbb');
                    echo '</a></li>';
                }
    
                if($display_pms == 'yes')
                {
                    echo '<li><a href="' . $ucp_url . '?i=pm&folder=inbox&' . $session_id . '">';
                    echo _e('Private messages', 'wpbb');
                    echo '</a></li>';
                }
    
                if($display_send_pm == 'yes')
                {
                    echo '<li><a href="' . $ucp_url . '?i=pm&mode=compose&' . $session_id . '">';
                    echo _e('Send private message', 'wpbb');
                    echo '</a></li>';
                }
    
                if($display_members == 'yes')
                {
                    echo '<li><a href="' . $member_url . '?' . $session_id . '">';
                    echo _e('Member list', 'wpbb');
                    echo '</a></li>';
                }
    
                if($display_team == 'yes')
                {
                    echo '<li><a href="' . $member_url . '?mode=leaders&' . $session_id . '">';
                    echo _e('The team', 'wpbb');
                    echo '</a></li>';
                }
    
                if($display_whos_online == 'yes')
                {
                    echo '<li><a href="' . $forum_url . 'viewonline.php?' . $session_id . '">';
                    echo _e('Who is online', 'wpbb');
                    echo '</a></li>';
                }
            }

    to

    if(isset($display_index) && ($display_index == 'yes'))
            {
                echo '<li><a href="' . $forum_url . '?' . $session_id . '">';
                echo _e('Forum index', 'wpbb');
                echo '</a></li>';
            }
    
            if(isset($display_faq) && ($display_faq == 'yes'))
            {
                echo '<li><a href="' . $forum_url . 'faq.php?' . $session_id . '">';
                echo _e('FAQ', 'wpbb');
                echo '</a></li>';
            }
    
            if(isset($display_search) && ($display_search == 'yes'))
            {
                echo '<li><a href="' . $search_url . '?' . $session_id . '">';
                echo _e('Forum search', 'wpbb');
                echo '</a></li>';
            }
    
            if(isset($display_active_topics) && ($display_active_topics == 'yes'))
            {
                echo '<li><a href="' . $search_url . '?search_id=active_topics&' . $session_id . '">';
                echo _e('View active topics', 'wpbb');
                echo '</a></li>';
            }
    
            if(isset($display_unanswered_posts) && ($display_unanswered_posts == 'yes'))
            {
                echo '<li><a href="' . $search_url . '?search_id=unanswered&' . $session_id . '">';
                echo _e('View unanswered posts', 'wpbb');
                echo '</a></li>';
            }
    
            if(wpbb_is_user_logged_in())
            {
                if(isset($display_your_posts) && ($display_your_posts == 'yes'))
                {
                    echo '<li><a href="' . $search_url . '?search_id=egosearch&' . $session_id . '">';
                    echo _e('View your posts', 'wpbb');
                    echo '</a></li>';
                }
    
                if(isset($display_new_posts) && ($display_new_posts == 'yes'))
                {
                    echo '<li><a href="' . $search_url . '?search_id=newposts&' . $session_id . '">';
                    echo _e('View new posts', 'wpbb');
                    echo '</a></li>';
                }
    
                if(isset($display_pms) && ($display_pms = 'yes'))
                {
                    echo '<li><a href="' . $ucp_url . '?i=pm&folder=inbox&' . $session_id . '">';
                    echo _e('Private messages', 'wpbb');
                    echo '</a></li>';
                }
    
                if(isset($display_send_pm) && ($display_send_pm == 'yes'))
                {
                    echo '<li><a href="' . $ucp_url . '?i=pm&mode=compose&' . $session_id . '">';
                    echo _e('Send private message', 'wpbb');
                    echo '</a></li>';
                }
    
                if(isset($display_members) && ($display_members == 'yes'))
                {
                    echo '<li><a href="' . $member_url . '?' . $session_id . '">';
                    echo _e('Member list', 'wpbb');
                    echo '</a></li>';
                }
    
                if(isset($display_team) && ($display_team == 'yes'))
                {
                    echo '<li><a href="' . $member_url . '?mode=leaders&' . $session_id . '">';
                    echo _e('The team', 'wpbb');
                    echo '</a></li>';
                }
    
                if(isset($display_whos_onlines) && ($display_whos_online == 'yes'))
                {
                    echo '<li><a href="' . $forum_url . 'viewonline.php?' . $session_id . '">';
                    echo _e('Who is online', 'wpbb');
                    echo '</a></li>';
                }
            }

    Thread Starter macmiller

    (@macmiller)

    OK here are the code changes I added to get rid of the errors.

    file: wp_phpbb_bridge.php

    near the top before class WpPhpBB add
    define('STRIP', false);
    Note; this comes from /includes/statup.php you can also source in that file if you think the constant might be set to something else.

    changed

    elseif($userid > 0 && $userid != $user->ID)

    to
    elseif($userid > 0 && property_exists($user,'ID') && $userid != $user->ID)

    Plugin Author macmiller

    (@macmiller)

    There will be a CSS file in your theme probably names style.css. You can make the changes there. In my installation I have the topics display in a unique div which I reference in the CSS file.

    Plugin Author macmiller

    (@macmiller)

    I have not seen that problem. The Return List Length is the number of topic links returned, for my installation it is correct. If you set it to 30 you should see no more than 30 topics (if there are less than 30 topics that meet the criteria then less will be returned).

    Plugin Author macmiller

    (@macmiller)

    I released a new version 1.2 which fixes this and a couple of other things I noticed.

    Plugin Author macmiller

    (@macmiller)

    Find this code in phpbb_topics_portal_Gugs.php

    // open a phpBB connection
       if (!isset($connphpBB_b) || ($connphpBB_b === FALSE)) {
           $connphpBB_b = mysql_connect($dbhost,$dbuser,$dbpasswd,TRUE);
          $returnvar_b['connphpBB'] = $connphpBB_b;
       }

    and add one line to set the char set to UTF8

    as follows:

    // open a phpBB connection
       if (!isset($connphpBB_b) || ($connphpBB_b === FALSE)) {
          $connphpBB_b = mysql_connect($dbhost,$dbuser,$dbpasswd,TRUE);
          mysql_set_charset('utf8',$connphpBB_b);
          $returnvar_b['connphpBB'] = $connphpBB_b;
       }

    Will try to update version with this fix.

    Plugin Author macmiller

    (@macmiller)

    Actually it should work with any character set. The code php code that parses and formats the list doesn’t make any distinction about character set. Are you still having the problem? Can you post your web site URL?

    Plugin Author macmiller

    (@macmiller)

    Glad to hear it is helpful. The post author name should already be displayed. If you do a page source of the output page you can see how the output is tagged and add css source to your themes style.css.

    found a problem with the location of one initialization statement updated version below.
    horizontal-scrolling-announcement.php V1

    horizontal-scrolling-announcement.php
    horizontal-scrolling-setting.php

    changes are marked with KM comment line proceeding the change or mod.

    Plugin Author macmiller

    (@macmiller)

    I created a new version with an optional parameter for forum location. The defaulted location as you say won’t work for a subdomain, having the override value will handle this and any other special case.

    macmiller

    (@macmiller)

    I found this problem also and tracked it down. There are many undefined variables not initialized. The SQL statement to write the message therefore gets corrupted and does not generate a new record in the database. In any event, if you turn on errors and then go into the source and fix all of the undefined variable errors (there are about 20 of them), the plugin then works flawlessly. For the SQL statement to work there may only be one variable needed to initialized, but why take the chance?

    If anyone is interested I will post the specific code changes.

    Thread Starter macmiller

    (@macmiller)

    Here is the thing. The latest version shows as 1.0 even though it correctly downloads version 1.0481 when the download link it hit. Is it something in my setup or is it on the wordpress side??

Viewing 15 replies - 1 through 15 (of 45 total)