Dani 4,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

So, just to make sure we're on the same page, you're using the https://datatables.net/ jQuery plug-in?

Because that table takes an existing HTML-based <table> and adds some UI widgets to format it all nicely. I see that there's an option to retrieve the data via AJAX, and it seems that's what you're doing, but is there a reason that you're doing that? Why are you unable to print out the tabular data via the initial HTML page?

I'm actually confused by what it is that isn't working. I have ZERO experience with .NET but I'm pretty solid when it comes to jQuery, so if you're telling me that your controller is spitting out the JSON perfectly when you go to /Client/GetClientList then I can help you debug your Javascript. When using Chrome/Firefox, does developer tools give you any console error messages?

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

Soooo, just to clarify, to use the Payouts API you need to be sending a POST request with a JSON payload. You shouldn't be using an HTML form. May I ask what your use case is in that you want an end-user to click a button and pay multiple people? Maybe there's a better way of doing it.

The Mass Pay API, and now the Payouts API, are for things like affiliate programs, etc. where the app needs to pay a large number of its users at once.

Dani 4,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I’m on my phone in bed so it’s hard to type our code but you can use php’s string repeater function.

https://www.php.net/manual/en/function.str-repeat.php

You can echo out the image html tag the number of times based on the rating.

You could do this with a simple for loop as well but this function is easier.

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

I've reclassified this thread.

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

I've recategorized this as a discussion thread.

Dani 4,675 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,675 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,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Oh I see. I saw the username in your screenshot but apparently there is a separate user called Silent Coder (with a space) who has been a member for 7 years and lives in Ontario.

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

Hi there and welcome to DaniWeb.

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

Other than they’ve been a DaniWeb member for 7 years and are also from Ontario. ;)

It’s your choice to choose to respond or not. The system was designed to try to foster more personal one-on-one relationships among members, so I’m always on the look out in how I could try to improve that aspect of it.

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

Their avatar is next to all of their chat messages and also at the top of the page.

Sorry for the confusion. The avatar in the list of conversations takes you to your conversation with them.

I was referring to the avatar next to each of their messages or the one at the top of the page (next to where it says Conversation with ...

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

The link that you sent me to is the conversation page you have with them, but I can’t access your conversation with them. I’m saying click the avatar from that conversation page.

Dani 4,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I feel compelled to just address some of the points you brought up, Jim, as well as clear up any misconceptions.

But that prohibits the imposition of any rules whatsoever. Anyone can then play the "that violates my personal convictions" card. Claiming a religious exception is not valid beacuse there are so many religions the exception list would be enormous.

Firstly, I have absolutely no problem at all with banning anything that may obviously harm public safety. IMHO, people's physical health and safety always trumps religion. If anyone wants to complain that they should have the right to bring a sword on a plane, or cover up their face when going through a security checkpoint, or anything in which someone can cite a good reason why doing so could potentially cause harm, then I am all for not allowing you to play the religion card there. In such cases, the law isn't going after the religion. It's going after the weapon. Or the mask that is hiding someone's identity.

Where I have a problem is with a law that is specifically going after the religion. If there were a religion that said that everyone must always wear pink with purple polkadots, and then a law gets drafted that specifically forbids pink with purple polkadots, yet no other colors or patterns are being persecuted,that's where I have a problem.

Where I have a problem is when a law specifically says that no yarmulkes are permitted, and yet hats and …

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

So it’s all working now?

Dani 4,675 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,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Try clearing your browser cache. (Not your cookies)

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

Getting back to the original topic, I have to wonder if it would then be acceptable for a male teacher to wear his yarmulke, but under a fedora (or some other acceptable headgear). Perhaps a silly question but I still had to ask it.

I don’t have much time at the moment, but I’ll address this point quickly. Yes, putting a yarmulke under a hat is not only perfectly acceptable, but it is often done. Very religious Jews (ultra orthodox) who wear the long coats and black hats do just that. It’s also very typical for religious younger kids to wear a baseball cap on a regular basis so that they can follow religious law while not standing out. You often don’t realize they’re religious if you don’t know what else to look for. Of course, most professions don’t allow hats to be worn indoors under their dress code. Hats are typically prohibited in the classroom as well.

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

I would consider myself a libertarian. Look at us mingling politics and religion into this one poor thread.

Dani 4,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Our differences seem to stem from the fact that, as an atheist, you see a very distinct line between religion and culture. However, for many of us, our religion is the singular driving force behind our morals, our ethics, our culture, our traditions, our entire value system, our beliefs, even our family structure, etc. Because of religious values, people have arranged marriages. Our religious values define our morality. Our culture is often based on our religion. They are so weaved together that an attack at our religion is a personal attack against everything we believe in and hold dear. I found it particularly interesting when you specified, "It may be hard to distiniguish between whether a particular piece of clothing is cultural or religious in essence." Almost always, religious articles are at the heart of our culture and values, so I found it interesting that you would identify culture and religion as two discrete ideologies.

I know many people who wear yarmulkes on a regular basis. I don't know a single person who wears one because they want to spread Judaism or because they want to let other people know that they are Jewish. That's absolutely, positively not the reason to wear one.

What is a yarmulke to one person is a beanie to another. I think it would be obvious though that if a person were to wear it work it would be either to indicate religious affiliation, if you were Jewish, or to deliberately poke the bear …

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

For the record, I don't have a problem with the discussion of religion in the public classroom as long as such discussion doesn't promote or denigrate a particular religion. Same rules for politics in the classroom.

I think that teachers should not be proponents of religion in the public classroom, but I think it's okay, and dare I say beneficial, to deal with situations that may arise in ways that allow children to learn that it's okay to ask questions, learn about different cultures, and understand that everyone has their own sense of personal self-worth and convictions.

A curious 8 year old might say, "Miss Sara, why do you always wear that scarf on your head?" and the teacher can respond with an age-appropriate response saying, "It's because my family is more modest than most other families, and we believe that the head and chest area should never be exposed in public, just like you might feel uncomfortable removing your pants in public." Kids develop an understanding that everyone has their own personal levels of what it means to be modest. It can be turned into a teaching moment, and then left at that.

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

I agree that it can be a matter of public safety that people's faces need to be exposed at certain times (e.g. going through security checkpoints). The U.S., as far as I'm aware, does not have any such law prohibiting being masked in public.

I agree there should be no religious symbols on government-funded public spaces, such as over the Speaker's chair in the legislature, as you mention.

But as you point out, what is a yarmulke to one person is a beanie to another. I also am not of the belief that people are necessarily wearing these things to indicate religious affiliation or to promote ones religion. From my experience, they're often tied closely to one's own sense of morality. Being asked to remove a hijab could be the same to them as you being asked to remove your clothes in public.

As I mentioned in my first post, I feel like trivializing the ease in which it should be to remove these comes off as being completely tone-deaf to the underlying reason one wears these.

The teachers who have said "you don't have the right to tell me what I can and cannot wear" seem to forget that there are also dress code rules that state what is and is not appropriate clothing, and nobody has complained about that.

But again, I think it comes down to people having no issue conforming to rules as long as they don't violate their own personal convictions in …

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

I think the reason why I'm being so passionate about this is because I see a huge difference between doing your best to keep your personal political and religious opinions private while doing one's job as professionally as possible, and being forced to do something that you morally do not feel comfortable doing, in order to keep your job. For many, it comes down to personal comfort, modesty, and what they morally feel comfortable with and don't feel comfortable with. There are women who strongly believe, because that's what's been taught in their family for generations upon generations, that their hair is only for their husband's eyes only. If they're not hurting anyone else, why should they be forced to quit their job (and, as a result, not even receive unemployment compensation because they quit instead of being laid off) just to keep their morals? Don't we want to teach the younger generation that it's okay for everyone to have their own morals and to grow up to respect ourselves by staying true to our convictions and respect each other for our differences?

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

I'm on the "public service positions should at least have the appearance of neutrality" side of the debate.

I did a quick Google search on the topic, and noticed that public service positions includes teachers, police officers, etc.

I can certainly understand that if you send your child to public school, as opposed to a private or catholic school, you don't expect there to be discussion of relilgion in the classroom. However, children should also learn that people come in all different colors and races and religions. Their first grade teacher might be brown-skinned and wear a hijab; their second grade teacher might be white and wear a yarmulke. Some kids in the classroom might wear turbans, while another kid might wear on one day a traditional outfit from their grandparents' home country that their grandma sewed for them for their birthday.

None of that means that they're studying the torah or the quran in class. It doesn't give the right for a teacher to educate children about why they believe in Jesus. It simply means that they grow up being surrounded by all sorts of people, who come from all different backgrounds, but who all can unite in love of math, or science, or history, or whatever secular subject they're currently learning in the classroom. It can also be a learning experience when kids explain to each other why wearing a turban is important to them, and why they're proud of their heritage. Then, when these kids …

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

I'm not Canadian, but I am of the belief that this goes completely against religious freedom, at least as the U.S. defines freedom of religion. For many people, yarmulkes, hijabs, turbans, etc. are a required item for their personal level of comfort and/or modesty. I don't know anyone who wears one of these for religious reasons, and would feel even remotely comfortable taking it off for any reason short of immediate risk of danger. I also know people who pray multiple times a day, and/or before they eat a meal, and require access to a prayer book for these times.

As far as I'm concerned, requiring employees to remove these things equates to saying that if your religion in any way affects the way you present yourself in public, you're not welcome to work here. If anything, it does the opposite of setting a tone of neutrality. Instead, it sets a tone of religious intolerance. I'm pretty confident that no one who wears or has a family member who wears a turban, hijab, or yarmule is making up these rules, and to me it comes off as being completely tone-deaf to the underlying reason one wears these.

I don't think this is the same as, "There's a new office policy where we're not hanging personal or religious items on cubicle walls anymore, so let's ensure all personal items are always safely stored in one's desk drawers, out of sight." I think doing something like that is perfectly reasonable.

My feeling …

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

I've updated this topic to be tagged with C# instead of C.

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

Hey Buggy! Nice to virtually meet you. Do we know each other in person?

From what I'm hearing, you're interests mostly lie with networking, cybersecurity, and systems admin type stuff. That's defintely a great field, but I think that you're going to get farther with RHCE, etc. certifications than you will with an associates in computer science.

As far as social media goes, that's great! Once you figure out the field you want to be in, you can definitely use a social presence to promote yourself in the job market. Use your social media presence to start a blog, or even post to Twitter/FB with security tips and stuff. Over time, you can build a name for yourself as an expert in your field, just by blogging as you learn.

It seems like programming might just not be your cup of tea. You don't seem too interested in it.

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

Please, help us to help you. We are here to help, but saying "need javascript" with a blurb that's a mix of HTML and PHP, without even explaining what it does, why you posted it, what's not working, or what you're trying to do, makes it really hard for us to help you.

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

I've noticed a lot more java and html questions. Neither of which I can help with. I'm starting to think the desktop is dead.

I think the desktop is pretty much dead when it comes to consumers and end-users. Certain industries are always going to require large screens to be productive, but browsing the web and email can be accomplished on smartphones, tablets, etc., and often a lot more easily. And business models are definitely shifting to SaaS (software-as-a-service) where customers pay monthly subscriptions in exchange for having access wherever they are instead of buying software outright and installing it. With cloud storage becoming so readily accessible, people are accustomed to having access to everything they want and need, wherever they are. Even software that cannot be easily reproduced on the web is leveraging the services model with Office 365 and the latest Adobe creative suite.

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

Can you notice a differnce?

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

Too early to tell as of yet, will need a week or two in order (for me at least) to get an idea if this is happening with what I see - although I suspect that I might not be the best case study as an admin.

Davey, do you have a status report for this one? ;)

Dani 4,675 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,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think, in this case, he is meaning to supply a working code snippet for people to use if they have a text box in which they don’t want the space bar or escape key to work. I think his snippet description had a language barrier.

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

Your CSS is all inline. Move this out to an external file. Also, switch to HTML 5 from XHTML, which is largely deprecated nowadays.

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

This should be rather simple to do with jQuery, unless I'm misunderstanding what you're asking. First retrieve how many pixels from the top of the webpage the attribute you want to scroll to is. Here, we select the first element that has data-attr=foo and then calculate its position in the DOM.

var position = $('[data-attr=foo]').first().offset().top;

Now, we can scroll to that position.

$('html, body').animate({
    scrollTop: position
});
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think you're overcomplicating this.

Something like:

RewriteRule ^admin/([a-z]+)/$ admin/$1.php [L]
RewriteRule ^([a-z]+)/$ $1.php [L]
Dani 4,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Well I can see you're calling audio.play() when an element with the equalizer class is clicked on. If you want to create other events, I'm confused where your confusion is?

That being said ... just, PLEASE DON'T automatically play sounds from your web browser. It's an absolutely horrendous user experience.

Dani 4,675 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,675 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, I'm not quite getting what it is you're trying to do. Are you trying to create a jQuery plugin?

Per jQuery's official documentation:

$.fn.greenify = function() {
    this.css( "color", "green" );
};

$( "a" ).greenify(); // Makes all the links green.

More information at https://learn.jquery.com/plugins/basic-plugin-creation/

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

This seems to be a duplicate of this thread.

Either way, I still don't understand what you're asking.

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

I'm not familiar with Joomla, but I suspect that the button has been dynamically generated by the Joomla app, and you need to be at least somewhat experienced in PHP in order to investigate this, unless it's easily found in one of their template files.

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

It seems as if you're just asking us to do your homework for you, without even taking the time to explain to us what the assignment is. I get that you want help converting an algorithm to C++, but you're not doing a clear job expressing what the algorithm is, and what it's designed to do. What are p1 and p2? What do they represent? What does answer<---() even mean??

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

I'm having a hard time understanding your code. You seem to have nested <html> tags, which is not valid HTML markup. You close one HTML tag on line 82 but then you have a <div> on line 84, so I'm confused what you're trying to achieve or what you want this to look like.

Also, in Javascript, var c = 0; sets the value of the variable c to 0. If you want to do comparisons, you can do something like if (c == 0). However, it looks like you're using double equals on lines 71 and 77, and I'm not quite sure what you're trying to do there either. You seem to be saying that whether or not c is currently 0, set it to 1 (assuming you meant for it to be c = 1;).

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

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