How do I use PHP code in Smarty tpl fIle

Smarty file has all the codes written in {php}{/php} format and it is now allowing me to run normal PHP format e.g. <?php ... ?>.

How will I be able to use normal php code within the file of smarty php?

How do I stop marquee on hover in html

Is there any javascript of html code stop marquee on hover and start scrolling on removing mouse (Mouseout) in html.

talking about marquee tag of html. I am using the following code:

Show Hidden div based on multiple dropdown selection javascript

I am trying to show a div, which has to be hidden by default, with JavaScript (or Jquery).
The condition to show div is based on the selected options of the two drop-down fields.

In the below code if gender is Female (from one drop-down select) and class is less than 3rd (from other drop-down select) then only the <div id="hidden_div"> should show other wise it should be hidden.
Any help in jquery or javascript would work, thanks!
I have tried the below code which is not working:

AddThis WhatsApp share opens to send email. We have explained few steps to make WhatsApp share work to share from websites.

AddThis WhatsApp share does not work. The WhatsApp icon does not work until you have the WhatsApp client installed and working on the device of the user on which he opens the website and wants to use the AddThis share button for WhatsApp share. Normally the Laptops and desktops do not have WhatsApp installed so it works will on the mobile devices. 

The question here is normally we need to share that from the computer rather than the mobile devices. In this case We can use the following service.

Steps to create a view for a flag in Drupal

To create view for a flag it depends on what you want to display. Lets consider scenarios wherein we will have different aspects of the flag displayed.

Scenario 1:

  • To view one's own contents which have been flagged.
  • The name of the person who flagged it.
  • And the time when it was flagged.

Steps to do the above are:

How do I use PHP code in Smarty tpl fIle

Smarty file has all the codes written in {php}{/php} format and it is now allowing me to run normal PHP format e.g. <?php ... ?>.

How will I be able to use normal php code within the file of smarty php?

How do I stop marquee on hover in html

Is there any javascript of html code stop marquee on hover and start scrolling on removing mouse (Mouseout) in html.

talking about marquee tag of html. I am using the following code:

Show Hidden div based on multiple dropdown selection javascript

I am trying to show a div, which has to be hidden by default, with JavaScript (or Jquery).
The condition to show div is based on the selected options of the two drop-down fields.

In the below code if gender is Female (from one drop-down select) and class is less than 3rd (from other drop-down select) then only the <div id="hidden_div"> should show other wise it should be hidden.
Any help in jquery or javascript would work, thanks!
I have tried the below code which is not working:

No wikis have been added to this group.
No polls have been added to this group.

Recent activity in this group

Wed, 11/8/2017 - 1:09pm
Razi Abuzar's picture
Razi Abuzar answered the question Error while I create or edit a flag in Drupal 7 with "This error occurs generally because of MySQL configuration parameters not meeting Drupal requirements" in the PHP group
Mon, 11/6/2017 - 4:51pm
Razi Abuzar's picture
Razi Abuzar answered the question I need steps to add menu icons in drupal 7 with "Add a CSS class sector in the css file of your theme and update the class name in the " in the PHP group
Mon, 11/6/2017 - 4:36pm
Sat, 10/28/2017 - 9:20pm

Group contributors

Contributors

Organizers