running Tomato in client bridge mode
Log into the tomato interface and navigate to Basic > Network
Change the client routers IP address to a value within the primary router’s subnet. In my case I set it to 192.168.1.50 (the primary routers subnet was 192.168.1.2 to 192.168.1.51
Hit the save button.
Now, enable wireless and change the wireless mode to wireless ethernet bridge.
Type in the ssid of the primary router and match the security logins.
Hit save.
Disable and re-enable the client computers ethernet adaptor. In windows 7 I did this manually by clicking control panel > system > device manager > network adaptors > (my ethernet adaptor) disabling it, then re-enabling it
Installing XBMC on Acer Aspire Revo 3700 (Part 2)
This tutorial follows on from an earlier tutorial that can be found HERE.
To get Wifi working, follow this procedure:
sudo apt-get install wireless-tools wpasupplicantsudo apt-get install python-software-properties
sudo add-apt-repository ppa:markus-tisoft/rt3090
sudo apt-get update
sudo apt-get install rt3090-dkmssudo apt-get install wicd-curses
Reboot by typing sudo su the reboot now. Once the computer has booted, type wicd-curses
You will notice that during the installation you will get an error: starting network connection manager wicd failed.
wpa_passphrase your_essid your_ascii_key
* replace the information with your own login details. For instance, my network (or essid) is called homenet, and my wpa passkey is monkey. So I would have typed in the following:
wpa_passphrase homenet monkey
The result should be something similar to the following:
network={
ssid="homenet"
#psk="monkey"
psk=ffe1b80746215def132a6afa2f192c90f5bed672b5793f17362086a7624ebe9d
}
Notice the last line. This is your passkey displayed in a hex value. You will need to write this down.
sudo pico /etc/network/interfacesauto wlan0
iface wlan0 inet dhcp
wpa-ssid Wireless Home
wpa-ap-scan 1
wpa-proto WPA #RSN
wpa-pairwise TKIP #CCMP
wpa-group TKIP #CCMP
wpa-key-mgmt WPA-PSK
wpa-psk ffe1b80746215def132a6afa2f192c90f5bed672b5793f17362086a7624ebe9dHit CNTRL X to save this information.
sudo /etc/init.d/networking restart
By typing ifconfig we can validate that we’re connected to the network.
Handy terminal commands
sudo su
Exectues commands as super user.
reboot now
Reboots the computer
iwconfig
Detects network extensions
sudo iwlist scan
Scans for networks
Installing XBMC on Acer Aspire Revo 3700 (Part 1)
Here are the steps I have used to install XBMClive. At the time of writing, all these steps have worked for me.
All done! The next tutorial (Which I am still yet to write) will explain how to get your wi-fi connection up and running.
In part 2, we will connect the Revo to a wifi network.
VIRTUEMART: Replace “update” & “delete” buttons in shopping cart
To replace the images used for “Update” and “Delete” with a text button:
Find the file: administrator/components/com_virtuemart/html/basket.php
Look for the line:
_('PHPSHOP_CART_UPDATE') .'" src="'. VM_THEMEURL .'images/update_quantity_cart.png" border="0" alt="'. $VM_LANG->_('PHPSHOP_UPDATE') .'" align="absmiddle" />
and replace with:
_('PHPSHOP_CART_UPDATE') .'" />
.htaccess redirecting to a new domain
Redirect Old domain to New domain (htaccess redirect)
Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
Please REPLACE www.newdomain.com in the above code with your actual domain name.
In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.
Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
VIRTUEMART: Modifying the Quantity options on product flypages.
To change things such as the text “Qantity” to “Qty”:
Options for the variable pricing drop down menu can be found at:
components/com_virtuemart/themes/default/template/productdetails/includes/addtocart_advanced_attribute.tpl.php
Options for the quantity / Add to cart button can be found at
components/com_virtuemart/themes/default/template/productdetails/includes/quantity_box_general.tpl.php
Centering a horizontal un-ordered list
This is a great example of how to center a horizontally displayed list without using tables. It’s a great way to do footer menu’s.
In this example, the UL is contained in a div container with the class “footerMenu”
.footerMenu {
float:left;
width:100%;
overflow:hidden;
position:relative;
}
.footerMenu ul {
clear:left;
float:left;
list-style:none;
margin:0;
padding:0;
position:relative;
left:50%;
text-align:center;
}
.footerMenu li {
border-left:#FFF 1px solid;
float:left;
list-style:none;
position:relative;
right:50%;
padding: 0 10px;
}
.footerMenu li a {
color:#fff;
text-decoration:none;
}
.footerMenu li a:hover, .footerMenu li a:active, .footerMenu li a:focus {
color: #fff;
text-decoration:underline;
}
.footerMenu ul :first-child {
border-left: 0;
padding-left: 0;
}
IE Reset CSS
/* Reset CSS */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
vertical-align: baseline;
background: transparent;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: ”;
content: none;
}
:focus {
outline: 0;
}
ins {
text-decoration: none;
}
del {
text-decoration: line-through;
}
.clear {
clear: both;
line-height: 0;
font-size: 0;
}
Conditional Statements
With this example for Joomla, I want to have a condition for every page except the front page:

To make this apply for Search results (for instance, you might not want a module position displayed when the search results are displayed), just modify the code so: (‘view’)!=’search’
also – make sure to add style=”xhtml” – this ensure that module headings are wrapped in a h3 tag.
With this example for WordPress, I want to give the frontpage it’s own unique body class:

leave a comment