Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Out of curiosity, do you find this statistic motivating? In other words, is it motivating to contribute and see how many people you've touched / impacted as a result of your efforts?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Member profiles now have a new statistic that measures impact. It counts how many people the user has reached. It should be noted that we just started calculating this number earlier this year, so at this time, the highest number is roughly one million.

ernie.cordell commented: It's a good post. Shows interest. With my participation, it's better than I can do +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Check out DaniWeb Connect, which is designed to connect people one-on-one who are within a geographical area to discuss specific topics. Go to https://www.daniweb.com/connect and then type the desired keywords (e.g. amazon, alexa, etc.) in the Skills and Interests field.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If you try to type something and it doesn't go through, hitting the Preview tab should highlight the line that's confusing our Markdown parser.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

It depends what you have to offer and what industry you're in. If you're a programmer, having a Github account with open source projects or contributions is vital.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I'm a little confused by what you mean. What do you mean by retain the selected value? When do you want it to retain the value? After submitting the form?

A dropdown will default to the option that has selected specified. So, for example, when iterating through the while loop, if $row1['class'] is equivalent to what was passed into the form, for example $_POST['selClass'], then you would want to set it to be selected as so: <option value="value" selected>.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've seen folk try to use SEO and such as you listed but their basic product and reputation remain the same. I consider product, company and the folk that run the company the foundation. If these are missing then proceeding with more marketing does not change what they are building on.

Yes, product, company, and company leaders are the foundation, and if they are missing, any amount of marketing won't help. However, I still feel like it's incorrect to say that digital marketing is not special from the forms of marketing that came before it, it's just marketing over a different medium, and nothing has changed in marketing.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This appears to be part of a homework assignment, in which txt files are required but you didn’t attach them to your post.

Where are you stuck with this assignment? Are you getting any error messages? Please show us the code you have so far and explain where you’re stuck so that we can help you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

HI William! Welcome to DaniWeb :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Glad I could oblige, Jim!!

I've had something else I've wanted to say, as well, and just never got around to it. Since you've updated this thread, I figured I might as well say it now :)

There was a case quite a few years back where a Sikh wanted to become a member of the RCMP. The RCMP has a strict dress code that includes a particular hat as part of the standard uniform. This hat was not compatible with the traditional turban so his application was refused. The dress code was not created to exclude Sikhs. It had been in play for many decades before he applied. Should they have allowed him to serve by modifying the dress code?

I absolutely feel like they should have allowed him to serve by modifying the dress code!! Not too long in our history, being a police officer was a "man's job". Women were forbidden from being police officers because the excuse was that there were no female uniforms. There are still so many industries today where dress code is an excuse not to progress into gender equality.

And then there was the infamous NASA spacewalk just last month. It made headlines for promoting it was going to be the first-ever all-women spacewalk. Female engineers cheered! Finally, women role models in the sciences! Teachers used it as a valuable lesson to teach in the classrooms. Buuuuuttt, embarassingly it was scrapped at the very last moment because there weren't two …

rproffitt commented: Small world. I lived in Richmond BC Canada and this came up. There were changes and soon they were on the force. There's more to this story. All good +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Ok, so yeah, the email address associated with this account begins with a K. I suggest you log out and request a password reset to your gabgarri account.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

They probably created an original account with Social login with Facebook or Google, and when they tried to log in this time, it created a brand new account instead of logging them in. I’ll investigate. :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think it's realistic for someone of any age to attempt a new career in programming. My criticism is mainly of my experience with people who have come out of coding bootcamps.

6 months of time is not realistic to really grasp all but the very surface of programming, and that's assuming you're putting in 12+ hour days building up your portfolio. Check out this article I just stumbled across: https://techbeacon.com/app-dev-testing/bootcamps-wont-make-you-coder-heres-what-will

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

1) Is it realistic to even consider this as a career for the next 10 years for someone my age? Assuming it is,

Programming is a huge industry. Everything from writing hardware drivers to designing games for gaming consoles to building a website to on-page search engine optimization to front-end UI. You can get a full-time job in Silicon Valley or you can be an independent consultant working out of your home office or anything in between. They all require different sets of skills, have huge discrepancies in salaries, and some might be more suited to you than others, depending on your current skillset and interests.

2) Are there some coding schools that you can comfortably recommend that are accepted by the IT industry?

A lot of people love coding schools but I am one of those people who is not quite sold. I think they're great to teaching you how to build a snazzy website for a small business or a simple mobile app in a very short amount of time. That's what it's all about ... making you hireable as quickly and efficiently as possible. However, what they don't tell you is that without the background of a computer science degree, you will lack all of the mathematical and analytical experience required to focus on big data sets (e.g. working with billions of records), fine-tuning performance, etc. It's my personal experience that coding schools teach you what's necessary to land your first small-time consulting …

rproffitt commented: That's a quality reply. Great example. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If your form includes two submit buttons that each need to do something different, you can use AJAX (Javascript on the front end) to override the form action based on which button is pressed.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So you View Source each site you visit as you browse the web? I think if you have to View Source in order to tell, then it’s not obvious :)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I disagree. WordPress now powers more than one third of all sites on the Internet. Sure, you might stumble across a typical blog and instantly think WordPress. But there are so many sites out there I never would have thought we’re on the platform at first glance.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I find that a lot of folk won't ask the site owner the questions. Why is that?

Because, while it may be the case that imitation is the best form of flattery, some people feel self-conscious about coming off like a copy-cat, or they're afraid the site owner will think they're trying to be a competitor, or steal their hard work.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I see you marked this thread as solved. Do you still need help with code to change password? I suggest you begin by using the password_hash() function for joining and logging in, and then use the pseudocode I provided. Let us know if you need more assistance.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So it looks like you are storing passwords in plain text in the database. NEVER. EVER. DO. THIS. It is incredibly insecure. Please look into PHP's password_hash() function.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

That’s the thing. We need to see your register and login code in order to give you the code for password change.

Otherwise, without it, the best we can offer us the pseudo code I provided in my first reply above.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So I’m confused. You’re asking for help writing the PHP code that can be used to do a lost password reset, but you don’t have code for a signup or login?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Rproffitt,

When I started DaniWeb, I launched it on the phpBB platform because I couldn’t afford a $100 vBulletin license. From a developer’s perspective, you may think $100 is almost nothing for the value of an entire fully functional web app. As a student, anything I couldn’t afford to buy, I learned how to build myself from scratch.

rproffitt commented: I agree this is the best incentive to "roll your own" solutions. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

OK, so you're connecting to MySQL via PDO. I'm personally not familiar with PDO. Is there a reason you're not using something like MySQLi?

It seems as if you don't have very much experience at all with web development. Did you write this PHP yourself? Where is your PHP code to log in? Your database schema? Is this part of a larger PHP application?

Hasan_10 commented: . +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So I see you have a list of DNS servers, but I'm not quite sure why. The web server should already have a way of resolving domain names to IP addresses. What you want to do instead for curl_setopt($curl, CURLOPT_URL, $serverName); is simply set $serverName to the IP address you're trying to connect to.

Also, you are setting the user agent to $_SERVER['HTTP_USER_AGENT']. Keep in mind that the user agent is a string that web browsers send to the web server to identify themselves. Therefore, a user agent won't exist if you're running this script via a cron job or a CLI script (e.g. it will only work if you're running this PHP script from a web browser).

Also, lines 49 and 50 say to use the values within the $proxy array corresponding to the element with index 0. But your $proxy array has indexes 1, 2, and 3, and does not have an index 0.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So if you want to get a cut of the transaction and forward the rest to the user, you don't want to use JSON with the Payouts API. That's why I wanted to get a clearer picture of what you're trying to do. Because, for your use case, you don't want to use the old Masspay API or the Payouts API. That's not what they're designed for.

What you want to do instead is use Adaptive Payments, which is specifically designed for when you are the owner of an app, and you want there to be multiple receivers of the payment. Her'es more information: https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APIntro/

If you read that entire page, it should answer all your questions. Parallel payments looks like what you would like to do.

I understand that the page says that you need to opt-in to the service, so your best bet is to read that whole page, and then contact PayPal customer service for more information about getting started.

Unfortunately, PayPal IPN or the Payouts API won't do what you want.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

OK, so firstly, are you able to confirm that /Client/GetClientList returns something like:

[{"Id":1,"FirstName":"abc","LastName":"xyz","FullName":"abc xyz"},{"Id":2,"FirstName":"qwe","LastName":"rty","FullName":"qwe rty"}]

If that's true, then we can say the C# part (which I can't help you with) is correct, and we just need to look at the Javascript part.

Taher_3 commented: Yes, I'm getting Json result in this format and I'm unable to handle this result +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You need to provide some more information in order for us to be able to help you. I see here you are giving us an HTML form that asks a user for an old password, and to enter a new password twice. I understand what you want to do is update the password in the database, when the form is submitted. However, you are giving no insight to what your PHP application code currently looks like, what database you're using, how passwords are stored in the database, etc.

Basically the steps that would be involved would be:

  • Retrieve the old password from the form
  • Check to see if the new password and repeat new password fields are the same
  • If they aren't a match, show an error that the passwords are not the same
  • If they are a match, compare the old password to the encrypted password for the user in the database
  • If they aren't a match, show an error that the old password is incorrect
  • If they are a match, encrypt the new password and overwrite the encrypted password field in the database

Now, how that algorithm actually gets translated into PHP code has a lot to do with what PHP framework (if any) you're using, what database you're using, what library you're using to connect to the database, the database schema, etc.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I concur with rproffitt's assessment that if you want the form to send an email, it needs to be hosted on a server that is capable of sending out email and has that correctly configured. I'm not familiar with Mobirise at all though. Is this functionality that they offer? How is the form currently built? Forms typically require the use of a back-end server to process them, that's capable of either submitting the form data to a database, sending email, etc.

Mara_2 commented: I guess that Mobirise's using as a back-end server theit another application Formiod. Actually everything worked fine after the new issued version. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Oh, my goodness! I used to use MassPay a few years ago but I don't know if I still have access to that old code base. I will try to pull it up and see if I can find something. The first thing I remember though about using MassPay is you need to specifically enable it for your account. I just googled for the Mass Payments API and it says: "Note: The MassPay API is Deprecated as of September 1, 2017. For new integrations, see the Payouts Overview."

It looks like you sound be using this instead: https://developer.paypal.com/docs/payouts/integrate/api-integration/

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

This community isn't really for soliciting, but to share ideas with other marketers. I suggest that you participate in various Assassin's Creed facebook groups. I think that might be a good way of promoting your t-shirts in social media. You can also tweet with assassin's creed hashtags to get the attention of game fans. Good luck!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sooooo many people used to inaccurately pick the code snippet format when they had a question, that eventually I had to switch it to where only senior community members could post code snippets. However, in doing so, the number of valid new code snippets dropped by like 90%, which is the way it's been for the past 5+ years. In an effort to get more people contributing again, I removed the strict limitation to who can post code snippets. We're back to taking the good with the bad.

That being said ... Maulik, I've modified your discussion thread to no longer be a code snippet in our code snippet library. Basically you're calling a variable something like $variable->theme and it's saying that $variable does not have a property called $theme. If you show us your MY_Controller.php code, I might be able to help. The problem seems to be line 117 of that file.

That being said, you say you're new to CodeIgniter, yet the only reason to have your own custom MY_Controller.php file is if you are trying to overwrite the default Controller class that's native to CodeIgniter.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Also, you can Mute the user. We crowd source data about who and how many people mute a user to factor into our matching algorithm. If a large portion of people they reach out to mute them, the price to connect to other people just goes up and up.

On another note, this entire matching algorithm just got patented yesterday. Just got the approval letter. I’m officially an inventor.

Reverend Jim commented: Awesome! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You should be able to click on their avatar to get to their DaniWeb Connect Profile. Their avatar is next to all of their chat messages and also at the top of the page. This Connect Profile shows where they're geographically located, what (if anything) you have in common with them, what their goals for meeting someone are (e.g. are they looking for mentorship, etc.), and a little bio about their needs and goals (if they've filled this part out). The point of this page is precisely to answer the question you have ... You get a message from someone, and you want to see at a glance who they are and why they might be messaging you. You can then click on the purple button that says Member Stats to be taken to the DaniWeb profile page you're already familiar with that shows their member stats within the forum (posts count, etc.)

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Why is it funny? What am I missing?

rproffitt commented: Imagine how much space left on a mobile screen with a menu on the left. Happy April 1st. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

While the mysql_* functions were procedural, MySQLi supports either procedural or object oriented methods. Since you're already using procedural style, the simplest thing to do would be to replace the functions with their MySQLi counterparts.

I think you should just be able to replace:

And so on, and so forth ...

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

My view is not simple. It requires 20+ paragraphs.

rproffitt commented: Recently I was asked a few questions and they said "So you're a Federalist?" I really need to look that up. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

There's definitely been a noticable improvement since merging DaniWeb and Dazah together. I think the branding just confused everyone, and I was too "inside" it all to realize it.

happygeek commented: Yay! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think you're going to have a very hard time finding a font color that will be okay on backgrounds that are near-white, black, and any color inbetween. What I would recommend is to have the user specify if they want a light font or a dark font at the same time as they upload the image of their choosing. There might be some third-party APIs that detect the color palette of an image, and then you can select a font that complements that color palette. Something like this might help.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Without reading your code (because it's a lot to process), file uploads are not possible through AJAX alone. Apparently, browsers believe there is a security vulnerability of some type and prohibit it from working. In the past, we used a workaround with iframes to mimic AJAX file uploads. Today, we use https://www.dropzonejs.com/ which has native AJAX support.

sashika_sur commented: thank you ! +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I'm not understanding what you're asking.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I guess I’m a little confused by what you mean by tag? HTML tag? Like <SVG>?

jParker66 commented: yes, I saw different samples online where some are using <img>, <svg> and even a <div> +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

We just recently (read, today) implemented SameSite cookies to prevent CSRF attacks. The thing is, while there's a decent amount of information online about the benefits of them, I can't find any other sites that implement them. Not even any of the big ones I would suspect were spearheading something like this, such as Facebook or Google. Didn't this begin as a Chrome project? Is there a reason why they're not in use?

rproffitt commented: In the immortal words of Arte Johnson, "Very interesting." +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry for the bad experience in the first place, Mr.M.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You're very welcome! Do you mind posting your solution (as roundabout as it may be) in case it could be of help to others who stumble upon this thread? Good luck with PDO.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Instead of echo, try using var_dump($statement). This will spit out the mysqli_stmt object.

You got nothing for $error because you set $this->error in the catch block, which is different than $error.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi,

Unfortunately, unless I'm misunderstanding you, it's really hard to be able to help you without fully understanding what's behind your execute() and get_result() functions.

The error is basically saying that $navigation is NULL and so you aren't able to call the fetch_assoc() method on it. $navigation is most likely NULL because the MySQL query syntax was bad (syntax error, etc.) and therefore get_result() returned NULL on error.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I rolled my own MySQL-based ORM for DaniWeb. Not every table, but most tables, have a corresponding class, where methods invoke changes in the database. When it makes sense, we use the ORM to make changes. Other times, the class methods invoke SQL statements directly when it's more efficient to do so. For tables that dont't really make sense for our ORM, we use basic SQL statements and stored procedures.

B_3 commented: In short, what was your reasoning for doing this? +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I've been having a tough last couple of weeks (personal things going on) so I haven't spent a lot of time around here, unfortunately. I heard from James that there was downtime due to one of the Redis servers running out of memory. He was able to bring it back online, but all of the open sessions were deleted when Redis was restarted, so everyone was logged out.

In 2012/2013, when we migrated off of vBulletin onto our own platform, we created a new hash algorithm to hash the existing MD5 passwords that vBulletin used. (Unfortunately vBulletin used simple MD5s with a random salt. By hashing the salted hashes we had with peppers, we wouldn't have to force people to change thier password.)

We finally upgraded to a much more robust encryption algorithm in 2015 when we created Dazah, and for that, we unfortunately had to force everyone to change their password. We emailed everyone to change their password and log into Dazah, and we had a fallback mechanism in place until late-2017. (I think 2+ years should have been enough time to give everyone who cared to change thier password. When we switched to this latest backend which launched in October 2017, we removed the fallback code.)

Unfortunately, the recent Redis crash logged everyone out, and some of you guys had been logged in longer than 6 months. You ran into issues trying to log back in because the fallback mechanism had been removed between the last time you …

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm not sure what happened, but it looks like there are pretty much no topics flagged with c# anymore. Was the tag deleted?!