This is very easy step you can add external javascript or css in head tag of the page. According to seo you cannot add javascript/css in the middle of the page.
Here is my short blog post lets share with my friends who are learning linux and want to import or export data to phpmyadmin using linux. So here is the code for that.
Creating simple block module in drupal is easy you just need to concentrate on this artcile to learn to create simple block module in drupal step by step.
For drupal all block module whould uploaded to the folder sites/all/modules
Suppose I am creating an exampl module to display news from a single category.
Step 1: You Need to create one folder mydrupalnews and under that folder you need to crate 2 file mydrupalnews.info and mydrupalnews.module
Step 2: File mydrupalnews.info contain the information about the block
;$Id$
name = mydrupalnews
version = 1.0
description = “My Drupal News”
core = 6.x
PHP = 4.3
Step 4: file mydrupalnews.module contains the behavior of the block. In programming language I can say you need to code what ever you like here.
I am pasting the content of the file here for better understand of the coding.
<?php
function mydrupalnews_block($op=’list’,$delta=array(),$edit=array())
{
switch ($op)
{
case ‘list’:
$blocks[0][’info’] = t(’My Drupal News’);
return $blocks;
break;
case ‘view’:
ob_start();
$content = ob_get_clean();
$SQL = ‘Select * from category_node as cn
left join node as n on cn.nid = n.nid
left join image_attach as ia on cn.nid = ia.nid
left join image as i on ia.iid = i.nid
left join files as f on i.fid = f.fid
Where cn.cid =53 AND i.image_size = \’_original\’ order by n.nid desc LIMIT 0,3′;
// 53 is the category id of my site news. For your site you can change it easily.
You are done with your programming. After everything done you just need to upload the folder mydrupalnews to the folder sites/all/modules
Now login to administrator go to module link publish your custom module. Now go to block link you will see your block is listed there in block page change the position where you want to display the block in your drupal page.
Last 2 month ago one of my office colleague signed up with digital forums and got error and even not received any email from digital point
Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235
I thought it may be they have updated some code so it is not working and will get fixed after some day.
Today I tried again with digital forums I am not able to login with my id. I have tried with some other friend id that was too not working. So I tried to sign up for an account and unfortunately the same error I see again
Fatal error: Existing data passed is not an array
Called set_existing in /home/sites/forums.digitalpoint.com/web/register.php on line 385
in /includes/class_dm.php on line 235
It seems dp is not doing any development or testing to there script. Do any one have any idea or facing problem like me. Please share your thought so me and other can get help on the matter.
One of my client always like to sent mail to his members with updates of the website to make them participate. For long time he was demanded me a auto login system in joomla.
Today at last we got the solution how we can do it. I am sharing this with you hope that may help a lot of people.
// User Login end
$query1 = “update #__users set password=’”.$TempPassword.”‘, block=0 where activation =’”.$ActivateID.”‘”; //Update user actual password againand redirect to your appropriate page you like
$db->setQuery( $query1 );
if($db->query())
{
$Msg = ‘Please upload your picture to see your profile.’;
$mainframe->redirect( ‘index.html’,$Msg);
}
}
}
else
{
echo ‘You don\’t have account yet? <a href=”/join.html”>Join Us Today </a>’;
}
}
Hope this will help a lot of developer to make auto login system in joomla.
Joomla1.5 is basically the higher version of joomla 1.0 and the open source content management system.It is one of the most successful cms system here internet world.
If you want see my joomla1.5 cms website you can check it here in this url.
http://subikar.justforjoomla.com
You are thinking why I am writing all this stuff to here. Am I wasting my time ?
Nopes
Actually every one has a dream now a days have one personal website but without investing money. So I will ask them to have your website just today like me. Go to http://www.Justforjoomla.com and have your cms website today.
Change Parameter $ArgumentsInArray = array(
‘TmpFileName’ =>$_FILES[’resize’][’tmp_name’],
‘DestinationFolder’=>’C:/wamp/www/resize/image/’, /* Change the path of the image where it will upload after resizing.*/
‘FileName’ => $_FILES[’resize’][’name’],
‘Width’ => 200, /* Width of the image after resize */
‘Height’ => 30, /* Height of the image after resize */
);
Run from web browser : http//www.yoursitename.com/resize/resizeme.php
Thanks a lot going to find out more simple work for you.