User Profile

Collapse

Profile Sidebar

Collapse
tdrsam
tdrsam
Last Activity: Nov 21 '18, 03:58 AM
Joined: May 12 '15
Location: Sydney, Australia
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Don't know if this helps or not, but I use a service called Vigil which is at vigil-app.com. I've got a free plan and get an email once a week. Not sure what their paid plans are like though.
    See more | Go to post

    Leave a comment:


  • tdrsam
    replied to "background-image" code not working
    I'm just guessing at this but I suspect your image (the actual file) can't be found by your code.

    Have you tried using dev tools to see if the url of your image is correct? If not, go to the browser your using to view the webpage your making, and right-click. In Chrome you choose 'Inspect', in Firefox you choose 'Inspect Element'. It's different for all browsers, just google to find out what it is for your browser, if it's not one of...
    See more | Go to post

    Leave a comment:


  • tdrsam
    replied to Responsive img?
    You should probably use media queries. This page should help you find out about them. If you need more information, just google it.

    You would probably use something like this:

    Code:
    @media only screen and (max-width: 600px) {
        section ul li{
             display: block;
        }
    }
    Hope that helps :)
    See more | Go to post

    Leave a comment:


  • Okay. Thanks. I tried the form field validation which didn't work. I'm now trying the data confirmation screen and we'll see how it goes. I'm also thinking the php script might be the hackers target rather than the web form, so I've got another idea there. Thanks again.
    See more | Go to post

    Leave a comment:


  • How to stop spam email coming through my web form?

    I have a web form that keeps getting submission from what I'm guessing is a spambot. None of the data I'm getting in the emails matches the form on the website, not even the subject line which is a hidden input. I can't figure out how to stop them. I tried using recaptcha but couldn't make it work (kinda hate it anyway), I also tried using a honeypot trap and a couple of javascript scripts but nothing stops the emails.

    This is the...
    See more | Go to post

  • tdrsam
    started a topic Formmail from Tectite - Setting target email address
    in PHP

    Formmail from Tectite - Setting target email address

    I'm using a plugin that sends messages from forms to an email address. It's from Tectite and their website is here.
    I'm having trouble setting the target email address. This is the target email line in the formmail.php file:
    Code:
    $TARGET_EMAIL = array("^unrestinpeace@yahoo\.com\.au$");
    And this is the hidden field in the form:
    Code:
    <input type="hidden" name="recipients" value="unrestinpeace
    ...
    See more | Go to post

  • tdrsam
    started a topic Order the options of a select list
    in PHP

    Order the options of a select list

    I have a php for loop that generates a select list, but I can't figure out how to order the options of the list the way I want.

    This is the php:

    Code:
    static function tp_widget_do($args) {
      echo '<span class="' . NO_TRANSLATE_CLASS . '">';
    
      echo '<select name="lang" onchange="document.location.href=this.options[this.selectedIndex].value;">';
    ...
    See more | Go to post

  • tdrsam
    started a topic Location selector for field input
    in PHP

    Location selector for field input

    Does anyone know where to get a plugin that will make a form field create a dropdown menu with suggestions for locations?

    Something like you find on Google Maps when you start typing a location, you get a list of suggestions. For example, I live in Sydney, Australia and if I start typing Sydney into Google Maps, I only have to get to the 'Syd' before I get suggestions for Sydney Airport, Sydney Opera House, Sydenham New South Wales,...
    See more | Go to post
    Last edited by tdrsam; Aug 19 '16, 04:33 AM. Reason: more info

  • tdrsam
    started a topic Setting php sessions
    in PHP

    Setting php sessions

    I'm trying to register new users and store their email address and password to a db, which is working fine, but I'm also trying to set a session, so that the page they land on after they register is a protected page.

    I'm using a standard form which runs this when the form is submitted:

    Code:
    <?php
    // connect to db manager
    $link = mysql_connect("localhost", "root", "");
    ...
    See more | Go to post

  • tdrsam
    replied to Frameworks for newbs
    I don't want to be rude but could I ask how many years of experience you have with coding?
    See more | Go to post

    Leave a comment:


  • tdrsam
    started a topic Frameworks for newbs

    Frameworks for newbs

    I'm wondering what a usable - but modern - set of technologies is for someone that isn't very experienced with coding. I've been coding for about three years and think I have a fairly decent understanding of the basics but trying to use modern frameworks just seems too difficult.

    I've tried using node.js (V5.1.0), with express. I have version 3.3.12 of npm. I've tried using things like passport and lockit but I just cannot get authentication...
    See more | Go to post

  • tdrsam
    replied to Express.js redirect user after sign up
    That was correct. The function now looks like this:

    Code:
    exports.create = {
      post: function(req, res, next) {
        new user(req.body).save();
        res.redirect("/users/firstSignIn");
      },
      get: function(req, res, next){
        res.redirect("/users/firstSignIn");
      }
    }
    Now I just need to customise it.
    See more | Go to post

    Leave a comment:


  • tdrsam
    replied to How to fix bottom of page
    Nevermind. I just set the animation on the images inside the divs instead of on the divs themselves. Dur. Easy.
    See more | Go to post

    Leave a comment:


  • tdrsam
    started a topic How to fix bottom of page

    How to fix bottom of page

    I have an animation set to two divs that appear near the bottom of the page. It's a spin animation but it's making the divs turn, so the divs cause the bottom of the page to move up and down as the transparent part of the divs turns around.

    Is there someway to fix the bottom of the page to avoid this blank space appearing when the divs turn?
    See more | Go to post

  • tdrsam
    replied to Express.js redirect user after sign up
    I'm not sure if it's just my system (my work computer is pretty ordinary), but I changed it to this:

    Code:
    exports.create = {
    
    	post: function(req, res, next) { // password
    
    		if(req.method.toLowerCase() != "post") {
    		res.render("signup.jade", {layout: false});
    		}
    	
    		else {
    			new user(req.body).save();
    		}
    	},
    	
    	get: function(req,
    ...
    See more | Go to post

    Leave a comment:


  • tdrsam
    started a topic Express.js redirect user after sign up

    Express.js redirect user after sign up

    I can't find an answer to this: What do I do after a new user signs up to my express.js app?

    I have a view, and this in the routes/index file that correspnds:
    Code:
    router.get('/users/firstSignIn', function(req, res, next) {
      res.render('uesrs/firstSignIn', { title: 'title' });
    });

    And this signup function in my users controller:
    Code:
    exports.create = function(req, res,
    ...
    See more | Go to post

  • tdrsam
    started a topic Best database for Laravel 5.2 on Windows

    Best database for Laravel 5.2 on Windows

    I've tried Googling this and can't find an answer anywhere, which is an issue because I can't get Laravel to connect to my DB.

    I'm using a MySql DB which is managed through phpMyAdmin which I access from an app called InstantWordPres s. I've always been able to connect to databases this way before but when I try to get Laravel to connect it just won't, no matter what settings I use in my .env file.

    I'd rather avoid things...
    See more | Go to post

  • Ok. Will look for that. Thanks for the help.
    See more | Go to post

    Leave a comment:


  • The /newBen file. I could use that a redirect. But it looks like the data I sent from the browser wasn't inserted to the db. I don't suppose you know of any MongoDB tutorials that would explain it?
    See more | Go to post

    Leave a comment:


  • That seems correct. I removed .body from all of the items to be posted to the db. Now, when I run a test in the browser, it redirects to the action of the form, which is /newBen. Another quick question. Do I use that file to post the data to the db, or can I use it to redirect to a new page, or both?
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...