Learn html,php,javascript,computer and software fixes, css fixes, website designing,phpbb, computer troubleshooting, hosting




Archive for December, 2009

INTEGRATING YOUTUBE IMAGE FLOW IN DRUPAL GARLAND THEME

Sunday, December 20th, 2009

This is xmas and i thought i should just give you this for the season. Recenty i was looking for an image flow for my new blog because i wanted a way to rotate youtube videos on my blog and was lucky to find imageflow, basically this lets you search and rotate youtube videos on your page but the problem was that it came with a seperate page of its own and i wanted to integrate it into the front page of my blog www.bloggingyoutube.com. Now this is what i did in order to get it working close to what i need.

Download image flow from imageflow.nl and then upload it to the folder you would like to use it  on your server

Find and open the css file sreen.css and if you know css very well you can tweak the page the way you want , in this case i wanted to just embedd the page on my blog as part of the blog.

Find this line in your screen.css file

#imageflowstart {
max-width: 600px;
width: auto !important;
width: 600px;
min-height:310px;
height:auto !important;
height:310px;
margin-left:0px;
position: relative;
background-color:#000;
padding: 0px 0px;
text-align:center;

The highlighted margin-left:0px; should be adjusted till it fits the page the way you want, as you can see i left it at “0px” because i wanted it to align to the left of the page entirely for the embedding purpose.

Find and do the same for the  css code below;

#main {
max-width: 600px;
width: auto !important;
width: 600px;
min-height:150px;
height:auto !important;
height:150px;
margin-left:0px;
}

Please note you can manipulate the whole css file the way you want but in this case i just needed to tweak the two parts of the css code to get what i wanted.

Afterwards i used the <iframe> </iframe> tag to embedd the page where i want. Please note that the embedd parameters were  set to “0″because i wanted it to embedd neatly as part of the page without a scroll button.

Here is the embedded code below;

<iframe src="http://bloggingyoutube.com/themes/garland/index.php" style="width:500px; height: 480px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0">
</iframe> <br />

Hope this helps out.

Introducing 7-ZIP File Manager

Monday, December 14th, 2009

Have you ever tried to open up a file with the extension .rar , .tar or .zip  with no luck, well that has been handled now with the 7-ZIP file management software, it can open up all files with rare extensions. All you need to do is download the program and then go to tools ->Options and then choose the files you would like it to open automatically. This is a free software (open source) and you cant get anything  free and better.

The main features of 7-Zip

  • High compression ratio in new 7z format with LZMA compression
  • Supported formats:
    • Packing / unpacking: 7z, ZIP, GZIP, BZIP2 and TAR
    • Unpacking only: ARJ, CAB, CHM, CPIO, DEB, DMG, HFS, ISO, LZH, LZMA, MSI, NSIS, RAR, RPM, UDF, WIM, XAR and Z.
  • For ZIP and GZIP formats, 7-Zip provides a compression ratio that is 2-10 % better than the ratio provided by PKZip and WinZip
  • Strong AES-256 encryption in 7z and ZIP formats
  • Self-extracting capability for 7z format
  • Integration with Windows Shell
  • Powerful File Manager
  • Powerful command line version
  • Plugin for FAR Manager
  • Localizations for 74 languages
7-ZIP

7-ZIP

Drupal (register_global)problem

Wednesday, December 9th, 2009

So many people have problems passing through the first installation stage in Drupal and the problem is usually the error page that tells you that “register_global” is on and must be disabled. There are so many ways proposed in the Drupal documentation on how to do this but to me the one i find to be the easiest is simply creating php.ini file in your root folder. Some solutions would tell you to contact your host or do this or do that but before you go ahead, try this solution first.

Now let’s leave every other thing behind and see how this can be done;

If you meet this error, simply open up a notepad, put this text in it register_globals = off , exactly like that, then save the file as php.ini and then upload the file to your root folder and that should be the answer to your problems hopefully.

Not only do this php.ini problem apply only to Drupal, it also applies to other similar problems with similar php built database driven sites.