Forum Replies Created
-
Author
-
RoaderParticipant
Now I go to try this… and I tell you later. https://buddydev.com/buddypress/hiding-users-on-buddypress-based-site/
My friend Radu, you know, WordPress needs a lot of Security… and BuddyPress MORE!
RoaderParticipantFrom Member Directory NOT! I have this solution! (Check the code up)
Is from BuddyPress WIDGETS the big problem!
Please!
RoaderParticipantCOPY CODE// Limit WP Dashboard Access add_action( 'init', 'blockusers_init' ); function blockusers_init() { if ( is_admin() && !current_user_can( 'administrator' ) && !( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) { wp_redirect( home_url() );exit; } }
Okey, this code works, but, I need to add access for Shop manager, but, I dont know how
RoaderParticipantOther think:
How can I to restringe the access to dashboard? For example, if a suscriptor write:
mysite.com/wp-admin He or She can in to WP DashBoard. I dont want that.
I did try with:
COPY CODE//Acceso prohibido a Dashboard de suscriptores function restrict_access_admin_panel(){ global $current_user; get_currentuserinfo(); if ($current_user->user_level < 4) { wp_redirect( get_bloginfo('url') ); exit; } } add_action('admin_init', 'restrict_access_admin_panel', 1);
But, with this code an error:
When a User fails with the LogIn, he is redirect to: wp-login.php
I dont want that.
Attachments:
You must be logged in to view attached files.RoaderParticipantThis Message is for Laura. Este mensaje es para Laura.
Bien Laura, en español escribo con más libertad. 😀
1) Lo que quiero es anular que el campo Asunto sea obligatorio. Sé que se puede ocultar usando display: none; pero eso no sirve si internamente hay un código php obligando al Usuario a escribir un Asunto. En ninguna página de Dating esto de “Asunto” es necesario. En el Contact Form Okey! Ahí sí.
2) En Compose, cuando escribes el nombre de algún Usuario, no se autorrellena, Por qué?
3) Como ves en la foto, hay problemitas con el CSS original (incluso en el Demo del Theme), Send a Reply aparece pegado al Avatar, etc.
4) La mensajería debe ser mejorada. De por sí la Mensajería de BP es tediosa. No es práctica para un sitio de Dating. Mira el ejemplo de WAPLOG, una mensajería así es que se necesita. Me parece que WAPLOG está basada en BuddyPress.
Pero si no pueden hacer una mensajería así, por lo menos que añadan el Quick MS Navigator, y mejoren un poco más el Template de Mensajería Privada.
RoaderParticipant🙁 bad solution. This css works when you are login using user#1 but, for other user, user#1 is visible (>_<)
I need a Php code for that. Is VERY, VERY important to hide Super Admin or Admins.
December 25, 2016 at 16:07 in reply to: Menu links in Footer, at the right side of @trademark all rights reserved 2015 #147965RoaderParticipantNow working.
Delete endif; from the php code.
Working code:
COPY CODEfunction kleo_copyright_text() { echo '<p>'. __("Copyright", 'kleo_framework').' © '.date("Y").' '. get_bloginfo('name').'. <br class="hide-for-large show-for-small"/>'. get_bloginfo( 'description' ).' </p><div class="footer-info"> | <a href="YOUR URL HERE" rel="nofollow"><strong>TERMS AND CONDITIONS</strong></a> | <a href="YOUR URL HERE" rel="nofollow"><strong>PRIVACY AND POLICY</strong></a> | <a href="YOUR URL HERE" rel="nofollow"><strong>CONTACT US</strong></a></div>'; } add_action('kleo_footer_text','kleo_copyright_text');
CSS:
COPY CODE.footer-info { float: right; margin-top: -3%; }
Attachments:
You must be logged in to view attached files.December 25, 2016 at 15:54 in reply to: Menu links in Footer, at the right side of @trademark all rights reserved 2015 #147961RoaderParticipantHi Laura… this php code does not work.
Attachments:
You must be logged in to view attached files.RoaderParticipantTheme Options / Styling options / Quick CSS
#members-list > li.vcard:nth-child(1) {
display: none;
}RoaderParticipantFULL CODE:
.members .item-list-tabs {
display: inline-block;
vertical-align: middle;
}.members #subnav ul {
padding: 0;
margin: 0;
}li#members-order-select {
margin-left: 20px;RoaderParticipantLaura, plis, pídele a Radu que revise, ya que él maneja más el php quizás sepa algo.
RoaderParticipantHi Radu. No man,
please, give me a css for that,
for now… I have: (photo 1)
but I want (photo 2)
Attachments:
You must be logged in to view attached files.RoaderParticipantProblem detected.
COPY CODE.top-bar ul>li a:not(.button) { display: inline; }
Thanks Radu!
RoaderParticipantNo Luaura, It seems to be a problem of the Theme.
For this example, you can see the Style.css clean.
Dropdowm Menu is wrong. Please, fix it and Send me the solution.
Attachments:
You must be logged in to view attached files.RoaderParticipantNo Laura, default Child Theme has problems. Solution:
In functions.php —->
COPY CODE<?php /** * @package WordPress * @subpackage Sweetdate * @author SeventhQueen <themesupport@seventhqueen.com> * @since Sweetdate 1.0 */ /** * Sweetdate Child Theme Functions * Add extra code or replace existing functions */ ?> <?php // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below: // END ENQUEUE PARENT ACTION
RoaderParticipantQuerida Laura. Yo tomé los códigos de esos enlaces previamente. Pero ahí no aparece cómo esconder el Admin de los WidGets de BP. Por esa razón abrí este Ticket aquí a ver si tú o Radu me ayudan.
RoaderParticipantHi Radu, please check this.
Attachments:
You must be logged in to view attached files.RoaderParticipantOther thing. There are errors in the Default .Po _ SweetDate.
Check it.Attachments:
You must be logged in to view attached files.RoaderParticipantMy friend Radu, I know that. But qtranslatex does not translate this fields.
For this reason, please, I need a php code for translate, maybe a php that works when qtranslate is active.RoaderParticipant– Mi querida Laura, podrías pasarme un tutorial completo para conectar mi Hosting (HostaGator) + WordPress + CloudFlare?
– También te agradecería que me digas cómo obtener un SSL gratuito, vi algo de Linux (Let’s Encrypt) pero no sé si funcione con HostGator.
– Por otro lado algunos tips extras que han usado uds los del Equipo 7thQ para proteger su Site.
Algo malo de BuddyPress que acabo de observar, corregible sí, es que muestra el Username del Super Admin. Si un hacker se suscribe a la página, y ve ese username, pues qué crees?
La solución fue esta, pero a medias —> Digo a medias porque necesito un código para ocultar el Super Admin de los WidGets de BuddyPress (si sabes cómo puedo hacerlo dímelo):
COPY CODE// Deny access to admins profile. User is redirected to the homepage function bpfr_hide_admins_profile() { global $bp; if(bp_is_profile && $bp->displayed_user->id == 1 && $bp->loggedin_user->id != 1) : wp_redirect( home_url() ); exit; endif; } add_action( 'wp', 'bpfr_hide_admins_profile', 1 ); // Hide admin's activities from all activity feeds function bpfr_hide_admin_activity( $a, $activities ) { // ... but allow admin to see his activities! if ( is_site_admin() ) return $activities; foreach ( $activities->activities as $key => $activity ) { // ID's to exclude, separated by commas. ID 1 is always the superadmin if ( $activity->user_id == 1 ) { unset( $activities->activities[$key] ); $activities->activity_count = $activities->activity_count-1; $activities->total_activity_count = $activities->total_activity_count-1; $activities->pag_num = $activities->pag_num -1; } } // Renumber the array keys to account for missing items $activities_new = array_values( $activities->activities ); $activities->activities = $activities_new; return $activities; } add_action( 'bp_has_activities', 'bpfr_hide_admin_activity', 10, 2 ); // Remove admin from the member directory function bpdev_exclude_users($qs=false,$object=false){ $excluded_user='1'; // Id's to remove, separated by comma if($object != 'members' && $object != 'friends')// hide admin to members & friends return $qs; $args=wp_parse_args($qs); if(!empty($args['user_id'])) return $qs; if(!empty($args['exclude'])) $args['exclude'] = $args['exclude'].','.$excluded_user; else $args['exclude'] = $excluded_user; $qs = build_query($args); return $qs; } add_action('bp_ajax_querystring','bpdev_exclude_users',20,2); // once admin is removed, we must recount the members ! function bpfr_hide_get_total_filter($count){ return $count-1; } add_filter('bp_get_total_member_count','bpfr_hide_get_total_filter');
RoaderParticipantEse problema está sucediendo con cualquier plugin. No sé si será un problema de HostGator, o si será porque para más seguridad cambié el prefijo wp_ a otro diferente. El punto es que al activar o desactivar ciertos plugins, se pone así el DashBoard, también presenta otras anomalías.
RoaderParticipantMaybe Solution:::
<?php
/**
* @package WordPress
* @subpackage Sweetdate
* @author SeventhQueen <themesupport@seventhqueen.com>
* @since Sweetdate 1.0
*//**
* Sweetdate Child Theme Functions
* Add extra code or replace existing functions
*/?>
<?php// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED – Do not modify or remove comment markers above or below:// END ENQUEUE PARENT ACTION
RoaderParticipantI cant add new words in source.
But, I think there is a way for that.
Whatever, the solution for translating problem is: A php code in function.php or whatever.php
if exist “original-english–text” (word, id, or whatever) ==> “translate-text”;
Attachments:
You must be logged in to view attached files.RoaderParticipantNew words in the SD Theme.
Because, words like: Marital Status, City, Relationship, are added.
qTranslateX has can translate these. But, if you create a New Field, qTranslateX cant.
And I DONT WANT MORE PLUGINS… More Plugins = WP Slow, WP more vulnerable.
For this reason, I prefer safe Php Code.RoaderParticipantLaura, y qué me dices de un CDN como CloudFlare?
Tienes experiencia con ese CDN? Lo pregunto porque, veo que lo recomiendan mucho, pero, hay algo que me preocupa. La versión Gratis del CDN tiene un límite para el tráfico, y me pregunto si mi página llega a tener 10,000 visitas diarias, qué pasaría, se caería o seguiría funcionando normal?
RoaderParticipantWell Radu.
I want to put 1 like 2 (example)
I suppose that you know the css for get it.
Attachments:
You must be logged in to view attached files.RoaderParticipantLaura, no hay problema si tengo WordFence instalado e iTheme Security?
O basta con uno?RoaderParticipantHola Laura.
Sí, WangGuard tiene ciertos problemas. Le avisaré a José Conti el desarrollador.Aun así, podrías ser tan amable de pasarme los tips para darle más seguridad al Sitio?
Veo que el ithemes security es más de pago que otra cosa. Qué ventajas tendría con la versión gratuita?
RoaderParticipantHi Radu, I did remove this…
But I found the solution 😀
Problem:
In QUICK CSS I had:
div#header {
background-color: transparent;
background-image: url(http://whatsmymate.com/wp-content…png);
background-position: 80%;
background-repeat: no-repeat;
background-attachment: scroll;
background-size: contain;
background-position-y: 50px;
}The image was repeated.
Only I removed this line! 😉 But Thanks for your Time! -
AuthorPosts