EspañolEnglish (United Kingdom)

"Web Joomla a medida para tu empresa..."

rss facebook twitter digg youtube vimeo linkedin flickr
Joomla! Projects Blog
29
Oct
2009
Addtocart in Virtuemart browse page PDF Print E-mail
Written by kim1   

I'm working on a template that I have been asked and required a unique way to Virtuemart where apart from the categories (browse_X.php) one could see the button addtocart, well I've finally found a solution is to modify two files, the first administrator / components / com_virtuemart / html / shop.browse.php on line 410:

  & &! Ps_product: product_has_attributes ($ db_browse-> f ('product_id'), true) 

Here change the value of screening to false or comment the entire line.

Then browse our Web site will seek appropriate to display the button and type:

  <? Php echo $ form_addtocart?> 

And we are ready and we add to cart button on the category listing page and if this set even the form of increasing the number of products.

Add a comment
 
29
Oct
2009
Completely disable the mails to new users PDF Print E-mail
Written by kim1   

I've been working on a website using the user manager as a customer database for mass mailing component and though having turned off the email system for recording and for those specific users always received the mail that warned them who had been discharged by showing them your login.

Drastic solution to remove any mail users from the component is com_users administrator / components / com_users / controller.php line from 175 to 189 lasi:

  / * If ($ isNew) ( 
  $ AdminEmail = $ me-> get ('email'); 
  $ AdminName = $ me-> get ('name'); 
  $ Subject = JText ::_(' NEW_USER_MESSAGE_SUBJECT '); 
  $ Message = sprintf (JText ::_(' NEW_USER_MESSAGE '), $ user-> get (' name '), $ SiteName, JURI:: root (), $ user-> get (' username '), $ user- > password_clear) 
  if ($ MailFrom! =''& & $ FromName! ='') 
  ( 
  $ AdminName = $ FromName; 
  $ AdminEmail = $ MailFrom; 
  ) 
  JUtility:: sendmail ($ adminEmail, $ adminName, $ user-> get ('email'), $ subject, $ message); 
  ) * / 

In this way we ensure that nobody received any mail from the system during the registration process, of course this is a hack to the administrative side so we can not use Template Override in future updates so we must consider this fact.

Add a comment
 
28
Oct
2009
Constants JPath in Joomla! PDF Print E-mail
Written by kim1   

When we develop any extensions to Joomla! 1.5 to UNDAF must use different routes to files, directories, etc ... JPath object helps us to make absolute paths dynamically, these constants are defined in includes / defined.php, this being the default:

DS - Used as a slash or backslash, depending on the server operating system.

JPATH_ADMINISTRATOR - abosulto path directory administrator.

JPATH_BASE - absolute path to the directory where the application.

JPATH_CACHE - abosulto path to the directory cache.

JPATH_COMPONENT - absolute Path to the directory from which the component method is used.

JPATH_COMPONENT_ADMINISTRATOR - absolute Path to the component in the administrative

JPATH_COMPONENT_SITE - absolute path to the component front-end

JPATH_CONFIGURATION - path to the configuration file configuration.php

JPATH_INSTALLATION - path to the installation directory

JPATH_LIBRARIES - path to the directory libraries.

JPATH_PLUGINS - absolute path to the plugins directory.

JPATH_ROOT - path to the root of our joomla.

JPATH_SITE - path to the root of our website on our server.

JPATH_THEMES - path to the templates directory.

JPATH_XMLRPC - path to XML-RPC directory.

We can also edit the file and create a new constant in our directory "uploads" for example:

  define ('JPATH_UPLOADS' JPATH_BASE. DS. 'uploads'); 

Add a comment
 
27
Oct
2009
New templates for Joomla! 1.6 PDF Print E-mail
Written by kim1   

Version 1.6 Joomla! brings us two new templates to the public on Atomic and template for the administrative part of the template bluestork both Severdia Ron , I have been looking over the Alpha 2 of the highly anticipated new Joomla! 1.6 and so far I've been fascinated with the template bluestork brings fresh air to an administration panel that we have anything seen since the advent of Joomla! 1.5 with new icons and some options in the operator's own template, display or hide the rounded corners of the modules, hides or shows the site name in the header, large text and finally has an option called "High Contrast" that We removed all the contents and sources show edges whimsical white on a black background, not sure if this is the option on whether or is to be done yet.

There are two options that I was very pleased, apparently different styles can be created on the template itself as you can do with the phpbb forum templates and there is not yet operating an icon that will allow us to change our 404 page, within soon there will be serious competition to see who has the best error page.

Add a comment
 
25
Oct
2009
Front-end component with tabs using the API for Joomla! PDF Print E-mail
Written by kim1   

I'm working on an update of component templates designed to create Joomla! 1.5 automatically, my idea is to create a tab system to separate the forms that relate to the construction of others as the XML layout to choose or colors and images.

To avoid overloading the component with javascript scripts that I offer the system using Mootools or JQuery tabs I have tried to use the API itself Joomla! that if you use the slides as in the administrative and I will tell you how.

Necsitamos First import the system tabs and slides own Joomla! use:

  jimport ('joomla.html.pane'); 

Second instantiate the object:

  $ Pane = & JPane:: getInstance ('tabs', array ('startOffset' => 0)); 

The first parameter passed is the name of our class instance and the second parameter will be the first tab being open, remember that in an array the first index is 0.

Once this is done we can go creating our tabs with appropriate class methods:

  echo $ pane-> startPane ('pane'); 
  echo $ pane-> startPanel ('tab1', 'panel1'); 
  Text tab1 
  $ echo pane-> endPanel (); 
  echo $ pane-> startPanel ('Tab2', 'panel2'); 
  Text Tab2 
  echo $ pane-> endPanel (); 
  echo $ pane-> endPane (); 

Perfect our tab system is already armed with these methods throw the xhtml required to create the tabs but have no associated style as all regarding css tabs and slides was within the template general.css khepri administration. Open the css file and copy the parameters refer to these items fortunately the css is discussed and defined and easy to locate.

Once this is done create a new css file with these data which we will call panels.css and located within the dirctorio assets / css component front-end and at the hearing itself before running all the above code will send the link of the stylesheet to the header of our template.

  JHTML:: stylesheet ('panel.css', 'components / com_xxx / assets / css /', array ('media' => 'all')); 

We have reinforced our tab system using the API of Joomla! and the same can do with the slides with few changes.

Add a comment
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Page 5 of 11