Rectangle 27 4

It's not an easy workaround, and you will need some basic knowledge of Joomla and PHP, but I'll try to explain it to you as simple as i can.

From now on you can modify registration output in your template folder.

By default Joomla takes all fields from form file /components/com_users/models/forms/registration.xml, where they are defined, and outputs them in a view. But if we don't want to use ALL the fields, we need to output fields manually. My example code only output E-mail and Password fields for registration. Here's a sample code to do so: (default.php file)

<?php
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
?>
<div class="grid_8" id="register_block">
<div class="content_block">
<h1>Registracija</h1>
<div class="login<?php echo $this->pageclass_sfx?>">
<form id="member-registration" action="<?php echo JRoute::_('index.php?option=com_users&task=registration2.register'); ?>" method="post" enctype="multipart/form-data">
<div>
<div class="login-fields">
<label id="jform_email1-lbl" for="jform_email1">E-mail:</label>
<input type="text" name="jform[email1]" id="jform_email1" value="" size="30">
</div>
<div class="login-fields">
<label id="jform_password1-lbl" for="jform_password1">Password:</label>
<input type="password" name="jform[password1]" id="jform_password1" value="" autocomplete="off" size="30">
</div>
<button type="submit" class="button"><?php echo JText::_('JREGISTER');?></button>
<input type="hidden" name="option" value="com_users" />
<input type="hidden" name="task" value="registration2.register" />
<?php echo JHtml::_('form.token');?>
</div>
</form>
</div>
</div>
</div>

Please note, that I've also replaced task value from registration.register to registration2.register, I did this to bypass some of validation rules using my own controller.

Find a method called register and find this line:

$requestData = JRequest::getVar('jform', array(), 'post', 'array');

This is where Joomla get's registration form data. Add the following lines:

$requestData['name'] = $requestData['email1'];
$requestData['username'] = $requestData['email1'];
$requestData['email2'] = $requestData['email1'];
$requestData['password2'] = $requestData['password1'];

How to disable the validation of some fields in Joomla 3 registration ...

validation joomla registration joomla3.0
Rectangle 27 1

Set minDate and maxDate for your date limit, i.e.

$("#start_date").datepicker({
    dateFormat:'yy-mm-dd',
    showOn: 'button',
    buttonImageOnly: true,
    minDate: newmindate ,
    maxDate: newmaxdate 
});
newmindate
newmaxdate

javascript - disable date range in Joomla calendar - Stack Overflow

javascript jquery joomla joomla1.5 joomla1.7
Rectangle 27 1

To review the configuration, you set:

The first option ensures that you get the links to the articles which have the "access level=registered", and that they show in blogs and category lists.

The second, sets the article's access level as Registered.

This is fine. But in order for Joomla to be able to show the articles in blogs, the introText of the article needs to be visible to all as well. Here comes the trick.

Just add a "Read more" tag (with the button at the bottom of the editor) in the article; the text after the tag will be hidden. The first part of the article needs to be visible to all, otherwise neither Joomla (nor search engines) would be able to show it.

So just add the read more tag... it's that easy. If you don't want any text showing you can start the article with it, but it's against your interest.

I believe the problem he's having (and which I can see) is that the RSS feed is showing the entire article.

I just re-tested and I could only see the introtext both in the website and in the rss feed, hence I guess he's just missing the readmore tag. He might have a template override of the rss feed which is querying the database directly to show the full text, but that's fairly unlikely.

Yes, unauthorized links are set to be visible, and the article view option is set to be registered. The articles that I want to be visible only to registered users do not have any "intro" text that should be public--that would be counterproductive, especially as there is no blog for that category. It seems pretty silly to me that the "Read More" link should be a solution here--but I will try it.

readmore works in a strange way: upon saving, Joomla will store the portion of the text before the readmore in the introtext column, and the rest in the fulltext; the latter is the one that will be shown to registered users; in the introtext you may put a statement and a link to your registration page; and use the article configuration to prevent showing the introtext in the full article. This should give you enough flexibility.

Thanks for that explanation. I haven't tested this yet... Got a bit distracted with RL stuff. But if it works out the way I need I'll return to update.

Joomla 3 category RSS feed reveals Registered-only article - Stack Ove...

joomla rss acl
Rectangle 27 0

Unless you are loading the feed in an iframe, you are going to have to add some CSS to the Drupal site to match the Joomla site.

drupal - joomla rss feed make feed appear as in module - Stack Overflo...

drupal coding-style joomla rss feed
Rectangle 27 0

Be aware that this will remove the inline "style" attributes from all elements:

<script type="text/javascript">
(function($){
    $(document).ready(function(){
       $(this).find("*").removeAttr("style");
    });
})(jQuery);
</script>

To be absolutely effective, place it just before the </body> tag, just in case you may have any other jQuery scripts adding css("something") to the elements.

css - Disable all Joomla 3.0 inline styling - Stack Overflow

css joomla joomla-extensions joomla3.0
Rectangle 27 0

Try this instead... The difference between this code and @Jobin Jose solution above is where u call the parent. Looking in JFormFieldCalendar class show that is ovveride with its own formatting

<?php

defined('_JEXEC') or die;
jimport('joomla.form.helper');
JFormHelper::loadFieldClass('calendar');

class JFormFieldCustomCalendar extends JFormFieldCalendar
{

    public $type = 'CustomCalendar';

    protected $defaultFormat = 'd-m-Y';

    /*
     * Un jour d'intervalle entre le debut et la fin
     */
    protected $interval = 'P1D';

    protected function getInput()
    {
        parent::getInput();

        // Build the attributes array.
        $attributes = array();

        empty($this->size)      ? null : $attributes['size'] = $this->size;
        empty($this->maxlength) ? null : $attributes['maxlength'] = $this->maxlength;
        empty($this->class)     ? null : $attributes['class'] = $this->class;
        !$this->readonly        ? null : $attributes['readonly'] = '';
        !$this->disabled        ? null : $attributes['disabled'] = '';
        empty($this->onchange)  ? null : $attributes['onchange'] = $this->onchange;
        empty($hint)            ? null : $attributes['placeholder'] = $hint;
        $this->autocomplete     ? null : $attributes['autocomplete'] = 'off';
        !$this->autofocus       ? null : $attributes['autofocus'] = '';

        if ($this->required) {
            $attributes['required'] = '';
            $attributes['aria-required'] = 'true';
        }

        $date = new DateTime("now");

        $format = $this->element['format'] ? (string) $this->element['format'] : $this->defaultFormat;
        $validFormat = preg_replace('/%/', '', $format);

        if ($this->element['default'] == 'start') {
            $this->value = $date->format($validFormat);
        } else if ($this->element['default'] == 'end') {
            $date->add(new DateInterval($this->interval));

            $this->value = $date->format($validFormat);
        }

        return JHtml::_('calendar', $this->value, $this->name, $this->id, $format, $attributes);
    }

}

php - Date format issues in Calendar form field type Joomla - Stack Ov...

php joomla joomla2.5
Rectangle 27 0

In Joomla 3.x and Joomla 2.5 there is option for avoid sending username/password to the new registered users.

You can check this,

Login to admin -> Users Menu - > Options from tool bar -> Send Password (Yes/No).

Customizing core file do not recommended.

#%&#% buggy joomla. It still sends out the email even tough the option is checked. I scanned the code, and it looks like this option is only read in the frontend, so probably works there. In the backend the 'sendpassword' - option is never read. So in my installation the password is still sent when users are added from the backend.

joomla2.5 - How to disable registration email in joomla 2.5 and 3 - St...

joomla joomla2.5 joomla3.0
Rectangle 27 0

Server-side you are not able to do that. Other thing is it does not matter you are using Joomla. You can use the conventional method. Try below

php - How to check javascript is enable/disable in Joomla2.5.14 - Stac...

javascript php joomla joomla2.5
Rectangle 27 0

That's for the frontend registration. If you want to disable those emails when you register a user from the backend, you have to edit code in administrator/components/com_user/controller.php:189

It's a pitty that the only way to accomplish this in 1.5 is hacking of core files...

joomla1.5 - Disable Joomla Account Details Email (To User) - Stack Ove...

joomla joomla1.5
Rectangle 27 0

Syndication Module creates a Syndicated Feed for the page where the Module is displayed. The page has to be a blog layout for the module to show/work. When the module is displayed, click on the RSS icon for a new page to get feed URL.

In addition,RSS feed only available for the following Menu Item Type:

Once you have determined your Menu Item Type, you may just use the following URLs,for example:

http://your_joomla_url/index.php?option=com_content&view=category&id=14&Itemid=473&format=feed&type=rss (for RSS)
http://your_joomla_url/index.php?option=com_content&view=category&id=14&Itemid=473&format=feed&type=atom (for ATOM)

joomla3.0 - how to know rss feed link of my joomla website? - Stack Ov...

joomla joomla3.0
Rectangle 27 0

Content -> Article Manager -> Options -> Integration -> Show feed link

If you want to set up a feed from specific categories, you could create a menu item that include articles from these categories and enable feed link under:

Menus -> *Menu Name -> *Menu Item -> Integration -> Show Feed Link

joomla3.0 - how to know rss feed link of my joomla website? - Stack Ov...

joomla joomla3.0
Rectangle 27 0

Set minDate and maxDate for your date limit, i.e.

$("#start_date").datepicker({
    dateFormat:'yy-mm-dd',
    showOn: 'button',
    buttonImageOnly: true,
    minDate: newmindate ,
    maxDate: newmaxdate 
});
newmindate
newmaxdate

javascript - disable date range in Joomla calendar - Stack Overflow

javascript jquery joomla joomla1.5 joomla1.7
Rectangle 27 0

I ran into a similar problem with several Joomla sites that I administer. I was already using jQuery, so I decided to go with JQuery UI Datepicker which has an easy-to-use min/max date feature. If you're already using these libraries, or if you're willing to 1) add them and 2) potentially mess up your design unity, I would recommend it.

Yes I tried spending lot of time with Joomla calender but failed. So I had to use JQuery UI Datepicker to do it but still thinking and hoping to do the same thing using joomla calender.

@Sara let me know if you do... I too would like a native solution on my Joomla sites.

javascript - disable date range in Joomla calendar - Stack Overflow

javascript jquery joomla joomla1.5 joomla1.7
Rectangle 27 0

libraries/joomla/document/feed/feed.php

Find __construct method of JFeedDocument class in the file and change it to look like this:

function __construct($options = array()) {
  JError::raiseError(404, JText::_('Resource Not Found'));
}

But, in this case, you won't have "feed" support at all.

Not having feed support isnt an issue. I tried your suggestion but it caused a lot of error, not the traditional 404 not found.

Could you provide me with error details? I tried it with 1.5 not 2.5.

I want to disable access to that link. I have a google index of www.[websitename].com/?format=feed&type=rss and I want to get rid of it.

Joomla 2.5 - Disable www.[websitename].com/?format=feed&type=rss - Sta...

joomla
Rectangle 27 0

<?php
$date = "6.1.2009 13:00+01:00";
print_r(date_parse_from_format("j.n.Y H:iP", $date));
?>
<?php
$date = date_create('2000-01-01 12:15:25');
echo date_format($date, 'H:i:s');
?>
<?php
     $valid_date = date( 'm/d/y g:i A', strtotime($date));
?>
<td headers="qf_start_date" nowrap="nowrap">
<?php 
$valid_date = date( '%H:%i', strtotime($course->start_date));
echo $valid_date;
 ?>

Thank you Vikram for your reply. If i insert Y/m/d the date is showed correctly but the time is not displayed.

The question specifically requests H:i (hours:minutes) alone.

hi, here many of the resul, please trt with it

mysql - PHP date_format TIME not diplayed correctly using Joomla - Sta...

php mysql
Rectangle 27 0

I added the following in .htaccess file in joomla:

and it worked like a charm. Thanks

php - How to disable deprecated messages in Joomla? - Stack Overflow

php joomla content-management-system
Rectangle 27 0

I have added this at the begining of index.php and it fixed it:

ini_set('display_errors','Off'); 
error_reporting(E_ALL ^ E_DEPRECATED);

php - How to disable deprecated messages in Joomla? - Stack Overflow

php joomla content-management-system
Rectangle 27 0

There are numerous ways to disable magic qoutes, check out this post on Joomla site.

or search SO, there are a lot of threads about it.

If you still cant manage turning off Magic Quotes, you can use this workaround (source - php manual - click here) :

if (get_magic_quotes_gpc()) {
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while (list($key, $val) = each($process)) {
        foreach ($val as $k => $v) {
            unset($process[$key][$k]);
            if (is_array($v)) {
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            } else {
                $process[$key][stripslashes($k)] = stripslashes($v);
            }
        }
    }
    unset($process);
}

Put the above function at the top of [Joomla Installation Directory]/Administrator/index.php

Also take into account that the directive magic_quotes_gps was removed in PHP >= 5.4, so the get_magic_quotes_gpc() will always return false if you run this on PHP >= 5.4.

If any of those things contain arrays, I doubt stripslashes() will be happy or does array_walk_recursive() manage that and only gets called on leafs?

@Gadoma, where should I place this block of codes please?

@Gadoma, I can't wait to give it a try. Would you please tell me where should I place the codes in the Joomla template files? Please help me out here. I'm totally new with the server configuration things. Thanks!

as written in my edit - just put the code here [Joolma Installation Directory]/Administrator/index.php and your admin operations (add, edit, update article) should have the workaround applied.

php - Manually disable magic quote in joomla - Stack Overflow

php .htaccess joomla php-ini magic-quotes-gpc
Rectangle 27 0

Following same idea, a simpler solution might be just including hidden inputs with values in com_users\views\registration\tmpl\default.php above

<button type="submit" class="btn btn-primary validate"><?php echo JText::_('JREGISTER');?></button>
<input type="hidden" id="jform[username]" name="jform[username]" value="username" />
<input type="hidden" id="jform_name" name="jform[name]" value="name" />

It would pass the validation and you would no longer need to override controllers etc.

How to disable the validation of some fields in Joomla 3 registration ...

validation joomla registration joomla3.0