Adding a popup to com_users in joomla - joomla

I want to add a popup and a trigger for that popup in com_users( i.e Users page) and load a external link into that popup. I have added a button next to the "Add a note" button but i am new to Joomla so i don't know how to add popup functionality to it. I have read that it is not recommended to change the core files in Joomla, is this also a core file ? What is the best way to do it.

Any file that comes with Joomla's default installation is a core file. We do sometimes modify core files (especially for optimization purposes), but that creates overhead in the website's maintenance.
As for your case, the best way to do this is to create a copy of the administrator template that you're using, use that copy instead, and, modify the administrator/templates/[new-template]/com_users/users/default.php file. This way your changes will not be overwritten by a Joomla update.

Related

Joomla Quickstart advice

Please I need some guidelines (or link of tutorials) in creating Joomla (3 - 3.5) website with the purchased template design. I wonder how professionals with experience are solving my doubts in practice.
Do you recommend the installation of the purchased blank template with a single installation and configuration of modules and components or installation of template with demo examples (Quickstart)? I know the differences but I was wondering how you are doing.
Till now I've almost always used the Quickstart installation.
I wonder if you clone the main menu (and other navigation and modules) and than you rename a copy for your needs and you change the content or you delete all navigation items except Home and than you are re-creating items according to your needs.
I'm not sure if I can copy the main menu or I copy only his necessary items and than delete overage of template.
It happens to me sometimes if I click on some of category it leads me to the main menu from original item, not to the desired custom copy, even though the path is set (the default items). Therefore, I am not sure which is better... copy main menu and items or to delete all navigation and content of the Quickstart installation and form my own navigation, content and modules.
In short, how to sort out all unnecessary items, and those that I am using should I copy and modify, modify existing, or delete all and make my own needed items.
I believe you will know my concerns.
Thank you and regards,
John
I have created several websites in Joomla with blank template and also with quickstart package.
Advantages with Blank Template
You will get the core theme without any unnecessary content and
basic modules and plugins. You dont have to delete any
contents/articles later.
You will be having authority to place modules at your desired positions. To check the modules position at the frontend simply do this http://example.com/?tp=1.
Disadvantage of Blank Template
There are some module style settings embedded in quickstart package that you wont be able to set yourself without going through full documentation. So sometimes your menu seems distorted.
Disadvantage of Quickstart Package
Deleteing unnecessary articles, removing unnecessary modules is a big headache.
Database size unnecessarily increases.
Steps I follow
I create a quickstart package in localhost and create a blank site with blank template in live site. Whatever settings I need I copy from the local website so that I am saved from removing unnecessary contents from live site. Also sometimes deleting some contents give rise to some other issues. Its better t go with a Blank template.

I wish to add a button on the admin dashboard in Joomla 3.5, where in code do I need to make changes?

This button would be 'share' and placed at the article editor just like we have buttons like 'save','edit' etc
I facing a problem understanding joomla code structure and which file I need to make changes so as to add this button. Should it be administrator/layout/editor/ ?
There is a free plugin that can help you share your contents in social network. have a look http://extensions.joomla.org/extensions/extension/social-web/social-comments/social-comments-and-sharing-for-joomla .
Also there are several other plugins that may suit your requirements then to hack the core files http://extensions.joomla.org/extensions/extension?searchall=share+button
if you want to develop your custom editor button then you can check this link
Add Custom Button to Joomla's Article Editor (TinyMCE)

How to perform Preview in CKEditor

I am using CKEditor to get HTML from the user. The user will use HTML tags and it will be saved in the database. I need a functionality for the user to see how the page will be displayed when open as .html before saving in the database.
Is it possible to do that using CKEditor and if yes.....then how?
Thanks-in-Advance
It's certainly possible, but depends a lot on your specific requirements.
Get the contents of the editor using editor.getData(), then open a pop up window displaying that content - this should be relatively simple with JavaScript so I won't give any examples - you'll have to try it yourself first :). If a pop up is not something you want to use, maybe use an inline dialog, such as the ones that jQuery uses.
I would create the workflow so that the preview box has a save button inside it, forcing the user to preview before saving. If that's not acceptable, then create a separate button on your page to do the preview.

Changes in source of components of Joomla is not reflecting

I am modifying the source of Joomla components .Sometimes the changes are not reflecting but sometimes it works.
Is there any clean or repair and rebuild method in joomla ?
So i can get the effect of my modification immediately.
Hey Abdul what you want to achieve by modifying Joomla's source files. You can do it by writing plugin without hacking the core files. There are many users events available in Joomla. I think you want to do something on login so you can use onUserLogin event.
Check this link. http://docs.joomla.org/Plugin/Events/User

Making TinyMCE image pick dialog point to a default folder on Plone

Plone 4.1.
What would be the easiest way to make TinyMCE image picker dialog point to a site default folder (/image-bank) instead of current folder?
This + folder display as album would provide a rudimentary image bank support for Plone easily.
I'd hope to achieve this feature for
All Plone out of the box content types (ATContentTypes)
My custom AT content types
MY custom Dexterity content types
Portlet editor WYSIWYG (is it zope.formlib?)
If it's difficult to edit Python code all over the places, it's accetable just to a Javascript snippet patching TinyMCE settings on the client side.
Mikko: What a coincidence. I'm just trying to achieve the same thing. I managed to create a more specific adapter than `Products/TinyMCE/adapters/Upload/Upload`.
This new adapter changes the upload folder (by setting self.context) to the central-images-folder and then updates radio button listing (and image preview) with the central-folder images (and just uploaded image). This is done by defining an uploadOk method inside the new adapter.
However, to change the initial folder, I think the only way is to customize ploneimage.html.pt or ploneimage.js inside the skins/tinymce/plugins/ploneimage folder. But changing any of these two large files (which might change in the future), could make new releases of TinyMCE not to work with your changes. So you will be forced to re-customize them again.
My idea (which I already emailed this morning to Four Digits) is to provide this feature with TinyMCE out-of-the-box, via a configuration option. This way the package files would be always aware of this feature and future changes won't harm this new functionality.

Resources