Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 21,176 through 21,200 (of 64,742 total)
  • Author
    Search Results
  • Jerry
    Participant

    If this challenge I am having is beyond the scope of help in the bbpress forums, then I understand. The below code is a function that allows the user to submit a search request for a book title via the google books api. When the user clicks “search”, the function works great and returns results in a Jquery window. The problem I am having; it triggers a submit of the bbpress topic, and I get the errors “cannot submit a topic with the subject line blank.”

    If there is a simple fix I am not seeing, can someone please help me?

    function book_search_google () {    
      //set API version for Google Book Search API
      $v = isset($_POST['v']) ? $_POST['v'] : '1';
      //set user API key for Google Book Search API
      $key = isset($_POST['key']) ? $_POST['key'] : 'key goes here';
      //set user IP for Google Book Search API
      //$ip = isset($_POST['ip']) ? $_POST['ip'] : $_SERVER['REMOTE_ADDR'];
      //set default value for query to Google Book Search API 0307387941
      $query = isset($_POST['q']) ? $_POST['q'] : '0307387941';
      //set default value for search type to Google Book Search API
      $type = isset($_POST['type']) ? $_POST['type'] : 'all';
      //check and assign page of search results - are we on the first page?
      $start = isset($_POST['start']) ? $_POST['start'] : 1;
      //set default value for number of results
      $limit = isset($_POST['limit']) ? $_POST['limit'] : '10';
    
      switch ($type) {
    
        case 'all':
          $params = 'q='.urlencode($query).'&startIndex='.$start.'&maxResults='.$limit;
        break;
    
        case 'isbn':
                $params = 'q=isbn:'.urlencode($query).'';
        break;
    
        case 'lccn':
                $params ='q=lccn:'.urlencode($query).'';
        break;
    
        case 'oclc':
                $params = 'q=oclc:'.urlencode($query).'';
        break;
    
        default:
          echo '<p>You must specify a search type such as "all" or "book". Check the url to make sure "type=" has a value.</p>';
          exit;
          }
      //set URL for the Google Book Search API
      $url = 'https://www.googleapis.com/books/v'.$v.'/volumes?key='.$key.'&'.$params.''; 
    
      if(isset($_POST['q'])):
    
      //build request and send to Google Ajax Search API
      $request = file_get_contents($url);
      //decode json object(s) out of response from Google Ajax Search API
      $data = json_decode($request,true);
      $totalItems = $data['totalItems']; 
    
     pagination  mainHeading
        if ($totalItems > 0) {
      ?>
    
          <!doctype html>
          <html lang="en">
          <head>
          <meta charset="utf-8">
          <title>jQuery UI Dialog - Default functionality</title>
          <link rel="stylesheet" href="//whosgotbooks.com/jquery/jquery-ui-1.10.4.custom.css">
          <script src="//whosgotbooks.com/jquery/jquery-1.10.2.js"></script>
          <script src="//whosgotbooks.com/jquery/jquery-ui-1.10.4.custom.js"></script>
          </head>
          <body>
          <div id="dialog" title="Google Books Search Results" style="display:none;">
          <script>
          $(function() {
          $( "#dialog" ).dialog({
            height: 550, width: 450});
            $( "#returnvalues" ).click(function(){
            $( "#dialog" ).dialog( "close" ); 
            });
            });
          </script>     
                <strong><p style="font-size: 16px; text-align: center";>Top 10 Results for &quot;<?php echo @$_POST['q']; ?>&quot;</p></strong> 
            <strong><p style="font-size: 14px; text-align: center";>choose a book to select as your topic</p></strong>&nbsp;
            <table style="width:400px">
            <col width="325">
            <col width="75">
                <?php foreach ($data['items'] as $item) { ?>    
                      <tr>
                <td>
                           <strong><u><div style="font-size: 14px";><?php printf($item['volumeInfo']['title'])?></u></div></strong>
                             <strong>Author: </strong><?php printf( $item['volumeInfo']['authors'][0]); ?><br />
                             <strong>Published: </strong><?php printf( $item['volumeInfo']['publishedDate']); ?><br />                       
                   <strong>Page(s): </strong><?php printf( $item['volumeInfo']['pageCount']); ?><br />
                             <strong>Publisher: </strong><?php printf( $item['volumeInfo']['publisher']); ?><br />
                             <strong>Category: </strong><?php printf( strtolower($item['volumeInfo']['printType']).', '.strtolower($item['volumeInfo']['categories'][0])); ?>&nbsp;&nbsp;
                   <strong>ISBN: </strong><?php printf( $item['volumeInfo']['industryIdentifiers'][0]['identifier']); ?></td>
                <td><p><input type="submit" name="submit" value="Select" id="returnvalues"/></p>
                    <img src="<?php printf( rawurldecode($item['volumeInfo']['imageLinks']['smallThumbnail'])); ?>" />
                        </td>
                <tr><td style="width:420px"><p><strong>Description: </strong><?php printf( $item['volumeInfo']['description']); ?><br /></p></td>
                </tr>
                </tr>
    
                <?php } }
                else {
                    ?>
                       <p><strong>Sorry, there were no results</strong></p>
                    <?php  } 
                /* for testing purposes show actual request to API - REMOVE when finished
                $apiRequest = $url;
                echo '<p>API request: '.$apiRequest.'</p>'; */ ?>
            </table>
          </div>
          </body>
          </html>
    
              <?php
              else: //show form and allow the user to check for Google Book search results
              ?>
    
          <p><form id="searchForm" name="searchForm" method="post"> 
            <fieldset id="searchBox">
                <label>Search for a Book:</label>
                <input class="text" id="q" name="q" type="text" value="Powered by Google" onfocus="this.value=''; this.onfocus=null;" />
                <select id="type" name="type" size="1">
                    <option selected value="all">Book Title</option>
                    <option value="isbn">Books by ISBN</option>
                    <option value="lccn">Books by LCCN #</option>
                    <option value="oclc">Books by OCLC #</option>                
                </select>
                <input class="submit" id="submit" name="submit" type="submit" value="Search"  />
            </fieldset>
          </form></p>
          <?php
          //end submit isset if statement on line 73
          endif;
          }
    #144935
    Robin W
    Moderator

    from a quick look, I think what you are after is

    #bbpress-forums div.odd, #bbpress-forums ul.odd,
    #bbpress-forums div.odd, #bbpress-forums ul.even {
    background: url(‘images/footer-bg.png’) repeat left top;
    }

    come back if that’s not what you’re after !

    #144933
    keytastic
    Participant

    Hi,

    To start off, I followed the directions I found here, and I have a child theme set up.

    The text and background from my forum are both very white. I’d like to change the background to something darker. Ideally, it would match the look of my widgets, but at this point, I’d take a plain black background.

    Here’s my site: http://www.lagsquid.com/forums

    Here’s what I’ve been trying:

    #bbpress-forums li.bbp-header,
    #bbpress-forums li.bbp-footer {
    	background: #4b8e2c;
    }
    
    #bbpress-forums {
    	margin-bottom: 10px;
    	border: 1px solid #666;
    	padding: 12px;
    	background-color: #000000;
    	color: #ffffff;
    }
    
    #bbpress-forums div.bbp-forum-title h3,
    #bbpress-forums div.bbp-topic-title h3,
    #bbpress-forums div.bbp-reply-title h3,
    #bbpress-forums a.bbp-forum-title,
    #bbpress-forums a.bbp-topic-permalink {
    	font-size: 16px;
    	color: #0066FF;
    }
    
    #bbpress-forums a.bbp-author-name {
    	font-size: 12px;
    	color: #75A3FF;
    }

    Now, as I said, I’d really like to make the background of my forums look like the widgets. I’m not sure, but I think the code is this:

    .widget{
    	margin-bottom: 10px;
        border: 1px solid #666;
    	padding: 12px;
    	background: url('images/footer-bg.png') repeat left top;
    }
    

    Only, I can’t seem to get url('images/footer-bg.png') repeat left top; to work. Any help would be appreciated!

    My apologies if this doesn’t make any sense as it’s 2am and I’ve been working on this for quite a bit 😛

    #144924

    In reply to: User Permission

    Stephen Edgar
    Keymaster

    @batmanfan Instead of making this second user a ‘keymaster’ you should make them a ‘moderator’ and this will disable the backend access for you.

    Look at the docs here on what each role can and cannot do by default
    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    #144920
    Stephen Edgar
    Keymaster

    And the conflict appears to be with WP e-commerce Version 3.8.13.4 When I deactivate that plugin the links magically appear, but it doesn’t display the number of users correctly.

    WP e-Commerce has one known issue in 3.8.13 that I know of, it is fixed for 3.8.14 though this appears to be a different issue:

    Trying to Edit Reply causes infinite redirect loop

    Maybe post a question on their support forums here https://wordpress.org/support/plugin/wp-e-commerce

    #144919

    Topic: wp-modal plugin

    in forum Plugins
    batmanfan
    Participant

    Can anyone help on this wp-modal plugin?
    http://codex.bbpress.org/modal-login-in-a-menu/#%c2%a01-install-wp-modal-login

    I managed to follow the set up instruction all ok and can see the login/out pop up and can login ok. But can’t register new user! after entering new username/email and click ‘signup’ it’s reading…’checking credential’ and then back to register page again, nothing happens.

    What have I done wrong?

    #144916
    Cole
    Participant

    This was my solution:
    I installed WP DB manager, went to the empty/drop menu of the plugin and selected any bbpress entries under drop which deletes data in the table (they all cluster so it will be easy to find). I then installed bbpress and it works.

    Warning: please backup database before you fiddle with it!

    foxden-vixen
    Blocked

    I have followed the directions on how to get the files into my theme page but WP and I are not friends and I am completely lost. I purchased a theme called Gamecenter. That is where I uploaded the files for this starter theme. In the bbPress Theme Options area I need to enter IDs or classes to hide sidebar options. I have no idea what the IDs or classes are. In the dashboard the theme has its own settings and I can change the look to no sidebar, left sidebar, right sidebar, etc. I want a right sidebar for the site except for the forums. I have looked in all the templates that are listed on the right but I have no idea what I am looking for. Here is the page where the forums are – http://www.thepsijicorder.com/psijic-order-forums/ – please help a lost soul who can’t figure this out!

    #144912
    elaborate
    Participant

    It would be great to have an alternative to the Groups feature in BuddyPress so you’re not forced to use their extensive override of the bbPress profiles, which is not that well designed if you’re not interested in the rest of the package.

    I can’t contribute much in the form of PHP development, but please ask if you think I could help out some other way.

    #144911

    In reply to: Deleting sidebar

    Phoenix
    Participant

    Thanks for your attention.
    I have copied the template (fullpage.php), renamed to (bbpress.php) and put into the root.
    But, the sidebar shown, because calling code of sidebar in the “footer.php” template.
    And when i delete the calling code of footer from bbpress.php i have lost all plugins (counters in footer) which shown in the bbpress.php page.
    Thanks in advance.

    My ites forum: http://med.gn24.net/forum

    #144910
    callerpatty
    Participant

    Hi
    I too am having issues with seeing the admin area of bbpress
    Brand new site with no content yet
    WordPress 3.8.2 running Twenty Thirteen theme.
    Installed plugins:
    Post Expirator
    SimpleLinks
    TinyMCE
    WordPress FAQ Manager
    WP-Filebase
    WP e-Commerce

    With these plugins active, I am able to get to the Forum activity on the dashboard, but that’s it. Interestingly, there is only one user in my WPinstall, but the forums activity is displaying 19?

    And the conflict appears to be with WP e-commerce Version 3.8.13.4 When I deactivate that plugin the links magically appear, but it doesn’t display the number of users correctly.

    We need to run WP e-commerce and would like to run bbpress if the conflict can be resolved.

    #144908
    Tom Dyer
    Participant

    Sounds perfect 🙂 I’d happily help but to be honest this is my first project with bbpress so I’m not sure I’d be of much assistance. Sounds like you have it under control anyway – Great stuff!

    davidgikandi
    Participant

    Hi,

    I have read that the RSS feed for bbPress is: yoursite.com/?feed=rss2&post_type=forum

    Mine is http://chamabox.co.ke/?feed=rss2&post_type=forum and if you look at that page you will see that it is showing only my forum topics and nothing from the rest of my blog.

    However, when:

    1. I put http://chamabox.co.ke/?feed=rss2&post_type=forum in feedburner, it refuses and says it is missing important XML and so cannot be burnt.

    2. I put http://chamabox.co.ke/?feed=rss2&post_type=forum in Facebook’s RSSGraffiti it fails and says it is invalid

    3. I put http://chamabox.co.ke/?feed=rss2&post_type=forum in Mailchimp.com’s RSS-to-email newsletter templates, it shows all my blog posts instead of forum posts.

    How do I solve the above?

    Thanks!

    David

    #144904
    Stephen Edgar
    Keymaster

    Conveniently I’m at my parents for dinner…

    This is on an iPad 2iPad 3… And moving the cursor around to edit text works fine…

    Now editing the original post with an iPad 3,iPad Air and still fine.

    So a 2, 3 and 5/Air iPads are working fine to post and/or edit and/or change cursor location.

    With all that said I have also experienced this exact same issue here on bbPress.org using my iPad. As each of these 3 iPads were originally mine and are now my parents yet I can’t reproduce the issue any longer.

    #144902
    arivuword
    Participant

    Kindly help me. How to filter the topic using the custom fields.

    I have created the custom fields using the GD Custom posts and taxonomy tools. I need to filter. I have followed this step but its not working.

    http://internet-alacarte.com/adding-custom-fields-to-bbpress-topics-then-filtering-topics-by-custom-fields-using-views/

    Thanks in advance.

    https://wordpress.org/plugins/bbp-views/

    #144898

    * Visit Admin > Users
    * Tick the box next to your account
    * Use the right-most drop-down and select “Key Master”
    * Save the page

    I’ll note again that under normal circumstances this should happen automatically when activating bbPress. Sorry it didn’t, and I’m curious to know any other plugins you may have installed (to see if there’s some conflict with one of them that prevented this.)

    #144893
    shanerbaner82
    Participant

    Hey!
    So thank you so much. I did not follow that tutorial on how to create the bbPress subdirectory in my theme. I built this theme from scratch and read somewhere that bbpress first looks in your theme files for the template files and had already moved everything exactly the way you described. I found that link in the file and BAM! THANKS SO MUCH!

    #144892
    tharsheblows
    Participant

    Adding for completeness: I have bbpress-functions.php and bbpress.php in the main theme directory, not in the bbpress subdirectory.

    #144891
    tharsheblows
    Participant

    You can take out <?php bbp_forum_subscription_link(); ?> in content-single-forum.php . I have a bbpress directory in my theme (eg mytheme/bbpress/) where I’ve copied the entire default template and those files overwrite the default theme which I got from templates/default/bbpress in the plugin.

    So you’d have something like yourtheme/bbpress/content-single-forum.php. I’m looking at this https://codex.bbpress.org/theme-compatibility/step-by-step-guide-to-creating-a-custom-bbpress-theme/ and getting confused but I have a feeling you’ll work it out! Anyway, that’s where that code is.

    #144889
    shanerbaner82
    Participant

    I have seriously looked everywhere and I am not sure what else to do. I am somewhat a noob to bbPress but not at all to the wordpress way of things. Iam a freelance developer. For the life of my I cannot find how to remove the subscription link from the pagination. The best I could do was float it to the right of the page, I do not want to display:none it because I want it show on replies. If anyone knows where I can remove this I would be very grateful. Thank you in advance.
    Shane

    PS here is a link to where I would like it removed:
    http://kun.webrevllc.com/themen/kunst/

    Oh, WP 3.8.2 and BBPress 2.5.3, thanks!

    #144887
    tharsheblows
    Participant

    For the topics archive showing all topics, you can use the shortcode [bbp-topic-index] on a normal WordPress page.

    “All replies” is slightly different. You could use the Recent Replies widget (https://codex.bbpress.org/widgets/) if you had a page with a widget for the content but if you wanted a proper archive page, I think you’d have to make a new template for it. I think it’s one of those things that if enough people ask for it, it might get prioritised for future versions but that’s just a guess. If you are comfortable making page templates, I can post how I did a “latest posts” page (posts = new topics + replies).

    I’m not sure what part of the menu you mean, I’m sorry. Do you mean how “support” (with a link to /forums) is highlighted above even when you’re on a topic page? They use a custom nav file:
    https://meta.trac.wordpress.org/browser/sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-nav.php

    If I were trying to replicate that, I would use jQuery to add the current-menu-item class to the top forums list item – not that it’s is the right way to do it, it would just be the easiest for me to do and to maintain. You’d need to add it to a javascript file in your template or make one and then include it. If you’re interested, I can post that code – you will need to add a custom class to your forums menu item too.

    Sorry, I know that wasn’t too terribly helpful!

    #144883
    pinkhare
    Participant

    I want to keep my menu navigation to present that they’re under the current page(menu), but bbpress doesn’t keep highlight on the menu to show the state when they go to individual topic or reply page.

    I would have wished that bbpress topic or reply would have a WordPress Template page to be linked like as a normal wordpress sub-pages so that I don’t need any workaround in the first place. In other words, all the bbpress topics or replies must be only displayed on the page that admin users created.

    created WP page slug: forums -> topics (all topics here) -> replies (all replies here)

    Anyway for now, how can I make the menu like this site?

    #144882
    Robin W
    Moderator

    This is community software – why not get involved and crack open the plugin, see what it does and add it to the core bbpress software

    To get started and learn about how to create a patch that is in the format we use here (and the entire WordPress Trac ecosystem) here are a couple of docs to get you on your way:

    https://make.wordpress.org/core/handbook/working-with-patches/
    https://make.wordpress.org/core/handbook/working-with-patches/create-a-patch-using-tortoisesvn/
    http://blog.ftwr.co.uk/archives/2005/11/03/windows-wordpress-toolbox/

    bbPress’ SVN repo URL is https://bbpress.svn.wordpress.org/trunk

    #144880
    Matoca
    Participant

    John,
    This is significant. Are you logged in as administrator when you are posting?

    If this is the case, then it may be a theme problem and not anything to do with bbPress.
    thank you, Matoca

    #144878
    orko9696
    Participant

    Everything was working fine few days ago. But from yesterday any topics i create or my members doesn’t go under forum. I tried again and again but no luck. I upgraded my wordpress to 3.8.2 and installed nextscript snap plugin couple of days ago. I tried deactivating snap, but that doesn’t solve the issue. I’m not sure what to do now, i asked few of my buddies, their bbpress is working fine with with wordpress 3.8.2, any suggestions are appreciated.

    Wordpress Version: 3.8.2
    BBpress Version: 2.5.3
    Forum Link: http://www.nullnix.org/chat-boards/

Viewing 25 results - 21,176 through 21,200 (of 64,742 total)
Skip to toolbar