Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,751 through 10,775 (of 32,504 total)
  • Author
    Search Results
  • #151328
    Robkk
    Moderator

    works not, I just did not have the <?php in my site.

    it works now??

    So I just added the code from Robin W’s link,

    however it does not work,

    ill test out that profile link ,

    if you think its social login , deactivate and see if robins profile link code works.

    Plus, I would prefer it to stay all the way to the right.

    im sure its just positioning it with css , but hey it doesnt have to be floated right, not a big deal if it is or not.

    Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.

    i just achieved this today. But it required a lot of work with my theme.

    #151327
    cybarmitzvah
    Participant

    So I just added the code from Robin W’s link,

    however it does not work,

    Layout and functionality – Examples you can use

    I get the edit profile button for logged in users, however, it does not link to their profile. Could it be that I am using social login.?

    Plus, I would prefer it to stay all the way to the right. Plus, preferably, look more like this sites, with the username and photo of the person logged in, in the top right.

    JB

    #151326
    cybarmitzvah
    Participant

    Nice!

    works not, I just did not have the <?php in my site.

    Robkk
    Moderator

    My goal is this: Attach BadgeOS rewards to users using specific words within forum posts;

    I feel like that is going to be a paid project

    http://jobs.wordpress.net/

    #1 outsourcing service for WordPress

    #151323
    sidelancer
    Participant

    Thanks a lot! Worked for me. I couldn’t find the code in bbpress to change the forum headings but your code worked right away.

    gxechidna
    Participant

    My goal is this: Attach BadgeOS rewards to users using specific words within forum posts; however I can’t find where I might be able to inject the code to search through the post text.

    Please be kind, any PHP knowledge I hold is self taught and filled with huge gaps. I know I’ll need to use “strpos” with the post text and an IF statement, but I’m just lost as to where in the plugin/theme code I need to use it.

    Thank you!

    #151318

    In reply to: Image click/resize

    Robkk
    Moderator

    was it just a link or using the img button ??

    example with img button

    #151317
    Robkk
    Moderator

    in my child theme i have one functions.php

    this is the entire code.

    <?php
    
    /* Add custom functions below */
    add_filter('show_admin_bar', '__return_false');
    #151316
    cybarmitzvah
    Participant

    It wont work on mine 🙁

    Be clear, where did you add his code? Did you make a new functions file?

    TY
    JB

    #151311
    Robkk
    Moderator

    i created a child theme with mesocolumn

    i added robins code and it worked fine.

    even when i switched to a different role

    #151300
    cybarmitzvah
    Participant

    Uhh?? Where did I loose you? … and where is stpehen Edgar?

    I do not have a functions file in my child theme. I tried creating a blank file and calling it functions.php and the code just showed up on the top of my page. Then I tried just adding that code you gave me to the mesocolumn functions file and once again the code just screwed up and showed up at the top of my page under the admin bar.

    So, once again, what should I do from here?

    Ohh and there is no white space.

    Thank You,
    JB

    #151289

    In reply to: Topic Title length

    Robin W
    Moderator

    should be something like

    add_filter ('bbp_get_title_max_length','change_title') ;
    
    Function change_title ($default) {
    $default=60 ;
    Return $default ;
    }
    

    try this in your functions file – if not come back, but suppers ready and I haven’t time to test!

    #151285
    cybarmitzvah
    Participant

    ok, I will delete it, but then, where do I put the code?

    #151283
    Kris35
    Participant

    Hi Luisc9,

    I dont have an anwer for you as I have taken BBPress down for the moment. All I can say is, I have a coder who charges me $15 an hour to fix this kind of stuff. Got him from Elance and he is good and trustworthy. For people who aren’t all that good at fixing this type of stuff, its worth it – well for me it is anyway. Hope someone replies to you soon.

    #151282
    themefurnace
    Participant

    Hi,

    I have finally converted a large forum over to bbPress from Vbulletin,
    The bbPress forum page and threads etc are quite slow – Im just using bbPress + BuddyPress with Twenty Twelve theme at the moment while I code my forum theme.

    The bbPress section of the site is slow – there is a few seconds delay when clicking a thread or onto the forum page itself so guessing this is due to the size – 850k replies, 61k topics and 21k users.

    I wondered if there were any tweaks or recommendations for speeding up the site, Im on my own dedicated server and Vbulletin is blazing fast on it.

    I saw this thread – http://bbpress.org/forums/topic/slow-to-post-forum-topics-and-replies-on-large-forum/ where it mentioned a speed increase in 2.6 for larger forums, any news on that ? Or anything I can try now to test it out ?

    I read that hidden forums might make a difference so I unhid the forum but no speed increase.

    #151279
    Robin W
    Moderator

    the error code is saying that you have whitespace in

    wp-content/themes/awesome/functions.php:1

    If this is a blank file, then delete it.

    If not, then it has a problem on line 1

    #151275
    GamingOrdinance
    Participant

    yep, all the same information and still coming up with:

    WordPress database error: [Table 'db502829828.node' doesn't exist]
    SELECT convert(node.node_id USING "utf8") AS node_id,convert(node.parent_node_id USING "utf8") AS parent_node_id,convert(forum.discussion_count USING "utf8") AS discussion_count,convert(forum.message_count USING "utf8") AS message_count,convert(node.title USING "utf8") AS title,convert(node.node_name USING "utf8") AS node_name,convert(node.description USING "utf8") AS description,convert(node.display_order USING "utf8") AS display_order,convert(node.node_type_id USING "utf8") AS node_type_id,convert(forum.allow_posting USING "utf8") AS allow_posting FROM node AS node LEFT JOIN forum AS forum USING (node_id) WHERE node.node_type_id = "Category" OR node.node_type_id = "Forum" LIMIT 0, 100
    #151272
    TE5LA
    Participant

    I tried changing permalinks but the forums won’t display at all. All that shows is the forum short code.

    #151271
    Stephen Edgar
    Keymaster

    Verify you have used the correct database values from your Xenforo config.php file, it should be in your Xenforo /library folder.

    e.g.

    
    $config['db']['host'] = 'localhost';
    
    $config['db']['port'] = '3306';
    
    $config['db']['username'] = 'my_db_user_name';
    
    $config['db']['password'] = 'my_db_user_password';
    
    $config['db']['dbname'] = 'my_db_name';
    
    #151267
    Stephen Edgar
    Keymaster

    1- You would need a ‘membership’ plugin that supports bbPress, there are a few in the WordPress plugin https://wordpress.org/plugins/
    2- You can fully customize bbPress to match any theme or custom design you want, see the docs for more info. https://codex.bbpress.org/

    #151266
    Ismail
    Participant

    thank you so much Gautam it worked for me .

    bbpress/includes/core/filters.php : added :

    add_filter( 'bbp_get_reply_content',   'bbp_rel_nofollow'              );
    add_filter( 'bbp_get_topic_content',   'bbp_rel_nofollow' 	       );
    #151262

    In reply to: disable pingbacks

    Stephen Edgar
    Keymaster

    bbPress does not have pingbacks enabled for it’s post types, they are explicitly disabled.

    Could you be more specific and post a link to some examples and I’ll take a look.

    * Is it happening on all three bbPress custom post types?

    * forum, topic and reply are the tree post types and a link to one of each that this is happening with will allow me to investigate why.

    * I can’t think of a plugin for bbPress that changes the ping status of the custom post types but just in case can you disable all your plugins except bbPress and create a new forum, a topic in that forum and a reply to that topic and then create a WordPress post with a link to each of the three and see if you see any pingbacks.

    Stephen Edgar
    Keymaster

    I’ve just tested this with bbPress 2.5.4 and Twenty Fourteen with no other active plugins:

    * Created a page /123 and added the [bbp-forum-form] shortcode
    * Opened that page /123
    * Entered 123 as the forum title and description
    * Selected forum for the forum type
    * Selected open for the forum status
    * Selected Public for forum visibility
    * Selected root for parent forum (Root is another forum I already had setup)
    * Clicked submit and the forum is created and I am redirected to create a new topic in that forum e.g. /forums/forum/root/123/

    #151257
    EzYRiDaH
    Participant

    Hi Stephen / @netweb

    I was finally able to run a complete conversion without any restarts. The MyBB SQL of the database was 435,9 Mb big. We cleaned a lot of the old forum. It contained 1 million+ messages, close to 40k topics and a 400+ members.

    The conversion ran for roughly 48 hours on a MacBook Air with i7, 8Gb memory and a 500Gb Solid State drive under MAMP.

    For people who want to do such a big conversion, I also had to tweak a lot of the PHP ini files to import such a big query and get maximum throughput. Below a summary. It took me a while to find all the necessary settings.

    Copy /applications/mamp/library/support-files/my-huge.cnf and rename to /Applications/MAMP/conf/my.cnf
    Change in my.cnf setting [mysqld] max_allowed_packet = 1000M
    Change in /Applications/MAMP/bin/php/php5.5.10/conf/php.ini settings
    max_execution_time = 259200,
    max_input_time = 259200,
    memory_limit = 6144M,
    upload_max_filesize = 1000M,
    post_max_size = 1000M,
    mysql.connect_timeout = 1000.
    Add or change in Applications/MAMP/bin/phpMyAdmin/config.inc.php setting $cfg['ExecTimeLimit'] = 0;
    Don’t forget to restart MAMP.

    I ran the conversion with the following settings: Rows Limit 10,000 and Delay Time 0. During the conversion my memory was around 50% and CPU was very low. Most likely it is possible to squeeze out more performance.

    I did a lot of random checks and the outcome seems ok-ish. Not quite sure about some things and have some questions. Please bear with me 😉

    Some topics are not combined correctly. All replies are separate topics. The ‘Recalculate the parent topic for each post’ does not fix this. I ran all repair queries btw. An option in the Topics interface to combine these, would be ace 😉 Is it possible to correct this with a query? My SQL skills are too limited unfortunately.

    The Repair Forums option ‘Recalculate the position of each reply’ does not work. It creates a white screen. Load problem?

    myBB accepts spaces in the login name. Unfortunately WordPress does not. The conversion leaves the spaces in the login name. Is it possible to correct this with an SQL? Is there another workaround? Correcting them one by one is not my preference 😉

    Two forums are created double. The copies do not contain any topics or replies, so it is easy to remove them. Just thought you should know 😉

    The original myBB forum contained 1mlj+ messages and 36k+ discussions. The converted forum contains 109k subjects. That can be explained because of the first issue. But it only contains 830k replies. It could be that myBB adds subjects and replies to messages, but the difference is a bit too big. Is it possible to do an SQL checksum to check the expected output?

    Thanks in advance for your time!

    #151254
    GamingOrdinance
    Participant

    Hi

    im trying to import my XenForo to my BBPress and im having trouble as this is coming up:

    WordPress database error: [Table 'db502829828.user' doesn't exist]
    SELECT convert(user.user_id USING "utf8") AS user_id,convert(user.username USING "utf8") AS username,convert(user.email USING "utf8") AS email,convert(user_profile.homepage USING "utf8") AS homepage,convert(user.register_date USING "utf8") AS register_date,convert(user.custom_title USING "utf8") AS custom_title,convert(user_profile.status USING "utf8") AS status,convert(user_profile.signature USING "utf8") AS signature,convert(user_profile.location USING "utf8") AS location,convert(user_profile.occupation USING "utf8") AS occupation,convert(user_profile.about USING "utf8") AS about FROM user AS user LEFT JOIN user_profile AS user_profile USING (user_id) LIMIT 0, 100
    No users to convert
    Starting Conversion

    My forum link: community.gamingordinance.com

Viewing 25 results - 10,751 through 10,775 (of 32,504 total)
Skip to toolbar