Forum Replies Created
-
In reply to: Site Crash: .htaccess buggered
Unless someone can see a better way to optimize this file, this is my final online version:
`php_value memory_limit 256M
RewriteEngine on
RewriteCond %{HTTP_HOST} ^thechembook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^thechemistrybook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} http://www.thechemistrybook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} http://www.chemhints.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^chemhints.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]php_value session.gc_probability 1
php_value session.gc_divisor 100
php_value session.gc_maxlifetime 3600
php_value session.save_path /path/to/sessions# Protect the htaccess file
Order Allow,Deny
Deny from all# Protect wpconfig.php
Order Allow,Deny
Deny from all# Disable directory browsing
Options All -Indexes# BEGIN COMPRESSION AND CACHING
# Enable compression
AddOutputFilterByType DEFLATE text/css text/javascript application/x-javascript text/html text/plain text/xml image/x-iconBrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html# Make sure proxies deliver correct content
Header append Vary User-Agent env=!dont-vary
# Ensure proxies deliver compressed content correctly
Header append Vary Accept-Encoding# No ETags, No Pragma
Header unset Pragma
Header unset ETag
# Default cache time to 1 year (31536000 sec)
Header set Cache-Control “max-age=31536000, public, must-revalidate”# No ETags
FileETag none# CACHE SETTINGS (mod_expires)
# Turn on Expires
ExpiresActive On
# set default to “access plus 1 year”
ExpiresDefault A31536000
# html – “modification plus 1 hour”
ExpiresByType text/html M3600
# css and JavaScript – “modification plus 6 weeks”
ExpiresByType text/css M3628800
ExpiresByType text/javascript M3628800
ExpiresByType application/x-javascript M3628800# No cache for php-files
ExpiresActive Off
Header set Cache-Control “private, no-cache, no-store, proxy-revalidate, no-transform”
# END CACHING
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]# END WordPress`
In reply to: Site Crash: .htaccess buggeredThis turns out to be a buggered up .htaccess – and since I didn’t touch it – something in a plugin went rummaging through the file and wiped out the optimizations.
Here is my current one – maybe someone can share a really good one that is optimized:
`php_value memory_limit 256M
RewriteEngine on
RewriteCond %{HTTP_HOST} ^thechembook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^thechemistrybook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} http://www.thechemistrybook.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} http://www.chemhints.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^chemhints.com [NC]
RewriteRule ^(.*)$ http://www.thechembook.com/$1 [L,R=301]php_value session.gc_probability 1
php_value session.gc_divisor 100
php_value session.gc_maxlifetime 3600
php_value session.save_path /path/to/sessionsHeader unset ETag
FileETag None# Insert filter
SetOutputFilter DEFLATE# Netscape 4.x has some problems…
BrowserMatch ^Mozilla/4 gzip-only-text/html# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won’t work. You can use the following
# workaround to get the desired effect:
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html# Don’t compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico)$ no-gzipRewriteEngine on
RewriteRule ^(.*).(d+)(_m_d+)?.([^.]+)$ $1.$4 [L,QSA]ExpiresActive On
ExpiresByType image/png “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/vnd.microsoft.icon “access plus 1 year”
ExpiresByType text/css “access plus 1 year”
ExpiresByType application/x-javascript “access plus 1 year”
ExpiresByType application/javascript “access plus 1 year”
ExpiresByType text/javascript “access plus 1 year”`
Maybe this will help. But I don’t use this plugin so I’m not sure if it includes the widget used on this site.
In reply to: Marked Spammer Keeps PostingYes, hnla, an active session.
https://trac.buddypress.org/ticket/2575 looks like the same issue.
BP 1.2.5.2
In reply to: Not a spammer but marked as a spammer?Go to the domain.com/member/account and use the pull down from the admin bar to mark the account as “not a spammer”
In reply to: New Members never get activation emailAre you sure that the email was not placed in a spam folder?
Login as admin and go to domain.name/members/userid
There should be a marking stating the person is marked as a spammer. This comes from not activating the account from the email. It can be easily changed by pulling down from the admin bar.
In reply to: Activity stream replies“I’d do it with jquery. When the page loads, replace all but the most recent replies with a Read More link.”
Would you mind sharing this code? I’d love to see it working.
In reply to: Activity stream repliesThis is the activity loop
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
And I see options for how many to show but setting a max of 2 wouldn’t place a link for others to be seen … at least not that I can tell.
In reply to: Activity stream repliesInteresting request – anyone have a suggestion?
In reply to: Pagination rather than ”Load More”Found my error ! Thank you. Just in case someone else wants to try this, here is the code:
`
`
In reply to: Users Youtube Videos in ProfileYou might check out https://buddypress.org/community/groups/bp-album/
In reply to: Show: By Latest Post | By GroupDone. Fixed the css and child theme so that the tutoring area looks acceptable.
http://www.thechembook.com/tutoring/
Here is the code in case someone else is interested. This is the [child-theme]/forums/index.php file
Hope this helps.
In reply to: Show: By Latest Post | By GroupThank you but I can’t seem to get
if ( bp_has_groups( ‘slug=announcements’) )
to do anything for me. It’s just ignored … hmm.
In contrast, I can get max=5 to work
if ( bp_has_groups( ‘max=5’ ) )
Update
These are the options:
https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-groups-loop/
But slug doesn’t seem to work for me.
In reply to: Show: By Latest Post | By GroupYippeee ! LOL
OK. All emotion aside – I’m almost there! http://www.thechembook.com/tutoring/
There needs to be some ways to limit the number of topics shown.
Boone, I almost did what you suggested but decided to copy the table code from the /forum-loop.php directly into the index.php file rather than calling the forum-loop.
Also, the code for limiting to only certain groups isn’t working for me. I must be doing something wrong there.
Here is what is online right now (and almost works!)
In reply to: Show: By Latest Post | By GroupI’m back: fed and rested.
Thank you Boone for helping. I’m only looking for topics shown as sorted by group … So, let me repeat some of this back and see if my understanding was your intent.
First, [theme]/forums/index.php is the file to edit.
Second, if I only want topics sorted within groups then I can create a bp_has_groups() that includes the while statements you suggest.
Third, thank you (again!) for the short version. I’ll see what I can do to try to figure this out.
In the meantime, if someone already has code to share then please feel free to post.
In reply to: Show: By Latest Post | By GroupUGH. I’m getting so irritated that it’s time to leave the computer. There must be a way to get my site to work like https://buddypress.org/support/topics/grouped/. It seems such a simple request. I can’t believe it isn’t an option or obvious. Nothing I’ve tried seems to work.
Time for a break. Maybe someone with knowledge will take pity here and help.
In reply to: Show: By Latest Post | By GroupTried to modify /forum/index.php and insert slug=GroupName if statement and all of the topics are returned … so either the slug name is incorrect or the code … or the placement of the code … or … just too many options here.
Guess this means BP devs should consider a better way to do this when bbpress becomes its own plugin acting in concert with BP (4th quarter of this year or so). This should just simply be an option.
In reply to: Show: By Latest Post | By GroupI’ve been looking at your code and can’t seem to get the GroupName slug to match up with anything. Is the GroupName the URL? Or is it something else?
In reply to: Show: By Latest Post | By GroupNow we are talking! Thank you both for information.
Yes, I’ve seen the /grouped and that is why I asked about it. It’s the way the forum topics need to be shown on my site.
Oooo … @deanjrobinson has done a SWEET job on http://help.deanjrobinson.com/
Now – if only someone would share what they’ve done! It looks like Dean planned on a theme – but plans can always get off to a slow start

@Modemlooper – well – I have the forum extra’s plugin and that gives an index. But the preference is to have the group shown with the latest topics below them (pagination necessary).
In reply to: Show: By Latest Post | By GroupIs this code anywhere? I can’t believe I’m the only one interested in this code – it makes so much sense – to be able to sort the latest topics into groups …
Sigh.
In reply to: Show: By Latest Post | By GroupIt’s great to see this site active – but (smile) – is the theme developer online these days to answer this question? I’d love for the forum topic list to be sorted into groups ….
In reply to: Show: By Latest Post | By GroupA search doesn’t bring up an answer – anyone know how to find this code?
In reply to: Automatically Add Newly Registered to GroupI decided to add “BuddyPress Registration Groups” plugin — but this doesn’t solve most of the issues but it’s a start.
In reply to: Automatically Add Newly Registered to GroupYep – I have it installed but I have students from last year that need to be moved out of one group and have new kids registering that are not getting into the correct ones … so I’m looking for a fast way to get things fixed (organized).
In reply to: Future groundbreaking pluginsIs there a way so Courseware only shows in one particular group and not all of the groups?