Forum Replies Created

Viewing 15 replies - 16 through 30 (of 32 total)
  • Thread Starter ianmac2

    (@ianmac2)

    Hi Fernando

    Thank you! I can now see that when I login I get the Privacy Policy opt-in displayed.

    However I noticed that when the opt-in screen is displayed the user is still able to access their WP dashboard view and make use of any functionality available.

    Also it would be nice if the opt-in display on login can be disabled for admins.

    Best -I

    • This reply was modified 8 years ago by ianmac2.
    • This reply was modified 8 years ago by ianmac2.
    Thread Starter ianmac2

    (@ianmac2)

    Thanks for the reply I will take a look at our registration form php template – we also have pre-existing registered members, can confirmation request be applied to those existing users who log in e.g.

    Given existing User logs in
    And user has no recorded consent
    Then present dialog with policy review and agreement options

    Thanks – I

    ianmac2

    (@ianmac2)

    This seems to work – just add it to your theme functions.php as usual

    /* key4ce ost bridge css fights with WP admin screens for mailpoet editor & post editor in 4.5- disable the CSS while viewing these admin screens */
    add_action( 'admin_head', 'my_deregister_css2', 100 );
    
    function my_deregister_css2() {
       if (false !== strpos($_SERVER['REQUEST_URI'], '/wp-admin/admin.php?page=wysija_campaigns')) {
    	wp_deregister_style( 'ost-bridge-admin' );
       }
    
       if (false !== strpos($_SERVER['REQUEST_URI'], '/wp-admin/post.php')) {
    	wp_deregister_style( 'ost-bridge-admin' );
       }
    }
    ianmac2

    (@ianmac2)

    Hi Marco. I have the same issue on WP 4.5.1. When in Post creation/edit ‘Add Media’ button fails to open media picker – same thing with ‘Set Featured Image’.

    Presumably the wonderful key 4ce plugin is including stuff in the admin pages – does it really need to do that? I posted originally a work around to deregister the CSS for Admin however I suspect this workaround is no longer working? Maybe the references have changed?

    https://wordpress.org/support/topic/how-to-deregister-ost-bridge-admin-css?replies=4

    Thread Starter ianmac2

    (@ianmac2)

    Perfect thank you for letting me know – I’ll give it a try.

    By the way have you ever tried the API as a way of creating the initial ticket rather than insert into DB? osTicket does a lot with message headers – I was trying to replicate that so that users reply by email would work with message-id header.

    Thread Starter ianmac2

    (@ianmac2)

    Subject Lines: No absolutely, that is what I was thinking re config. I just did a quick & dirty update for my own purposes to add additional info to the subject line. Ultimately it would be excellent to have that field in the template.

    Public/Private Departments: we are using addoscontact as a public contact form. Our requirement for the [addoscontact] shortcode is to show a reduced list of Departments just for external visitors/non-members. For logged in members we have a ‘Helpdesk’ page (the configured landing page). Logged in members see the entire list of departments on the ‘Helpdesk’ -> ‘Create Ticket’ form.

    Thread Starter ianmac2

    (@ianmac2)

    Hi Marco, no problem, business first!

    I made the changes (as above) to my current version of the plugin and I can confirm that the changes work with Public/Private departments (i.e. the Public Departments are displayed externally to visitors AND Public and Private Departments are displayed to logged in members).

    I have also made changes to include static text + Ticket Number & Subject in automated email subject lines (though it is crude and does not implement a Settings form for this)

    Thread Starter ianmac2

    (@ianmac2)

    Looking at the code, the SELECT that gets the department names always looks for public entries and ignoreS private the ones – this is true for both public contact form and the form logged in members can see:

    key4ce-osticket-bridge\includes\versionData.php : Line 4
    $dept_opt = $ost_wpdb->get_results("SELECT dept_name,dept_id FROM $dept_table where ispublic=1");

    key4ce-osticket-bridge\admin\admin_create_ticket.php : Line 5

    $dept_opt = $ost_wpdb->get_results("SELECT dept_name,dept_id FROM $dept_table where ispublic=1");

    In theory it should be possible to do something like this instead?

    In versionData.php & admin_create_ticket.php:

    $dept_opt = $ost_wpdb->get_results("SELECT dept_name,dept_id,ispublic FROM $dept_table");

    In contact_ticket.php add the following conditional (admin_create_ticket.php should be ok as it is)

    <?php
    	foreach($dept_opt as $dept)
    	{
               if ($dept->ispublic == 1)
               {
    	      echo '<option value="'.$dept->dept_id .'">'.$dept->dept_name .'</option>';
               }
            }
    ?>
    Thread Starter ianmac2

    (@ianmac2)

    Have done the upgrade to 1.9.7. Set the departments for logged in member use to private. The public form shows the public only departments and the form on the logged in view shows the same public departments i.e. am still unable to see any private department names in my members only Create Ticket form

    Thread Starter ianmac2

    (@ianmac2)

    Just checked our SCP information which reports v1.9.2. The plugin is currently set to Ver >= 1.9.5.1. I think I need to do an upgrade!

    I tried setting the departments we need on the public contact form to private, unfortunately both external and logged in views now show only the public categories.

    Thread Starter ianmac2

    (@ianmac2)

    I had a look myself in the php code of your cool plugin – I know it’s not great editing these files as they’ll get overwritten when the next update occurs. However I managed to change the new email alert which was getting confusing as subject lines are key in gmail for threading. So I have altered the following :-

    Open the file

    wp-content/plugins/key4ce-osticket-bridge/includes/newticketmail.php

    Edit the block of code after the comment:

    ///Email osticket admin - a new ticket has been created

    $subject = "Our Helpdesk - " . "[" . $ticketid . "] " . "New Support Ticket";

    $adminmessage.="To respond to the ticket, please login to the support ticket system.";
    $adminmessage.="<br /><br />";
    $adminmessage.="https://ourwebsite.com/helpdesk/scp/";

    …and also a similar edit in the block of code after the comment:

    ///Email osticket Department - a new ticket has been created

    Thread Starter ianmac2

    (@ianmac2)

    Ok no worries understand you must be busy. Any pointers you can give as workround for custom email subject line is always appreciated if possible.

    Thread Starter ianmac2

    (@ianmac2)

    This seems to do the trick…..

    add_action( 'admin_head', 'my_deregister_css', 100 );
    
    function my_deregister_css() {
       if (false !== strpos($_SERVER['REQUEST_URI'], '/wp-admin/admin.php?page=wysija_campaigns')) {
    	wp_deregister_style( 'ost-bridge-admin' );
       }
    }

    Hello I’d like to be able to use the following deregister code in my custom functions.php – since it looks like you are now using enqueue in the plugin can you confirm wether this will work as I’ve not had much success so far?

    I wish to deregister the ost-bridge-admin style for a particular page in my Dashboard. The code function call is:

    wp_deregister_style( 'ost-bridge-admin' );

    e.g.:

    add_action( 'admin_print_styles ', 'my_deregister_css', 100 );
    
    function my_deregister_css() {
       if ( is_page('wysija_campaigns') ) {
    	wp_deregister_style( 'ost-bridge-admin' );
         }
    }

    Thank you

    Thread Starter ianmac2

    (@ianmac2)

    Can anyone confirm wether wp_deregister_style will work with ost-brigde-admin ? Many thanks.

Viewing 15 replies - 16 through 30 (of 32 total)