Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,376 through 12,400 (of 32,585 total)
  • Author
    Search Results
  • #144223
    blessedtoes
    Participant

    It was there. I got one response which seemed – I’m not a coder, so I might have misunderstood – but seemed like my question was misunderstood, a redirect to a FB app developer page.

    It occurred to me to re-post over there but I don’t want to abuse the forum so decided to try here first. Thanks, Robin (and all).

    #144222
    adressler
    Participant

    I’m importing a large subscription forum from a custom-coded Lotus Notes / Domino database (*sigh*) which I converted to MySQL. The posts exported from Lotus include User’s first and last names, but no passwords, or email addresses. These old users won’t be able sign in, but their names should be displayed next to the posts they authored that were imported to the new WP site. I would like all users to re-register for the new site in order to post new topics, etc.

    So, is this even possible? Are email addresses/passwords required when importing Users based on the converter /plugins/bbpress/includes/admin/converters/Example.php? I’m really trying to avoid creating an Admin user named “Archived Author” to assign all 35,000 of these old topics/replies to.

    Thanks in advance.

    #144219
    Robin W
    Moderator

    ok, so that two posts I haven’t come back to you on !

    I had a dig, and this one is not a two minute answer, and I may not be able to solve it for you.

    However, I am working on a plugin for an entirely different use, but it is in the same code/function area, so as I am digging I try to see if I can work a fix for you.

    BUT, I may not within time available to me

    #144218
    Robin W
    Moderator

    do you mean no. 8 in the attached?

    bbPress Styling Crib

    #144214
    Robin W
    Moderator

    it means that someone has gained access to your site, and put some code into it.

    You really need to go through all of these to fully clean up the site and make sure any “backdoors” have been closed:
    https://wordpress.org/support/topic/268083#post-1065779

    How To Completely Clean Your Hacked WordPress Installation


    http://ottopress.com/2009/hacked-wordpress-backdoors/
    Additional Resources:
    http://sitecheck.sucuri.net/scanner/
    http://www.unmaskparasites.com/
    http://blog.sucuri.net/2012/03/wordpress-understanding-its-true-vulnerability.html

    or you can pay securi to fix it for you – see the link above !

    #144211
    virusek89
    Participant

    Hello @Robin Unfortunately, this code only changes the color of header
    and I want to change the color of the link which is next to the small avatar in freshness “link with the name of the author”

    #144210
    blessedtoes
    Participant

    Hi (again!) Robin-

    Thanks for the reply and for asking.

    It is for a blog. I’ve been using iFrames so I get the ad at the top and a goofy window people have to drag around (though I thought it cool), then I came to find out many object.

    I’d like to just have code to cap the title and a relevant image, just like posting a URL to FB.

    Thanks again,
    Matthew

    #144203
    batmanfan
    Participant

    Is it possible let users view their newly created topic prior to ‘submit’ it live? is there a plugin or a code to add to it? Thanks.

    #144201
    Robin W
    Moderator

    do you have a root page as such?

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

    Step 3 method 2

    #144193
    Robin W
    Moderator

    put this code into your style.css in your theme

    #bbpress-forums li.bbp-header {
    	background: #dc9e5a !important ;
    }

    You should select the color you want

    #144191

    In reply to: simple registration

    Robin W
    Moderator
    #144190

    In reply to: Bar users

    Stephen Edgar
    Keymaster

    Yes, bbPress uses the same system as WordPress, how to do that is explained here:

    https://codex.wordpress.org/Combating_Comment_Spam#Default_Comment_Spam_Tools

    You can and should also enable and use the Akismet plugin.

    #144180
    Robin W
    Moderator

    Without spending time going back through this thread, I presume you have tried all the bits of code above. The fact that they didn’t work for the OP whose site we couldn’t see doesn’t mean they won’t work for you.

    If you have done all that, come back with a link and I’ll take a look.

    #144179
    webbud65
    Participant

    Désolé, je n’avais pas vu la réponse.
    C’est bien ça, le problème est résolu.
    Juste une erreur dans le code fourni (_ à la place de -).
    Le code rectifié :

    function bbp_increase_forums_per_page( $args = array() ) {
    	$args['posts_per_page'] = get_option( '_bbp_forums_per_page', 150 );
        return $args;
    }
    add_filter( 'bbp_before_has_forums_parse_args', 'bbp_increase_forums_per_page' ); 

    Merci beaucoup !

    blessedtoes
    Participant

    Hi friends-

    I’ve been using iframes to embed pages on my blog from time to time and not only do I not love the look, but I’ve recently noticed some conversations about some sites having objections to this application.

    Does anyone know if there’s code I can use on my WP blog that looks like the FB page links, where it shows a relevant image from the page and the article headline?

    Just to be clear, this is for use on my WP bbPress blog, using an OptimizePress theme – not for a Facebook page… I asked on another forum and had no luck.

    Thanks in advance – grateful for your wisdom and experience!

    Matthew

    #144169
    Stephen Edgar
    Keymaster

    Ok, most likely duplicating page.php would be the way to go, you may have to add what is also inside loop-page.php though looking at your other pages on your site these also don’t have a sidebar so again it’s hard to say exactly what is needed as I don’t have access to this theme as it is a commercial theme.

    Did you post (and or look) on http://organicthemes.com/support/ to see if they have instructions on using bbPress with that theme?

    Stephen Edgar
    Keymaster

    I tried your code you provided, unfortunately the conversion results were the same as I described originally. Same results running the tools after the import/conversion as well.

    There is a chance I got the code wrong, I based it on the snippets you posted above.

    I think it will be a matter of just working out the correct fields to grab the correct data from in and around the topics table with topic_id, parent_id and forum_id and similarly for the replies table so that the correct value is being added to post_parent.

    If you want to dump all the code so I can take a closer look dump it into a gist here on GitHub.

    https://gist.github.com/

    I am going to run some test queries on the databases just to try to figure out where things are breaking down, probably tomorrow. 🙂 Do you know of a way to echo the SELECT queries to the old Database tables forums, replies, and topics during import?

    Us e Google Chrome/Firefox’s Inspector, simply right click in the yellow window and select ‘Inspect Element’, we have all the MySQL queries that are used during import echo’d out in the page source, just not rendered on the page.

    adressler
    Participant

    Thank you @netweb. I tried your code you provided, unfortunately the conversion results were the same as I described originally. Same results running the tools after the import/conversion as well.

    I am going to run some test queries on the databases just to try to figure out where things are breaking down, probably tomorrow. 🙂 Do you know of a way to echo the SELECT queries to the old Database tables forums, replies, and topics during import?

    Thanks again.

    #144158
    virusek89
    Participant

    Hello,

    How to change the color of stranded author (the freshness)

    or give advice in the code below to insert a color somewhere?

    <span class="bbp-topic-freshness-author"><?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 14 ) ); ?></span>

    Please help.

    Sorry for my bad english

    #144157
    virusek89
    Participant

    Hello,

    How to change the color of stranded author (the freshness)

    or give advice in the code below to insert a color somewhere?

    `<span class=”bbp-topic-freshness-author”><?php bbp_author_link( array( ‘post_id’ => bbp_get_forum_last_active_id(), ‘size’ => 14 ) ); ?></span>

    Please help.

    Sorry for my bad english

    Stephen Edgar
    Keymaster

    -”Recalculate the parent topic for each post” did nothing

    The 3rd bit of code ‘Reply parent topic id (If no parent, then 0)’ will fix that.

    -”Recalculate the parent forum for each post” set all of the Topics in Admin panel to “(No Forum)”, where before that was the only text that was actually displaying properly.

    The last piece of code I posted above ‘Topic parent forum id’ will fix that.

    It just seems strange that before I tried the tools it was properly mapping topics.forum_id to forums.forum_id to retrieve the forum title that was displayed in the Admin Topics page, and only on the Admin Topics page.

    bbPress stores all sorts of extra ‘meta data’ in WordPress’ wp_postmeta table relating to each of bbPress’ custom post types. Essentially without the additions of the above bbPress only knows a partial set of the data it needs and as such when the repair tools are run it tries to repair all this data but if some key aspects of the data is missing, in this case post_parent it will end up with the results you are now seeing in the dashboard where each topic is not associated with a forum and each reply is not associated with a topic.

    Clear as mud, hey? 😉 I’ve been here many times and am right now writing a BuddyPress importer update and am currently here again 😉

    When I view the public Topic page, the forum is excluded in the breadcrumb.

    Stephen Edgar
    Keymaster

    @adressler Nice work and you are sooooo close 🙂

    As Robin has said run the repair tools and that should fix pretty much everything from what I can see.

    If it doesn’t I’d take a close look at the before and after import relationships between the replies parent topic ID topics.topic_id and replies.topic_id

    Looking at the replies section of your converter scrip, you have this:

    
      // Reply parent topic id (If no parent, then 0. Stored in postmeta)
      $this->field_map[] = array(
      'from_tablename'  => 'replies',
      'from_fieldname'  => 'topic_id',
      'to_type'         => 'reply',
      'to_fieldname'    => '_bbp_topic_id'
    

    I’d suggest adding the following to help the initial import know which forum each reply should be associated with:

    
    // Reply parent forum id (If no parent, then 0. Stored in postmeta)
      $this->field_map[] = array(
      'from_tablename'  => 'replies',
      'from_fieldname'  => 'forum_id',
      'to_type'         => 'reply',
      'to_fieldname'    => '_bbp_forum_id',
      'callback_method' => 'callback_topicid_to_forumid'
    );
    

    Adding this is what you need to fix things as currently you are assigning a topic ID to each reply but this is needed in two places, the _bbp_topic_id and post_parent which the later you are missing. In this case the replies ‘post parent’ is also the topic ID.

    
      // Reply parent topic id (If no parent, then 0)
      $this->field_map[] = array(
      'from_tablename'  => 'replies',
      'from_fieldname'  => 'topic_id',
      'to_type'         => 'reply',
      'to_fieldname'    => 'post_parent',
      'callback_method' => 'callback_topicid'
    );
    

    Also for good measure you should probably do the same for your topic section and add the forum ID as post_parent for each topic:

    
      // Topic parent forum id (If no parent, then 0)
      $this->field_map[] = array(
      'from_tablename'  => 'topics',
      'from_fieldname'  => 'forum_id',
      'to_type'         => 'topic',
      'to_fieldname'    => 'post_parent',
      'callback_method' => 'callback_forumid'
    );
    
    #144149
    Stephen Edgar
    Keymaster

    Here you go bbp_template_before_single_forum

    SubstreamAI
    Participant

    I want to keep site members who are spectators from seeing private forums (normally visible to anyone logged in. Participants should be able to see and post to private forums.

    I suspect this will require a very small amount of code, so I don’t want to use an overkill plugin. I’ve been searching for 2 days to find a plugin that can do this and I’ve failed miserably.

    Would some kind guru help me to code this?

    Robin W
    Moderator

    If it’s just where it says forums, then the same code should work, it just needs a different function name – each function needs to be unique so

    function change_translate_text2( $translated_text ) {
    	if ( $translated_text == 'Forums' ) {
    	$translated_text = 'whatever-new-word-you-want';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text2', 20 );

    If you want to change it in url’s and breadcrumbs, then

    dashboard>settings>forums and change the forum root slug

Viewing 25 results - 12,376 through 12,400 (of 32,585 total)
Skip to toolbar