tag:blogger.com,1999:blog-77212916869963563122024-03-13T08:37:25.472+03:00JoomPalJoomla and Drupal developmentMiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comBlogger19125tag:blogger.com,1999:blog-7721291686996356312.post-55169201822604198232011-09-09T02:19:00.003+03:002011-09-09T02:23:20.005+03:00Drupal7 - Add source to feed item - Feed module -<div dir="ltr" style="text-align: left;" trbidi="on"><br />
Feed item doesn't show a link to the source article (in the original website), to add a link to the source (to view a full article) do the following steps:<br />
<br />
<span class="Apple-style-span" style="color: red;">1-</span> add a new field to the content type: Feed Item (field_source)<br />
<span class="Apple-style-span" style="color: red;">2- </span>go to Structure --> feed imporer<br />
<a name='more'></a><br />
then<br />
<div style="text-align: -webkit-auto;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: x-small;"><br />
</span></div><div> Feed ...... override/Edit </div><div><br />
</div><div><span class="Apple-style-span" style="background-color: #eeeeee; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 14px; line-height: 20px;"></span><br />
<h4 class="feeds-container-title" style="border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 1em; font-weight: bold; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="background-color: #eeeeee; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 14px; line-height: 20px;">Node processor--->>> mapping</span></h4><br />
<div><br />
</div>Add:</div><div>source: <span class="Apple-style-span" style="background-color: #f3f4ee; font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13px;">Item URL (link)</span></div><div><span class="Apple-style-span" style="background-color: #f3f4ee; font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13px;">Target : feild_</span><span class="Apple-style-span" style="background-color: #f3f4ee; font-family: 'Lucida Grande', 'Lucida Sans Unicode', sans-serif; font-size: 13px;">source</span></div><div><br />
</div><div><br />
</div><div>3- the link will be printed as a text in the feed item node, to print it as a link:</div><div>open: <b><u>node.tpl.php</u></b></div><div><br />
</div><div>first hide this field :</div><div><br />
</div><div><div><span class="Apple-style-span" style="background-color: #f3f3f3;"> hide($content['comments']);</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;"> hide($content['field_source']);</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3;"> hide($content['links']);</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3;"> print render($content);</span></div></div><div><br />
</div><div>and then print it as following:</div><div><br />
</div><div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;"><?php </span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;">$t=str_ireplace('<div class="field field-name-field-source field-type-text field-label-hidden">', '', render($content['field_source']));</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;">$t2=str_ireplace('<div class="field-item even">', '', $t);</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;">$t3=str_ireplace('</div>', '', $t2);</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3; color: red;">print '<a href='.$t3.'>Source </a>';?></span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3;"><br />
</span></div><div><span class="Apple-style-span" style="background-color: #f3f3f3;"> <?php if ($content['links']): ?></span></div></div><div><br />
<br />
<br />
<br />
<br />
<br />
</div></div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-41058648949848183142011-07-09T03:21:00.005+03:002011-07-09T03:29:00.289+03:00Hiding message: The image was resized to fit within the maximum allowed dimensions ...<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">This message appears when uploading large images with dimensions exceed the allowed ones:</span><br />
<span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif;">"The image was resized to fit within the maximum allowed dimensions ..."</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">To hide the message, open file:</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<a name='more'></a><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<div class="api-defined" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; line-height: 18px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="background-color: #f3f3f3; color: #0b5394; font-family: Arial, Helvetica, sans-serif;">includes/<wbr></wbr>file.inc</span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif; line-height: 18px;">and </span><span class="Apple-style-span"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">comment line 1730:</span></span></span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"></span></span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: transparent;"> </span><span class="Apple-style-span" style="background-color: #f3f3f3;"> /* drupal_set_message(t('The image was resized to fit within the maximum allowed dimensions of %dimensions pixels.', array('%dimensions' => $maximum_dimensions)));*/</span></span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394;"><span class="Apple-style-span" style="background-color: #f3f3f3; font-family: Arial, Helvetica, sans-serif;"> </span></span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<div class="api-defined" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></span></div><div class="api-defined" style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #0b5394;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;"><br />
</span></span></div><div style="line-height: 18px;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Times, 'Times New Roman', serif;"><br />
</span>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-91112466609825600422011-07-05T01:54:00.003+03:002011-07-05T02:01:06.533+03:00Fatal error: Allowed memory size of 67108864 bytes exhausted<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="color: #3d85c6;">You may see this massage in updating drupal or when enabling some modules.</span><br />
<span class="Apple-style-span" style="color: #3d85c6;"><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><b>Fatal error</b>: Allowed memory size of 67108864 bytes exhausted (tried to allocate 14 bytes) in <b>includes/theme.inc</b> on line <b>978</b></span></span><br />
<b><span class="Apple-style-span" style="color: #3d85c6;"></span></b><br />
<a name='more'></a><b><span class="Apple-style-span" style="color: #3d85c6;"><br />
</span></b><br />
<b><span class="Apple-style-span" style="color: #3d85c6;"><br />
</span></b><br />
<span class="Apple-style-span" style="color: #3d85c6;"><b>1.go to </b><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">/sites/default/settings.php file.</span></span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="color: #3d85c6;"><b>2.Change</b> the file permission from 0444 to 0777.</span></span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="color: #3d85c6;"><br />
</span></span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="color: #3d85c6;"><b>3.add:</b></span></span><br />
<span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: 12px; line-height: 18px; white-space: pre-wrap;"><span class="Apple-style-span" style="color: #3d85c6;">ini_set('memory_limit', '512M');</span></span><br />
<span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: 12px; line-height: 18px; white-space: pre-wrap;"><span class="Apple-style-span" style="color: #3d85c6;">after</span></span><br />
<span class="Apple-style-span" style="font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; font-size: 12px; line-height: 18px; white-space: pre-wrap;"><span class="Apple-style-span" style="color: #3d85c6;"><?php</span></span><br />
<b><span class="Apple-style-span" style="color: #3d85c6;">save and don't forget to return the permission to 0444</span></b><br />
<b><span class="Apple-style-span" style="color: #3d85c6;"><br />
</span></b><br />
<b><a href="http://drupal.org/node/76156#comment-4583384"><span class="Apple-style-span" style="color: #3d85c6;">for more info</span></a></b></div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-64434451183522546612011-07-05T01:40:00.001+03:002011-07-05T01:45:02.428+03:00Upgrade/Update drupal 7 to 7.2 or 7.4<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span><br />
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">1. <span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; line-height: 18px;"> Go to <b>Administration > Configuration > Development > Maintenance mode</b></span></div><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span><br />
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">Enable the <b>"Put site into maintenance mode"</b> and save.</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">2. Remove old core files and directories, except for the<b> 'sites' </b>directory</span><br />
<span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">+ any custom files you added.</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">If you made modifications to some core files, you will need to re-modify them after upgrading.</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span><br />
<a name='more'></a><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></div><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; background-position: initial initial; background-repeat: initial initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">3. Download the<b> latest Drupal 7.x release</b>. Extract the folder and move files into Drupal directory.(without the site folder, you have one from the previous version) </div></span><br />
<div><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: x-small;"><span class="Apple-style-span" style="line-height: 18px;"><br />
</span></span><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="color: #222222;">4. Run <b>update.php</b> by visiting</span><span class="Apple-style-span" style="color: blue;"> http://www.yoursite.com/update.php</span><span class="Apple-style-span" style="color: #222222;"> </span></span><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">this will update the core database tables</span><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span><br />
<div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="color: #222222;"><br />
</span></span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="color: #cc0000;">Note: If you are unable to access update.php:</span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="background-color: #f3f3f3;">- Open settings.php </span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="background-color: #f3f3f3;">- Find :</span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="background-color: #f3f3f3;">$update_free_access = FALSE;</span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="background-color: #f3f3f3;">- Change it into:<br />
$update_free_access = TRUE;</span></span></div><div style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="background-color: #f3f3f3;">- Once the upgrade is done dont' forget to return it to FALSE</span></span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">5. Go to</span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><b>Administration > Configuration > Development > Maintenance mode.</b></span><br />
<span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">Disable the "Put site into maintenance mode" and save </span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></div><div style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #222222; font-size: 13px; margin-bottom: 0.692em; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><a href="http://drupal.org/node/1170798#comment-4530378">for more info</a></span></div></div></div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-19812318913759828502011-06-03T20:32:00.001+03:002011-06-03T20:38:53.860+03:00Drupal7: Hide and print contents and fields in "node.tpl.php"<div dir="ltr" style="text-align: left;" trbidi="on"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">Drupal defines the <b>content </b>as An array of node items(<b>$</b></span><span class="Apple-style-span" style="line-height: 18px;"><b>content</b></span><span class="Apple-style-span" style="line-height: 18px;">). You can print all the array elements using <b>render($content) </b> or print a subset as <b>render($content['field_example'])</b>. </span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;"><br />
</span></span><br />
<span class="Apple-style-span" style="line-height: 18px;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">To print a subset of the elements, first hide this element:</span></span><br />
<span class="Apple-style-span" style="line-height: 18px;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><b>hide($content['field_example']) </b></span></span><br />
<span class="Apple-style-span" style="line-height: 18px;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"></span></span><br />
<a name='more'></a><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="line-height: 18px;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">then print it in the place you want:</span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;"><b>render($content['field_example']).</b></span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;"><br />
</span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="line-height: 18px;">This </span><span class="Apple-style-span" style="white-space: nowrap;">feature is very important in many cases. </span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;"><br />
</span></span><br />
<span class="Apple-style-span" style="white-space: nowrap;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><b><span class="Apple-style-span" style="color: #cc0000;">1.</span></b><span class="Apple-style-span" style="color: #0b5394;">If you open file: </span><b style="color: #0b5394;">node.tpl.php </b><span class="Apple-style-span" style="color: #0b5394;">in your theme,</span></span></span><br />
<span class="Apple-style-span" style="white-space: nowrap;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="color: #0b5394;"> you can see that drupal uses this manner to hide comments and links and print them in the bottom of the page.</span></span></span><br />
<span class="Apple-style-span" style="white-space: nowrap;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span></span><br />
<span class="Apple-style-span" style="white-space: nowrap;"><span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif;"><b>2.</b></span><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">other example, you may need to hide a field as body:</span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;"><b>hide($content['body']);</b></span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;"><br />
</span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;">and add your custom update to it before printing.</span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;"><b>$text=render($content['body']);</b></span></span><br />
<div style="white-space: nowrap;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">update $text and print it later.</span></div><div style="white-space: nowrap;"><span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;"><b><span class="Apple-style-span" style="color: #cc0000;">3.</span></b><span class="Apple-style-span" style="color: #0b5394;">A third example is hiding </span></span><span class="Apple-style-span" style="color: #0b5394; white-space: nowrap;">several</span><span class="Apple-style-span" style="color: #0b5394; white-space: nowrap;"> things: fields, groups and modules:</span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="white-space: nowrap;"></span></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">hide($content['body']);</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">hide($content['addtoany']);</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">hide($content['field_subtitle']);</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">hide($content['group_imag_group']);</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;">then update and print them in a specific order.</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<br />
<span class="Apple-style-span" style="line-height: 18px;"><a href="http://api.drupal.org/api/drupal/modules--node--node.tpl.php"><span class="Apple-style-span" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif;">for more information about "node.tpl.php"...</span></a></span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span class="Apple-style-span" style="color: #0b5394; font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<br />
</div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-36278254927877686412011-06-03T19:56:00.002+03:002011-06-03T20:11:28.535+03:00Drupal 7: How to get rendered blocks in content region<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;">Some modules are added by default to content (as rating and share modules), but others are not allowed to be <b>rendered or added whiten contents</b> or articles.</span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;"><br />
</span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;">As an example, you may need to add "Related or Relevant" articles after the article,in this case this topic is what you need.</span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;"></span></span><br />
<a name='more'></a><span class="apple-style-span"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;"><br />
</span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;">1.open file: </span></span><span style="color: #3e3e3e; font-family: Arial;"><b>modules/block/block.module</b></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span style="color: #3e3e3e; font-family: Arial;"><br />
</span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span style="color: #3e3e3e; font-family: Arial;">and add the following code:</span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span style="color: #3e3e3e; font-family: Arial;"><span class="Apple-style-span" style="background-color: #eeeeee; color: black; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; line-height: 18px; white-space: pre-wrap;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><?php</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #ff8000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">/**<br />
* Get a block suitable for rendering.<br />
* Note: the block does not have to be enabled in $region.<br />
* @see includes/block.module/_block_render_blocks()<br />
* @see includes/block.module/_block_get_renderable_array()<br />
*/</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">function </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">siteoverride_embed_block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$module</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$delta</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$region</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">'content'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">) {<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #ff8000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">// Create block stub.<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= new </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">stdClass</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">();<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">module </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$module</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">;<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">delta </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$delta</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">;<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">region </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$region</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">;<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #ff8000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">// Load title.<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">global </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$theme_key</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">;<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">drupal_theme_initialize</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">();<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block1 </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">db_query</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">"SELECT title FROM {block} WHERE module = :module AND delta = :delta AND theme = :theme"</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">,<br />
array(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">':module' </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$module</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">':delta' </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$delta</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">':theme' </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">=> </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$theme_key</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">))-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">fetchObject</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">();<br />
if (</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">is_object</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block1</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">) && isset(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block1</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">title</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)) {<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">title </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block1</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">-></span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">title</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">;<br />
}<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #ff8000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">// Render the content and subject for the block.<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$blocks </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">_block_render_blocks</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(array(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">));<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #ff8000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">// Get an array of blocks suitable for drupal_render().<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$array </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">= </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">_block_get_renderable_array</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$blocks</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">);<br />
return </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">$array</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">;<br />
}</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">?></span></span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><b><span style="color: #3e3e3e; font-family: Arial;"><span class="Apple-style-span" style="color: black; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; line-height: 18px; white-space: pre-wrap;"><span style="background-attachment: initial; background-clip: initial; background-color: transparent; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><br />
</span></span></span></b></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="Apple-style-span" style="color: #0000bb; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace;"><span class="Apple-style-span" style="line-height: 18px; white-space: pre-wrap;"><b><br />
</b></span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span style="color: #3e3e3e; font-family: Arial;"><o:p>2. open file <b>node.tpl.php</b> and add</o:p></span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;"><span class="Apple-style-span" style="background-color: #eeeeee; color: black; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace; line-height: 18px; white-space: pre-wrap;"><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;"><?php<br />
</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">print </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">render</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">siteoverride_embed_block</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">(</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">'block'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">, </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #dd0000; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">'0'</span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #007700; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">)); </span><span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; border-bottom-width: 0px; border-color: initial; border-left-width: 0px; border-right-width: 0px; border-style: initial; border-top-width: 0px; color: #0000bb; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; vertical-align: baseline;">?></span></span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="Apple-style-span" style="color: #0000bb; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace;"><span class="Apple-style-span" style="line-height: 18px; white-space: pre-wrap;"><b><br />
</b></span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span style="color: #3e3e3e; font-family: Arial;"><o:p>before comments "</o:p></span></span><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;"> <?php print render($content['comments']); ?></span><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;">" or you can update the code as needed.</span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span style="color: #3e3e3e; font-family: Arial;"><o:p><br />
</o:p></span></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><o:p><o:p><span class="Apple-style-span" style="color: #dd0000; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace;"><span class="Apple-style-span" style="line-height: 18px; white-space: pre-wrap;"> where <b>block</b>: is the name of the block</span></span></o:p></o:p></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><o:p><o:p><span class="Apple-style-span" style="color: #dd0000; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace;"><span class="Apple-style-span" style="line-height: 18px; white-space: pre-wrap;">and</span></span></o:p></o:p></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><o:p><o:p><span class="Apple-style-span" style="color: #dd0000; font-family: 'Bitstream Vera Sans Mono', Monaco, 'Lucida Console', monospace;"><span class="Apple-style-span" style="line-height: 18px; white-space: pre-wrap;"><b>0</b>: is the delta</span></span></o:p></o:p></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="Apple-style-span" style="color: #3e3e3e; font-family: Arial;"><b><br />
</b></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><b><span style="color: #3e3e3e; font-family: Arial;"><br />
</span></b></span></div><div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><b><span style="font-family: Arial;"><span class="Apple-style-span" style="color: #cc0000;">Note</span></span><span style="color: #3e3e3e; font-family: Arial;">:don't assign region to this block.<o:p></o:p></span></b></span></div><br />
<b><br />
</b><br />
<b>for more info: <a href="http://drupal.org/node/1034524#comment-4151036">source</a> </b><br />
<b><br />
</b><br />
<b><br />
</b><br />
<b><br />
</b></div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-16111385183447872662011-05-01T02:09:00.003+03:002011-06-03T20:39:10.237+03:00Joomla vs. Drupal Terminology<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #0b5394;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<h2 style="background-color: transparent; border-width: 0px; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 1.615em; font-weight: normal; line-height: 1.286em; margin: 0.619em 0px 0.238em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span style="color: #6fa8dc; font-size: small;"><b>Joomla and Drupal have different terms:</b></span><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></span></span></h2><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><ol style="background-color: transparent; border-width: 0px; font-size: 13px; list-style-position: outside; list-style-type: decimal; margin: 0px 0px 0.692em; padding: 0px 0px 0px 2em; vertical-align: baseline;"><li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">Joomla<span class="Apple-converted-space"> </span><q style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; quotes: none; vertical-align: baseline;">Template</q><span class="Apple-converted-space"> <span style="color: red;">=</span> </span><span class="Apple-converted-space"></span><q style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; quotes: none; vertical-align: baseline;">Theme</q><span class="Apple-converted-space"> </span>in Drupal.</span></span></li>
<span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Component <span style="color: red;">= </span>Module <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Module <span style="color: red;">= </span>Block <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Mambot/Plugin <span style="color: red;">= </span>Input filter <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.<a name='more'></a></span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Menu-Horizontal <span style="color: red;">= </span>Primary Links <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Menu-Vertical <span style="color: red;">= </span>Navigation <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Dynamic Content Item <span style="color: red;">= </span>Story <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Static Content <span style="color: red;">= </span>Page <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Back-end <span style="color: red;">= </span>no back-end in Drupal, but some modules<span class="Apple-converted-space"> </span>provide a similar interface.</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">SEF <span style="color: red;">= </span>Clean URLs .</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Section <span style="color: red;">= </span>Taxonomy Vocabulary/Term</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Section Title <span style="color: red;">= </span>Taxonomy Term (master)</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Category <span style="color: red;">= </span>Taxonomy Term (child)</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Introtext <span style="color: red;">= </span>Teaser <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-converted-space"></span>in Drupal.</span></span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Maintext <span style="color: red;">= </span>Body </li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Pathway <span style="color: red;">= </span>Breadcrumb </li>
</span></span></ol><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
<br />
<div style="background-color: transparent; border-width: 0px; color: #3d85c6; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><b>On the other hand, there are other terms which are the same, as:</b></div></span></span></div><span class="Apple-style-span" style="border-collapse: separate; color: #0b5394; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: #0b5394; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">forum discussion / editor / search / region / comment / subject/title / preview/ html tag / view /edit / advertising/banner /log in/log out / RSS feed / </span></span></div><br />
<div style="color: #0b5394;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"> <span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span style="color: #0b5394;"> Find more in</span> </span></span><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px;"><span class="Apple-style-span" style="color: #222222;"><a href="http://drupal.org/">drupal.org</a></span></span></span></span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div></div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-70014065224843492932011-05-01T01:34:00.003+03:002011-06-03T20:39:19.747+03:00Joomla vs Drupal<div dir="ltr" style="text-align: left;" trbidi="on"><div><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<h2 style="background-color: transparent; border-width: 0px; color: #555555; font-family: 'Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 1.615em; font-weight: normal; line-height: 1.286em; margin: 0.619em 0px 0.238em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"> </span></span></h2><ol style="background-color: transparent; border-width: 0px; color: #0b5394; font-size: 13px; list-style-position: outside; list-style-type: decimal; margin: 0px 0px 0.692em; padding: 0px 0px 0px 2em; vertical-align: baseline;"><li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">Drupal allows you to assign content to several Sections/Categories, while </span></span><span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span>Joomla only supports one Section and one Category for each Article. </span></span></li>
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Drupal supports multi-site setups, so a migration from <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">" multi-site with Drupal</span></span>" to Joomla must be put into a certain site.</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Drupal has built-in forum discussion and you don't need to install any additional modules.</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"> "Blog" term in Joomla is actually a teaser of contents : Title, Introduction and a Read More link. <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">It's not the same as blog in Internet dictionary.</span></span>So, Joomla supports a 'Blog' by default, but with a different meaning.</li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">Comments on contents are not available in Joomla by default, but Drupal supports comments for all content-types by default.</li>
</span></span></ol><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><span style="color: #0b5394;"> Find more in</span> </span></span><span style="font-family: Georgia, 'Times New Roman', serif; font-size: large;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; font-weight: normal; line-height: 18px;"><span class="Apple-style-span" style="color: #222222;"><a href="http://drupal.org/">drupal.org</a></span></span></span><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
</div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-63414999923976950442011-04-27T19:17:00.002+03:002011-06-03T20:39:34.175+03:00SimpTor: Simple Article Editor for Joomla – Objectives<div dir="ltr" style="text-align: left;" trbidi="on"><div style="color: #0b5394;"><br />
Do you need a <b>simple editor</b> that uses<b> textarea</b> as Notepad?<br />
Do you want to make the interface of <b>"add content" </b>more <b>simple</b> and clear for users?<br />
Are you <b>tired</b> of<b> deleting and filtering HTML codes</b> that are <b>copied </b>with text, and cause many <b>problems </b>in site and appearance?<br />
<br />
<a name='more'></a><br />
<br />
<br />
Users are usually have no experience of coding and formatting and want to feel comfortable when using your site. You need a fast and quick editor so users can add many articles with less steps.<br />
<br />
A very Important issue, that the image uploading manner (Image Manager) is more easy also, and you can use it instead of the image button or the add image button of the editor.<br />
<br />
<br />
</div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-36411046361903555972011-04-26T03:50:00.004+03:002011-06-03T20:40:05.979+03:00Update Flippy module to show only Published nodes ( Articles)<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-family: Arial, Helvetica, sans-serif;">Version: <b>Drupal7</b></span><br />
<br />
<a href="http://www.blogger.com/goog_2098697859"><br />
</a> <span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<div style="background-color: transparent; border-width: 0px; color: black; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><a href="http://joompal.blogspot.com/2011/04/flippy-module-add-previousnext-pagers.html">Flippy module generates<b> previous/next pagers</b> for content types <span class="Apple-style-span" style="border-collapse: separate; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"> so you can <b>page through Articles</b> or<b> Blog posts</b></span></span>.</a></span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">To filter the pager links to <b>page</b> only through <b>published </b>Articles: </span></span></div><br />
<b>open file:</b><br />
sites/all/modules/flippy<b>/flippy.module</b><br />
<br />
<a name='more'></a><br />
<br />
<b>After line 122 add:</b><br />
<span style="background-color: #eeeeee;"> condition('status', 1, '=') </span><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzdVilHqIU0ylgMhyOCH_1LHgngALG9aqv7TjKLMZLo8MKArPzcibeU3tFBD9iCBSB2T2TkaaI9XX91DBA-YGZ8hbCjOyOySGnSrUMDzcMRYd8AaUbV1VGR6C-lpgghjrGwJY699RzdZjW/s1600/flippy.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzdVilHqIU0ylgMhyOCH_1LHgngALG9aqv7TjKLMZLo8MKArPzcibeU3tFBD9iCBSB2T2TkaaI9XX91DBA-YGZ8hbCjOyOySGnSrUMDzcMRYd8AaUbV1VGR6C-lpgghjrGwJY699RzdZjW/s1600/flippy.PNG" /></a></div><br />
</div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-44709401715945629732011-04-26T03:45:00.003+03:002011-06-03T20:40:13.970+03:00Flippy module: Add previous/next pagers for content types<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-family: Arial, Helvetica, sans-serif;">Version: <b>Drupal7</b></span><br />
<br />
<br />
<span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><a href="http://drupal.org/project/flippy">Flippy module</a> generates<b> previous/next pagers</b> for content types <span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"> so you can <b>page through Articles</b> or<b> Blog posts</b></span></span>.</span></span></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh44noC-M8KewK_e34LvePi2z2s3EutuFMFhy7rbogkmsRlI-DhOsLgNY0Hiq9khlGrYLKGj_yVmVN-aiVi0dlH91VV2vZf4VQ3Hu4IfEe2ERd-_CaAuVsyeVTQWRrWy0EeVZHnt3doGktI/s1600/flippy4.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh44noC-M8KewK_e34LvePi2z2s3EutuFMFhy7rbogkmsRlI-DhOsLgNY0Hiq9khlGrYLKGj_yVmVN-aiVi0dlH91VV2vZf4VQ3Hu4IfEe2ERd-_CaAuVsyeVTQWRrWy0EeVZHnt3doGktI/s1600/flippy4.png" /></a></div><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><div class="separator" style="clear: both; text-align: center;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJbdfUVRNLotuINge2xjwe3W5luUoNItPM6TPJiovTA8O72dAVks0kV3Lr_pjWDbtDRP9bjMMHcmdPyidXXjgm7rlRnAOCfs0g49acOUInSsWB3Q9I7f6CvI0Plrauho-39mtczSA4iUNK/s1600/flippy3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"></a></span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">How to <b>use</b> this simple module?</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"></div><a name='more'></a><br />
<div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;">1. Install & Enable <span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><a href="http://drupal.org/project/flippy">Flippy module</a>.</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">2. Go to content type "Article" as an example.</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">3. click Edit for the content type</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;">4.you'll find new option ,enable the use of flippy pager.</span></span></div><div class="separator" style="clear: both; text-align: center;"></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdibkz0tO69G0W3LJ3JvRS2U9BaUuyBvVwA-Is0A4jy49EDfMDDispSEOVVbhrXxBylkZU3oUbOJ1u7t0LPT1IB4LFQk0Q8CsY3FYI2ou0CDnEaGldWpgQxBWR304K_26y8RYYY0e63coW/s1600/flippy2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="131" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdibkz0tO69G0W3LJ3JvRS2U9BaUuyBvVwA-Is0A4jy49EDfMDDispSEOVVbhrXxBylkZU3oUbOJ1u7t0LPT1IB4LFQk0Q8CsY3FYI2ou0CDnEaGldWpgQxBWR304K_26y8RYYY0e63coW/s400/flippy2.png" width="400" /></a></div><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br />
</span></span></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;">5.You can change the position of the pager from:</div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"><b>content type-->Manage Display page --> change the position of the pager.</b></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;"></div><div style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px 0px 0.692em; padding: 0px; vertical-align: baseline;">6.Use CSS to change the appearance of the pager.</div><div class="project-info item-list" style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><br class="Apple-interchange-newline" /></div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-85952356815915192162011-04-25T03:37:00.004+03:002011-06-03T20:40:19.739+03:00Notice: Undefined property: stdClass::$field in locale_field_node_form_submit() line 410 locale.module<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-family: Arial, Helvetica, sans-serif;">Version: <b>Drupal7</b></span><br />
<br />
<div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;">This notice may appear after after <b>submitting </b>or <b>adding </b>new content( as Article):</div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="LTR" style="background-color: #eeeeee; direction: ltr; text-align: left; unicode-bidi: embed;"><i>Notice: Undefined property: stdClass::$field in <b>locale_field_node_form_submit()</b> (line 410 <b>l</b><b>ocale.module</b></i></div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;">If every thing works fine and the form submit the data successfully, you may use the following temporary solution:</div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;"><br />
<a name='more'></a><br />
</div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;">open file:<i> <span style="background-color: #eeeeee;">modules/locale/</span></i><i style="background-color: #eeeeee;">locale.module</i></div><div class="MsoNormal" dir="LTR" style="color: #6fa8dc; direction: ltr; text-align: left; unicode-bidi: embed;"><b>Add <span style="color: red;">@</span> before lines 410& 411</b></div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAiDKZ4QYuF_lEUU-EIeJrIj2ljYaM7T3qxm3BVbGZVzDSRCaixJj4mtCkA-HaPPSyA2BSB_JtGgPSdzVcuw4clEQPt7mD4LUGrU1G0T8UHRNzA624OW-5SmU17WOjBzr54jFDYiergr6M/s1600/locale.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="91" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAiDKZ4QYuF_lEUU-EIeJrIj2ljYaM7T3qxm3BVbGZVzDSRCaixJj4mtCkA-HaPPSyA2BSB_JtGgPSdzVcuw4clEQPt7mD4LUGrU1G0T8UHRNzA624OW-5SmU17WOjBzr54jFDYiergr6M/s640/locale.PNG" width="640" /></a></div><div class="MsoNormal" dir="LTR" style="direction: ltr; text-align: left; unicode-bidi: embed;"><br />
</div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-16707246238481454472011-04-12T21:18:00.007+03:002011-06-03T20:40:32.734+03:00How to assign fields for administrator only - Field Permissions<div dir="ltr" style="text-align: left;" trbidi="on"><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span class="Apple-style-span" style="color: #444444; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Version: <b>Drupal 7</b></span><br />
Sometimes we need to define <b>fields</b> that <b>appears</b> only for <b>administrator</b>, and not allowed other users to see or <b>update the fields</b>. Or in other cases, you may add "<b>Author</b> <b>Name</b>" field to "<b>Add Article</b>" form, and only <b>show this field for anonymous user</b> <span style="font-family: Georgia, 'Times New Roman', serif;">(if you allow unregistered users to add articles)</span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">The <span style="color: black; font-family: Helvetica; font-size: 18.5pt; font-weight: normal;"><a href="http://drupal.org/project/field_permissions"><span style="font-size: small;"><span style="font-family: Georgia, 'Times New Roman', serif;">Field Permissions</span></span></a></span> module allows <b>administrator to set permissions for fields</b>, and control whom can edit and input value to this field. </div> <br />
<a name='more'></a><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">After <b>installing</b> and <b>enabling</b> the module, go to <b>Manage Fields --> choose the filed</b> you want to edit, </div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">you will find<b> new options</b> for this field:<br />
<br />
</div><span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; font-family: 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', Verdana, Arial, sans-serif; font-size: 13px; line-height: 18px;"></span></span><br />
<div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
<ul style="background-color: transparent; border-width: 0px; font-size: 13px; list-style-type: disc; margin: 0px 0px 0.69em; padding: 0px 0px 0px 2em; vertical-align: baseline;"><li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #0b5394;">Create FIELD (edit on node creation).</span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #0b5394;">Edit FIELD, regardless of node author.</span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #0b5394;">Edit own FIELD on node created by the user.</span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #0b5394;">View FIELD, regardless of node author.</span></li>
<li style="background-color: transparent; border-width: 0px; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;"><span style="color: #0b5394;">View own FIELD on node created by the user.</span></li>
</ul></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">These options are <b> new permissions </b>that can be added to this field.<br />
<br />
<b>check the permissions you need.</b></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">then go to<b> people--> permissions -->choose the role of users</b></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">and allow the new permission for those needed roles.<br />
<br />
<br />
<i style="color: #6fa8dc;">It's simple and effective.... </i></div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-10343372630499901962011-04-12T20:35:00.005+03:002011-06-03T20:40:49.960+03:00Notice: Undefined index: alias in path_node_insert() line 188 of path.module<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-family: Arial, Helvetica, sans-serif;">Version: <strong>Drupal7</strong></span><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">This notice may appear after using <span class="Apple-style-span" style="-webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span class="Apple-style-span" style="color: #222222; line-height: 18px;"><a href="http://drupal.org/project/pathauto" style="background-clip: initial; background-color: transparent; background-origin: initial; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; color: #0678be; margin: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px; text-decoration: none; vertical-align: baseline;"><strong>Pathauto</strong></a> </span></span>module:</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><em><span style="color: #333333;">Notice</span></em><span dir="rtl"></span><span dir="rtl" lang="AR-SA" style="color: #333333;"><span dir="rtl"></span>: </span><span style="color: #333333;">Undefined index: alias in</span><span dir="rtl"></span><span dir="rtl" style="color: #333333;"><span dir="rtl"></span> </span><em><span style="color: #333333;">path_node_insert</span></em><span dir="rtl"></span><em><span dir="rtl" lang="AR-SA" style="color: #333333;"><span dir="rtl"></span>()</span></em><span dir="rtl" lang="AR-SA" style="color: #333333;"> (</span><span style="color: #333333;">line</span><span dir="rtl"></span><span dir="rtl" style="color: #333333;"><span dir="rtl"></span> <em><span lang="AR-SA">188</span></em><span lang="AR-SA"> </span></span><span style="color: #333333;">of</span><span dir="rtl"></span><span dir="rtl" style="color: #333333;"><span dir="rtl"></span> <em><span lang="AR-SA">/ </span></em></span><em><span style="color: #333333;">modules/path/path.module</span></em></span><br />
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">Just open :</span><strong><em><span style="color: #333333; font-family: Arial, Helvetica, sans-serif;">modules/path/path.module</span></em></strong><br />
<span style="font-family: Arial, Helvetica, sans-serif;"></span><span style="color: #333333;"></span><span style="font-family: Arial, Helvetica, sans-serif;"> </span> <br />
<a name='more'></a><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><strong><em></em></strong></span><br />
<div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: small;">and replace<b> line 188</b></span><br />
<span style="color: black;"><span style="background-color: #f3f3f3; font-family: Arial, Helvetica, sans-serif; font-size: small;">$path['alias'] = trim($path['alias']);</span></span></div><span style="color: #333333; font-size: 9pt;"></span><br />
<div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: small;">with:</span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="background-color: #f3f3f3;"><span style="font-family: Arial, Helvetica, sans-serif;"> <span style="background-color: #cccccc;"> </span><span style="background-color: #cccccc;">if (!empty($path['alias']))</span> $path['alias'] = trim($path['alias']);</span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="font-family: Arial, Helvetica, sans-serif;"><br />
</span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">Also </span><br />
<span style="font-family: Arial, Helvetica, sans-serif;">change<b> line 205</b></span><br />
<span style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="font-family: 'Times New Roman';"></span></span><br />
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-align: left; unicode-bidi: embed;"><div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span style="background-color: #f3f3f3; font-family: Arial, Helvetica, sans-serif;"><span style="font-family: Arial, Helvetica, sans-serif;"></span></span></div><div class="MsoNormal" style="direction: ltr; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: left; unicode-bidi: embed;"><span style="font-family: Arial, Helvetica, sans-serif;"><span style="background-color: #f3f3f3; font-family: Arial, Helvetica, sans-serif;"> $path['alias'] = trim($path['alias']);</span></span></div></div><div class="MsoNormal" style="direction: ltr; margin-bottom: 0pt; margin-left: 0cm; margin-right: 0cm; margin-top: 0cm; text-align: left; unicode-bidi: embed;"></div><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><span style="font-family: Arial, Helvetica, sans-serif;"></span></span><br />
<div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span style="font-family: Arial, Helvetica, sans-serif;">to</span></div><span style="font-family: Arial, Helvetica, sans-serif;"> </span><br />
<div class="MsoNormal" style="direction: ltr; text-align: left; unicode-bidi: embed;"><span style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-style-span" style="background-color: #f3f3f3;"> </span><span class="Apple-style-span" style="background-color: #cccccc;"> if (!empty($path['alias'])) </span> <span class="Apple-style-span" style="background-color: #f3f3f3;">$path['alias'] = trim($path['alias']);</span></span></div></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="font-family: Arial, Helvetica, sans-serif;"><br />
</span></div><br />
<div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><span style="font-family: Arial, Helvetica, sans-serif; font-size: small;"></span><br />
<br />
</div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-11057414941550654722011-04-12T17:50:00.004+03:002011-06-03T20:40:49.212+03:00Add the new position {loadposition position_name} automatically in the Article<div dir="ltr" style="text-align: left;" trbidi="on"><br />
The previous lesson showed how to <a href="http://joompal.blogspot.com/2011/03/add-new-module-position-inside-article.html">Add a new module position Inside an Article</a>. In this article we will explain how to add <b>{loadposition position_name} </b>sentence <b>automatically</b> .<br />
<br />
The first idea is to print this code when creating <b>a new Article</b>, that means when we click on "add new" the code appears in the editor as this:<br />
<a name='more'></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSOsdcJNamWr5sZsLygGaVN1SLyhrP9Ag_Z7_LTwtkpJ4zzyvr3SCaUlBJIYnaaDrgVBEpdsdGddStso5trUu7PufcqTDjlm0eF9PIQXVWKd5bQ0KvNM6wqm0SfIp-6Pdt0Q9Qm1AQlfz1/s1600/ar.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSOsdcJNamWr5sZsLygGaVN1SLyhrP9Ag_Z7_LTwtkpJ4zzyvr3SCaUlBJIYnaaDrgVBEpdsdGddStso5trUu7PufcqTDjlm0eF9PIQXVWKd5bQ0KvNM6wqm0SfIp-6Pdt0Q9Qm1AQlfz1/s1600/ar.PNG" /></a></div><br />
<br />
<br />
<br />
Open the file:<br />
<b>/administrator/components/com_content/admin.content.html.php<br />
</b><br />
and find the following code:<br />
<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> <span class="Apple-style-span" style="background-color: #f3f3f3;"> </span></span><span class="Apple-style-span" style="background-color: #f3f3f3;"><?php</span><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><span class="Apple-tab-span" style="white-space: pre;"> </span>// parameters : areaname, content, width, height, cols, rows</span><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><span class="Apple-tab-span" style="white-space: pre;"> </span>echo $editor->display( 'text', $row->text , '100%', '550', '75', '20' ) ;</span><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><span class="Apple-tab-span" style="white-space: pre;"> </span>?></span><br />
<br />
<br />
We need a <b>condition</b> to check if we are <b>adding new article</b> not opening old one to edit. If we don't add this condition then the code <b>{loadposition related_position }</b> will be added each time we update the article.<br />
<br />
One way is to check the value of "<b>$row->text</b>" variable, when it is empty that means its new article.<br />
<br />
<br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><?php</span><br />
<br />
<div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"><span class="Apple-style-span" style="background-color: #f3f3f3;">// parameters : areaname, content, width, height, cols, rows</span></div><br />
<br />
<span class="Apple-style-span" style="background-color: #cccccc;">if ( $row->text == '' ) {echo $editor->display( 'text', $row->text.'{loadposition related_position }' , '100%', '550', '75', '20' ) ;}</span><br />
<span class="Apple-style-span" style="background-color: #cccccc;">else</span><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;">{echo $editor->display( 'text', $row->text , '100%', '550', '75', '20' ) ;}</span><br />
<div><br />
</div><div>?></div><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><br />
</span><br />
<span class="Apple-style-span" style="background-color: #f3f3f3;"><br />
</span></div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-48549021241552608542011-04-08T20:13:00.007+03:002011-06-03T20:41:01.401+03:00How to limit the number of characters in the Summary textarea field<div dir="ltr" style="text-align: left;" trbidi="on">Version: <strong>Drupal 7</strong><br />
<span lang="AR-JO"> </span><br />
You need to restrict the length of Article summary to avoid a very long one.<br />
One way is to use this <strong>script</strong>: <br />
<a name='more'></a><br />
<div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"></div><pre style="line-height: 12pt;"><span style="background-color: #f3f3f3; color: black; font-family: 'Courier New'; font-size: small;"><script>
function limitText(limitField, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum);
}
}
</script></span></pre><pre style="line-height: 12pt;"><span style="background-color: #f3f3f3; color: black; font-family: 'Courier New'; font-size: small;"><form >
<textarea rows="5" cols="30" onKeyDown="limitText(this,20);"
onKeyUp="limitText(this,20);">
</textarea>
</form></span></pre><pre style="line-height: 12pt;"><span style="color: black; font-family: 'Lucida Console'; font-size: 9pt;"></span> </pre><pre style="line-height: 12pt;"><span style="color: black; font-family: Arial, Helvetica, sans-serif;">The script limit the number of characters, and check the length while writing not after submitting the Article.</span></pre><pre style="line-height: 12pt;"><span style="color: black;"></span><span style="font-family: Arial, Helvetica, sans-serif;"> </span></pre><pre style="line-height: 12pt;"><span style="color: black; font-family: Arial, Helvetica, sans-serif;">Test it and try to enter more than<strong> 20 </strong>characters:</span></pre><br />
<script>
function limitText(limitField, limitNum) {
if (limitField.value.length > limitNum) {
limitField.value = limitField.value.substring(0, limitNum);
}
}
</script><br />
<br />
<form name="myform"><textarea cols="30" onkeydown="limitText(this,20);" onkeyup="limitText(this,20);" rows="5"><br /> </textarea></form><br />
<br />
Now the important step: is <strong>Where to add this?</strong><br />
<br />
Open the file:<br />
<div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><strong><em><span dir="ltr" style="color: #013541; font-family: Verdana; font-size: 9pt;">modules/field/modules/text/text.module</span></em><span dir="ltr"></span></strong></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">find the following code:</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="background-color: #f3f3f3;">'#description' => t('Leave blank to use trimmed value of full text as the summary.'),</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> '#attached' => array(</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> 'js' => array(drupal_get_path('module', 'text') . '/text.js'),</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> ),</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> '#attributes' => array('class' => array('text-summary')),</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> '#prefix' => '</span><span style="background-color: #f3f3f3;"><div class="text-summary-wrapper">',</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> '#suffix' => '</div>',</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> '#weight' => -10,</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> );</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> // Fall through to the next case.</span><span dir="rtl" lang="AR-JO"></span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><strong>1.Adding the two events </strong></div><pre style="line-height: 12pt;"><span style="color: black; font-family: 'Lucida Console'; font-size: 9pt;">onKeyDown="limitText(this,20);" </span></pre><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="color: black; font-family: 'Lucida Console'; font-size: 9pt;">onKeyUp="limitText(this,20);"</span></div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">update the following sentence <br />
<span style="background-color: #f3f3f3;"> '#attributes' => array('class' => array('text-summary')),<span dir="rtl" lang="AR-JO"></span></span><br />
<div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"> to be </div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="background-color: #f3f3f3;"> '#attributes' => array('class' => array('text-summary')<span style="background-color: #cccccc;">, 'onKeyDown' =>array('limitText(this,200);'), 'onKeyUp'=> array('limitText(this,200);')</span>),<span dir="rtl" lang="AR-JO"></span></span></div><br />
change <strong>200</strong> to the number of characters you want.<br />
<br />
<br />
<strong>2.Adding the script</strong><br />
we'll add it before the code of the summary textarea.<br />
<br />
Update:<br />
<div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"> '#prefix' => '</span><span style="background-color: #f3f3f3;"><div class="text-summary-wrapper">',</span><span dir="rtl" lang="AR-JO"></span></div>to be<br />
<br />
<div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"> <span style="background-color: #f3f3f3;"> </span><span style="background-color: #f3f3f3;">'#prefix' => '</span><span style="background-color: #cccccc;"><script><span dir="rtl" lang="AR-JO"></span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span style="background-color: #cccccc;">function limitText(limitField, limitNum) {<span dir="rtl" lang="AR-JO"></span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #cccccc;"> if (limitField.value.length > limitNum) {<span dir="rtl" lang="AR-JO"></span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #cccccc;"> limitField.value = limitField.value.substring(0, limitNum);<span dir="rtl" lang="AR-JO"></span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #cccccc;"> } <span dir="rtl" lang="AR-JO"></span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #cccccc;">}<span dir="rtl" lang="AR-JO"></span></span></div><div class="MsoNormal" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span><span style="background-color: #f3f3f3;"><span style="background-color: #cccccc;"></script></span><div class="text-summary-wrapper">',<span dir="rtl" lang="AR-JO"></span></span></div><br />
<br />
Enjoy ....</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><span dir="ltr"></span><span dir="ltr"></span> </div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-34998131521922649342011-04-08T03:19:00.002+03:002011-06-03T20:41:10.075+03:00Always show the summary field in "add content" form<div dir="ltr" style="text-align: left;" trbidi="on">Version: <strong>drupal 7</strong><br />
<span lang="AR-JO"> </span><br />
<div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">Its difficult for new users to notice the <strong>summary field</strong> in <strong>add article form</strong> or in adding new node.</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">You can edit the form to always show the<strong> summary field</strong> and <strong>hide </strong><span dir="ltr"><strong>Edit/Show Summary</strong> links.</span><span lang="AR-JO"></span></div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><a name='more'></a><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><span dir="ltr">Simply open the following file:</span></div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><span dir="ltr"><strong>modules/field/modules/text/text.js</strong></span></div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;">Delete or comment the following code:</div><div class="MsoNormal" dir="ltr" style="direction: ltr; margin: 0cm 0cm 0pt; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><span dir="ltr"><span style="background-color: #f3f3f3;"> <span style="color: red;"> // Setup the edit/hide summary link.</span><br />
<span style="color: red;"> /*</span> var $link = $('<span class="field-edit-link">(<a class="link-edit-summary" href="#">' + Drupal.t('Hide summary') + '</a>)</span>').toggle(<br />
function () {<br />
$summary.hide();<br />
$(this).find('a').html(Drupal.t('Edit summary')).end().appendTo($fullLabel);<br />
return false;<br />
},<br />
function () {<br />
$summary.show();<br />
$(this).find('a').html(Drupal.t('Hide summary')).end().appendTo($summaryLabel);<br />
return false;<br />
}<br />
).appendTo($summaryLabel);<span style="color: red;">*/</span></span></span></div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5nZUHKNoMpCx8b1A_anzCLnVHhiOZQswjkU8LggtBf_Wd_fpODFRu3XcGUups4ZDivb4Fl07nEEz92aooFu3euF-EzS2d4jtF5t-kdkLp-B3vZGe0pG0tNWl-M0D7A4nkJbmFdSImlpV1/s1600/summary.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="372" r6="true" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5nZUHKNoMpCx8b1A_anzCLnVHhiOZQswjkU8LggtBf_Wd_fpODFRu3XcGUups4ZDivb4Fl07nEEz92aooFu3euF-EzS2d4jtF5t-kdkLp-B3vZGe0pG0tNWl-M0D7A4nkJbmFdSImlpV1/s640/summary.png" width="640" /></a></div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div><div class="MsoNormal" dir="rtl" style="margin: 0cm 0cm 0pt;"><br />
</div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-15953240197834192612011-04-07T21:29:00.003+03:002011-06-03T20:41:15.949+03:00Adding a New Drupal Block Position<div dir="ltr" style="text-align: left;" trbidi="on"><div>Version: <strong>drupal 7</strong></div><br />
<div>This article describes a simple way to define a new region in your theme. </div><div>Let's assume that we need to place a block above the main menu, as advertisement or news bar. <br />
<a name='more'></a></div><br />
<div></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs4JT3eoYgoO4z1AfjOBgluaysNGh87-yvVC1c6K4cKLf3Ddsaxf2s1j2Y6rV9B_6q9qt2_IjiCsyXHaTgvFQCd4r9L1UGeUKk4lyoGhDj5iS6QN16lCxhQis_H6FTa4Tz6J2PUg01l7ZW/s1600/above3.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5592913043785777602" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjs4JT3eoYgoO4z1AfjOBgluaysNGh87-yvVC1c6K4cKLf3Ddsaxf2s1j2Y6rV9B_6q9qt2_IjiCsyXHaTgvFQCd4r9L1UGeUKk4lyoGhDj5iS6QN16lCxhQis_H6FTa4Tz6J2PUg01l7ZW/s320/above3.png" style="cursor: hand; display: block; height: 257px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a> <br />
<div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlC6AMTTs7Gns2Ht_6hrWZzdQiGcjsg1KfTd-m3EEaccVKJ-FhJ6pjWRBAXFPjdGT8JufudXMvGGV5VqtlCM32nA92WRAhOEkSQJQvRo1nhoL-equH7s7E1Wr-IvhMHFtkOxsqYi8EdTw6/s1600/above3.png"></a><strong>1- First open the info file for your theme. </strong></div><br />
<div>For example if you use the " analytic " theme, then open analytic.info file: </div><br />
<div>sites/all/themes/analytic/analytic.info </div><br />
<div></div><br />
<div>we'll call the new region : above menu </div><br />
<div></div><br />
<div>So<strong> add a definition for this region</strong> in the file and write:<strong> regions[above_menu] = Above</strong> <strong>Menu </strong></div><strong></strong><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_8E5Eo8QlN-JdW3Q4aVFcteRlgNTDFubENU4E_DuBs_YrAeGz4Bu4ONfl4KbxZieyIWnmtlZDlh378fcZiOydFTsZgk3S3oSLo2qM85cZzSp6Pi1DrxqGkkzLl_Q-DjyUTgIcC-T1DocY/s1600/above2.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5592913531502231042" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_8E5Eo8QlN-JdW3Q4aVFcteRlgNTDFubENU4E_DuBs_YrAeGz4Bu4ONfl4KbxZieyIWnmtlZDlh378fcZiOydFTsZgk3S3oSLo2qM85cZzSp6Pi1DrxqGkkzLl_Q-DjyUTgIcC-T1DocY/s320/above2.png" style="cursor: hand; display: block; height: 201px; margin: 0px auto 10px; text-align: center; width: 312px;" /></a> <br />
<div><strong></strong></div><br />
<div></div><br />
<div><strong>2- Now all you need is to add the code to print the content of this region.</strong></div><br />
<div>Open <strong>page.tpl.php </strong>file and find the code that print the menu: "main menu " , add the following code <strong>above</strong> it:</div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9nztTwFttiVbGDym-m9SyPXLkLzyupHlJBVEw81vg7kVyIocfCOA7J1sm_V-PNHhVV2beCU7akCcZH5OQRyfz-V4JOdYaH652R8QSAk0JQSV_URJR38PVcB5i8fN1EEAtpqpfhgyE-SKd/s1600/above.png"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5592914266792222722" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9nztTwFttiVbGDym-m9SyPXLkLzyupHlJBVEw81vg7kVyIocfCOA7J1sm_V-PNHhVV2beCU7akCcZH5OQRyfz-V4JOdYaH652R8QSAk0JQSV_URJR38PVcB5i8fN1EEAtpqpfhgyE-SKd/s320/above.png" style="cursor: hand; display: block; height: 171px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a> <br />
<div>That's all.. Go to structure --> Blocks , you'll find new <strong>"Above Menu " </strong>region. </div><br />
<div>Add your block in this region and enjoy!! </div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOk9LfJ_3Ylu0q2ntfXAk3n-DACTfuf7U1wBlLQiopJCBCEHqV3P_bpQl2KkpxK3bYZTQvzomLFDoil-ce_wvh4YHj7oxCkiu-HY2cAf2zwrZUdrcemfT3fg5bkQl44QLzgSJcGjyo5zIX/s1600/above4.PNG"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5592916760066975362" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOk9LfJ_3Ylu0q2ntfXAk3n-DACTfuf7U1wBlLQiopJCBCEHqV3P_bpQl2KkpxK3bYZTQvzomLFDoil-ce_wvh4YHj7oxCkiu-HY2cAf2zwrZUdrcemfT3fg5bkQl44QLzgSJcGjyo5zIX/s320/above4.PNG" style="cursor: hand; display: block; height: 56px; margin: 0px auto 10px; text-align: center; width: 320px;" /></a> <br />
<div></div><br />
<div></div></div>GHEEDhttp://www.blogger.com/profile/06250929341934028886noreply@blogger.comtag:blogger.com,1999:blog-7721291686996356312.post-16654326215073683312011-03-29T00:47:00.002+02:002011-06-03T20:41:27.320+03:00Add a new module position Inside an Article<div dir="ltr" style="text-align: left;" trbidi="on"><span style="font-size: 12pt; font-weight: normal;"> </span><span class="Apple-style-span" style="font-size: 16px; line-height: normal;"><span class="Apple-style-span" style="font-weight: normal;">In this article I will explain how to </span>add modules in your Article content <span class="Apple-style-span" style="font-weight: normal;">. </span></span><br />
<h1 style="font-size: medium; line-height: 16.8pt; margin: 0cm 0cm 0pt;"></h1><h1 style="font-size: medium; font-weight: normal; margin: 0cm 0cm 0pt;"><span class="apple-style-span"><span style="font-size: 12pt; font-weight: normal;">There are many reasons to do this, for example:</span></span><span style="font-size: 12pt;"></span></h1><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; margin-left: 72pt; text-align: left; text-indent: -18pt; unicode-bidi: embed;">1.<span style="font-family: 'Times New Roman';"> </span><span dir="ltr">Adding related or relevant headlines for the article, directly after the Article and before comment.</span></div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; margin-left: 72pt; text-align: left; text-indent: -18pt; unicode-bidi: embed;">2.<span style="font-family: 'Times New Roman';"> </span><span dir="ltr">Show advertisement (or<span class="apple-converted-space"> </span><strong>AdSense</strong><span class="apple-converted-space"><b> </b></span><span class="apple-style-span">module)</span><span class="apple-converted-space"> </span>after (or inside) the article. However there is a simpler way to do that, we will explain it later in other lesson.</span></div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;"><a name='more'></a><br />
</div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;">First let's see the simple steps to<span class="apple-converted-space"> </span><b>define a new module position</b>. We will take<span class="apple-converted-space"> </span><span class="apple-style-span">an example for the module,</span><span class="apple-style-span"> <b>R</b></span><strong>elated Blus</strong><span class="apple-style-span"> </span><span class="apple-converted-space"> </span><span class="apple-style-span">, and place it after the Article.</span></div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;"><br />
</div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><b>First: check that the </b></span><span class="Apple-style-span" style="font-size: 16px; line-height: 16px;">"Content - Load Module" </span><b> plugin is enabled.</b></div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;"><br />
</div><h3 style="direction: ltr; font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span style="font-family: 'Times New Roman'; font-size: 12pt; font-weight: normal;">Go to</span></span><span style="font-family: 'Times New Roman'; font-size: 12pt;"></span></h3><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm 11.25pt;">Extensions > Plugin Manager and open<span class="apple-converted-space"><b> </b></span><b>"Content - Load Module"<span class="apple-converted-space"> </span></b>plugin. Enable it and on the right change the Style to<span class="apple-converted-space"> </span><b>"No wrapping - raw output"</b>.</div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-weight: normal;"></span></span><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsS8rTHAPAZb14hEmvFSi7U78GoMq7t8Db5Z0fQ5VcroWs69kQtwAeB_kbDV9lxwSobgXSEXMzqlk1ddOIReL10qUdTFj2hZwLLUbF7KTaJAK2uidT9Ycac6t2kNOpHuyXUNw3lvm-8pNc/s1600/pic2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsS8rTHAPAZb14hEmvFSi7U78GoMq7t8Db5Z0fQ5VcroWs69kQtwAeB_kbDV9lxwSobgXSEXMzqlk1ddOIReL10qUdTFj2hZwLLUbF7KTaJAK2uidT9Ycac6t2kNOpHuyXUNw3lvm-8pNc/s1600/pic2.png" /></a></div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm 11.25pt;"><br />
</div><h3 style="direction: ltr; font-size: medium; line-height: 12pt; margin: 7.5pt 0cm; text-align: left; unicode-bidi: embed;"><span class="apple-style-span"><span style="font-family: 'Times New Roman'; font-size: 12pt;">Second:</span></span><span class="apple-converted-space"><span style="font-family: 'Times New Roman'; font-size: 12pt;"> </span></span><span style="font-family: 'Times New Roman'; font-size: 12pt;">Open the Module you want to place after the Article ("<span class="apple-style-span">R</span><strong>elated Blus" in our example).</strong></span></h3><h3 style="direction: ltr; font-size: medium; line-height: 12pt; margin: 7.5pt 0cm; text-align: left; unicode-bidi: embed;"><span style="font-family: 'Times New Roman'; font-size: 12pt;"><strong></strong><span class="apple-style-span"> </span></span><span style="font-family: 'Times New Roman'; font-size: 12pt;"></span></h3><h3 style="direction: ltr; font-size: medium; line-height: 12pt; margin: 7.5pt 0cm; text-align: left; unicode-bidi: embed;"><span style="font-family: 'Times New Roman'; font-size: 12pt;">Third: chose the new "Module Position" name.</span><span style="font-family: 'Times New Roman'; font-size: 12pt;"></span></h3><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;">You can write any name for the position and be careful not to use any existing name in your template.</div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;">Let's call it for example:<span class="apple-converted-space"> </span><b>related_position</b></div><div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;"><br />
</div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMWECv3sxmgNPliHV_fetBk2T-x5qfP0gR17QzAb1BbTpELvpu9QKvJ5GBfFJ-Pajw-vMqOR8deVwWZFe-Q71c7w-Z14MdO6xtVmkTRPwykGsW5PVqPS1LJqc2cQRjbrDu6TBEe3CUdvO5/s1600/pic3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="161" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMWECv3sxmgNPliHV_fetBk2T-x5qfP0gR17QzAb1BbTpELvpu9QKvJ5GBfFJ-Pajw-vMqOR8deVwWZFe-Q71c7w-Z14MdO6xtVmkTRPwykGsW5PVqPS1LJqc2cQRjbrDu6TBEe3CUdvO5/s320/pic3.png" width="320" /></a></div><h3 style="direction: ltr; font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm; text-align: left; unicode-bidi: embed;"><span style="font-family: 'Times New Roman'; font-size: 12pt;"></span></h3><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm 11.25pt;"><br />
</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm 11.25pt;"><br />
</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm 11.25pt;"><b>Finally: Add new Article, and write the following sentence in the position you want the related module to appear (after the article in out example).</b></div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-weight: normal;"></span></span><br />
<div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;"><br />
</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;">{loadposition<span class="apple-converted-space"> </span><b>position_name</b>}</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;"><br />
</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;">In our example we will write:</div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-weight: normal;"></span></span><br />
<div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;"><br />
</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;">{loadposition<span class="apple-converted-space"> </span>related_position<span class="apple-converted-space"> </span>}</div><div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 7.5pt 0cm 11.25pt;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeqecOPcaoLK65kiXzMevQJwipdSIoKdtGvHSFfyo6WNPLfoeCQHNI0RCdf2_668j7zi57rMr5muyVckPjF2K5Q6QYm6sY-8zbaWuQN2cMV2XoUTefMg5oVpRtRg86FyvAnhxuSs_4JHrw/s1600/pic5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="391" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeqecOPcaoLK65kiXzMevQJwipdSIoKdtGvHSFfyo6WNPLfoeCQHNI0RCdf2_668j7zi57rMr5muyVckPjF2K5Q6QYm6sY-8zbaWuQN2cMV2XoUTefMg5oVpRtRg86FyvAnhxuSs_4JHrw/s400/pic5.png" width="400" /></a></div><br />
Now you can place any module in your article<span class="apple-converted-space"> </span><b>(After, Inside or Before the Article)</b>.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRT9VqQeh_riCcAVh6XG-oeoYy9AkPOCHUw_7xhZz_QaPhmQfJOdXJBIeU8xnxWc_5tmPUXUXYYB0L-Pz3NGF19T98yZenIIvngSEWgg6M-ZAokAADtSNVd2QB7C9Ky9Wb9E9mACoo0b3/s1600/result.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="290" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWRT9VqQeh_riCcAVh6XG-oeoYy9AkPOCHUw_7xhZz_QaPhmQfJOdXJBIeU8xnxWc_5tmPUXUXYYB0L-Pz3NGF19T98yZenIIvngSEWgg6M-ZAokAADtSNVd2QB7C9Ky9Wb9E9mACoo0b3/s400/result.png" width="400" /></a></div><br />
</div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-weight: normal;"></span></span><br />
<div class="MsoNormal" style="direction: ltr; font-size: medium; font-weight: normal; text-align: left; unicode-bidi: embed;"> In the next lesson we will see how to<span class="apple-converted-space"> </span><b>add the position automatically in the Article</b><span class="apple-converted-space"> </span>instead of put it manually in each article. There are several ways to do this,<span class="apple-converted-space"> </span>so you can pick the easier for you or the one which works with your code and meets your need.</div><span class="Apple-style-span" style="font-size: small;"><span class="Apple-style-span" style="font-weight: normal;"></span></span><br />
<div style="font-size: medium; font-weight: normal; line-height: 12pt; margin: 0cm 0cm 0pt;"><br />
</div></div>MiraGehttp://www.blogger.com/profile/15419192877143220156noreply@blogger.com