Jump to content

Zola

Members
  • Posts

    72
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Zola's Achievements

Member

Member (2/5)

2

Reputation

1

Community Answers

  1. Hey folks, I have built a site in wordpress that has a video background on the homepage. It takes up basically the full screen. However, I have been advised to add a 'scroll down' visual aid to the corner to tell the user to scroll down. Are there any plugins available that can do this?
  2. Figured it out! needed to add color: #ff0000 !important; co to bootstrap css file
  3. Hi folks, I am helping a friend with a site, but we are having an issue keeping a selected menu item highlighted on this one page site. https://bootstrapmade.com/demo/Knight/ CSS hacking the Active class doesn't seem to be the right thing as it only does what we want when its clicked, but not after. Any ideas as to what I need to do? Any help is greatly appreciated. Thanks
  4. Zola

    Job title

    What if you do both, in one environment ? haha I guess it is correct, but wouldn't mind making it sound better
  5. Zola

    Job title

    Whats a better title for a Web & Print designer?
  6. Hey all I have been building sites for a long time and I am pretty confident in modern frameworks like Bootstrap etc. I have played about with JQuery Mobile and UI. I know how to make mobile sites from a front end side. I understand that I can upload my site to PhoneGap and turn it into a native app. However, I would love to know how to make useful apps that dont just display static text. E.g. using things like Google Places API. I know how to make mobile sites easily enough that display info. I just don't really understand how to link that up with dynamic data from APIs etc. How to feed that content back to the user. For a vasic example, say I wanted to have a simple app that had a search box. You enter 'PIZZA' into it and it comes back with a result of all local pizza spots. How would I do that? If someone could point me in the right direction for where I could experiment with this I would be really grateful .
  7. Bump, any help would be really appreciated :s
  8. Hi all I have a small issue with a site I am building. For the main menu I use an SSI for ease of updating every page at once. When the user clicks an item and goes to a page I want to have that option in the menu highlighted / different colour, to show what page they are on. This works perfectly for single menu items like this: <li <?php if( $page=='index') echo 'class="active"'; ?> ><a href="index.php">Home</a></li> I use $page in the respective page HTML and it links up to the menu. However, some of the options have drop down menu items. I would like to highlight the top level item on the menu even when a sub section item is selected. In its current state the drop down menu item is highlighted, but not the top. <li <?php if ($page=='ci') echo 'class="active"'; ?>> <a href="ci.php" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown">CI <i class="fa fa-angle-down"></i></a> <ul class="dropdown-menu"> <li <?php if ($page=='ci1') echo 'class="active"'; ?>> <a href="ci.php">xxxx</a></li> <li <?php if ($page=='reasons') echo 'class="active"'; ?>> <a href="reasons.php">xxxx</a></li> <li <?php if ($page=='small_faq') echo 'class="active"'; ?>> <a href="small-faq.php">faq</a></li> </ul> </li> Even when I change the sub levels to be the same as the top level, the top level item will not change colour. I have no idea why. Can anyone see what I am doing wrong?
  9. A few friends of mine run a little competition between ourselves for a bit of fun. This has been in the past, a sports prediction spreadsheet where we predict the outcomes of champions in various football leagues around the world. Up to now its always been a very laborious spreadsheet with that my friend can no longer be bothered to do. is there any way I can do this in php / html? There would be 8 players predicting the outcome of 6 leagues. We award points for who gets the most, half points for coming close etc. Any ideas as to what way to approach this would be appreciated. I amvery proficient in HTML and CSS, but a bit of a novice in PHP......but if there is a script or some idea to get this up and running I would be very appreciative. Thanks
  10. That was the very problem!!! Thanks for your replies guys. Much appreciated!!
  11. Hello, I am trying to get a little contact form working with a bootstrap 3 theme, but the data is not being sent to my email. If anyone can spot anything obvious as to why its not working (or any ways to make this code much better), I would really appreciate it. <?php if (isset($_POST['submit'])) { $to = 'myemail@email.com'; $subject = "WEBSITE ENQUIRY"; $name_field = $_POST['name']; $email_field = $_POST['email']; $phone_field = $_POST['phone']; $message = $_POST['message']; if (strlen(trim($message)) > 0) { $body = "From: $name_field \n E-Mail: $email_field \n Phone: $phone_field \n Message: $message \n "; if (mail($to, $subject, $body)) { echo "<h3>Thanks! Your email has been sent. <br />I will answer your enquiry as soon as possible.</h3> <hr>"; } else { echo 'Cannot sent mail'; } } else { echo "<h4>Failed to Send Mail. <br><br>Please ensure that all fields are filled out in order to email us.</h4><hr>"; } } ?> <div class="col-sm-8"> <p>If you wish to ask a question about a potential project please get in touch via the form below, or from the details on the right.</p> <form role="form" method="POST" action="contact.php"> <div class="row"> <div class="form-group col-md-12"> <label for="Name">Name</label> <input type="text" name="name" class="form-control" id="input1"> </div> <div class="form-group col-md-12"> <label for="Email">Email Address</label> <input type="email" name="email" class="form-control" id="input2"> </div> <div class="form-group col-md-12"> <label for="Phone">Phone Number</label> <input type="phone" name="phone" class="form-control" id="input3"> </div> <div class="clearfix"></div> <div class="form-group col-lg-12"> <label for="Message">Message</label> <textarea name="message" class="form-control" rows="6" id="input4"></textarea> </div> <div class="form-group col-lg-12"> <input type="hidden" name="save" value="contact"> <button type="submit" class="btn btn-primary pull-right">Submit</button> <div class="clearfix"></div> </div> </div> </form>
  12. Hi I am learning PHP on codecademy at the moment. Enjoying it well and going right back to the basics to try to get a fundamental understanding At the moment, I am learning about functions (strlen, strpos) etc. etc. This may be a stupid question, but can anyone please give me a real world example of where these functions may be used? I guess strlen could be used to allow or disallow a certain length of a user name or something, but what use would strpos have?
  13. That works well, thanks!! Dont know how I missed it. Much appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.