BBPress Claude Dagenais : Replies Created

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 19 total)
  • Author
    Posts
  • in reply to: Security issue #376294
    Claude Dagenais
    Participant

    Here is the answer from Sucuri:

    I inspected the card.php file specifically and there does not appear
    to be any malware inside so I have restored it, the file was removed
    as its a php file inside the uploads directory which should only
    contain images, documents and other related files, not php files. I
    apologize if this caused any problems.

    So I would say this was a false positive but it raise the question of putting php in the upload directory. iTheme Security does not allow it either.
    Claude

    in reply to: Connections Widgets won't update #376283
    Claude Dagenais
    Participant

    That raise a question.
    In this case it is a site in development. So I have a local staging site, a distant staging site and hopefully a production site.
    If I connect the staging sites I understand that I will have to de-activate it when I go live and then activate the the licence on the production server.
    Is it possible to have the same tool count as one active licence on the production site and on the staging sites? Because of the tools I use, all my staging site are named staging.domain.com (replace domain.com by the production server address).

    in reply to: Security issue #376272
    Claude Dagenais
    Participant

    Thank you. With your reply I contacted Sucuri and sent them you contact information. Since they deleted the file on the server I cannot be sure of what they found. Maybe it was injected with something. I’ll keep you updated.

    in reply to: Security issue #376261
    Claude Dagenais
    Participant

    Well I guess I can’t send you the card.php so a second try in txt

    Attachments:
    You must be logged in to view attached files.
    in reply to: Filter for page title #375887
    Claude Dagenais
    Participant

    You are the best sir. Thank you!

    in reply to: Filter for page title #375859
    Claude Dagenais
    Participant

    Thanks, 8.5.15 will be release soon I guess so I’ll wait for it. Could you give me an example how to filter with the new cn_page_title filter to achieve what I want?
    tx

    in reply to: Links Titles vs Shortcode #375479
    Claude Dagenais
    Participant

    Last update since the problem is solved for good. I had to make a small change to the code because of my own stupidity. I’ve attached it if it can help someone.

    Attachments:
    You must be logged in to view attached files.
    in reply to: Links Titles vs Shortcode #375461
    Claude Dagenais
    Participant

    the $html line is missing a part of the code in my post so I’ve attached the file FYI

    Attachments:
    You must be logged in to view attached files.
    in reply to: Links Titles vs Shortcode #375457
    Claude Dagenais
    Participant

    Crap I don’t know how to share code here anyhow it works! tx

    in reply to: Links Titles vs Shortcode #375456
    Claude Dagenais
    Participant
    add_filter( 'cn_output_link', 'th_cn_output_link', 10, 4 );
    
    function th_cn_output_link( $html, $link, $entry, $atts ) {
    
        $url    = cnSanitize::field( 'url', $link->url );
        $th_langue = wpml_e__if_language( 'Visit us on the web !', 'en' ); wpml_e__if_language( 'Visitez-nous sur le web !', 'fr' );
    
        $html = '<a class="url" href="' . $url .  '" target="_blank">' . $th_langue . '</a>';
    
        return $html;
    }
    
    • This reply was modified 10 years, 3 months ago by Steven Zahm. Reason: Fix code block
Viewing 10 posts - 1 through 10 (of 19 total)