Jump to content

Tyson

Blesta Developers
  • Posts

    3,638
  • Joined

  • Last visited

  • Days Won

    241

Posts posted by Tyson

  1. Yeah, 20 seconds to load the site is too long. Try to cache some data, remove some of the javascript if possible, and use smaller thumbnails rather than resizing large images.

  2. I'm not yet convinced all of the ticket data is correct except for the last reply user. I would expect some other fields to be incorrect.

     

    Can you update /plugins/support_manager/views/default/admin_tickets.pdt and add to the top of the file:

    <?php print_r($tickets);?>

     

    Then visit the Support Tickets page in the admin area and view the page source to compare each field with what you know to be correct. Feel free to paste the results here. If you're using the same data in MariaDB and MySQL, lets see the results from both to compare the differences.

  3. Updates are not made to set whom the last reply was from, but rather the last reply is calculated on the fly.

     

    I'm curious though, if you compare the results from MySQL and MariaDB for that page, is everything identical except for the last reply?

  4. Generic errors are often displayed when an error is unknown, or in this case, when it may contain sensitive information. 

     

    Looking at the gateway, I can see you encountered two errors: the first was the authentication issue with the gateway, and the second was that the amount charged was less than 50 cents. The authentication error message that would have been displayed had it not given you an "Oh noes!" error, would have been generic.

  5. This can quickly and easily be changed by changing /app/views/admin/default/structure.pdt:

     

    							<?php
    							$this->Form->fieldText("search", "", array('class' => "search", 'placeholder'=>$this->Html->ifSet($search_options[$this->Html->ifSet($default_search_option, "smart")])));
    
    							?>

     

    You can still use the Form component:

    $this->Form->fieldText("search", "", array('class' => "search", 'x-webkit-speech' => "x-webkit-speech", 'placeholder'=>$this->Html->ifSet($search_options[$this->Html->ifSet($default_search_option, "smart")])));
  6. I used to play on HomelanFed servers, but they banned me for "cheating". When you play the same map for so long, you pick up on a lot of things, and apparently shooting enemies through walls when you hear them back there is "cheating".

     

    Ever since then we had hosted our own CS servers. Turned into a great community, but slowly died down after Source came out.

  7. Here's an example of each:

     

    <script type="text/javascript">
    $(document).ready(function() {
            // Load CSS (taken from SolusVM module)
    	$(this).blestaSetHeadTag("link", {media:"screen", type:"text/css", rel:"stylesheet", href: "<?php echo $this->Html->safe($this->view_dir . "css/styles.css");?>"});
    
            // AJAX request (taken from admin_packages_add template
            $(document).blestaRequest('POST', '<?php echo $this->Html->safe($this->base_uri . "packages/moduleoptions/");?>', $('#module_id').closest('form').serialize() + meta_values,
    		function(data) {
    			if (data) {
    				$('#module_options').html('');
    				$('#module_email_tags').html('');
    				$('#module_options').html(data.module_options);
    				$('#module_email_tags').html(data.module_email_tags);
    			}
    		},
    		null,
    		{dataType:'json'}
    	);
    });
    </script>
  8. If I recall correctly, the module does not have access to do this through AppController::setMessage(), which would be:

    $this->setMessage("message", "Success!");

    So you would need to fetch the message template yourself and set it in your widget template:

    // Untested code to fetch the message template, set your success message, and set it as the variable $message in your template
    $this->set("message", $this->partial("message", array('message' => "Success!")));

    Then call it from your widget template:

    echo $this->Html->ifSet($message);
×
×
  • Create New...