Drupal 7- My WYSIWYG text Editor disappeared! When I go back to edit content in body field!

This drove me crazy.  Check the text in your body field, or whatever text field and see if you have the word "select" in your content text.  Sometimes it identifies it as a SQL injection.  Use a different word than "select" in your text.  
Not sure if there's a work around but I use a synonym for it in my content.  

 

Test quiz

Joomla 2.5 and ReCaptcha v1 - March 31, 2018 API retired

I have an inherited Joomla 2.5 site that the company if not ready to migrate to Joomla 3.  As of March 31, 2018 Recaptcha v1 no longer works. The API has been retired.  

Joomla 2.5 does not run recaptcha v2  without a work around. (Joomla 3 uses v2)

 

Here my work around if your Joomla 2.5 site is getting nailed with spam.

Captcha Q&A

https://extensions.joomla.org/extensions/extension/access-a-security/cap...

Drupal 7 Views Group Filters for sorting Webform Data! Yeay! -Drupal Girl

I could really find any clear direction on how to do this anywhere so here you go: 

I am assuming you know how to create a view. 

Groups filters in views Drupal 7 for webforms

 

Here's an overview of the view completed:

Stop Drupal 7 from banning friendly IPs - Drupal 7 IP Blocked

Drupal will block a user's IP if too many attemps are made to access the Drupal 7 site within a set amount of time.

 

To change this default setting (5 times) add the following lines to your settings.php file.

$conf['user_failed_login_user_limit'] = PHP_INT_MAX;
$conf['user_failed_login_user_window'] = 5;

Good replacement for Facebook Autopost- Drupal 7

First create the rss feed in Drupal. I used views to do it:

my path is:  /news/rss.xml

 

 

 

Anchor links do not scroll in chrome- Drupal 7 and Chrome

Anchor tags must look like the below for Chrome to reconginize them and scroll.  (Need to have the <p> or <div> tag, the title should go between the <a> tags.)

Disable a field in the User "Edit" page. Drupal 7 Hook alter and custom user registration fields.

I need to allow users to add information during registration but not allow them to access those fields to edit after the new user account was saved. (Data collection project, if they went into their profiles and changed that data it would mess up our numbers.)

Here's the Hook alter code. :)

Add Drupal 7 user role to a user when they complete a quiz using Quiz and Rules Modules

What I needed:

I needed a rule that assigned a user role to a user after they completed a certain quiz developed in the quiz module.  The reasoning behind adding this new role was we wanted users to complete one quiz before having access to the rest of the quizes on the site.

After researching like crazy here's what I came up with:

Event: Drupal is initialing

Condition: Check Path (In the Path section)

Add HTML Tags to Webform Labels - Drupal 7_ drupal girl - webforms not recognizing html tags in labels

I am sure a lot of people run into this issue.  Allowing html tags on the "label" field in webform form components to change part of the text to bold or other font formats. 

After hours of research on the web... here is the solution... and of course it is crazy easy!

 

Add

$conf['webform_allowed_tags'] = array('a', 'em', 'strong', 'code', 'img', 'ul', 'li', 'u');    

to your setting.php located here > sites/default /

 

Pages

Subscribe to Melinda Cozza - Power Platform and CMS Developer RSS