Search Results for 'buddypress'
-
AuthorSearch Results
-
June 15, 2013 at 6:46 pm #166126
In reply to: Pending Notifications
b a
ParticipantOKay, I followed this guy http://androoha.com/web-design-tuts/80-custom-notifications-buddypress-en
And it did a trick, in some way, so I will extend my question here.
I managed to add function which adds notifications to database when I like an activity.
It displays it well when I have only 1 notification with such component_action.
But when I have to, it just merges my notifications into one, or something like this, sometimes it even brokes (but might be another issue)so here is my code in functions.php
function bp_members_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) { global $bp; switch ( $action ) { case 'new_likes': $thanks_for = $item_id; $who_thanked = $secondary_item_id; $link = '/heregoeslink'; $return = '<a href="'.$link.'">'. $who_thanked .' liked your link!</a>'; break; } return $return; }I have 5 notifications in database with new_likes component_action and 4 of them belong to current user. so $total_user contains “4”,
now I want to remake this code to display user notifications separatly.
Many thanks even for reading till this )) I also try to continiue thiking for an answer and if something I’ll post it here
June 15, 2013 at 6:39 pm #166125In reply to: Pending Notifications
b a
ParticipantPlease try to supply answers to the following questions.
1. Which version of WordPress are you running?
Lastest (stable)
2. Did you install WordPress as a directory or subdomain install?
Directory
3. If a directory install, is it in root or in a subdirectory?
Root
4. Did you upgrade from a previous version of WordPress? If so, from which version?
No
5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
Yes
6. Which version of BP are you running?
Lastest (stable)
7. Did you upgraded from a previous version of BP? If so, from which version?
No
8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
Yes, many plugins and all of them BP related, since I don’t have any error/problem with my current installation, I won’t insert here this big list. Need to mantion BP Like/Dislike though
9. Are you using the standard BuddyPress themes or customized themes?
Standart
10. Have you modified the core files in any way?
Yes, In many way 😀
11. Do you have any custom functions in bp-custom.php?
No
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
Lastest, I downloaded it from WP Plugins
13. Please provide a list of any errors in your server’s log files.
Strange but no errors (with Debug turned off)
14. Which company provides your hosting?
Local installation
15. Is your server running Windows, or if Linux; Apache, nginx or something else?
Linux Ubuntu, apache 2.2 php5June 15, 2013 at 6:26 pm #166124In reply to: Buddypress Mobile Not Working
modemlooper
ModeratorVersion on codex is not fully working on BuddyPress 1.7. Also, it may not work on your device. And, you need to read the setup instructions.
June 15, 2013 at 4:30 pm #166122In reply to: Buddypress Mobile Not Working
timchu
ParticipantI am using bp default theme, basically it is working fine on all mobile format, only problem is the header image appear twice.
Hope someone can help?June 15, 2013 at 3:46 pm #166118In reply to: Hide Admin Bar for Logged OUt Users
Liltiger
ParticipantHey,
If you go to Dashboard Settings > Buddypress > Settings, then the first option is ‘Show the Toolbar for logged out users’. Just uncheck it.
My theme is also has a setting for the login toolbar, so you may want to check out your theme settings.
I hope it helps!
June 15, 2013 at 1:35 pm #166110In reply to: Read birthdays from wp_bp_xprofile_data table
praveshraheja
Participantany one here to help me
installed and activated plugin and in widget area it is asking to put Birthday field Name (or ID)from where i can get this ?
and as said in plugin page Birthday field must have been previously created in the Buddypress profile page so i opened USERS >Profile Fields >Add New Field
here i user date selector to create it and after that in registration page user have to put their date of birth .but from where i can get Birthday field Name (or ID) please help .Thankyou
June 15, 2013 at 12:30 pm #166109In reply to: [Resolved] buddypress and localhost
dmd54
ParticipantOk. I was finally able to get WP to reinstall and it appears to be working now.
Thanks
June 15, 2013 at 6:14 am #166096In reply to: [Resolved] buddypress and localhost
@mercime
Participant@dmd54 what hnla said.
When I press view I just get the home page
That’s default behavior when you go to register page while you’re logged in. Log out first.
June 15, 2013 at 6:11 am #166095In reply to: Register page bug
@mercime
Participant@gothmarilyne check Settings > BuddyPress > Pages and check if there are Pages assigned to Register and Activate.
June 15, 2013 at 5:08 am #166091In reply to: Auto Assign Groups Based on Profile Field
programer2013
Participanthi all.i want the profile page of user to be served as main page of my buddypress ..i have used static page option..as by default ..buddyrpess create three pages..activity.groups etc.
so i can make them as main static page..my requironments is..i want the user profile page to be serve as main page..thanks for ur reply in advanceJune 15, 2013 at 2:03 am #166088@mercime
ParticipantSubmit Trac Ticket about this issue – https://buddypress.trac.wordpress.org/newticket log in with WP username/password
June 14, 2013 at 11:10 pm #166086gametako
Participanti found the error… its that internally BP saves the pages as lowercase, but when using upper case (arabic in URLs are sent to the server in upper case for some reason) then it gives off the 404 errors.
what do you guys suggest i should do?
June 14, 2013 at 8:09 pm #166075rcain
Participant@bp-help
good suggestions. thx. 2 of them r new to me, so other people may find them helpful also.
on our sites we r using::
Keith Graham’s most excellent ‘stop-spammer-registrations-plugin’ – https://wordpress.org/plugins/stop-spammer-registrations-plugin/
– has stopped over 53,000 spammers since feb this year! it uses external lookups on StopForumSpam, ProjectHoneyPot, BotScout, (Akismet, which we dont use), others – thus great collective benefit/advance warning of bad traffic. also traps brute force attacks (bad logins/registrations/comment posts, etc), etc. is simple enough to play nice with most plugins.
to try & keep as much load off the front-end of the server as possible, we also have set up:
linux iptables ( & ufw add on )- as the basis of all firewall stuff. also has our manually maintained blacklists & whitelists. various custom rule chains setup. takes a while to get your head around, but is essential.
linux fail2ban – essentially an add on to iptables, puts people in jail for bad behaviour – eg: brute force attacks against ssh, ftp, mail logins. we also have set up custom rules detecting bad activity against wp-login.php itself via fail2ban. am looking to do some more with this.
linux apache – mod-security2, libapache2-mod-evasive, libapache2-mod-antiloris, libapache2mod-spamhaus – which help protect against general bad behaviour, DDOS, blank header attacks, the infamous ‘Loris’ script (which we’ve experienced!), and bot-nets. still assessing how effective these r.
we have also had to tune apache on our VPS for resilience in the face of DDOS type attacks and heavy-handed brute force attacks.
some further good tips here: http://www.dannytsang.co.uk/index.php/apache-2-hardening-tips/ & elsewhere.
linux logwatch – reports various access stats (the good & the bad & the ugly) via email – very useful indeed for checking whther situation is under control (or not).
linux rkhunter – scans for rootkits on the server from time to time – just be sure – & particularly useful if u ever do get infected in hunting down the intruder’s code.
obviously we also have file system bolted down. (there is a good wp plugin to check permissions bolt-down, i forget what its called). we also spend a LONG time analysing logs etc.
anway, that takes care of many of the bad boys, but we r still left with the following problems to crack:
1) we have observed that many bad bots/scripts are exhibiting ‘learning behaviour’ (ie. heuristic) and r finding ways around fail2ban rules/jails, etc. in particular:
a) rotating IP addresses to match ‘ban counts’ – currently we have them wasting an IP address every 3-4 attempts, but they still seem to have an inexhaustable supply, else are spoofing extreamly well.
b) varying their retry period to match the length of jail sentence. (ie. they are not wasting their mips whilst in jail, just enough to detect when they are released,record it, and tune their future responses).
2) content scrapers, probes and bad-bots generally – these r wasting enormous resource on our servers. typically i would suggest such ‘bad traffic’ is responsible for over 50% of total server load (ie. not good at peak times on a busy site). additional problems we r facing here:
a) bad bots often spoof the agent string to pretend to be eg. google, bing, etc. the only way u can tell is by reverse lookup of ip address and try and match to one of well known range of ‘good bot’ addresses. but, despite fact that many ranges are well known, most of them are never actually published or confirmed, many are variable. i am not aware of any definitve list of ip addresses of good bots (though there is http://www.iplists.com/ whichis not bad, & http://www.webmasterworld.com/search_engine_spiders/ which is often helpful – these are very much ‘best efforts/as seen in the wild’ lists.). this problem worsens with the rise of social network agregation services, other (legitimate) content agregators, and personal content aggregating software on mobiles, tablets, etc.
idea: i am thinking of writing a script/plugin/rule to do smart lookup of ip against good bots list, & to automatically maintain that (collective) list. ideally, this is a service that someone like spamhause, or projecthoneypot should offer, since they already have the infrastructure. but, we’ll see. the script will detect traffic ‘purporting to be a SE bot, of any kind and to ban it via iptables if it isnt in the approved list/doesnt check out. the risk is in false positives and harming ones SEO. anyone any thought in this area?
b) probes & sniffers hunting out wp/bp forms, ajax ports, plugin files, forms, etc – in advance of main attack by penatration/spamming bots. typically always use swiftly rotated ip’s. many many variants out there. usually they have no luck on our sites, but that does not stop them trying in vast numbers (bot-nets, collectives? hives?) and harming out response times, etc.
idea: url obfuscation has been brought up on this forum before, particularly for eg: login, registration, admin url’s, etc. i am thinking of creating a plugin to dynamically hash encode links of choice using someething based on wp forms nonce system. not only useful for causing probes & hackers pain, but also to help thwart media thieves. obviously, scripters will soon respond by just snanning for link titles in html, so not bullet proof in any way, but they will at least be on 1-time request code, so causing them page reload every request & less sophisticted scripts will be totally wasting their own time.
anyway. these have been my thought so far. would love to hear experience/insights of others.
unfortuntely wordpress & buddypress sites in particular represent the richest of prizes for hackers, content scrapers, spammers, etc – & they r really on our case. furthermore, there is some BIG money involved, from porn to pharma to credit card fraud; that means some very smart programmers being paid excellent rates, to hack our systems, full time. add to that, the 10’s of millions of infected machines out there (often unknowingly) operating as botnet drones, trying to pernetrate our servers 24×7, steal our machine resources and steal our members personal data. it is a war of attrition.
all further experience, ideas welcome, here.
June 14, 2013 at 6:39 pm #166070In reply to: [Resolved] Notifications Template
Tecca
ParticipantYou can make your own. Here’s mine as an example. You’ll need to tinker around with the CSS or code if you’d like to display them differently. What the below does is it shows a number (the amount of notifications you have) when you have one or more. It is hidden when there are none to display. Hovering over the number will display your notifications in a drop-down.
Place into bp-custom.php:
/** * Add Notification number to template */ function my_bp_adminbar_notifications_menu() { global $bp; if ( !is_user_logged_in() ) return false; echo '<div class="notices"><ul class="notices">'; _e( '', 'buddypress' ); if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?> <li class="parent"><span class="notice-badge"><?php echo count( $notifications ) ?></span> <?php } echo '</a>'; echo '<ul class="sub-menu">'; if ( $notifications ) { $counter = 0; for ( $i = 0; $i < count($notifications); $i++ ) { $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?> <li<?php echo $alt ?>><?php echo $notifications[$i] ?></li> <?php $counter++; } } else { ?> <li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'You have no new alerts.', 'buddypress' ); ?></a></li> <?php } echo '</ul></li>'; echo '</ul></div>'; }CSS:
/*-------------------------- Notification dropdown -----------------------------------*/ .notice-badge { font-weight: bold; cursor: default; background: #d33939; padding: 0 3px; border-radius: 10px } .parent.user-bar { width: 86px; text-align:left; float: right; font-weight: bold; } .notices { float: right; margin:0; line-height: 45px; z-index: 9999; } .notices a { color: #ffffff; } .notices ul, .notices { margin:0 2px 0 0; padding:0; list-style-type:none; list-style-position:outside; position:relative; } .notices ul a:link, .notices ul a:active, .notices ul a:visited { display:block; padding: 0; text-decoration:none; } .notices ul ul a:link, .notices ul ul a:active, .notices ul ul a:visited { width: 480px; display:block; padding:0 7px; text-decoration:none; } .notices ul ul a:hover { color: #0d385f; text-shadow: none; } .notices ul li { float:left; position:relative; background:none; padding:0 12px; } .notices ul li:hover { transition: all 100ms ease-in; } .notices ul ul { width: 480px; line-height: 35px; background: #ffffff; position:absolute; right: 0; top:45px; text-align:left; padding:0; display:none; border:1px solid #eeeeee; border-bottom:none; border-top:none; box-shadow:0 0 2px rgba(0, 0, 0, 0.15), 0 3px 5px rgba(0, 0, 0, 0.1); } .notices ul ul a { color:#248361; font-weight: bold; } .notices ul li ul a { float:left; } .notices ul li ul ul { left:-170px; top:2px; margin:0px; border-right:3px solid #cccccc; border-top:1px solid #eeeeee; } .notices ul li ul li { width: 480px; padding:0; margin:0; border-bottom:1px solid #eeeeee; max-width:none; list-style-type:none; text-shadow: none; } .notices ul li ul li:hover { background: #f5f5f5; } .noticesn ul li:hover ul ul, ul li:hover ul ul ul, ul li:hover ul ul ul ul { display:none; } .notices ul li:hover ul, .notices ul li li:hover ul, .notices ul li li li:hover ul, .notices ul li li li li:hover ul { display:block; } .notices ul li ul.children li { list-style-type:none; } .notices ul li ul li.current-menu-item { background:#f5f5f5; } .notices ul li ul li.current-menu-item a { color:#585858; } .notices ul li.current-menu-item span { color:#585858; } .notices ul li.parent { background-image: url(images/menu-arrow-transparent.png); background-position: center center; background-repeat: no-repeat; } .notices ul li.parent:hover { background-image: url(images/menu-arrow1.png); background-position: 14px 36px; background-repeat: no-repeat; } .notices ul li ul li.parent:hover { background-image: url(images/menu-arrow-left.png); background-position: 152px center; background-repeat: no-repeat; }Place into header.php or wherever you’d like your notifications shown:
<?php my_bp_adminbar_notifications_menu()?>June 14, 2013 at 6:38 pm #166069In reply to: [Resolved] Visual bug in registration page
Ioan
ParticipantYes, for some reasons I yesterday I removed the buddypress plugin beta to come back to the 1.7.2 version but forgot to install it again.. sorry for it, now i put it back
No i didn’t do as you suggested, I will now. (5 mins ago I sent a message to the theme author)p.s. sorry for not considering your comment (the first one) but on that moment I found the other one more clear. (i’m a BEGINNER in these and you speak a lil’ bit too complicated, you have to tell me step by step what to do…no offence)
June 14, 2013 at 5:35 pm #166067In reply to: [Resolved] Buddypress group page lost styling
Hugo Ashmore
ParticipantIt ought to be considered and think it was briefly mentioned once long ago but there’s always enough to do in each BP release cycle.
June 14, 2013 at 5:18 pm #166065In reply to: [Resolved] Buddypress group page lost styling
jhammond2011
ParticipantWill do. THanks for the warning. Wish BuddyPress had this built in. 🙁
June 14, 2013 at 5:17 pm #166064In reply to: [Resolved] Buddypress group page lost styling
Hugo Ashmore
ParticipantAh that would have been useful info that the group hierarchy plugin was in use, as it does use it’s own templates that have to live in a folder /tree/ which can be a little confusing, also watch that plugin it is a clever one but as it changes so much about how groups work other plugins or actions on groups can run into issues so if experiencing issues with groups always look there first as possible reason.
June 14, 2013 at 5:02 pm #166063In reply to: [Resolved] Buddypress group page lost styling
jhammond2011
ParticipantIt ended up being the buddypress group hierarchy that I installed. When installed it reverts to its index file.
June 14, 2013 at 4:55 pm #166062In reply to: Redirect Homepage to Profile Page if Logged in
bp-help
Participant@luckyrajiv
Try the snippets I provided in the below thread courtesy of @sbrajesh:
https://buddypress.org/support/topic/redirect-to-profile-page/June 14, 2013 at 4:35 pm #166058In reply to: [Resolved] Buddypress group page lost styling
Hugo Ashmore
ParticipantDid you find the div in question in that index page?
June 14, 2013 at 4:14 pm #166055In reply to: [Resolved] Buddypress group page lost styling
jhammond2011
ParticipantIts fixed. Thanks for your help
June 14, 2013 at 4:10 pm #166054In reply to: [Resolved] Buddypress group page lost styling
Hugo Ashmore
ParticipantSorry I don’t make a habit of downloading zip files from unknown sources.
All I can say is comparison of the group index and other BP pages suggests group index is wrong, if somehow this theme pulls files from elsewhere that’s a question for the theme authors really, this is a custom premium theme so they should really deal with any issues users may be having, also have you not got the original site files, can you not replace the group index file from the original, or is this a theme upgrade that you performed that sent things awry?
June 14, 2013 at 3:56 pm #166053In reply to: [Resolved] Buddypress group page lost styling
jhammond2011
ParticipantHmm, everything seems to be correct. Is there a chance it could be pulling from somewhere else?
Here is the index.php file –http://jandjtestserver.com/share/help/
June 14, 2013 at 3:04 pm #166050In reply to: [Resolved] Buddypress group page lost styling
Hugo Ashmore
ParticipantShould be groups/index.php
-
AuthorSearch Results