Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 208 total)
  • Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @danbp yes im always bang up to date pal, it just isnt worth the risk i was just posting this as a warning really to those who dont seem to think they have to update and the video may just make them think twice :)

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @danbp hey dan their seems to also be a very big risk with the wordpress commenting system that i have come across from various wordpress expert groups on fb today, and i believe that wordpress are refusing communication on this matter, please take a look at these 2 links, this could affect anyone using the commenting system with buddypress installs too.

    below is a fix that has been found

    https://blog.anantshri.info/temp_fix_wordpress_comment_xss

    and this is a video showing you the 0 day exploit being executed used and tested.

    video doesn’t seem to format here properly i suggest doing a youtube search for it

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    ahh cool dan i wasnt aware as ive been offline for the past week or so traveling bud, cheers for the link.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    you can also use something like this

    add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 );
    
    function remove_default_stylesheet() {
        
        wp_dequeue_style( 'original-enqueue-stylesheet-handle' );
        wp_deregister_style( 'original-register-stylesheet-handle' );
    
        wp_register_style( 'new-style', get_stylesheet_directory_uri() . '/new.css', false,'1.0.0' ); 
        wp_enqueue_style( 'new-style' );
    
    }

    This way you can first dequeue/deregister styles you dont want and then register/enqueue the new stylesheets

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    yes that’s how ive been doing it henry, but cheers its a good idea like you said to post the code so others know what we are talking about lol

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @henrywright cheers henry any little info and suggestions how others do it always helps, i know that it mainly boils down to each specific website how this is done in the best possible way, and alot of it can depend on how many stylesheets various plugins load, i wish more developers would give you an option in the backend to use your own stylesheets as standard and let you just turn them off from loading, i know more and more plugins are giving you this option but there are alot that still don’t, i like to customize everything myself and would rather not have to dequeue these stylesheets manually. its quite annoying.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @rosyteddy a couple of good reads there man, i like to read through the comment sections on articles like the ones above because there is some good points raised, there are alot of varied opinions as how to effectively pull this off dependent on the complexity of your site, which i would consider mine as quite complex, the reason for the questions and advice is because of how complex i consider the website to be, i have alot of stylesheets for various different things here there and everywhere loading when not needed etc, in the past i have used plugins to successfully combine and serve them as one cached minified version etc.. but i was just wanting to go more in depth with it and configure it all myself to run at an optimum level.

    I am going to be messing around with this over the next few days and will get back to you on what i feel was the best way to do it, any more advice off anyone else who has tackled doing this manually for wordpress/buddypress give us a shout.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    No worries m8, as far as sleep is concerned, what is this sleep you speak of? hahahaha
    Besides i just woke up at 12am so im up all night now, damn my sleeping pattern is a mess at the minute :/

    Oh i always forget about the top menu as i have disabled the top bar, i hate it!
    I hate the wordpress bar at the top and always have , it screams your using wordpress above anything else. I always disable it hence why i was working on my own notifications i a previous post.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @danbp haha and? i was just saying bud so you knew what tabs i was on about lol, shlaaps my head for not being clear in the first part! lol

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @danbp hey dan after re-reading your comment bud ive just realized we are on about different tabs hehe, i was talking about the actual top level tabbed navigation on your profile. examples:

    Activity
    Profile
    Friends
    Groups
    settings
    etc…..

    and the sub navs for each tab. examples:

    Personal
    Mentions
    Favorites
    Friends
    Groups
    etc….

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    I tried that plugin but my plugin setup is far to complex for it to work without breaking ALOT of things on my site, it wouldn’t be worth all the troubleshooting with these other plugins (as i suspected), the website is very ambitious and i have a set amount of plugins i need running to achieve it, removing features is not an option, the main thing im concentrating on is performance with all of the plugins active (which is alot more than the average site so hence the problems) and im trying to combine all my js files in the most efficient way i can without again breaking functionality , i don’t really need all the website to be ajaxed as such it is more a case of just the buddypress tabs on the profile areas that is the issue really

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    Ok after some thought (i dont have a clue if this can be done ) but is there anyway that you could upon clicking the buddypress tab ‘profile’ (for example) on a members page you could have it anchor to a specific part of the page after it refreshes the page? Let me explain why, the reason i ask is that to get to the profile tab on a members page involves scrolling a little down my page, so upon clicking the profile or any other tab on a members page it will refresh the page and jump back to the top making you have to scroll back down to the subnav that is just out of view.

    So the question is this, could i make each of the top level navigation tabs after being clicked and the page reloads anchor back down to the corresponding sub nav tab?

    I hope this explains exactly what im trying to say haha, if it can be done can you give me any clues as of how to do this?

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @mrgiblets i once recall downloading lots of various ajax all plugins and testing them but i noticed that alot of things could easily break for me due to the plugins i use, maybe worth trying it again? what is the issue with messaging with that plugin?

    @danbp i understand what your saying but maybe just have all the default tabs ajaxed? if this was the case plugins that create new tabs within buddypress would have to follow suit, no?

    @henrywright yes im gonna take a look later through the link you posted.cheers

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    After doing some reading this has come up a few times in the past and it seems its not going to happen, i see brajesh tried creating a theme a while back that used ajax on the members single profile pages but even he states its not for a production site, so no worries, i was just curious as to why its not as standard same as the way the other tabs work that’s all.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    i take it your like me and stay up all damn night working away lmao, im definitely gonna put my cometchat to the test soon and i will keep you posted on the results, im just so busy with the design of my new site im lost for time, as well as setting up my servers, i have written almost 10 thousand lines of css for this new website so far as i have been designing it using media queries for almost every single device screensize, so its been a big job!

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    nice website man, where are you located?

    btw read this post https://theadminzone.com/threads/adding-cometchat-to-an-active-big-board.99248/

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    Hmm , YES i know for a fact that they check for anti piracy and that your domain name is registered via your admin panel when you log into your account on their site, could this really be part of the issue? what if cometchat is in fact making that call for a legitimacy check every single time cometchat is accessed rather than them doing a one off check and giving it the OK flag? I dunno im just as confused as you by this and i haven’t even got mine set up on a live site yet!

    This worries me a little as you don’t want expensive software you own doing things like this each time someone connects to your chat! this is obtrusive behavior when you own a white-label software product, the way they deal with anti privacy is their issue and not the end users problem who has genuinely purchased their product!

    I know this is the case as i once installed it on a test server but had forgot to add my new domain name and got errors.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @mrgiblets just reading more and apparently with their cometservice and memcached (also setting up to run a cron job every 3 hours) and testing with over 10 thousand users on a 4gb vps your load should only peak at between 10-20 percent!

    read this here http://www.cometchat.com/blog/cometchat-v5-1-handle-thousands-of-users/

    maybee you have an incorrectly setup server because the description of your server is much much much higher than a standard vps

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @mrgiblets hi m8, ok i am really curious now because i also own the premium version of cometchat and have done so for the past 18 months but i haven’t used it yet, i dont understand your problems mr giblet because isnt that what it is supposed to do when connecting to their push service? connect to their servers so that they can deliver the messages for you? now cometchat has been around for years and is supposedly used by 100s of thousand s of sites etc so why would 30 users cause a crash? if subscribed to their push service and you have a correctly configured server and sufficient caching running alongside cometchat (which they seem to recommend memcached) all should be fine should it not?

    btw how are you testing this live scenario? have you got 30 users connecting from different locations in a real world test?

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    yeah no worries mate im just in the middle of something so wont be able to try it till later tonight.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @henrywright Hey man, im defo going to be trying this one out later today m8, this could be a very useful plugin bud, n1.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    as the guy mentioned above cometchat or arrowchat will do this for you but for a whitelabel version (with-out the powered by logo) you will have to pay between $150 and $400 depending what features you want, then if you haven’t got a dedicated server and adequate serverside caching to deal with an excessive amount of chatters at once and you have a busy site you may also need to subscribe to their push service so you don’t grind to a halt ‘so to speak’ .

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    I don’t understand what you mean because buddypress has private messages built in as standard.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    @juliantrueflynn hi m8, i haven’t used cometchat but i have read about it and i believe they have a push service to help with server load if you have too many users at once do they not?

    I believe this is charged per how many messages are sent etc, have you tried this service from them at all? im curious!

    I also believe you have to have caching correctly configured (either apc or memcached) for it to be utilized efficiently.

    Profile photo of mcpeanut
    mcpeanut
    Participant

    @mcpeanut

    yes i agree it needs an update but its always worked good for me in the past, did you not check the second link i posted?

    it gives you examples on how to dequeue scripts

    /**
     * Dequeue the jQuery UI script.
     *
     * Hooked to the wp_print_scripts action, with a late priority (100),
     * so that it is after the script was enqueued.
     */
    function wpdocs_dequeue_script() {
       wp_dequeue_script( 'jquery-ui-core' );
    }
    add_action( 'wp_print_scripts', 'wpdocs_dequeue_script', 100 );
Viewing 25 replies - 1 through 25 (of 208 total)
Skip to toolbar