ianmac2
Forum Replies Created
-
Forum: Plugins
In reply to: [GDPR] Theme Integration TipsHi 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
Forum: Plugins
In reply to: [GDPR] Theme Integration TipsThanks 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 optionsThanks – I
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Plugin causes issues with WordPress 4.5This 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' ); } }Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Plugin causes issues with WordPress 4.5Hi 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
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Email Template – Subject LinePerfect 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.
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Settings for [addoscontact]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.
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Settings for [addoscontact]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)
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Settings for [addoscontact]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>'; } } ?>Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Settings for [addoscontact]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
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Settings for [addoscontact]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.
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Email Template – Subject LineI 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.phpEdit 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 createdForum: Plugins
In reply to: [Key4ce osTicket Bridge] Email Template – Subject LineOk no worries understand you must be busy. Any pointers you can give as workround for custom email subject line is always appreciated if possible.
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] How to deregister OST Bridge Admin CSS ?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' ); } }Forum: Plugins
In reply to: [Key4ce osTicket Bridge] Patch: Some improvementsHello 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
Forum: Plugins
In reply to: [Key4ce osTicket Bridge] How to deregister OST Bridge Admin CSS ?Can anyone confirm wether wp_deregister_style will work with ost-brigde-admin ? Many thanks.