Showing posts with label Tricks. Show all posts
Showing posts with label Tricks. Show all posts

Jun 17, 2011

How to customize my templates with cool stuff



The templates I made , are simple , and easy to use , however they lack SUPER cool stuff like "read more" button , related posts , and such. Those are very , very easy to add. Because I didn't wanted to ruin the template by adding them myself , I will teach you how to do it for yourself. This is because not all users want a related post on their blog , either a "read more" button , so tastes differ.

1. Adding jump break functionality to the template.
Login to your blogger account , go to "Design" , then "Edit HTML" and then find the following :
<data:post.body/>
And after , add this :
<b:if cond='data:post.hasJumpLink'>
<div class='jump-link'>
<a expr:href='data:post.url + "#more"'><data:post.jumpText/></a>
</div>
</b:if >
How to use?
Simply start posting , make sure you use the new blogger editor , which has a lot of new features , including the jump break button... see image below:
Wherever you want the "read more" button to appear , press the "Jump Break" button , which will tell the blog , which part of your post to hide , and which part to show as "summary".

2. Adding "Related Posts"
Adding "Related Posts" is not a big secret , if you use a Classic Blogger template , but for Custom templates , you have to do the following:
Go to http://linkwithin.com  , fill the form on your right , but for the platform do not choose blogger , choose "Other" , then click Get Widget , you will be dropped in a page called "Install Widget on Other Platforms" and , you will see the code there. In the code you will see something like this : 
var link_within_site_id = 45652;
You will have to copy the ID and after that go to your blogger , Design >> Edit HTML >> make sure your "Expand Widget Templates" is checked , and find the following line :
 

<div class='post-footer'>
 or similar , you MUST find post-footer , once you found it , just before it paste the following code :

<b:if cond='data:blog.pageType == "item"'>
<script>
var linkwithin_site_id = YOUR_SITE_ID;
(function () {
var elem = document.createElement('script');
elem.type = 'text/javascript';
elem.src = 'http://www.linkwithin.com/widget.js?rand=' + Math.random();
document.getElementsByTagName('head')[0].appendChild(elem);
})();
</script>
<a href="http://www.linkwithin.com/"><img
src="http://www.linkwithin.com/pixel.png" alt="Blog Widget by LinkWithin"
style="border: 0" /></a>
</b:if>
 The "Your_Site_ID" is the ID code you just copied from the "LinkWithin" page. Now review your template , and see if it works or not.

Jun 15, 2011

Another way to disable surveys on locked websites.

This one is pretty simple , and it works mostly on all websites , but it has a backdraw , it will compromise your overall browsing experience on the site. It involves disabling Javascript in your browser. In Firefox just click Options , Content , then un-check the radio button called "Enable Javascript". This maneuver will help you block everything that uses Javascript on the webpage , including the survey , or other adds and annoying popups that uses javascript.



Hope this helps :)

Why to avoid using reCaptcha(stop spam , read books.)

I have a newly installed phpBB3 forum , and in over 2 weeks I gained at least 60 bots , just by using reCaptcha , and while they claim its harder to guess then any CAPTCHA I am sure its easier to guess then any. The best captcha you can get is making your own. Like a question , or someone to type in something from your forum display ... that's impossible to be guessed by bots , since they don't read , they just guess. vBulletin has a nice feature implemented like that already. I just wonder when phpBB will. For now the only solution I found is to delete the bots manually daily , and to use the implemented GD CAPTCHA , instead of reCaptcha.



The bots are cunning nowadays , they can even mail confirm , guess captchas , some of them has avatars , profiles , just like any of you. Also there are paid sites who pay people to spam others forums. Such as http://www.decaptcher.com , so be very careful , and use hard to guess captchas , and hire moderators :P

Jun 12, 2011

How to get lots of visitors on your blogger page.

This seems to be a good question to debate. But I'll explain it very short. In fact so short , you won't even believe it. Simply create POLLS! Yes! Polls! Now , I had this poll on the forum opening , and checked on my "traffic results" , and what do I see? 80% of visitors in the past few days came because of that poll. Why? No one knows. I know , some people would keep this a secret , but after all , I am here to share things to you , so I gonna share even my secrets.

This doesn't mean you should SPAM your blog with polls , it means sometimes a little poll , question about something interesting doesn't hurt. In fact it will bring you visitors. And here is the proof , if you don't believe me.


So that's my traffic report for today ... and as you can see 53 users came via a weird poll link in Google. Cool!

May 30, 2011

Random Posts widget for Blogger blogs.

How does it works? It uses a code called "math.random()" which reads random posts from your XML feed. I've set it to 5 , but you can modify it later.

How to use? Simply go to your blogger account , select Design , and add a new Gadget to your template. Select Javascript/Html , and position it wherever you want the Random Posts to appear.

<script type="text/javascript">
var randarray = new Array();var l=0;var flag;
var numofpost=5;function randomposts(json){
var total = parseInt(json.feed.openSearch$totalResults.$t,10);
for(i=0;i < numofpost;){flag=0;randarray.length=numofpost;l=Math.floor(Math.random()*total);for(j in randarray){if(l==randarray[j]){ flag=1;}}
if(flag==0&&l!=0){randarray[i++]=l;}}document.write(‘<ul>’);
for(n in randarray){ var p=randarray[n];var entry=json.feed.entry[p-1];
for(k=0; k < entry.link.length; k++){if(entry.link[k].rel==’alternate’){var item = "<li>" + "<a href=" + entry.link[k].href + ">" + entry.title.$t + "</a> </li>";
document.write(item);}}
}
document.write(‘<li><a href="http://dreamon.tk" target="_blank">Random posts</a></li>’);document.write(‘</ul>’);}
</script>
<script src="/feeds/posts/default?alt=json-in-script&start-index=1&max-results=1000&callback=randomposts" type="text/javascript"></script>
Have fun!


May 22, 2011

How to bypass surveys on locked sites

Cpa Content Locked.

If you want to pass by a survey on a valid web page , here is a quick solution you can do. First if open your hosts file , which is located in C:\Program Files\System32\Drivers\Etc , and add the following at the bottom of the file :

127.0.0.1        cpalead.com
This will block the popular survey site called cpalead.com , and therefore you are free to view sites that are locked via cpalead.com with a survey.

Follow this link: http://www.dreamon.tk/2011/05/how-to-change-hosts-file-in-vista.html to change your hosts file in Vista/ Windows 7

How to change hosts file in Vista / Windows 7

 If you want to edit the hosts file in Windows Vista , you might soon realize its not really possible , or it will give you a "file already in use , or cannot be saved" error. So here is the solution.

1)  Browse to Start -> All Programs -> Accessories
2)  Right click "Notepad" and select "Run as administrator"
3)  Click "Continue" on the UAC prompt
4)  Click File -> Open
5)  Browse to "C:\Windows\System32\Drivers\etc"
6)  Change the file filter drop down box from "Text Documents (*.txt)" to "All Files (*.*)"
7)  Select "hosts" and click "Open"
8)  Make the needed changes and close Notepad.  Save when prompted.

Google Images Java Trick

When you are bored , and looking for funny pictures , avatars , icons , or whatever , you surely use http://images.google.com , so here is a cool trick that you can do , and see for yourself what will happen. :)

Just search for anything , example : cat , dog , flower , etc. then press enter ... then


javascript:R= 0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images ; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math. sin(R*x1+ i*x2+x3)* x4+x5; DIS.top=Math. cos(R*y1+ i*y2+y3)* y4+y5}R++ }setInterval('A()',5); void(0)
Just copy and paste that in your browser address and press enter. Have fun!!!!

May 21, 2011

How to stop adds on web pages or any other applications.

If you surf the web , you may see that some pages exaggerate about adds. They put it on the middle of the website , or wherever it is the most visible , and you can't even use the applications without a few thousand popups. Here is where the famous "addblock" add-on comes handy in firefox , but what about other applications? Simply open your host folder which is usually in c:\windows\system32\etc\hosts , and add the address that you want to block at the end of the line.

For example ... : 127.0.0.1 adds.example.com

You can make sure their adds will never display anymore , in any application. Have fun experimenting , however bare in mind , that you are actually supporting webmasters by clicking on their adds , and if you are really a good person , then you will not block their adds , only if its really necessary.

Add Block Plus for Firefox 3.x to 4.x version , and Google Chrome.

Mar 15, 2011

How to Install Windwos XP from USB stick.

I am sure most of you wonder how to replace your current windows on a laptop that doesn't even have a CD-rom , or how to install a fresh copy on it. Well first , you need the following application http://www.911cd.net/forums//index.php?act=attach&type=post&id=1054 and then you need another PC , and a CD or DVD Rom , and a Windows Xp Cd , of course. You also need a 2.0 USB stick less then 2 Gig's or it won't work.

Here is a more detailed way and download links : (Source msfn.org )

Unpack USB_MultiBoot_10.zip to your Harddisk in a simple Path without SPACES.

Major Changes and Support:

- Basic Use Involves only Selecting XP Source Folder and USB-Drive Target
to make USB-Stick which can be used for Install of XP on Mobile PC like e.g. ASUS Eee subnotebook

- USB_MultiBoot.cmd is Vista Compatible, but requires User Account Control OFF.
The bootmgr BootSector made by PeToUSB is Detected and
Converted to NTLDR Bootsector ( No need anymore to use BootSect.exe separately )
XP as OS is Preferred for Speed of FileCopy to USB ( 10 min instead of 30 minutes for Vista OS )

- Advanced Users can make USB-MultiBoot SuperStick or Harddisk,
when selecting Multi_boot.ini and MULTI_CONTENT Source offering a large variety of
handy computer tools available via boot.ini GRUB4DOS or SYSLINUX Menu

- Siginet's RyanVM Integrator or nLite can be used to Integrate Windows UpdatePacks in the XP-Source.
http://integrator.si...ex.php?download and http://www.nliteos.com/
The Complete XP-Source is Copied to XP LocalSource Folder $WIN_NT$.~LS on USB-Drive
Take care that your XPSOURCE Folder is located on your Harddisk in a simple Path without SPACES.

- Supports the use of BTS DriverPacks located in OEM Folder on USB-Drive - http://driverpacks.net/DriverPacks/
For Install of XP on a modern system with SATA Drives it is needed to use DPsBase.exe
for Integrating in your XPSOURCE BTS DriverPack Massstorage with TXT Mode Enabled.
In that case a lot of Extra RAID SCSI and SATA Drivers (about 120 extra) are Integrated which appear in the
XP Setup BootFolder $WIN_NT$.~BT on USB-Drive and can prevent a lot of XP Install Boot Problems.
First use RyanVM Integrator and than use DPsBase to Improve your XP-Source.
The program supplies a Customised presetup.cmd and changes the winnt.sif file for use of DriverPacks.

- For USB-Harddisk use Menu Option 0) to Change USB-stick in USB-Harddisk.
Because that makes that rdummy.sys is used and this is essential for using USB-Harddisk.
rdummy.sys makes Fixed USB-Harddisk seen in XP Setup as Removable Device.

- boot.ini and winnt.sif Files and $OEM$Folder are User Selectable,
Handy for Windows 2003 and Non Standard Installs and for making MultiBoot USB-Drive
Use the supplied winnt.sif file, which is copied to file Current_winnt.sif in Folder w_sif
For Unattended Install use the build in Edit UserData Setup to give ProductKey and TimeZone.
Use for Preparing USB-Drive Only winnt.sif file without an [Unattended] Section and with MsDosInitiated="1"
The Current_winnt.sif File is adjusted for this and copied by USB_MultiBoot.cmd to $WIN_NT$.~BT folder on USB-Drive.

- OEM or nLite winnt.sif File is detected in XPSOURCE and Auto Changed for Install of XP from USB.
In that case All Setup Parameters come from XPSOURCE and therefore Empty $OEM$_X Folder is Selected.
For UNATTENDED XP Install use the build in Edit UserData Setup to Change the 8 required parameters.
Give ProductKey and TimeZone used in Current_winnt.sif Copy of your winnt.sif

- Change $OEM$ folder to your needs, which is copied to $WIN_NT$.~LS folder on USB-Drive
CMDLINES.TXT is used for making UserAccounts and install of Registry Tweaks at T-12
Info see: http://unattended.ms.../unattended.xp/
ren_fold.cmd was changed such that $OEM$\$1 and $OEM$\$$ folders are copied
as usual to systemdrive (usually C:\) and systemroot (usually C:\WINDOWS) respectively.
For anything else you want to copy from USB-Drive, you can add similar lines to ren_fold.cmd,
which is executed at T-9 by the Section SetupParams of winnt.sif file
Or Use CMDLINES.TXT and useraccounts.cmd in the $OEM$ Folder for Extra Copy Commands.

- Supports also USB-Drives having FAT32 or NTFS Format, thus overcoming the 2 GB limit of FAT Format.
NTFS Format allows larger DriveSize and is very useful for Install of XP from USB-Harddisk.
Besides NTFS Format is handy for Install of Vista from USB via GRUB4DOS chainload of bootmgr
FAT32 is extremely slow in Windows XP FileCopy during TXT Mode (has anyone an idea why ?),
whereas NTFS Format of USB-Drive makes everything go faster than with FAT Format.

In the Format Menu one can Select:
P) PeToUSB - FAT Format - Max 2 GB
Install of XP from USB in 30 minutes - Buffalo FireStix 2 GB
FAT Format Supports Direct Booting with MS-DOS using MULTI_CONTENT
Do NOT Select here FileCopy of BartPE

H) HP USB Disk Storage Format Tool V2.0.6 - NTFS Format - use X_CONTENT
Install of XP from USB in 16 minutes - Corsair Flash Voyager 4 GB USB-stick

N) No Format - Use USB-Harddisk with FAT or NTFS Format by Windows XP

Use MULTI_CONTENT Folder only with FAT Format USB-Drive
for Support of Direct Booting with MS-DOS from boot.ini Menu
Use X_CONTENT Source Folder for making NTFS or FAT Format USB-Drive
with Support of Booting from DOS Floppy Images via GRUB4DOS Menu

HP Format Tool Enables to make large USB-sticks with NTFS Format which are very useful,
but is missing the option of PeToUSB to Install BartPE on USB-Drive.
The program was changed such that BartPE http://www.nu2.nu/pebuilder/
or UBCD4Win http://www.ubcd4win.com/index.htm can be added now for all Format Options to USB-Drive
by Selecting BartPE Source Folder in the Main Menu. Remove with Cancel.
So don't use PeToUSB for Install of BartPE anymore, but only use PeToUSB to make FAT Format USB-Drive.
Using Cancel in BartPE Source Folder Selection, Disables the Install of BartPE on USB-Drive.
FileCopy to USB-Drive begins with USB Content Source Folder, followed by the XP Setup Source Folder
and finally the BartPE Source Folder is copied when a valid path was given with option 5)

- FAT32 and NTFS do not support Direct Booting into MS-DOS FREEDOS and Windows PE 2.0
Unsupported Boot Options are automatcally removed from the Menu's.
GRUB4DOS via boot.ini is in any FileSystem very powerful, especially using chainload of BootLoaders.
But GRUB4DOS also allows to Boot from MS-DOS or FREEDOS Floppy Images and to Boot from Linux.
http://grub4dos.jot.com/WikiHome
http://grub4dos.sourceforge.net/wiki/index...ub4dos_tutorial

- BootSector Files are made with dsfo / dsfi from the once with mkbt.exe copied BootSector,
instead of Install, Copy and Reset of BootSectors using mkbt.exe for making each BootSector File.
MakeBS3.cmd of jaclaz is used for making NTFS BootSector Files,
where SETUPLDR.BIN was Renamed to XPSTP according to the 5-letter limit requirement.

- Windows XP Recovery Console from USB is supported and by launching it via GRUB4DOS Menu
Booting Direct with XP Recovery Console has conflict by unwanted launching XP Setup.
The program CMDCONS_Folder.cmd can be used separately,
which makes Recovery Console folder cmdcons by parsing DOSNET.INF File.

- Overflow Control has been added by measuring DiskSize, FreeSize, XP-Source and
Multi_Content Source Folders using ASP Drive Object and Visual Basic Scripting.
SEE: http://www.w3schools...p_ref_drive.asp
http://www.robvander....com/index.html

- Excluding LANG and WIN98X Folders from Copy to USB can be Selected,
which reduces the XP-Source on USB-Drive by 135 MB
Reduction of the XP WINDOWS Folder can be achieved with nLite
but do NOT select Operating System Options-->Manual Install and Upgrade for removal.

XPSOURCE Space Saving Tips see: http://unattended.ms...xp/view/web/57/
You can Safely Remove the XPSOURCE folders:
WIN9XMIG, WIN9XUPG and WINNTUPG - This will free up 37.6 MB
LANG - 99 MB and cmpnents - 22.6 MB ( Needed for MCE / Tablet PC only )

- The Folder usb_cfg_extra provides scripts for BartPE Menu http://www.nu2.nu/pebuilder/
For the Automatic Install of Programs after Install of XP from USB
we can use a script for the very handy Windows Post-Install Wizard (WPI) http://wpiw.net/

- In WPI script there is the option to run SFC /purgecache which deletes the dll cache and
which is a very simple way to reduce the WINDOWS Folder Size by 360 MB
The Result is a XP WINDOWS Folder Size on Harddisk of only 785 MB inclusive all Updates.

- Supports Portable WinTools which run direct from GO-Menu button in a VISTA or XP environment
http://www.dirk-loss.de/win-tools.htm
http://users.pandora...USBMemStick.htm

- Direct Booting with MS-DOS from USB-stick with boot.ini Menu is prepared as follows:
You only have to add from Win98 MS-DOS BootFloppy the files IO.SYS and MSDOS.SYS to
the MULTI_CONTENT Folder and file COMMAND.COM to the folder DOS of the MULTI_CONTENT Folder.
These Hidden System Files are only visible in Windows Explorer after adjusting Tools > Folder Options

Run USB_MultiBoot.cmd and choose FAT Format with PeToUSB (max 2GB stick) and
Select Multi_boot.ini as boot.ini (option B ) and MULTI_CONTENT as Source (option 2) in the Main Menu.
The supplied config.sys of the MULTI_CONTENT folder regulates that for MS-DOS
the COMMAND.COM is found in the DOS folder so that confusion with FREEDOS is prevented.

- Direct Booting with FREEDOS from USB was Removed since there were too few cases successful.

- More Help with Bookmarks is available in the Help_Info Folder in USB_MultiBoot_10.zip

- Use of MultiBoot_10.cmd and everything in this Guide is COMPLETELY at your own risk.

Nov 8, 2010

Remove Blogger Navbar

A lot of persons asked me how to remove the blogger toolbar. Well , here is a short and easy way to remove the blogger navbar , all you have to do is , search for the following line :

 <b:skin><![CADATA[/*  
Insert this line after :
#navbar-iframe {
display: none !important;
}
Have fun , and credit goes to hubpages.com