Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,701 through 10,725 (of 32,504 total)
  • Author
    Search Results
  • #151632
    gmichel
    Participant

    I have the latest WP installed with OptimizePress 2, Buddy Press and BBpress (latest versions) installed. I am building the forums in the private section of a membership site.

    I am having issues with the Breadcrumb links.

    I used method 2, a page for the forums index with short code. The forums display properly.
    >> http://www.imstudy.club/forums-welcome/

    Then when I click on each forum it goes to the correct page, I have set-up “Content Aware Sidebars” to show widgets in the sidebar and the forums in the content area. It works.

    Now when I am on one of these forums the breadcrumb shows:
    IM Study Club’s Public Home › Forums › Site Feedback

    The link “Forums”, is the Forum root and it goes here:
    http://www.imstudy.club/forums/

    That’s a Blog Archives page with a link “continue reading” going nowhere.

    How can I have this “Forums” link in the breadcrumb go to my custom page “forums-welcome” instead.

    I have tried to change the name of the root forum to match the page, but it doesn’t works, always get the blog archives page… I also tried to redirect, but got a loop.

    Any idea?

    Thank you very much for your help.

    Michel

    vegas778
    Participant

    Hi All,

    I would like to create a link in a wordpress widget that redirects the logged in user to his user forum profile page but I cannot manage… I dont know what code should I use.

    Example : it should redirects to the page : http://www.example.org/forums/user/admin/

    Thanks in advance

    Regards,

    #151628
    Anonymous User 9493778
    Inactive

    Thanks Robin.

    It worked a little too well in my case. On the front end the WordPress Toolbar was also hidden for Administrators. At least in my case.

    Here is a code snippet that lets only Administrators see the WordPress Toolbar on the front end of a site. The toolbar is hidden for all other users.
    https://support.woothemes.com/hc/en-us/articles/203107607-Hide-WordPress-Admin-Bar-for-Users

    add_action(‘after_setup_theme’, ‘remove_admin_bar’);

    function remove_admin_bar() {
    if (!current_user_can(‘administrator’) && !is_admin()) {
    show_admin_bar(false);
    }
    }

    Thanks for your help. This can be added into the documentation overhaul.

    #151620
    Techknowledgic
    Participant

    I posted it here because the sign up is by the bbpress widget using this code [bbp-register]

    and before I was having an issue which is many users with weird names and emails are registering with my websites and I have been told to use captcha so a real person can sign up only but now even with capthca I am having spam users idk how!

    knowing that I am the only admin and I changed my pass and email several times and didn’t work

    #151614
    Robin W
    Moderator

    The way profiles are shown requires some coding – would a menu item do you?

    Layout and functionality – Examples you can use

    #151613
    Robin W
    Moderator

    Kevin,

    How I hate the toolbar – it should only be seen by admins

    add the following code into your functions file

    add_filter('show_admin_bar', '__return_false');
    

    Functions files and child themes – explained !

    #151612
    Anonymous User 9493778
    Inactive

    Hi,

    is there a short code to display the users profile?

    After reading the documentation and working with bbpress the only way a user can see their profile is if they have already created a topic or replied to a topic.

    Some users only want to favorite a few topics. However they can not see their favorites unless they can see their user profile.

    Included is a screen shot of what is wanted.
    https://www.dropbox.com/s/qtwtvfwckswjfk9/profile_shortcode.jpg?dl=0

    Thanks,
    Kevin

    #151590

    In reply to: current in forum root

    Robkk
    Moderator
    #151586
    Robkk
    Moderator

    hmmm i thought you could be able to disable it with 0 , but i really havent tried that yet.

    you could hide the link with css and also php i guess so the time wouldnt even matter since there isnt a link to edit at all.

    heres with css

    a.bbp-reply-edit-link {
    display:none;
    }

    for topics just change reply to topic

    #151575

    In reply to: Broken Breadcrumbs

    K-Path
    Participant

    First I used method 2 and the page only rendered part of the Welcome text. The shortcode didn’t work.
    [bbp-forum-index]

    I then switched to Twenty Ten theme and the short code to produce the page Forums worked perfectly.

    So this incredibly beautiful theme I’ve been grooming into the hub for my organizations activities doesn’t work with bbPress.:-(

    #151557
    Robin W
    Moderator

    ok, lets work this through

    You say you’re a superadmin – does this mean its a multi-site installation? they’re not my forte, but if this is just a single site then….

    First of all bbpress is a plugin, so you’ll still need wordpress (and it holds the users), and since the existing theme has all the styling that you users are used to, then it would be sensible to use that as well.

    So in effect what you need to do is just import a full copy of the installation, and then take out the pages and posts, and you have a forum without the rest of the site !

    Since you have a test site, then follow the guidance in

    https://codex.bbpress.org/creating-a-test-site/

    and then just go into posts and pages to delete those (apart from the forum page), and amend the custom menu if you have one.

    #151554

    In reply to: Broken Breadcrumbs

    Robin W
    Moderator

    Without further info from you, have you tried

    Step by step guide to setting up a bbPress forum – Part 1

    #151553
    Robin W
    Moderator

    ok, the template for the forum index isn’t used. Bbpress looks for your theme template fiels and uses them instead.

    see

    Step by step guide to setting up a bbPress forum – Part 1

    #151546
    K-Path
    Participant

    WordPress 3.9.2 running Montezuma theme.
    bbPress 2.5.4

    There is no “Forums” landing page and the breadcrumbs don’t work for either forums or topics. You can see the individual forums from inside the admin and clicking view and then post a topic but you can’t see the forum from the public face of the blog. Follow the link and you’ll see what I mean.
    http://ecopsi.org/forums/topic/the-codex-of-aman/

    Very frustrating. Is there something that I forget to do?

    #151537

    In reply to: Get User Role from ID

    robsward
    Participant

    Got a bit closer doing this:

    $reply_author_role = bbp_get_reply_author_role( array( 'post_id' => bbp_get_topic_last_active_id() ) );

    However, I want just the role to be returned without the enclosing div so I can use it in a conditional.

    #151536

    Topic: Get User Role from ID

    in forum Themes
    robsward
    Participant

    I’m trying to add a column to bbPress 2.x that lists the last person to reply to a topic and adds a specific class to the

    if that person is a moderator or keymaster. Unfortunately, I can’t find any documentation on the template tags in 2.x. So far, I’ve been able to get the user ID for the last reply, but I can’t seem to find the function that would get the role information for that user based on their ID.
    Here’s the code that gets the ID:

    $reply_author_id = bbp_get_reply_author_id( array( 'post_id' => bbp_get_topic_last_active_id() ) );

    Now how can I get their bbPress role?

    Stephen Edgar
    Keymaster

    Try bbp_get_forum_topic_count() instead, this ‘gets’ the value, without the ‘get’ using bbp_forum_topic_count() it tries to output the value.

    tystra
    Participant

    I’m having trouble outputting specific topic counts for individual forums into Google’s Geochart. I want to have the total topic count listed on the map for each region (each forum). I use the following code to try and print the value, but I know I’m missing something (limited PHP/Javascript experience). Please take a look below, what do I need to add in order to get the value to output?

    <?php function my_geochart_script() {
            
       echo '<script type="text/javascript">
       google.load("visualization", "1", {"packages": ["geochart"]});
       google.setOnLoadCallback(drawRegionsMap);
     
       function drawRegionsMap() {
            var data = google.visualization.arrayToDataTable([
                    ["Country", "Popularity"],
                    ["Canada", <?php bbp_forum_topic_count( '23196' ); ?>],
                    ["Japan", <?php bbp_forum_topic_count( '23190' ); ?>],
            ]);
     
            var options = {backgroundColor:{fill:"transparent"}};
     
            var chart = new google.visualization.GeoChart(document.getElementById("chart_div"));
            chart.draw(data, options);
       };
       </script>';
    }
    add_action( 'wp_head', 'my_geochart_script' );

    Any help would be much much appreciated! Thank you.

    #151505
    imFiles
    Participant

    Hi
    I am currently using this code to show the last topic on the main index.
    <a href="<?php bbp_forum_last_topic_permalink(); ?>" title="<?php bbp_forum_last_topic_title(); ?>"><em><?php bbp_forum_last_topic_title(); ?></em></a>
    I was wondering if there is a way to make the title of bbp_forum_last_topic_title a max amount of characters, so the title is smaller.
    Thanks

    #151504
    Stephen Edgar
    Keymaster

    Thanks, it is because you don’t have the table prefix xf_ set when doing the import.

    So use the same settings you used previously and add xf_ in the importer field “Table prefix”.

    #151498
    Robkk
    Moderator
    span.bbp-admin-links a {
    color: #222;
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
    text-decoration: none;
    }
    #151430
    Robkk
    Moderator

    in the original bbpress theme

    in loop-single-topic.php your freshness column should have this

    the bolded text is what shows the avatar,
    to make it bigger just make the number higher
    high existence uses 40 , they have border radius css to make it rounded

    
    <li class="bbp-topic-freshness">
    
    		<?php do_action( 'bbp_theme_before_topic_freshness_link' ); ?>
    
    		<?php bbp_topic_freshness_link(); ?>
    
    		<?php do_action( 'bbp_theme_after_topic_freshness_link' ); ?>
    
    		<p class="bbp-topic-meta">
    
    			<?php do_action( 'bbp_theme_before_topic_freshness_author' ); ?>
    
    			<strong><span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span></strong>
    
    			<?php do_action( 'bbp_theme_after_topic_freshness_author' ); ?>
    
    		</p>
    
    #151424
    Robkk
    Moderator

    I’ve been searching high and low with no promising leads.

    its been right in front of you the whole time!!!! (not yelling , being dramatic)

    ya know how the freshness column has a little avatar by the users name. high existence just moved it into an li and made it bigger.

    #151421
    EzYRiDaH
    Participant

    Hi Stephen / @netweb,
    Many thanks for your replies! I am trying to convert MyBB 1.6.11. It is a very old forum which (unfortunately) was customized improperly by the previous owner. It was lagging many many versions. I paid a student to do an upgrade about a year ago, but there is some funky **** still in the PHP. With my limited knowledge of MyBB I even tried to a fresh install of MyBB and imported the complete forum in it. Pulled all my hairs out when I found out MyBB stores code in the database…

    I’ve stressed my dear wife to start cleaning the old forum, which she’s (finally) diligently doing now.

    Don’t worry too much about making any updates on the code 🙂 I also have some kind of life and job next to trying to convert a MyBB forum 😉 After all the cleaning of the old forum, I will do another test run to see if I can find any other issues. It is very likely that some errors are just because it is an ancient forum (10 years old). Read up on the conversion of @Halo-DieHard. Will make sure I do a repair/optimization of the old forum. To be honest, I am not sure if I did that with the last conversion, sorry.

    I will report back on the forum on what I was able to squeeze out on performance with MAMP, with what settings and the results.

    Another (most likely dumb) question I forgot to ask. This could be the answer to the missing(?) topics/replies. At the end of the conversion, the program shows in short intervals ‘-‘ on the screen. This takes forever and lasted almost as long as the initial part of the conversion which grabbed the Rows. I thought the conversion was finished when the ‘-‘ stopped appearing on screen ‘————‘ etc. Was I supposed to wait for some kind of other message which indicates the conversion ended?

    In the meantime I am busy integrating the plugin USERPRO and GD bbPress Toolbox. Never coded in PHP and already hate the syntax 😉 I will get there and report back on the results!

    Thanks again for your time!

    #151420
    Robkk
    Moderator

    remove the #bbpress-forums code you added

    and also the code i gave you before

    use this

    .bbpress #primary {
    float:left;
    width:100%;
    }
Viewing 25 results - 10,701 through 10,725 (of 32,504 total)
Skip to toolbar