Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @dflavin,
    It sounds like you have no clue on how PHP works πŸ˜‰
    Here’s a basic read: https://developer.ww.wp.xz.cn/themes/basics/template-files/

    Unlike very old-school HTML pages (which are static), PHP is an executable coding language. So WordPress loads the PHP code (from a php file) to execute that code, to create certain output. The same PHP file is used to create numerous pages/posts/events/etc.

    What is comes down to (in very simple wording), is that “holiday-party” identifies itself to WordPress as post type ‘event’. Then WordPress fetches the PHP file to display any event and executes that code by getting its variables (for this page) from the SQL database.

    So, basically (again simple wording), a PHP file is there only to point WordPress to the location of the required executable code.

    Does that make sense? πŸ˜€

    Thread Starter dflavin

    (@dflavin)

    Patrick,
    I understand exactly what you are saying, also I understand that PHP is an executable coding language. What I am looking for is the name of the php file that is being called originally to create the html which is displayed.

    Thank you for your insight.

    It doesn’t really work that way….

    Header.php, Footer.php & sidebar.php are always used for every output. The main part (content) can differ per theme, but depending on your EM settings (“Display as Post/Pages”), your theme will either take single.php, page.php or even single-event.php to construct an EM event.

    Yet, that template file is “only” used for the page’s structure (main outline). The actual content is constructed in Events > Settings > Formatting > Single Event Page, while the placeholder #_EVENTNOTES will display whatever you have put in the Content part of the Edit Event Page.

    And all this is controlled by your CSS stylesheet(s) to make it look pretty. πŸ˜‰

    And to top is all off, plugins and themes use hooks and filters to alter/customize any output, etc.

    Finally, WordPress takes all that input and renders it to an end-result: the HTML you see in your browser.

    So, I guess a better question would be: “Why do you need that file? What are you trying to accomplish?” Then I could perhaps point you to the correct setting/file/etc. πŸ˜€

    Hello,

    Perhaps are you looking on Modifying the template? If Yes, You could check the settings under Events > Settings > Formatting > Single event page format. (This was suggested by Patrick above in case you missed it)

    Please let us know if you’re trying to accomplish something different.

    If you’re new to WordPress, WP is a CMS, and it doesn’t create a new PHP file for each content it creates, Thus it stores the information on Database and it calls the data from there. Each theme has different “tempate files” which are called by WP to display specific content based on what type of content/page you’re trying to load.

    Thread Starter dflavin

    (@dflavin)

    I added two variables to the top of the login.php file.
    example:
    <?php
    $bob = $_GET[‘bob’];
    $tom = $_GET[‘tom’];
    ?>
    then I modified the address for the event
    https://yourwebsiteaddress.com/events/holiday-party/
    to read:
    https://yourwebsiteaddress.com/events/holiday-party/?bob=BillW&tom=xpcA135$$$

    bob is the username
    tom is the password

    In this way I can send an email that the user can automatically sign into the site automatically and book the number of tickets that they want.

    Normally, I would not be passing this information around like this, but the users do not know their own passwords and all they can do is book an event. The events are for a specific community with several months of backups.

    That is a very unsafe solution. Using login information in a viewable URL is never a good idea!

    You have now made wp-login.php unsafe as it listens for URL parameters. Evil bots can now (pretty simply) crawl those and hack you.

    A much better solution for this would have been long lasting cookies. Much safer! That is why I asked what you were trying to accomplish. But it’s your choice.

    Thread Starter dflavin

    (@dflavin)

    I realize that it is not a safe solution. Currently if you go to an events page that is accepting reservation and are not signed in you are immediately redirected to the log-in page.

    The site is not for the general public, there is NO payments for any of the members and other than email addresses and neighborhood that they live in there is no other information in the database.

    Also the only log in page that is effected is the one created by events manager.

    This is a special issue for a restricted site, with NO e-commerce and very little stored information of the users who all have the role of subscriber.

    I realize and agree with your concerns.

    I hear you and I do NOT want to sound rude or blunt, but if your users can not remember their login credentials, chances are they are not very technical-comfy. πŸ˜‰
    Most likely their computers are stuffed with trackers, malware, trojans, etc (I see that on my Dad’s pc all the time).

    Please install some security plugins to sort of compensate your decrease in security. My personal favorite is https://ww.wp.xz.cn/plugins/iq-block-country/
    I run a local (Dutch) website, so I have absolutely no need for “visitors” from Ukraine, China, Russia, Romania, Bangladesh, Hong Kong, Singapore, etc. Since these are notorious for trying to hack WP installs, this plugin reduced the risk immensely. πŸ˜‰

    Also checkout: https://ww.wp.xz.cn/plugins/gotmls/

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Page URL’ is closed to new replies.