Jump to content


BrowserBugs

Member Since 07 Feb 2012
Offline Last Active Yesterday, 12:27 PM
*****

#517863 FREELANCERS BEWARE - workroll.com are adding OUR work and saying they did it

Posted by BrowserBugs on Yesterday, 12:28 PM

Both pages now say "The page you were looking for doesn't exist. You may have mistyped the address or the page may have moved. If you are the application owner check the logs for more information." - flaming them might have worked :D




#517780 Contact form captcha not working. Anything obvious?

Posted by BrowserBugs on 15 October 2017 - 08:00 AM

 

EDIT: Sorry. It seems to be OK if I go back to PHP 5.5.

 

I've cleared the cache in a few browsers and it seems to work now. Feel free to try it anyone if you want to check.

My server (ipage) uses the default of PHP 5.5. I must have screwed up by changing to 5.6 quite a while ago.

I'm still not 100% sure, but it seems to be OK at the moment.

Please let me know if you happen to test it and it fails.

 

Ah, didn't know you had changed to 7.1. I think most of the hosts I use stop at 7 at the mo, I've not got any projects in a 7 environment yet so no idea what should be in the ini, most are in the 5.6 bracket. There will also no doubt be some deprecated features from versions gone by.




#517775 Contact form captcha not working. Anything obvious?

Posted by BrowserBugs on 14 October 2017 - 12:19 PM

Does it print out just "Code : " with no actual code? If so then the $_SESSION is not set or is empty; which would be why it doesn't match.

 

So either the session is not set, or the session variable is not set, we can test this which should give you a message about things that are set or not.

<?php
$msg = "Message:";
if(session_id()=="") { // Session ID will exist if session is set, if it's emtpy ...
    session_start(); // Start the session.
    if(session_id()=="") { // If it's still not set.
        $msg .= "<br>I can't start session.";
    } else {
	$msg .= "<br>Session is set.";
    }
    if(!isset($_SESSION['6_letters_code'])) { // If $_SESSION['6_letters_code'] is not set.
        $msg .= "<br>6_letters_code is not set.";
	$_SESSION['6_letters_code'] = ""; // Set $_SESSION['6_letters_code']
	if(!isset($_SESSION['6_letters_code'])) { // If it's still not set.
            $msg .= "<br>6_letters_code cannot be set.";
	}
    } else {
	$msg .= "<br>6_letters_code is set.";
        if(trim($_SESSION['6_letters_code'])=="") { // If it's set but empty.
            $msg .= "<br>6_letters_code is empty.";
	} else {
            $msg .= "<br>6_letters_code is " . $_SESSION['6_letters_code'] . ".";
	}
    }
}
echo "<p>" . $msg . "</p>";
?>



#517773 Contact form captcha not working. Anything obvious?

Posted by BrowserBugs on 14 October 2017 - 10:47 AM

for a quick test on the contact page just before the send it button insert <?php echo "Code: " . $_SESSION['6_letters_code']; ?> - does it match the image?




#517769 Contact form captcha not working. Anything obvious?

Posted by BrowserBugs on 14 October 2017 - 08:50 AM

Hmm I can't see where you set the $_SESSION['6_letters_code'], somewhere it should store the rand to the $_SESSION['6_letters_code'] - is there any more to this?

 

Edit: Also where the image is have you clipped of the next bit of code? Image isn't closed, no closing </form> either.




#517596 Keep hover colour after tap on phones

Posted by BrowserBugs on 03 October 2017 - 11:24 AM

In all honesty, I'm not sure how important the map would be to parishioners.

 

I have that same feeling. I think to simplify you need to start with the content and work backwards to layout. Essentially you have data set you wish to offer the visitor about the Diocese of Derry; Place Name, Translation, Meaning. In addition you might want to show the visitor where each Diocese is located on a map for those who might not know. Now it's simply how to present that information; click maps, accordions etc are nice when you want to save space but they should enhance the visitors experience and not needlessly make them click.

 

Start with a simple list then style it.

 

brackagh.png




#517582 Keep hover colour after tap on phones

Posted by BrowserBugs on 02 October 2017 - 10:15 AM

If you don't mind the fill colour being removed when the user clicks on another part of the map, you can use :focus instead.

 

Was just thinking grey out (mono) the other zones on focus and colour the selected would be a nice :D

 

For using js for independent colour states then I would probably go for a data attributes approach to store the hover/focus colours and then grab the colour with data() but i'm no expert. 

 

 

Are you doing anything on screens below 640px to hide the content? It seems to scale okay, but you'll likely need to come up with a better interface to show the labels on a smaller screen.

 

Totally agree here mate, was thinking maybe smaller screen click somehow expands the relevant map key and fills in the extra data? Or instead click the key and it highlights the map and shows info?

 

Edit: Something like this sort of thing.

 

idea.png




#517541 Copyright symbol real?

Posted by BrowserBugs on 28 September 2017 - 11:12 AM

Sticking a copyright name on a business doesn't work as far as i'm aware, it would need to be a registered trade mark ®. If the business is a registered company then technically Business Name Ltd would be reserved to them, but it's not 'copyright' as such. I think if your client has chosen a business name which falls into the same industry then the rival could claim you are trying to impersonate them, but then again i'm no legal eagle.




#517390 Head vs Heart - advice needed!

Posted by BrowserBugs on 19 September 2017 - 03:38 PM

I can relate mate, long story short I'm a lone wolf who teamed up with two others quite a few years back for a project, the exception is the business is PaaS. So the idea was I build, they sell and manage the stuff I don't want to do. My passion is making a polished product, I love stripping back and reworking ideas to make things all the better, they however are profit and timeline driven.

 

That said I've toyed with quitting, normally via a shouting match with partners about features they want to boost revenue; they think without them 'driving new sell-able features' we'll flounder, and yet we continue to grow via advertisers loving our platform and self serving rather than having to chase business, in theory they should be happy but until we're using £50 notes to wipe our backsides they will constantly complain.

 

In your position you need to ask why you would be expected to sell as the very thought of "funding, selling, pitching etc" makes me shudder too. If the app will require more care then sure, that can fall onto your role if you like developing, and if you're making money then funding should not be a problem, but if they want you to sell and give the app more care then sounds like they want to get rich off your back, alarm bells time.

 

The most important thing to remember is you only get one life; if it's making your life miserable then quit mate, if you can continue in a role you like then continue, never let money decide.

 

Jack hits the nail on the head about focus not features - might shove that down my partners throat ;)




#517346 Interactive map won't appear in Jetpack mobile theme

Posted by BrowserBugs on 15 September 2017 - 07:22 AM

I'm going to move my site to a local server with an aim to make the theme more responsive while keeping the current version where it is in case things go wrong for me.

 

I see now why making it more responsive is better, though I dread learning media queries - please tell me I'm over-reacting and they aren't that hard to get your head around!

 

Media Queries are a doddle, it's just css that changes at a given point. For example...

.background{background-color:red;}
@media all and (max-width: 720px)  {
.background{background-color:blue;}
}

... this would make the background red, but when the screen gets smaller than 720px it would become blue. Chris Coyer is worth a read for a roundup at https://css-tricks.c...andard-devices/ and this is another good read on not specifically targeting a device https://responsivede...ic-breakpoints/




#517321 Use of Accordion Elements

Posted by BrowserBugs on 14 September 2017 - 08:11 AM

Thanks for that BrowserBugs - very helpful.  Since doing this I've found myself noticing text size and spacing on website I visit, never having apparently paid attention before!

 

Do you have an opinion on a structure for the very long articles?  Single page, or structured more like you proposed for the QAs?  The accordion idea has been binned :D

 

Cheers,
​Marc.

 

Here's the beginners guide to SEO by Moz. I'm citing this as they have done a good job with structure using chapters, see https://moz.com/beginners-guide-to-seo. This method might be good for long articles with clear sections.

 

Edit: If you're breaking the content over multiple pages then you really need to understand rel="next" and rel="prev", see https://support.goog.../answer/1663744




#517280 Use of Accordion Elements

Posted by BrowserBugs on 12 September 2017 - 09:24 AM

Just to throw in a helping hand check out http://pxtoem.com/ ... great for working out px to em to % to pt font sizes :D




#517220 Use of Accordion Elements

Posted by BrowserBugs on 08 September 2017 - 12:33 PM

Welcome mate, damn you got a lot of content, Kudos :D

 

For my two-pence worth I would seriously consider a restructure over using an accordion. Your current site has all that gorgeous content in one big page, however I would consider a restructure to the following sorts of paths using dynamic urls, something WordPress handles quite well (i'm told).

 

  • Home > Questions & Answers
    /questions_answers.html change to /questions_answers/ or /qa/ and keep the list under headings and current sections.
  • Home > Questions & Answers > Foxes
    /qa/foxes/ a feeder page with an introduction about foxes, how comes you know so much about them and a list of all fox Q&A which each click to their own page.
  • Home > Questions & Answers > Foxes > Are Foxes native to Britain?
    /qa/foxes/are-foxes-native-to-britain with the content from /questions_answers_foxes.html#native

This will teach both the search engines and visitors a hierarchy when combined with breadcrumbs. So visitor asks the search engine "Are foxes native to Britain?" and the search engine knows there is an article on "Wildlife Online" in a section all about "Foxes" which answers if "Foxes are native to Britain". With breadcrumbs showing the visitor can also transverse to find out more about Foxes, or transverse again to find out what other wildlife you have a Q&A on. 

 

Secondly it gives visitors a chance to cite your article direct rather linking to a massive page of all Q&A about Foxes. You can also fine tune the meta and open graph data to the specific question and answer rather than a bit about everything as a whole.




#517188 Contact form spam

Posted by BrowserBugs on 06 September 2017 - 07:56 AM

The honey pot method is good, although I use z index rather than display none, just z index up and off the screen with negative margin. For screen readers simply use a placeholder, something like placeholder="Ignore Me" so they know to skip it.

 

Another method I use is something I made called spawn which is a secondary safeguard for automated submissions. 

<?php
function spawnSecure($var) {
	$spawn = trim(stripslashes($var));
	$now = date('Y-m-d H:i:s');
	$diff = strtotime($now) - strtotime($spawn);
	if($diff<=1) {
		return false; // Too quick
	} else {
		return true;
	}
} ?>

Then if a form is submitted in 1 second then a 99.9% chance it's not human. All you need is a hidden field in the form...

<input name="sent" type="hidden" value="<?php echo date('Y-m-d H:i:s'); ?>">

Then you simply compare the time the form was made vs the time it's processed.

<?php
if($_SERVER['REQUEST_METHOD']=="POST") {
   if(!spawnSecure($_POST['sent'])) {
       // The form was created and sent in under 1 second.
   }
} ?>

I personally find it's pretty tight combined with Honey Pot.

 

Edit: Forgot to say there is no way to stop human spam 100%, bots are a lot easier as they are predictable. 




#516955 Do you have a min to read this?

Posted by BrowserBugs on 21 August 2017 - 08:00 AM

Welcome the WDF :D