How to rebuild all thumbnails in VirtueMart at once

As you possibly already know, it is not enough to set Dynamic Thumbnail Resizing in VirtueMart Admin Panel to ON. You also have to make several steps, to redo all thumbnails for your VirtueMart products:

  1. Go to Joomla Administrator Panel
  2. Go to VirtueMart Configuration
  3. Check the box: Enable Dynamic Thumbnail Resizing.
  4. Set your: Thumbnail Image Width and Height
  5. Delete images in resized folder.
  6. Run next query in DB:
    update jos_vm_product set product_thumb_image = product_full_image

Worked like a charm with gd library working (Dynamic Thumbnail Resizing). When setting the thumb image to full image, this will clear out all the old thumbs originally created when adding a new product. Clearing out the resized folder will delete all GD (dynamically) created thumbs. Now when gd goes to make new thumbs in resized, it will us the thumbnail set in product_thumb_image, which via sql you have set to be the full image. So it will create nice, clear, resized images!

Ofcourse your server has to have GD+ library installed and working. Most servers have it.

How To Make A Custom Twitter Feed For Your Website

Inserting JavaScript

To get your Twitter feed to pull from your latest tweet from your Twitter account, you are going to need to insert some JavaScript into the page your feed will rest in.  There are several areas where you can place this code but I, and many others, have found that the best place is to place it at the very end of your code, right before the end </body> tag.

<script src="http://twitter.com/javascripts/blogger.js" type="text/javascript"></script>
<script src="http://twitter.com/statuses/user_timeline/REPLACE.json?callback=twitterCallback2&count=1" type="text/javascript"></script>

In the code above, swap the word “REPLACE” with your account name. An example would be if your account name was “twitter.com/ChrisKirkman,” you would just place “ChrisKirkman” in there instead of the word “REPLACE.” If you do decide to display multiple tweets, instead of the one that I suggested, then all you will have to do is change where it says “count=1” to whatever number of tweets you would like to display.  Where it links to “blogger.js,” you can have your own file on your server that you link to that has the same information with some minor tweaks, if you like.

Inserting the HTML into your page

<div id="twitter_t"></div>
<div id="twitter_m">
<div id="twitter_container">
<ul id="twitter_update_list"></ul>
</div>
</div>
<div id="twitter_b"></div>

The code above references the CSS that was styled earlier on.  Based off of your layout, all of that code could be thrown into another container (or table) to allow it to work best with the rest of your layout design.

 

 

How to hide/show flash and embed using javascript

Some times I need to hide all flash and embeded objects on page (for example to make them not overlay pop-ups etc.), it can be done using next simple javascript code: (more…)

Show/hide elements on page using javascript

In between your <head> tags put this java script in (you may put it between <body> tags too): (more…)

How to add class “last” to last menu item (li) in Joomla 1.5 (mod_mainmenu)

Create new file default.php and place it in /[your_template]/html/mod_mainmenu/, add next content to it: (more…)

Unable to log into Front end and Administrator Panel of Joomla with correct login and password

Today, I’ve fixed another problem with Joomla. My client was unable to login to Joomla Administrator Panel with his correct login and password (and Super Administrator rights). Solution of this was very easy. (more…)

Replace standart Joomla MooTools with yours on front-end

To keep upwards compatibility for your Joomla Core the following example shows a solution, by clearing the Header Buffer from the scripts Joomla is adding by itself. This is a template based modification, which does work with extensions loading their own Scripts or Stylesheets into the Header Buffer. And by that also transparent and not affected by any version upgrade to your Joomla Core (more…)

How to set products per page limit in VirtueMart

Ofcourse you may change that setting in Joomla Configuration » List Length. But also it can be done in another custom way. (more…)

Conditional comments for Internet Explorer

Conditional comments only work in Explorer on Windows, and are thus excellently suited to give special instructions meant only for Explorer on Windows. They are supported from Explorer 5 onwards, and it is even possible to distinguish between 5.0, 5.5 and 6.0. (more…)

Solution for Shipper List bug(error) in VirtueMart(Joomla) Admin Panel

Guys from VirtueMart Development Team still didn’t fix next error:

Warning: Missing argument 2 for vmGet(), called in …/administrator/components/com_virtuemart/classes/ps_shipping.php on line 138 and defined in …/administrator/components/com_virtuemart/classes/request.class.php on line 26

Fix is next: (more…)

Page 2 of 3123