Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter Kineta

    (@kineta)

    I never had any luck with this. I can get the plugin to work on our test site but not on the live site. Uploaded images get saved in the plugin folder and not the wp-content/uploads folder. The images all appear broken in the admin panel and don’t show at all on the front end.

    I guess this is a dead end(?)

    Thread Starter Kineta

    (@kineta)

    I’ve tried deleting the plugin, but it seems that the settings have all been saved in the database so reinstalling doesn’t change anything.

    Where is the path for storing images being written?

    I tried adding a photo album cover and that worked, but photos don’t save to the right place.

    Thread Starter Kineta

    (@kineta)

    Apologies. I set an expiration of 1 minute to test the expiration feature (and updated the user profile). The block works but doesn’t expire.

    H Khunmax,

    After much more work on my project, I have a better solution than the one I posted above. TinyMCE doesn’t like being moved around the dom. This function removes the editor, moves the container, then reinitializes the editor. The last few lines that are commented out are for a custom title field for replies. You probably don’t need those lines.

    Put the function in your theme’s javascript file (this code needs to come after the bbPress js files, it should automatically do so if you put it in the theme js). If your theme doesn’t have a javasript file you will have to create one, and enqueue it in theme’s function.php file. My function is using jquery, so keep that in mind.

    Good luck.

    addReply = {
    		moveForm : function(replyId, parentId, respondId, postId) {
    
    			// remove the editor before moving it's container:
    			tinymce.EditorManager.execCommand('mceRemoveEditor',true, 'bbp_reply_content');
    
    			// move the container under the post being replied to
    			$('#post-container-'+parentId).after($('#'+respondId));
    
    			// redraw the editor
    			tinymce.EditorManager.execCommand('mceAddEditor',true, 'bbp_reply_content');
    
    			// put the reply-to id into a hidden field for bbPress to use:
    			$('input#bbp_reply_to').val(parentId);
    
    			// create the Reply to title in the form:
    			//var container = 'post-container-' + parentId;
    			//var str = $('#'+container).find('.bbp-reply-title').html();
    
    			//$('#replyForm-replyTo').html('Reply to: ' + str);
    
    			// don't reload the page:
    			return false;
    		}
    	}
    Thread Starter Kineta

    (@kineta)

    Thanks, that became obvious after I posted my question ??

    It’s a very useful plugin. I’m using it in one place to show forum topics with a particular tag and another to show a category. I’ll find another solution for the bbPress forums so I won’t lose the other uses. Thanks much for your help.

    Thread Starter Kineta

    (@kineta)

    @gicolek – Thank you so much for taking the time to write that bit of code and answer my question. Using that code would pretty much limit the widget to showing a single use, correct?

    Do you have to use the site’s full path or can you use a relative path?

    Thanks for this awesome plugin!

    Perhaps this is old info, but using content like this doesn’t overwrite the text. Did the way it’s done change? I notice it’s being written with attr(data-text). Not sure how to override it.

    Nice plugin, btw!

    Partial solution, for anyone with the same issue.

    I put this function override in a javascript file inside my theme. You can remove the console.log and leave the function empty or figure out a nicer solution for moving the form. If I make something that works, I’ll post it here.

    addReply = {
    moveForm : function(){
    console.log(“function override successful”)
    }
    }

    Same issue.The problem is coming from the addReply.moveForm function in the includes/replies/template.php file. I disabled the function and then the editor works in IE. The form stays at the bottom of the page, which is what it does in Chrome. Unfortunate – it’s a nice feature to have the form appear below the post being replied to, but at least the tinymce editor works.

    I need to figure out a way to edit this without changing the core file. Any suggestions would be great.

    Thread Starter Kineta

    (@kineta)

    That’s not the problem. The files are in the uploads folder. The problem is the way the plugin is rewriting the download link.

    So, without any changes to the functions.php file

    This:

    [download label="My Link"]https://mysite.org/wp-content/uploads/song.mp3[/download]

    Is being tranposed into this (and clicking on the link loads the ‘page not found’):

    [audio src="https://www.mysite.org/download/http:/mysite.org/wp-content/uploads/song.mp3" /]

    Do you see the problem?

    Thread Starter Kineta

    (@kineta)

    Thanks so much, just installed the update and the times are correct now. I really appreciate your work and this plugin! Thanks!

    Hi, I just did this on my site.

    You can edit your index.php file in the theme you’re using (or whatever page is being used as your home page)

    For each category your can call the category by name or id – mine is called ‘Event’ in this instance:

    <?php query_posts(“category_name=Event”); ?>
    Put this immediately before the loop for the posts which starts at <?php if (have_posts()) : ?> and goes through <?php endif; ?>

    (I removed the stuff after the else tag so if there are no posts for the category it is left blank) Immediately after the <?php if (have_posts()) : ?> I put a header for that section – in my example I put <h2>Upcoming Events</h2>

    You can repeat this for as many sections as you like. I have another: <?php query_posts(“category_name=Articles”); ?>

    You can also use multiple categories in a section by using ids separated with comas:
    <?php query_posts(“cat=14,2”); ?> or whatever

    Hope that helps

    Here’s what the full code looks like:
    <?php query_posts(“category_name=Event”); ?>

    <?php if (have_posts()) : ?>
    <h2>Upcoming Events</h2>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <div class=”entry”>
    <?php the_content(); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <?php else : ?><?php endif; ?>

    <?php query_posts(“category_name=Articles”); ?>
    <?php if (have_posts()) : ?>
    <h2>Recent Articles</h2>
    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>
    <h3>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><?php the_title(); ?></h3>
    <small><?php the_time(‘F jS, Y’) ?>  |  <?php the_author_nickname() ?></small>

    <div class=”entry”>
    <?php the_excerpt(); ?>
    </div>

    </div>

    <?php endwhile; ?>

    <?php else : ?><?php endif; ?>

    Exactly what I’m trying to do. Where did you edit the widget? What file is it in?

    thanks

Viewing 14 replies - 1 through 14 (of 14 total)