Search Results for 'code'
-
AuthorSearch Results
-
August 20, 2015 at 8:25 pm #165639
In reply to: Topics not appearing unless a new theme is loaded!
Robkk
ModeratorI thought wp super cache was disabled, I see this in the source code of the page you linked to.
<!-- Dynamic page generated in 1.134 seconds. --> <!-- Cached page generated by WP-Super-Cache on 2015-08-21 00:20:54 --> <!-- super cache -->You most likely need to flush the cache to see everything correctly and up to date.
August 20, 2015 at 5:35 pm #165634In reply to: Default Forum Index – How to edit?
Robkk
ModeratorAlso know instead of placing code in your child theme you could paste any custom CSS in the many custom css plugins or the custom CSS module in Jetpack for example, and PHP code functions into a plugin like functionality.
August 20, 2015 at 5:31 pm #165633In reply to: Default Forum Index – How to edit?
gptxffa
ParticipantI see, thanks for the advice.
I will try to see what I can accomplish with the code above and let you know 😀
Thanks
August 20, 2015 at 4:20 pm #165630In reply to: Default Forum Index – How to edit?
Robkk
ModeratorAlright just so you know I can’t really do Admin access type stuff anymore, I am following some guide from the WordPress.org codex about moderators not needing to gain admin access because they will be going too far, its something like that. I also got a talking to, to stop doing it by some people on this site to, I mostly helped with commercial products because I could find the issue faster if I am more hands on and find a bbPress/theme/plugin bug faster, than telling the users to just ask the theme/plugin author. Plus in this case I do not really need to have an admin account, so you can delete that account you created for me again.
From what I can see the downloaded theme is Jolene and you can just edit the Biker theme since it is already a child theme. If the Biker theme is frequently being updated (which it really shouldn’t), then I guess creating a grandchild theme like what you are doing would be the best approach.
August 20, 2015 at 3:07 pm #165625In reply to: Default Forum Index – How to edit?
Robkk
ModeratorGo to Settings > Forums and change the forum root to show Topics by Freshness.
Then add this function to your child themes functions.php or into a functionality plugin.
function recent_bbpress_topics() { echo do_shortcode("[bbp-forum-index]"); } add_action('bbp_template_after_topics_index','recent_bbpress_topics');Plus I swear I helped you on the forum avatar being too huge issue.
August 20, 2015 at 2:26 pm #165617In reply to: HELP PLEASE NEW TO BBPRESS
Robkk
ModeratorTroubleshooting is always the first answer to most questions on here.
August 20, 2015 at 12:24 pm #165606In reply to: add a "Featured Image" to a forum
Robkk
ModeratorWell I did mess up the code anyway, you can copy the code I edited above to see if it works again if you want.
-Don’t Drink and Code.
August 20, 2015 at 12:19 pm #165605In reply to: Using Shortcodes works but permalinks are wrong
Robkk
ModeratorThose shortcodes really weren’t designed for situations like that. It wasn’t meant for a 1 page app for your forum, it doesn’t use something like Iframe, or anything like that.
But if you want to say create a page about a plugin, and you have a certain forum for a plugin. You can create that page and below all the content you can place the single forum shortcode to display any support posts about this specific plugin.
August 20, 2015 at 12:04 pm #165603In reply to: Why do my permalinks look like this?
Robkk
ModeratorI cannot reproduce on my wampserver with the permalinks with ID plugin so it is not that.
I did find information about this though, the
#038;should be&which makes sense.If you search for this kind of error in google, you will see countless posts of themes, plugins, and WordPress itself having the issue, So maybe make sure you have everything up to date.
There are some fixes online too, but they are mostly saying edit WordPress core files to fix it
August 20, 2015 at 6:41 am #165594In reply to: Search function doesn’t work for anonymous
AntonHoelstad
ParticipantNow I’ve tried again from the very beginning, with all the original files for the plugin etc. It has the exact same issue – which means that the problem must be in one of the following files coding – since these are the only ones with the “bbp-search-request” and/or “bbp_search” in it.
Can you see any problems or issues with these files?
templates/default/bbpress/form-search.php
https://gist.github.com/anonymous/496fd16abe6f4188e4a0
includes/search/functions.php
https://gist.github.com/anonymous/bdb60f2e51201ffb2cf5
includes/core/actions.php
https://gist.github.com/anonymous/7eed8ef36becd703a5a7
bbpress.php
https://gist.github.com/anonymous/626d687f57dfaaa257ca
templates/default/bbpress/loop-search.php
https://gist.github.com/anonymous/83570d171156e157fb3d
includes/core/options.php
https://gist.github.com/anonymous/10fe8cfcaa4518241184
includes/admin/settings.php
https://gist.github.com/anonymous/bad7e43a34fe3e9a7428
includes/common/shortcodes.php
https://gist.github.com/anonymous/daa4af269bcf8613a871
includes/core/template-functions.php
https://gist.github.com/anonymous/94e2f94a2e0cca8f18f4
includes/search/template.php
August 20, 2015 at 5:54 am #165592Topic: Using Shortcodes works but permalinks are wrong
in forum Troubleshootingarikg
ParticipantI use the https://codex.bbpress.org/features/shortcodes/
to embed a forum in a page [bbp-single-forum id=$forum_id]
it works great, but when the user clicks on a thread it opens in the usual bbPress slug and not within the page. I want the forum to be fully embedded in the page and also that the links from e-mail about replies will direct people to this page and not the default forum.August 19, 2015 at 5:37 pm #165579Topic: Default Forum Index – How to edit?
in forum Troubleshootinggptxffa
ParticipantHello,
Obviously everyone knows what the default Forum index page looks like

However I would rather be able to have the most recent topics displayed above the index like this page setup using the short codes:


I cant figure out how to actually change the appearance of the forums index. I have the page in the picture above up and running, however when someone clicks on the breadcrum “forum” link, it takes them back to the default forum index, not the page i created with the recent topics listed above.
Thanks for the help 😀 Preston
August 19, 2015 at 5:37 pm #165585In reply to: bbPress glitch after WordPress 4.3 update
Robkk
ModeratorTry some troubleshooting. I am thinking a possible plugin issue with the menu items. The forums only being visible to Admin is the tricky one I can’t really pinpoint.
August 19, 2015 at 2:18 pm #165580In reply to: Search function doesn’t work for anonymous
Robkk
ModeratorI have been changing a bit of translations in the code – that’s why you might find a mistake here. What I don’t understand is, that when I upload all the original files, it still does the same mistake.
Can’t you tell me if there’s some specific files that I should re-upload as original, in case I’ve changed something in them?
What files did you edit, if you did edit any files?? I hope you did not edit the bbPress plugin files in the plugin directory of your site??
I’ve never used child themes before, so I’m not sure how to do this.
This will help you learn about creating a child theme.
https://codex.wordpress.org/Child_Themes
After creating the child theme just copy the bbPress templates to your child theme in a folder called bbpress.
Or second option: Could you rewrite the htaccess hack so it might work? 🙂
You really shouldn’t need an htaccess hack at all, that is why I said don’t use it yet.
August 19, 2015 at 2:08 pm #165577In reply to: Changing name of "Key Master"
benklocek
ParticipantI’ve updated the filter code to make it work for BBPress 2.5.7+
https://gist.github.com/benklocek/433713bceb83eec6984f
The Keymaster title changed from “Key Master” to “Keymaster” at some point, and the filter only accepts 2 variables now.
I would be hesitant to use @robkk’s code, as it is replacing a core function, instead of simply filtering.
August 19, 2015 at 11:49 am #165570In reply to: Search function doesn’t work for anonymous
Robkk
ModeratorI have been changing a bit of translations in the code – that’s why you might find a mistake here.
You haven’t been editing core files right?? There are other ways you can translate bbPress, unless you are just editing the templates that you can copy into your child theme?
There might be another thing you could do if you haven’t already, place all the bbPress templates in a child theme of theme in a folder called bbpress.
Also remove the htaccess hack since it seems not to work. I don’t want it causing issues.
August 19, 2015 at 11:22 am #165566In reply to: add a "Featured Image" to a forum
Robkk
ModeratorDid you copy and edit the bbPress templates in your child theme heavily?? Removing the hook @kachan64 pointed out, can make the code not work.
Also does the picture save correctly in the WordPress backend?? If you could link to a forum that should has a topic with a featured image, I can check to see if there is a CSS problem.
August 19, 2015 at 10:32 am #165562In reply to: bbPress Shortcode
Acs-Yt
ParticipantOMG, it’s Full Width! This code resolved the problem:
.bbpress .col-md-8 { width: 100% !important; } .bbpress .col-md-4 { width: 0 !important; display: none !important; }Thank you for helping me!
August 19, 2015 at 10:31 am #165561In reply to: Limit tags to a pre-defined list?
strategeek
ParticipantFINAL CODE HERE.
FOR CHECK BOXES.
(Difference from the upper one: fixed issue with tags with more than 1 word)function displayTagElements($selectedTags, /* $userRole, */ $task){ $html= array(); $tags = get_categories(array('hide_empty' => 0, 'taxonomy' => 'topic-tag')); $selectedTagsArray = explode(',', $selectedTags); if($userRole != 'bbp_participant' || $task != 'edit') { $html[] = ""; foreach($tags as $tag) { $selected = ''; if (in_array($tag->name, $selectedTagsArray)) { $selected = 'checked'; } $html[] = "<input type='checkbox' name='bbp_topic_tags[]'".$selected." value='". $tag->name ."'>". $tag->name ." "; } } else { $html[] = $selectedTags; } return implode('', $html);August 19, 2015 at 9:23 am #165559In reply to: add a "Featured Image" to a forum
kachan64
Participantif ( has_post_thumbnail($post->ID) ) echo get_the_post_thumbnail($post->ID,'thumbnail',array('class' => 'alignleft forum-icon')); }This is the styling for the featured image.
bbp_theme_before_topic_title
This part of the code determents where should featured image goes. You will need to check your code.August 19, 2015 at 7:57 am #165558In reply to: add a "Featured Image" to a forum
Mei Ling
ParticipantHi Robkk,
I have tested your code. Well I can select in the admin panel “edit topic” or “new topic” “featured image”, I select the picture…when I turn back to the topic, no picture. It doesn’t remain selected.
I use the latest WordPress: 4.30.Could you help me?
I thank you in advance
Mei Ling
August 19, 2015 at 6:35 am #165557In reply to: Topic Title on Forum Index
kachan64
ParticipantThanks, the code from github is running outside of a forum loop and works on a localhost test site. They used the code in loop-forum.php
<?php if (($has_replies = (strstr(bbp_get_forum_freshness_link(), '<a')))): ?> <?php bbp_topic_title(array( 'post_id' => bbp_get_forum_id() ) ); ?>, <?php _ex('by ', 'bbPress Freshness Author', 'bunyad'); ?> <?php bbp_author_link( array( 'post_id' => bbp_get_forum_last_active_id(), 'size' => 45 ) ); ?></span> <?php endif; ?>This is my code running inside a loop in loop-single-forum.php and didn’t work, will just output my forum title for some strange reason if I post to that forum’s sub-forum.
August 19, 2015 at 2:31 am #165555In reply to: Add custom text fields to reply form
project_subdomain
Participant@robkk I’m not sure why it’s not working proplerly (showing all divs in all forums). Could you give me a hint how the code has to look like, when I’d like to have
forum id 1 echo div 1
forum id 2 echo div 2
forum id 3 echo div 3unforrtunately I’m not familiar with ternary operators which may be a option.
August 19, 2015 at 2:21 am #165554In reply to: Search function doesn’t work for anonymous
AntonHoelstad
ParticipantI have been changing a bit of translations in the code – that’s why you might find a mistake here. What I don’t understand is, that when I upload all the original files, it still does the same mistake.
Is there one or a few of the files that determine this part with the URL? Because then I could show you those, and we could see if something was wrong here?
August 19, 2015 at 2:16 am #165553In reply to: Search function doesn’t work for anonymous
AntonHoelstad
ParticipantGood suggestions I must say! But unfortunately none of these worked either. Let me go trough them one by one:
1. I set the permalink structure back to default. The only change here is, that when you search now, and land on the URL string “search?action=bbp-search-request&bbp_search=adwords” – you now see the frontpage for some weird reason?
2. I have no trailing slash in the settings part of the forum
3. I did try the htaccess hack – but this did no change? I still see the frontpage now when I try to search.Something weird is going on. Would it help you if I send you the code for some of the files for my plugin?
-
AuthorSearch Results