## How to create templates for a custom module to show on the front end within my theme?

I’d like to create a simple plugin with a form on the front end which submits the value of 3 fields into a DB table.

For the plugin, I’ve been using this answer: https://wordpress.stackexchange.com/a/162476/77891

What I can’t get working now, is a template.

Within the main plugin file, I’ve added:

``add_action( 'gm_virtual_pages', function( \$  controller ) {      // first page     \$  controller->addPage( new \WEBP\Management\Page( '/custom/page' ) )         ->setTitle( 'My First Custom Page' )         ->setTemplate( 'custom-page-form.php' ); } ); ``

And my `custom-page-form.php`:

``<?php  echo "Test Echo";  ?> <p>Test</p> <p>Echo</p>  ``

The title is being displayed (My First Custom Page). But not my Test Echo. How does a correct / working template file have to look like?

## Applying FunctionContinuous in Module to a function parameter

I have a function:

``f[x_] = Tanh[2x - 1] * Cos[x] - Sin[x] / x ``

which is discontinuous in $$x=0$$. I am building a `Module[]`, which is supposed to calculating an integral of given function:

``MyNIntegral[f_, x_, a_, b_, n_:1000] := Module[{division, result},   If[Not[FunctionContinuous[{f[s], a <= s <= b}, s]], Print["Error"], Print["It is good!"]]   division = Table[a + k * (b - a) / n, {k, 1, n - 1}];   result = (b - a) / n * (f[a] / 2 + Sum[f[division[[k]]], {k, 1, n - 1}] + f[b] / 2);   Return[result]; ] ``

Obviously, the function generates the problem – division by zero, when `a_ = 0`. I would like to inform an user that such a problem occured and abort the evaluation of the `Module[]`.

But some errors have shown up:

• Set: Tag Times in division\$ 651124False is Protected.
• Part: specification division\$ 651124[[1]] is longer than depth of object.
• Part: specification division\$ 651124[[2]] is longer than depth of object.
• Part: specification division\$ 651124[[3]] is longer than depth of object.

Is this caused by the protecion of passed arguments? What can I do with that? How to use a function on a function inside module?

## Rewrite Module in Linux with .htacess

using pi 3 for the apache server but I can’t figure out how to setup .htacess as previously I use IIS which is totally easy to complete SEO-friendly tag.

But Linux HTAACESS is very much different I still can’t able to figure it out.

First I create .htaccess on the root folder which

``RewriteRule ^post/article\.php\$      {C:1}/{C:2}/{C:3}/{C:4} RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?\$      post/article.php?a=\$  1&b=\$  2&c=\$  3&id=\$  4 RewriteRule ^sitemap\.xml?\$      sitemap.php ``

Which Basiclly make intaxing.in/?a=,b=,c=,id= show them as intaxing.in/a/b/c/id like thatbut it never happen.

Then I try in Virtual Directory

Did I have to change the configuration on the virtual directory?

``<VirtualHost *:80>     Documentroot /------     ServerName intaxing.in     ServerAlias www.intaxing.in RewriteEngine On RewriteRule ^post/article\.php\$      {C:1}/{C:2}/{C:3}/{C:4} RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?\$      post/article.php?a=\$  1&b=\$  2&c=\$  3&id=\$  4 RewriteRule ^sitemap\.xml?\$      sitemap.php </VirtualHost> ``

Is anyone able to suggest how can I put rewrite so it actually works? I am very thankful to him.

I also follow guide How to enable use of .htaccess in Apache on Ubuntu? but not work maybe i should my question there.

## Looking for an old adventure module – Heroes explore a tower and find a trapped wizard

I’m looking for an old adventure module and I can’t remember the name.

This is what I remember:

• For AD&D 1e, and may have been a DM’s Guild publication

• For low level characters, not more than 5th

• Wizard is trapped in a magic circle and begs for help

• One room is a "refrigerator" with a bound ice-elemental to keep it cold

• One room has a pet basilisk, and anti-stoning spectacles hanging outside the door

• Magical "elevator" that goes to every floor of the tower, and one floor is "secret"

• I think the cover art was a B&W drawing of a lone medieval type tower, with lightning bolts flashing around it. The perspective has the viewer looking up at the tower from the ground level.

## Trying to find an early D&D module that had a drider lair

I played this module about 25 years back and don’t remember much of it, but it did have these features:

There was a ‘trap’ consisting of a long chain that descended into a pool leading to an underwater tunnel, and eventually dead-ended stapled to a blank rock face, drowning the character who thought they could use the chain to pull themselves to air on the far side.

There was an empty drider lair above the main corridor than you had to climb up into. It was dusty and empty except for one 50gp gem.

There was a very long, steep, narrow, winding corridor going down at some point.

It was likely a module for player levels 1-4, and may have been for beginning DMs as well.

Given the drider and the corridor going down, I thought perhaps it was Descent into the Depths of the Earth, but that’s for too high a character level.

Anyone remember this?

## Understanding mod_expires apache module [closed]

Working with htaccess is a new capitol for me. I have already read about mod_expires here https://httpd.apache.org/docs/current/mod/mod_expires.htm, but I’m stil confused.

I have the next code from stack overflow:

``ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access plus 2 months" ``

My questions are:

1. I suppose the line `ExpiresByType image/jpg "access 1 year"` tells the client (browser) to download the file and keep it for one year. And when the client accesses the same page from my website, the jpg image won’t be downloaded from my website. It will be read from his computer (where the browser saved first time). After one year, the browser automatically deletes the file and, once the client access my website, it will download again, for another year. If the client cleans his browser history after 2 months, then the browser will download it again even if a year hasn’t passed. Do I miss something ?

2. What cache availability should I set for each file type ? It depends on the file ? What should I consider when set the expiration time ?

3. What’s the difference between `"access 1 year"` and `"access plus 1 year"` ?

4. Does `ExpiresDefault` rule works for `php` files too ? I mean, if I have a contact.php file with some content and I modify the content of contact.php, because of `ExpiresDefault` rule, the content won’t change to the user ?

5. Do search engine spiders listen for this cache rules or they download the files each time they crawling my website ?

6. Is it true that `ExpiresDefault` is for the files I don’t set using `ExpiresByType` ? If the answer is yes, what are the other types ? What types of files are included here ?

7. Do I understand correct that `Header set Cache-Control "max-age=290304000, public"` is the maximum time allowed for a file to be cached ? If the answer is yes, then means that `"access 999 years"` will take no effect as long `290304000` is the limit. True or false ?

## Does @GabeJamesGames Class Modifier Module Under-power Humans?

I recently came across Gabriel Hicks’ narrative-driven character creation module for ability score increases being based on class rather than race. I loved the idea – both from a story-telling perspective, and also because I never much liked the inherent speciesism in racially derived ability score improvements. So I shelled out \$ 5 and downloaded the module. If you’re interested, you can find it here: https://gabejamesgames.itch.io/cmm

The TL;DR is that for each class you’re asked three questions based on your character’s backstory, and on the basis of that you get stat improvements across up to three abilities. For example a cleric gets an uplift in Charisma, Strength and Wisdom based on whether you consider your cleric to be more battle-oriented or magic oriented, whether your first instinct is might or charm, and whether you consider yourself a divine beacon or a brave voice of reassurance. Based on your answers, you might get eg +1 wisdom +2 strength, or +2 strength +1 charisma, or even one of each.

Instead of taking your ability score increases from your race, you take them from this system. I tried it out with a Dwarf, and compared it to the standard approach, and felt both were playable.

I then tried a human, and came to the conclusion that the human gets a rough deal – lacking some of the benefits from other races, humans get +1 ability scores across the board… for… well for being human. Whatever class I picked for my human I ended up just 3 down… ok sure I could be +2 and +1, but I could be +1, +1, +1, with no upside.

My conclusion was that much as I loved the idea, and it seems to work for some races, the humans just seem to miss out.

Have I missed some subtle thing? The author is no fool… and I want to love the idea, but I think the effect would be I just wouldn’t ever play a human.

Has anyone had experience with this module, esp. as a human player?

## Looking for 5e D&D module maker software like Neverwinter Nights [closed]

I’ve written some D&D 5e adventures, and I’m evaluating building them as a third-party (second-party?) video game module. Neverwinter Nights (NWN) from 2002 has the Aurora toolset which allows third-party module creation, but NWN is D&D 3e. Does anyone know of an existing or planned D&D computer game that has a similar module toolset? It doesn’t look as if Solasta: Magister or Baldur’s Gate 3 has this type of tool.

## In Roll for Shoes Prison Module, how much hp should each character have?

The "Prison Module" module by Mongoose systems (given out free in 2020) offers a variant rule for Roll For Shoes involving wounds and scars: you take a wound when you are attacked, hit by a trap, or fail a dangerous action, and if you take a second wound in the same place, it becomes a scar that cannot be healed anymore. It says that if you take as many scars as you have HP, you die. However, I cannot find in the module anywhere how much HP you have. Should I just have them roll a d6? Do I set an HP level based on their class? Or what was the intent here?

## Module or Settings in GSA to get Edu and Gov backlinks

Hello All,

I am New to GSA. May I please know the Module or Settings in GSA to get Edu and Gov backlinks. Does Edu and Gov links
considered as Tier One or Tier2?.