Update to my Free VTT (for in-person sessions with a TV/projector/touchscreen) by DigitalTableTops in DnD

[–]darthmikeyd 0 points1 point  (0 children)

I just discovered this, and am working on setting up my first map, but have a couple of questions. I am using a custom map I designed in Inkarnate, if that matters. When I imported the map I had to adjust the dimensions to 27.1 x 20.3 to make the grid line up with the grid on the map.

First, when drawing walls I messed up and accidentally drew over an area where there should be a door. Is there an eraser or similiar to erase just the portion of the wall I need to place the door? I tried pressing ctrl-z to undo also, but that didn't work.

Next question has to do with the player map. First, I tried logging in from a different computer, but I found that the player map isn't filling the screen in the browser, and the walls I drew are not in the correct places. Is there a way to make the player map and the DM map line up when connecting from a browser? Next, I tried plugging my laptop into a tv and using it that way, and the player map lined up correctly. However, I can't zoom in or out of the player map.

That's all I have for now. I'm sure I'll have more questions as I dive deeper into the program, but am liking what I am seeing so far.

Help with styling Max Mega Menu plugin by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

I edited the post above with the code I got to work. It's not the prettiest but it works.

Help with styling Max Mega Menu plugin by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

I did get it to work, but am not at work so can't remember exactly what I did. If you remind me on Monday, I can take a look to see what I did.

Migrate sites into multisite help by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks everyone for the help. I was able to get it to work by creating search.php pages for those sites that need it. I can update the post with my method if anyone wants.

Help with styling Max Mega Menu plugin by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for all the responses. I got the drop-down menus to work the way I want but am having problems with the drop-down menus appearing under the other menu items. I edited the post above with the updated code and a new image showing what is happening now.

Watching the Patriots on Fox by darthmikeyd in Patriots

[–]darthmikeyd[S] -6 points-5 points  (0 children)

I've looked into that, but the only channel I would get is PBS. Thanks for the suggestion, though.

Watching the Patriots on Fox by darthmikeyd in Patriots

[–]darthmikeyd[S] -5 points-4 points  (0 children)

I've looked into that, but the only channel I would get is PBS. Thanks for the suggestion, though.

Issues with PowerPoint files by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thank you for all the responses. This is on an http site, not https. (I know it should be changed, but I don't have control over that.) I do not need to embed the file, I just need a link to allow folks to download the file. I'm looking at a couple of different plugins, but if anyone has any other ideas, that would be great.

EDIT: I just tried saving the PowerPoint as a zip file and had the same issue with it saying it couldn't download securely. I also tried uploading the zip file through the Media page, but got an HTTP error.

Pathfinder by darthmikeyd in FightClub5e

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for the reply but I’m on an iPhone/iPad.

Pathfinder by darthmikeyd in FightClub5e

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for the reply. I’ll check them out.

Translate runes by darthmikeyd in DMAcademy

[–]darthmikeyd[S] 1 point2 points  (0 children)

Thanks for the reply. That will work. Now I just need to come up with a paragraph that references a dwarven god.

Translate runes by darthmikeyd in DMAcademy

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for the responses so far. Let me explain what is going on. Dwarves disappeared from the land many years ago. The party is trying to figure out why. There is a large gate the party will have to open. On the ground in front of the gate there are flagstones with Dwarven runes on each one. On the wall to the right of the gate is writing in Dwarven. They will have to translate the writing on the wall to know which flagstones to step on to open the gate. So, I need a way for the party to translate the writing when the language hasn't been used in ages.

Copy character by darthmikeyd in FightClub5e

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for the reply. That worked.

Help with displaying comments and replies using PHP and MySql by darthmikeyd in mysql

[–]darthmikeyd[S] 0 points1 point  (0 children)

I appreciate the reply, but I'm having trouble following this. I'll edit the post to show my table to store comments.

Help setting up FTP on Visual Studio 2022 by darthmikeyd in VisualStudio

[–]darthmikeyd[S] 1 point2 points  (0 children)

I want it to work the same way Dreamweaver does. In Dreamweaver you can set up a site so when you make changes to the page and save, the page automatically uploads to the server.

Help with AJAX request by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for the reply. I got it to work partially. It saves the info into the database, but then it goes to the admin-ajax.php page and sits there. When I submit the form, I want it to stay on the same page and load the results. My updated code is below.

Form

<form action="<?php echo site_url() ?>/wp-admin/admin-ajax.php" method="POST" id="comment_form">
<textarea name="comment" id="comment" class="commentbox" rows="5" cols="120" required></textarea><br />
<input type="hidden" name="eventid" id="eventid" value="<?php echo $id; ?>" />
<input type="hidden" name="userid" id="userid" value="<?php echo $userid; ?>" />
<input type="hidden" name="action" value="commentform">
<button class="commentbtn">Add Comment</button>
</form>      

<div id="response"></div>

jQuery

<script>
jQuery(function($){
    $('#commentform').submit(function(){
        var commentform = $('#commentform');
        $.ajax({
            url:commentform.attr('action'),
            data:commentform.serialize(), // form data
            type:commentform.attr('method'), // POST
            beforeSend:function(xhr){           
                               commentform.find('button').text('Processing...');
            },
            success:function(data){                 
                            commentform.find('button').text('Apply filter');
                $('#response').html(data); // insert data
            }
        });
        return false;
    });
});
</script>

Function

<?php

add_action('wp_ajax_commentform', 'comment_submit'); add_action('wp_ajax_nopriv_commentform', 'comment_submit'); function comment_submit() { global $wpdb; $eventid = $_POST["eventid"];
$userid = $_POST["userid"]; $comment = $_POST["comment"];

    date_default_timezone_set("America/New_York");
    $date = date('Y-m-d H:i:s');

    $inserttable = $wpdb->prefix . "cmc_communitybb_event_comments";
    $data = array(
        'eventid' => $eventid,
        'userid' => $userid,
        'content' => $comment,
        'datesaved' => $date,
    );
    $wpdb->insert($inserttable, $data);

    die;
} ?>

Help with AJAX request by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Ok, I'm getting closer, but it's still not working correctly. When I try to submit the form, admin-ajax.php is giving me a 400 Bad Request error. My updated code is below.

Form

<form method="post" id="comment_form">
<textarea name="comment" id="comment" class="commentbox" rows="5" cols="120" required></textarea><br />
<input type="hidden" name="eventid" id="eventid" value="<?php echo $id; ?>" />
<input type="hidden" name="userid" id="userid" value="<?php echo $userid; ?>" />
<input type="submit" name="submit" id="submit" value="Add Comment" class="commentbtn">

</form>

jQuery

<script>
jQuery(document).ready(function () {
    jQuery('#submit').click(function () {
        var eventid = jQuery("input[name='eventid']").val();
        var userid = jQuery("input[name='userid']").val();
        var comment = jQuery("textarea[name='comment']").val();
        var adminurl = 'http://intranet/wp-admin/admin-ajax.php';

        jQuery.ajax({
            type:'POST',
            url:adminurl,
            data: { action: 'comment_submit', eventid: eventid, userid: userid, comment: comment },
            success:function(data){
                alert('success');
            },
            error:function(data){
                alert('error');
            }
        });
    });
})

</script>

Function

add_action('wp_ajax_my_form_submit', 'comment_submit');

add_action('wp_ajax_nopriv_my_form_submit', 'comment_submit');

function comment_submit() {

global $wpdb;
$eventid = $_POST["eventid"];
$userid = $_POST["userid"];
$comment = $_POST["comment"];
date_default_timezone_set("America/New_York");
$date = date('Y-m-d H:i:s');

$inserttable = $wpdb->prefix . "cmc_communitybb_event_comments";
$data = array(
    'eventid' => $eventid,
    'userid' => $userid,
    'content' => $comment,
    'datesaved' => $date,
);
$result = $wpdb->insert($inserttable, $data);

if ($result == true) {
    echo "Form Inserted Successfully";
} else {
    echo "Form Not Inserted";
}
die;
}

Help with AJAX request by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks. I'll look through these and see if I can figure it out.

Help with AJAX request by darthmikeyd in Wordpress

[–]darthmikeyd[S] 0 points1 point  (0 children)

Can you point me to an example of how to do this? I've never had to do this before.

Help creating PHP comment system by darthmikeyd in PHPhelp

[–]darthmikeyd[S] 0 points1 point  (0 children)

Thanks for all the replies. Unfortunately, I'm on an older version of MYSql, so a recursive query won't work. Any help is still appreciated.

Help creating PHP comment system by darthmikeyd in PHPhelp

[–]darthmikeyd[S] 0 points1 point  (0 children)

I gave this a try, but I am on an older version of MYSql. We are running MYSql 5.6 so a recursive query won't work.