Timeline for Joomla 4 alpha display modal with insert image button
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 19, 2020 at 7:27 | comment | added | Kian William Nowrouzian | You yourself asked for a proof to support my claim, this is an upbeat joomla 3.x tutorial about creation of a modal window. I can send you more than a dozen tutorials about modal in joomla CMS and in none you find http_build_query() while assigning url to params array to render a modal. It is good to give advice but the advice must be logical AND with no AND. | |
Jan 17, 2020 at 10:23 | comment | added | mickmackusa | I don't know why you insist on arguing. I am going to disengage from this go-no-where discussion. I am trying to offer you good advice. If you don't understand the benefits, I cannot explain the advantages any better. The fact that this function call is not in the docs or core code makes no difference to sharing a useful technique with you. Maybe the core devs will one day adopt this technique. I'm done. Reply if you need the last word. | |
Jan 17, 2020 at 9:32 | comment | added | Kian William Nowrouzian | Here is a link from a tutorial of joomla AND if you see your php function there, let me Know:docs.joomla.org/J3.x:Developing_an_MVC_Component/Adding_a_Modal | |
Jan 16, 2020 at 5:31 | comment | added | Kian William Nowrouzian | I assure you all developers in joomla aware of http_build_query(), it is as famous as PHP word itself, any way, no argue, next time I shall make more comments, you also expect an answer in related thread, it is called classification of a thread according to related subject AND I have never used http_build_query() in my modal and I did not experience that horizontal scroll problem or concatenation. | |
Jan 16, 2020 at 5:24 | comment | added | mickmackusa | You are going off the rails a bit here. First, if you don't have enough room to make a single comment due to length, then make two consecutive comments. (I have no authority to change the maximum character limit of comments.) Second, I fundamentally disagree about the purpose of this community -- we are all here to generously educate each other. It is not about saying "I know more than you", it is about saying "look what I can show you and why it is a good idea". | |
Jan 16, 2020 at 5:21 | comment | added | mickmackusa |
I have read the deleted answer, but I fail to see how it argues against my advice. Building an array of query string parameters then attaching that data to the url via http_build_query() will result in highly readable code that doesn't require horizontal scrolling or concatenation AND it automatically encodes the data to suit the url. My advice has no drawbacks. This is why I recommend it. If you don't want to use it in your code, that is your prerogative.
|
|
Jan 16, 2020 at 5:21 | comment | added | Kian William Nowrouzian | If you can hid a response, you may add to the length of textbox for comments so that I will be able to respond your question in comment part. Also in a forum no body educates no body, it is a place to exchange ideas to improve intelligence and experience for all, computer is a relative field, no human on planet could claim as a teacher! | |
Jan 16, 2020 at 5:17 | comment | added | Kian William Nowrouzian | If you hid my response, I shall conculde you read it, it was too long for comment part. That is enough for me. | |
Jan 14, 2020 at 22:22 | comment | added | mickmackusa |
The fact that many Joomla extention developers do not call upon http_build_query() is 1. not a surprise to me, 2. likely due to so many Joomla devs being predisposed to "copy-pasting what has worked before", 3. probably because they are unaware that the function exists. Just because lots of people in a demographic aren't doing something, doesn't mean that something shouldn't be done. I am here to inform and educate ...and receive help when I need it.
|
|
Jan 14, 2020 at 15:31 | comment | added | Kian William Nowrouzian | My claim is based on more than 350 custom extensions I analyzed after download from Joomla Extension Directory and in none of them any developer employed http_build_query(). This is a pure PHP function, the phylosophy of a CMS is to handle many functionalities including security. In some extensions in folder model parts of the component extension I observed that, yet in extensions which create modals , I have never seen any developer employ http_build_query() while assigning a url to $params['url'], it is the way as it is. You can conclude the same result if you like. | |
Jan 14, 2020 at 8:00 | comment | added | Kian William Nowrouzian | This is the example to mention the situation, In my extension I employed HTMLHelper::_('bootstrap.renderModal', '', $params), joomla CMS will take care of it. | |
Jan 13, 2020 at 14:01 | comment | added | mickmackusa |
Your very long url value reminded me to ask this question. Please consider adopting http_build_query() to improve stability and readability. This will help to prevent typos (like " at the end).
|
|
Jan 13, 2020 at 12:56 | history | edited | mickmackusa | CC BY-SA 4.0 |
Removed lead-in and sign off, broke up question in to chunks, retabbed code, add tags
|
Jan 11, 2020 at 9:36 | history | edited | Zollie | CC BY-SA 4.0 |
added 48 characters in body
|
Jan 11, 2020 at 7:30 | history | asked | Kian William Nowrouzian | CC BY-SA 4.0 |