The following script is using blogama.org IP geolocation API to automatically generate Apache .htaccess file to deny or allow specific countries. You can put this script under crontab and the .htaccess rules will be automatically updated. Also, it can update multiple .htaccess files.
Source: http://blogama.org
Deny or allow?
First you need to understand the meaning of these two rules in the .htaccess file. If you set "deny" in the script for countries "US,CA" (USA and Canada), all traffic from USA or Canada will be blocked. On the other hand, if you set "allow" it will only accept traffic from these two countries, all others being blocked.
Countries code
You need to know the ISO country code you want to deny/allow. The list is available here.
Usage without the automated script
Go to:
http://blogama.org/country_query.php?country=CA,US&output=htaccess_deny
Where country is the list or countries, with a comma between them and output is either htaccess_deny or htaccess_allow.
How is the script working?
You will have to create a text file with all .htaccess files (with complete path) you wish to update with the script. If you have other information in your .htaccess files they will still remain there, the script will only update the portion between the tags "#COUNTRY_BLOCK_START" and "#COUNTRY_BLOCK_END".
Before you start with the script
Create a text file named htaccessfile.txt (in the WORKDIR of the script, see below). In that file, put all (existing!) .htaccess files you wish to update. For example:
More White Papers
/var/www/example.com/.htaccess
/var/www/mydomain.com/.htaccess
Script configuration
On top of the script, you will find this section. You need to modify these variables if needed:
###MODIFY THIS SECTION###
WORKDIR="/root/"
HTACCESSFILE="htaccessfile.txt"
HTACCESSBLOCK="htaccess-blocklist.txt"
TEMPFILE="htaccess.temp"
COUNTRIES="US,CA"
TYPE="allow"
#########################
WORKDIR: is a writable directory where the script will be located.
HTACCESSFILE: is the file where you will put your .htaccess paths.
HTACCESSBLOCK and TEMPFILE: are temporary file that will be deleted at the end of the script execution.
COUNTRIES: is the list of countries you wish to deny/allow, separated with a comma.
TYPE: "allow" or "deny" access to these countries.
The script
#!/bin/bash
###BLOGAMA.ORG###
###MODIFY THIS SECTION###
WORKDIR="/root/"
HTACCESSFILE="htaccessfile.txt"
HTACCESSBLOCK="htaccess-blocklist.txt"
TEMPFILE="htaccess.temp"
COUNTRIES="US,CA"
TYPE="deny"
#########################
#####DO NOT MAKE MODIFICATIONS BELOW#####
cd $WORKDIR
#Get the file from blogama.org API
wget -c --output-document=$HTACCESSBLOCK "http://blogama.org/country_query.php?country=$COUNTRIES&output=htaccess_$TYPE"
for i in $( cat $WORKDIR$HTACCESSFILE ); do
if [ -f $i ]; then
cat $i 2>&1 | grep "COUNTRY_BLOCK_START"
if [ "$?" -ne "1" ]; then #ALREADY IN HTACCESS
sed '/#COUNTRY_BLOCK_START/,/#COUNTRY_BLOCK_END/d' $i > $WORKDIR$TEMPFILE
cat $WORKDIR$HTACCESSBLOCK >> $WORKDIR$TEMPFILE
mv $WORKDIR$TEMPFILE $i
else #NOT IN HTACCESS
cat $WORKDIR$HTACCESSBLOCK >> $i
fi
fi
done
rm -f $WORKDIR$HTACCESSBLOCK
Make it executable:
chmod +x whatever_you_called_this_script
Add it to your crontab:
* * * * * /path/to/whatever_you_called_this_script >/dev/null 2>&1
Note: Use this script at your own risk. If you find any bug or see something that doesn't work as it should, please post it in the forums at Blogama.org forums.
http://www.howtoforge.com/deny-or-allow-countries-with-apache-htaccess
Blocked Counteries with their ISO
http://ipinfodb.com/country_query.php?country=AF,AR,BG,BR,CN,CZ,EE,HK,KP,KR,MD,RO,RU,TR,UZ,LV,UA&output=htaccess_deny
Dienstag, 1. September 2009
Samstag, 29. August 2009
Blocking IP Addresses Of Any Country With iptables
The API to get the IP addresses to block
First you need to know the code (ISO 3166 format) of the country you would like to block. The full list is available HERE ("http://www.blogama.org/country.txt").
Once you have the country code, you can now get the list at the following url (Afghanistan and Argentina in this example):
http://blogama.org/country_query.php?country=AF,AR
If you dont see IP addresses by lines, view the page code.
http://www.howtoforge.com/blocking-ip-addresses-of-any-country-with-iptables
---------------------
Q. How do I block an IP address or subnet under Linux operating system?
A. In order to block an IP on your Linux server you need to use iptables tools (administration tool for IPv4 packet filtering and NAT) and netfilter firewall. First you need to log into shell as root user. To block IP address you need to type iptables command as follows:
Syntax to block an IP address under Linux
iptables -A INPUT -s IP-ADDRESS -j DROP
Replace IP-ADDRESS with actual IP address. For example if you wish to block ip address 65.55.44.100 for whatever reason then type command as follows:
# iptables -A INPUT -s 65.55.44.100 -j DROP
If you have IP tables firewall script, add above rule to your script.
If you just want to block access to one port from an ip 65.55.44.100 to port 25 then type command:
# iptables -A INPUT -s 65.55.44.100 -p tcp --destination-port 25 -j DROP
The above rule will drop all packets coming from IP 65.55.44.100 to port mail server port 25.
http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/
First you need to know the code (ISO 3166 format) of the country you would like to block. The full list is available HERE ("http://www.blogama.org/country.txt").
Once you have the country code, you can now get the list at the following url (Afghanistan and Argentina in this example):
http://blogama.org/country_query.php?country=AF,AR
If you dont see IP addresses by lines, view the page code.
http://www.howtoforge.com/blocking-ip-addresses-of-any-country-with-iptables
---------------------
Q. How do I block an IP address or subnet under Linux operating system?
A. In order to block an IP on your Linux server you need to use iptables tools (administration tool for IPv4 packet filtering and NAT) and netfilter firewall. First you need to log into shell as root user. To block IP address you need to type iptables command as follows:
Syntax to block an IP address under Linux
iptables -A INPUT -s IP-ADDRESS -j DROP
Replace IP-ADDRESS with actual IP address. For example if you wish to block ip address 65.55.44.100 for whatever reason then type command as follows:
# iptables -A INPUT -s 65.55.44.100 -j DROP
If you have IP tables firewall script, add above rule to your script.
If you just want to block access to one port from an ip 65.55.44.100 to port 25 then type command:
# iptables -A INPUT -s 65.55.44.100 -p tcp --destination-port 25 -j DROP
The above rule will drop all packets coming from IP 65.55.44.100 to port mail server port 25.
http://www.cyberciti.biz/faq/how-do-i-block-an-ip-on-my-linux-server/
Freitag, 28. August 2009
Block Country.com
How to block ip address from certain country.
1. go to blockcoutnry.com
2. choose the coutnry
3. generate the ip address of the country
4. copy and paste in .htaccess file
4.1. paste after the heading of the file
order allow,deny
allow from all
4.2. delete
order allow,deny
and
5. go to the server and back up .htaccess to .htaccessess
6. upload from computer the .htaccess to the server
7. you will find the .htaccess under
public_html.
8. go to ip deny manager you should find all your new blocked ip addressess
http://www.blockacountry.com/
1. go to blockcoutnry.com
2. choose the coutnry
3. generate the ip address of the country
4. copy and paste in .htaccess file
4.1. paste after the heading of the file
order allow,deny
allow from all
4.2. delete
order allow,deny
and
5. go to the server and back up .htaccess to .htaccessess
6. upload from computer the .htaccess to the server
7. you will find the .htaccess under
public_html.
8. go to ip deny manager you should find all your new blocked ip addressess
http://www.blockacountry.com/
Donnerstag, 27. August 2009
phpBB: Count Click
PowWowPalace wrote:I install this mod today on phpbb 3.0.5 with no problems. I can't seem to get the click count to work. Excellent mod otherwise.
Place your count click as follows. (note it seems not to work with some affiliate links)
Code: Select all
{COUNT_CLICK} href="http://www.whicheversite.com">
I use a center code also and a target blank i just removed them but they can be added. http://www.phpbb.com/community/viewtopic.php?f=69&t=1146135&start=720
Place your count click as follows. (note it seems not to work with some affiliate links)
Code: Select all
{COUNT_CLICK} href="http://www.whicheversite.com">
I use a center code also and a target blank i just removed them but they can be added. http://www.phpbb.com/community/viewtopic.php?f=69&t=1146135&start=720
I would love to change that phpBB logo
Re: How to change phpbb logo...
Postby Kevin Clark » Sat Nov 08, 2008 12:19 pm
Make your new logo file and save it as a gif, jpg or png file.
Upload it to your forum/styles/stylename/imagesets folder
Open
imageset/imageset.cfg
Find
Code: Select all
img_site_logo = site_logo.gif*52*139
and edit the logo name and dimensions accordingly.
Admin panel>styles>imagesets>refresh
Then hold shift and refresh your forum index.
http://www.phpbb.com/community/viewtopic.php?f=74&t=1284695
Postby Kevin Clark » Sat Nov 08, 2008 12:19 pm
Make your new logo file and save it as a gif, jpg or png file.
Upload it to your forum/styles/stylename/imagesets folder
Open
imageset/imageset.cfg
Find
Code: Select all
img_site_logo = site_logo.gif*52*139
and edit the logo name and dimensions accordingly.
Admin panel>styles>imagesets>refresh
Then hold shift and refresh your forum index.
http://www.phpbb.com/community/viewtopic.php?f=74&t=1284695
Absolute and Relative File Paths
As simple example from my forum:
http://forum.classicremedy.com/
the image is in
/public_html/forum/classicRemedy/images/ads/
the path start with /public_html/ not /home1/mareifam/
to get to the images type
----------------------------------
When you embed an image or a link in a webpage, you can use an absolute path or a relative path in your HTML syntax.
Absolute Path
These are absolute server paths, they are relative in regards to your http document directory:
/flowers.html
/inventory/flowers.html
This absolute path is relative in regards to the world wide web:
http://yourdomain.net/flowers.html
Relative Path
The following example is relative to a file residing in the same directory:
vases.html
This relative path points to a file one directory back:
../vases.html
More Examples:
The absolute path to the main page of a typical website would be:
http://yourdomain.com/index.html
A page residing in http://yourdomain.com/inventory/flowers.html that links to your home page would use one of these absolute paths:
http://yourdomain.com/index.html
/index.html
/
The last two examples are absolute server paths, you may think of the first forward slash in these paths as representing your domain.
Note: Your main page must be named "index" but may bear any of the following file extensions: index.shtml, index.htm, index.html, index.shtm, index.php, index.cgi..., in each case using the absolute server path : / would send you to the home page.
If your html file is in /homes/redhome.html and your image file is in /images/redhome.jpg you can embed the image into the page redhome.html using an absolute path to the file:
A relative path to the same file would be:
With an absolute path, it doesn't matter where the html file calling the other file resides.
You may place redhome.html in: /pages/redhome.html and embed the image as:
With a relative path, if you place redhome.html in: /pages/redhome.html, and embed the image as:
(a relative path)
then your image file will not load. This is because redhome.html is looking for /pages/images/redhome.jpg, which does not exist.
Paths used in links work in the same manner as those used in images. For example, imagine redhome.html is in /homes/redhome.html, and it contains a relative link to bluehome.html. This link would appear as:
If you move your redhome.html file to some other directory within your website then the link will no longer work. This is because, by asking for a file via a relative link, you are telling the user agent, the browser, that the file you have created a link to is located within the same directory as that of the calling file.
Problems Using Absolute Paths with SSL
If you are borrowing use of an SSL certificate, such as the one provided free of charge to Internet Connection customers, when a webpage changes from http protocol to https (SSL), if you embed any images by absolute paths without domain names (/images/o.jpg), they will be broken.
If you embed images with full URL absolute paths (http://yourdomain.com/images/o.jpg), the images will show up, but the user will get warning messages that the page is a mix between secure and non-secure items.
On web pages that make transitions between http and https, one should use relative paths to avoid these problems.
http://support.internetconnection.net/TECHNICAL_REFERENCE/THE_WWW/Absolute_and_Relative_File_Paths.shtml
http://forum.classicremedy.com/
the image is in
/public_html/forum/classicRemedy/images/ads/
the path start with /public_html/ not /home1/mareifam/
to get to the images type
----------------------------------
When you embed an image or a link in a webpage, you can use an absolute path or a relative path in your HTML syntax.
Absolute Path
These are absolute server paths, they are relative in regards to your http document directory:
/flowers.html
/inventory/flowers.html
This absolute path is relative in regards to the world wide web:
http://yourdomain.net/flowers.html
Relative Path
The following example is relative to a file residing in the same directory:
vases.html
This relative path points to a file one directory back:
../vases.html
More Examples:
The absolute path to the main page of a typical website would be:
http://yourdomain.com/index.html
A page residing in http://yourdomain.com/inventory/flowers.html that links to your home page would use one of these absolute paths:
http://yourdomain.com/index.html
/index.html
/
The last two examples are absolute server paths, you may think of the first forward slash in these paths as representing your domain.
Note: Your main page must be named "index" but may bear any of the following file extensions: index.shtml, index.htm, index.html, index.shtm, index.php, index.cgi..., in each case using the absolute server path : / would send you to the home page.
If your html file is in /homes/redhome.html and your image file is in /images/redhome.jpg you can embed the image into the page redhome.html using an absolute path to the file:
A relative path to the same file would be:
With an absolute path, it doesn't matter where the html file calling the other file resides.
You may place redhome.html in: /pages/redhome.html and embed the image as:
With a relative path, if you place redhome.html in: /pages/redhome.html, and embed the image as:
(a relative path)
then your image file will not load. This is because redhome.html is looking for /pages/images/redhome.jpg, which does not exist.
Paths used in links work in the same manner as those used in images. For example, imagine redhome.html is in /homes/redhome.html, and it contains a relative link to bluehome.html. This link would appear as:
If you move your redhome.html file to some other directory within your website then the link will no longer work. This is because, by asking for a file via a relative link, you are telling the user agent, the browser, that the file you have created a link to is located within the same directory as that of the calling file.
Problems Using Absolute Paths with SSL
If you are borrowing use of an SSL certificate, such as the one provided free of charge to Internet Connection customers, when a webpage changes from http protocol to https (SSL), if you embed any images by absolute paths without domain names (/images/o.jpg), they will be broken.
If you embed images with full URL absolute paths (http://yourdomain.com/images/o.jpg), the images will show up, but the user will get warning messages that the page is a mix between secure and non-secure items.
On web pages that make transitions between http and https, one should use relative paths to avoid these problems.
http://support.internetconnection.net/TECHNICAL_REFERENCE/THE_WWW/Absolute_and_Relative_File_Paths.shtml
Dienstag, 11. August 2009
Joomla: Change Site Title
--------------------
I am very new to Joomla but I had a similar questions recently and a web designer helped and said to do this:
Title change for the homepage: Menus >> Menu Manager >> Top Menu >> Home >> Parameters System (RHS) >> Page Title
That helped me change my Home page title. Hope it works for you too.
http://forum.joomla.org/viewtopic.php?f=544&t=417489&view=next
Montag, 25. Mai 2009
Ad Revenue on the Web? No Sure Bet
SAN FRANCISCO — For anyone with a crazy idea for a Web business, the way to make it pay was once obvious: get a lot of visitors and sell ads. Since 2004, venture investors have put $5.1 billion into 828 Web start-up companies, and most of them are supported by ads, according to the National Venture Capital Association.
Now advertisers have cut back their online spending. So Web start-ups are searching for new ways to make money, like selling real, or virtual, goods or asking customers to buy subscriptions.
And venture capitalists who envision a sale of the company in the public markets are encouraging these efforts. Roger Lee, a partner at Battery Ventures who invests in digital media start-ups, said he considers only companies with one or two revenue streams in addition to advertising.
“Current troubles in the advertising economy are forcing people, out of necessity, to ask really hard questions about how do I build a profitable business,” he said.
The latest example they can point to is OpenTable, a restaurant reservation site that makes money selling its software to restaurants and charging them $1 for each diner seated. Last week it became the first venture-backed Web company to go public in two years.
It was a very successful offering. The stock was offered at $20 on Thursday, 43 percent higher than investment bankers’ original price estimates. It closed Friday at $28.71, a 44 percent gain.
Others are learning the lesson. When Ben Elowitz formed Wetpaint in 2005, it was intended to let anyone create a Web site free. The venture capitalists he talked to said Wetpaint should get as many visitors to the sites as possible so it could offer advertisers a big audience.
Wetpaint typically offers advertisers space on a few Web sites with a few hundred thousand visitors. But last fall, many of their advertisers raised their sights to publishers with more than five million readers, Mr. Elowitz said. Rates for leftover ad space fell to 25 cents per thousand views from $1.
Some tense board meetings followed. “Toward the end of the year, we came around to say we’re not going to depend on one revenue line,” he said. “The online advertising market looked like it would be the biggest star on the landscape, and even that star has dimmed.”
Now, Wetpaint charges its big company customers, like HBO and Fox, a fee in exchange for providing extra services like site promotion and moderating reader forums.
Smaller customers can pay to keep their sites free of ads. Wetpaint plans to add more paid services, including additional storage for big files and personalized domain names. It is also considering selling virtual goods on its sites.
The market consultants at eMarketer say that while ad growth online has slowed from its 20 percent to 30 percent growth rates, it still grew 10.6 percent last year and is expected to expand 4.5 percent this year. And while advertisers are expected to spend less on display, classified and e-mail ads, they will spend more on search and video ads.
Some technology investors say there is no reason to panic. “Pre-October, most business plans were ad-based models, and all of a sudden the entire world decided they were virtual goods or subscription models, and I just find those overreactions crazy,” said David Sze, a partner at Greylock Partners who has invested in ad-supported sites like Facebook and Digg. “Sure, the ad industry will shrink, but I believe you will see continued growth in ad dollars going to the Internet over time.”
New companies, however, can find it hard to attract tens of millions of visitors, as Facebook and Digg have. And without them, the advertisers may not follow.
Pandora, an online radio site, tried subscriptions when it started in 2005.
“That lasted all of three weeks,” said Tim Westergren, Pandora’s founder. “It was pretty clear there was no future in that and the only real option was to go free.” Pandora now has 10 million listeners a month and advertisers like Hewlett-Packard and Best Buy.
Ads are not enough, though. Last week, Pandora began an optional subscription service. For $3 a month, listeners see and hear no ads and receive a desktop application and faster streaming.
“This is the ultimate debate: What is the nexus of what users want and what the economics will allow?” Mr. Westergren said. “Certain services offered too much and couldn’t afford it, and others charged too much for features people weren’t willing to pay for. There has to be a middle ground, and we’re still looking for it.”
Pandora’s new model, which is often called “freemium” — a mix of free and premium — is becoming the most popular among Web start-ups.
Xobni, which makes a tool that simplifies searching in Outlook e-mail, is free but plans to unveil premium paid versions this summer that offer more features. Xobni does not run ads.
“Ads are an inefficient business model, making indirect revenue as a result of behavior and advertising to people who don’t want to see them or for whom they’re irrelevant,” said Jeff Bonforte, Xobni’s chief executive. “Premium is a very direct and efficient model.”
When YuChiang Cheng co-founded World Golf Tour, an online golf game with high-definition graphics, he wanted to make money from every player.
Only 5 percent of World Golf Tour’s 250,000 players pay for things like $1 putters in the virtual pro shop or an $18 tournament entry fee, but it gets two-thirds of its revenue from such purchases. The other third comes from ads, including banner ads and tournament sponsorships.
Other Web companies stick with selling real things. In February, when Pankaj Shah started an online magazine, Tonic, he decided to do it without ads. Tonic runs articles with feel-good themes and sells things like $65 organic cotton T-shirts by Donna Karan.
“I didn’t believe in the longevity of the advertising model for media, with rates falling and budgets getting cut,” Mr. Shah said. “Selling a T-shirt or bracelet for $45 makes up for a lot of click-throughs on Cialis ads.”
http://www.nytimes.com/2009/05/25/technology/start-ups/25startup.html?hpw
Now advertisers have cut back their online spending. So Web start-ups are searching for new ways to make money, like selling real, or virtual, goods or asking customers to buy subscriptions.
And venture capitalists who envision a sale of the company in the public markets are encouraging these efforts. Roger Lee, a partner at Battery Ventures who invests in digital media start-ups, said he considers only companies with one or two revenue streams in addition to advertising.
“Current troubles in the advertising economy are forcing people, out of necessity, to ask really hard questions about how do I build a profitable business,” he said.
The latest example they can point to is OpenTable, a restaurant reservation site that makes money selling its software to restaurants and charging them $1 for each diner seated. Last week it became the first venture-backed Web company to go public in two years.
It was a very successful offering. The stock was offered at $20 on Thursday, 43 percent higher than investment bankers’ original price estimates. It closed Friday at $28.71, a 44 percent gain.
Others are learning the lesson. When Ben Elowitz formed Wetpaint in 2005, it was intended to let anyone create a Web site free. The venture capitalists he talked to said Wetpaint should get as many visitors to the sites as possible so it could offer advertisers a big audience.
Wetpaint typically offers advertisers space on a few Web sites with a few hundred thousand visitors. But last fall, many of their advertisers raised their sights to publishers with more than five million readers, Mr. Elowitz said. Rates for leftover ad space fell to 25 cents per thousand views from $1.
Some tense board meetings followed. “Toward the end of the year, we came around to say we’re not going to depend on one revenue line,” he said. “The online advertising market looked like it would be the biggest star on the landscape, and even that star has dimmed.”
Now, Wetpaint charges its big company customers, like HBO and Fox, a fee in exchange for providing extra services like site promotion and moderating reader forums.
Smaller customers can pay to keep their sites free of ads. Wetpaint plans to add more paid services, including additional storage for big files and personalized domain names. It is also considering selling virtual goods on its sites.
The market consultants at eMarketer say that while ad growth online has slowed from its 20 percent to 30 percent growth rates, it still grew 10.6 percent last year and is expected to expand 4.5 percent this year. And while advertisers are expected to spend less on display, classified and e-mail ads, they will spend more on search and video ads.
Some technology investors say there is no reason to panic. “Pre-October, most business plans were ad-based models, and all of a sudden the entire world decided they were virtual goods or subscription models, and I just find those overreactions crazy,” said David Sze, a partner at Greylock Partners who has invested in ad-supported sites like Facebook and Digg. “Sure, the ad industry will shrink, but I believe you will see continued growth in ad dollars going to the Internet over time.”
New companies, however, can find it hard to attract tens of millions of visitors, as Facebook and Digg have. And without them, the advertisers may not follow.
Pandora, an online radio site, tried subscriptions when it started in 2005.
“That lasted all of three weeks,” said Tim Westergren, Pandora’s founder. “It was pretty clear there was no future in that and the only real option was to go free.” Pandora now has 10 million listeners a month and advertisers like Hewlett-Packard and Best Buy.
Ads are not enough, though. Last week, Pandora began an optional subscription service. For $3 a month, listeners see and hear no ads and receive a desktop application and faster streaming.
“This is the ultimate debate: What is the nexus of what users want and what the economics will allow?” Mr. Westergren said. “Certain services offered too much and couldn’t afford it, and others charged too much for features people weren’t willing to pay for. There has to be a middle ground, and we’re still looking for it.”
Pandora’s new model, which is often called “freemium” — a mix of free and premium — is becoming the most popular among Web start-ups.
Xobni, which makes a tool that simplifies searching in Outlook e-mail, is free but plans to unveil premium paid versions this summer that offer more features. Xobni does not run ads.
“Ads are an inefficient business model, making indirect revenue as a result of behavior and advertising to people who don’t want to see them or for whom they’re irrelevant,” said Jeff Bonforte, Xobni’s chief executive. “Premium is a very direct and efficient model.”
When YuChiang Cheng co-founded World Golf Tour, an online golf game with high-definition graphics, he wanted to make money from every player.
Only 5 percent of World Golf Tour’s 250,000 players pay for things like $1 putters in the virtual pro shop or an $18 tournament entry fee, but it gets two-thirds of its revenue from such purchases. The other third comes from ads, including banner ads and tournament sponsorships.
Other Web companies stick with selling real things. In February, when Pankaj Shah started an online magazine, Tonic, he decided to do it without ads. Tonic runs articles with feel-good themes and sells things like $65 organic cotton T-shirts by Donna Karan.
“I didn’t believe in the longevity of the advertising model for media, with rates falling and budgets getting cut,” Mr. Shah said. “Selling a T-shirt or bracelet for $45 makes up for a lot of click-throughs on Cialis ads.”
http://www.nytimes.com/2009/05/25/technology/start-ups/25startup.html?hpw
Dienstag, 5. Mai 2009
PHPBB: Create a Forum
To create a forum, log as admin:
1. Create a Categroy
1.1. Add all groups including guest to your permission
1.2. Submit
1.3. Change and adapt the permission for groups
2. Create Forum
2.1. Choose Parent
2.2. Submit
2.3. Add permission
1. Create a Categroy
1.1. Add all groups including guest to your permission
1.2. Submit
1.3. Change and adapt the permission for groups
2. Create Forum
2.1. Choose Parent
2.2. Submit
2.3. Add permission
Dienstag, 21. April 2009
PHPBB: Spam
I am running several phpBB-based forums, and they all started receiving serious amounts of spam recently. It seems that the spammers are now able to break the captcha in the registration and even pass the e-mail activation. I found a very simple solution for this. And from that moment on - the spam stopped.
The idea is to ask the spam bot a question which it does not expect, but it will be no problem for the users to answer. I’ve added to the registration form the question “How much is 5+2 ?”. Most of the new forum members were able to answer it on the first attempt. But spam bots had no clue.
So until someone bothers to write a spam bot specifically for my forums - I am okay. When it happens, I’ll just change the question. It can be many things: “What was the color of the white horse of Hammurabi?” or “How long did the six-day war lasted?” and so on. You got the point.
Here is how to do it.
In the template directory, edit profile_add_body.tpl, and add a new row the the form:
How much is 5+2 *
Browse to the registration page on your forum to see that it looks right.
In includes/usercp_register.php, look around line 260, and add the condition that checks if the question was answered properly:
else if ( $mode == ‘register’ )
{
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? ‘
’ : ” ) . $lang[‘Fields_empty’];
};
if (!isset($_POST[‘math_question’]) || $_POST[‘math_question’] != ‘7′) {
$error = TRUE;
$error_msg .= (isset($error_msg) ? ‘
’ : ”) . "Incorrect answer to the mathematical question…";
}
}
Posted in howto
http://www.thesamet.com/blog/2006/12/21/fighting-spam-on-phpbb-forums/
The idea is to ask the spam bot a question which it does not expect, but it will be no problem for the users to answer. I’ve added to the registration form the question “How much is 5+2 ?”. Most of the new forum members were able to answer it on the first attempt. But spam bots had no clue.
So until someone bothers to write a spam bot specifically for my forums - I am okay. When it happens, I’ll just change the question. It can be many things: “What was the color of the white horse of Hammurabi?” or “How long did the six-day war lasted?” and so on. You got the point.
Here is how to do it.
In the template directory, edit profile_add_body.tpl, and add a new row the the form:
Browse to the registration page on your forum to see that it looks right.
In includes/usercp_register.php, look around line 260, and add the condition that checks if the question was answered properly:
else if ( $mode == ‘register’ )
{
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? ‘
’ : ” ) . $lang[‘Fields_empty’];
};
if (!isset($_POST[‘math_question’]) || $_POST[‘math_question’] != ‘7′) {
$error = TRUE;
$error_msg .= (isset($error_msg) ? ‘
’ : ”) . "Incorrect answer to the mathematical question…";
}
}
Posted in howto
http://www.thesamet.com/blog/2006/12/21/fighting-spam-on-phpbb-forums/
PHPBB: Ads
Advertisements in phpBB3
Hello.
One frequently asked question is how to add ads in phpBB3 Olympus. The short answer is very simple: start your favourite text editor and open the correct .html template file. But which template file? Here's the longer answer....
First, open your favourite text editor and then....
Ads in the header
If you want ads in your header, open styles/prosilver/template/overall_header.html and add your code at the very end of the file.
Ads in the footer
If you want ads in your footer, open styles/prosilver/template/overall_footer.html
Find:
Code: Select all
{L_ACP}
Add your code after that line. You may need to include one or two
to get line breaks (newlines) if you so desire.
Important note: Check with your ad provider before you put your ads in the header or footer. Some providers (like Google AdSense) only allow ads on pages that have actual content like the view topic or view forum pages.
Ads in view forum page
If you want ads in the view forum page that lists all the topics in that forum, open styles/prosilver/template/viewforum_body.html and add your code after this line:
Code: Select all
Ads before or after the first post in a topic
If you want ads either before or after the first post in a topic, open styles/prosilver/template/viewtopic_body.html
For ads before the first post, find the line below and add the sample code after this line.
Code: Select all
For ads after the first post, find the line below and add the sample code before this line.
Code: Select all
Here is the sample ad code:
Code: Select all
Of course, replace Insert your ad code here with the ad code your provider gives you.
Ads that blend in with the proSilver style
If you want your ads to blend in with proSilver and have a nice blue background with rounded corner images (note: this is not needed if you followed the instructions above for adding the advertisement before or after the first post in a topic), then use this code in any template file where you want your ads to appear:
Code: Select all
Of course, replace Insert your ad code here with the ad code your provider gives you.
If you have any suggestions or find in bugs with this article, please send me a Private Message.
Enjoy! :mrgreen:
http://www.phpbb.com/kb/article/advertisements-in-phpbb3/
Hello.
One frequently asked question is how to add ads in phpBB3 Olympus. The short answer is very simple: start your favourite text editor and open the correct .html template file. But which template file? Here's the longer answer....
First, open your favourite text editor and then....
Ads in the header
If you want ads in your header, open styles/prosilver/template/overall_header.html and add your code at the very end of the file.
Ads in the footer
If you want ads in your footer, open styles/prosilver/template/overall_footer.html
Find:
Code: Select all
{L_ACP}
Add your code after that line. You may need to include one or two
to get line breaks (newlines) if you so desire.
Important note: Check with your ad provider before you put your ads in the header or footer. Some providers (like Google AdSense) only allow ads on pages that have actual content like the view topic or view forum pages.
Ads in view forum page
If you want ads in the view forum page that lists all the topics in that forum, open styles/prosilver/template/viewforum_body.html and add your code after this line:
Code: Select all
Ads before or after the first post in a topic
If you want ads either before or after the first post in a topic, open styles/prosilver/template/viewtopic_body.html
For ads before the first post, find the line below and add the sample code after this line.
Code: Select all
For ads after the first post, find the line below and add the sample code before this line.
Code: Select all
Here is the sample ad code:
Code: Select all
Of course, replace Insert your ad code here with the ad code your provider gives you.
Ads that blend in with the proSilver style
If you want your ads to blend in with proSilver and have a nice blue background with rounded corner images (note: this is not needed if you followed the instructions above for adding the advertisement before or after the first post in a topic), then use this code in any template file where you want your ads to appear:
Code: Select all
Insert your ad code here
Of course, replace Insert your ad code here with the ad code your provider gives you.
If you have any suggestions or find in bugs with this article, please send me a Private Message.
Enjoy! :mrgreen:
http://www.phpbb.com/kb/article/advertisements-in-phpbb3/
PHPBB: E-mail error - » EMAIL/PHP/mail() - /forum/adm/index.php
Re: E-mail error - » EMAIL/PHP/mail() - /forum/adm/index.php
Postby Boxguy » Sat Dec 29, 2007 4:12 pm
Here's the response from the development team on the bug report above:
Basically you need to use SMTP. We no longer support very old sendmail versions (which are having a bug and 2.0.x circumventing this by using sendmail-specific code - which in turn did not work for any other mailer).
Essentially it's a problem that exists with Sendmail up through the most recent stable version (8.14.2). Instead of using PHP's mail() function use SMTP with localhost as the server. If that doesn't work, find out what the address of your hosting provider's SMTP server(s) is/are, and use that. I tried using SMTP to localhost on my installs where the boxes use Sendmail, and it appears to resolve the issue.
aj: You're right that it doesn't work only when the addresses are hidden. See the bug report linked to above to read a more detailed explanation as to why.
User avatar
Boxguy
Registered User
Posts: 3
Joined: Sun Dec 23, 2007 2:07 am
Location: Kansas
Top
Re: E-mail error - » EMAIL/PHP/mail() - /forum/adm/index.php
Postby bestempire » Sat Dec 29, 2007 4:20 pm
I am now using Godaddy as host which has also problem with their mailer I think
I don't know if they have SMTP for free together with the host!
bestempire
Registered User
Posts: 4
Joined: Tue Dec 18, 2007 3:02 pm
* E-mail bestempire
http://www.phpbb.com/community/viewtopic.php?f=46&t=640495
Postby Boxguy » Sat Dec 29, 2007 4:12 pm
Here's the response from the development team on the bug report above:
Basically you need to use SMTP. We no longer support very old sendmail versions (which are having a bug and 2.0.x circumventing this by using sendmail-specific code - which in turn did not work for any other mailer).
Essentially it's a problem that exists with Sendmail up through the most recent stable version (8.14.2). Instead of using PHP's mail() function use SMTP with localhost as the server. If that doesn't work, find out what the address of your hosting provider's SMTP server(s) is/are, and use that. I tried using SMTP to localhost on my installs where the boxes use Sendmail, and it appears to resolve the issue.
aj: You're right that it doesn't work only when the addresses are hidden. See the bug report linked to above to read a more detailed explanation as to why.
User avatar
Boxguy
Registered User
Posts: 3
Joined: Sun Dec 23, 2007 2:07 am
Location: Kansas
Top
Re: E-mail error - » EMAIL/PHP/mail() - /forum/adm/index.php
Postby bestempire » Sat Dec 29, 2007 4:20 pm
I am now using Godaddy as host which has also problem with their mailer I think
I don't know if they have SMTP for free together with the host!
bestempire
Registered User
Posts: 4
Joined: Tue Dec 18, 2007 3:02 pm
* E-mail bestempire
http://www.phpbb.com/community/viewtopic.php?f=46&t=640495
Freitag, 10. April 2009
Joomla: do nothing item (or buttom)
Question
I have this mainmenu, with sub-items.
Home
Groups
-> group1
-> group2
Contact
The only manner I achieved this was by making a link to a static page called Group_txt, but I don't want Groups to be a link - I want the menu only to collapse.
Is this possible? Or can I link Groups to te page currently viewed?
Thanks in advance,
Frank
Reply:
Add the menu item as "External link" and keep "Link" field blank. That should help.
http://forum.joomla.org/viewtopic.php?p=1606876
I have this mainmenu, with sub-items.
Home
Groups
-> group1
-> group2
Contact
The only manner I achieved this was by making a link to a static page called Group_txt, but I don't want Groups to be a link - I want the menu only to collapse.
Is this possible? Or can I link Groups to te page currently viewed?
Thanks in advance,
Frank
Reply:
Add the menu item as "External link" and keep "Link" field blank. That should help.
http://forum.joomla.org/viewtopic.php?p=1606876
Donnerstag, 9. April 2009
Joomla: Editing Tools Firebug
http://getfirebug.com/
https://addons.mozilla.org/en-US/firefox/addon/1843
http://getfirebug.com/docs.html
https://addons.mozilla.org/en-US/firefox/addon/1843
http://getfirebug.com/docs.html
Dienstag, 7. April 2009
Joomla: Horizontal Menu
Horizontal Navigation
JA Purity provide embedded dropdown horizontal navigation system. There're 2 style of dopdown menu: JA CSS Suckerfish and JA Moomenu (Template parameter: Horizontal Navigation Type). Follow these steps to enable the dropdown horizon navigation.a
1. Goto Module Manager, click a mainmenu module (Eg: Main Menu).
2. Select "No" for the module "Show Title".
3. Select "hornav" for the module "Position".
4. Select "Yes" for parameter "Always show sub-menu Items"
5. Select "List" for parameter "Menu Style"
Template Font Size
Choose default font size for the template. On front-page, when user increases/decreases font size, the setting is remember for later visits.
Template Width
The template width is very flexible. You could choose the preset width (Narrow/Widescreen) or define your width (Specified in percentage, Specified in pixel)
Template Styles
Template style is combined from 3 main elements: Header Themes, Background Themes and Primary Elements. The template provides 2x2x4=16 predefined styles.
Right modules collapsible function
Modules in right could are collapsible. You could enable/disable this function, set modules collapsed/expended by default...
Follow the instruction and it will successfully load.
---------------------
http://newsline.mindvacant.com/index.php?option=com_content&view=article&id=3869:japurity-template&catid=43:joomla&Itemid=101
JA Purity provide embedded dropdown horizontal navigation system. There're 2 style of dopdown menu: JA CSS Suckerfish and JA Moomenu (Template parameter: Horizontal Navigation Type). Follow these steps to enable the dropdown horizon navigation.a
1. Goto Module Manager, click a mainmenu module (Eg: Main Menu).
2. Select "No" for the module "Show Title".
3. Select "hornav" for the module "Position".
4. Select "Yes" for parameter "Always show sub-menu Items"
5. Select "List" for parameter "Menu Style"
Template Font Size
Choose default font size for the template. On front-page, when user increases/decreases font size, the setting is remember for later visits.
Template Width
The template width is very flexible. You could choose the preset width (Narrow/Widescreen) or define your width (Specified in percentage, Specified in pixel)
Template Styles
Template style is combined from 3 main elements: Header Themes, Background Themes and Primary Elements. The template provides 2x2x4=16 predefined styles.
Right modules collapsible function
Modules in right could are collapsible. You could enable/disable this function, set modules collapsed/expended by default...
Follow the instruction and it will successfully load.
---------------------
http://newsline.mindvacant.com/index.php?option=com_content&view=article&id=3869:japurity-template&catid=43:joomla&Itemid=101
Joomla: Logo
Hi !
1.you can control position of logo by way below :
Open template.css file in templates/ja_purity/css folder , find following code section at about line 956 :
Code:
h1.logo a {
background:transparent url(../images/logo.png) no-repeat scroll 0 0;
display:block;
height:80px;
position:relative;
width:208px;
z-index:100;
}
change to :
Code:
h1.logo a {
background:transparent url(../images/logo.png) no-repeat scroll 0 0;
display:block;
height:80px;
position:relative;
width:208px;
z-index:100;
left:500px;
}
About background color of header , you change it following some steps below :
1.Open template.css file in templates/ja_purity/css folder , find following code section at about line 923 :
Code:
#ja-headerwrap {
background:#333333 none repeat scroll 0 0;
color:#CCCCCC;
height:80px;
line-height:normal;
}
change to :
Code:
#ja-headerwrap {
background:#FFFFFF none repeat scroll 0 0;
color:#CCCCCC;
height:80px;
line-height:normal;
}
2. find following code section at about line 935 :
Code:
.ja-headermask {
background:transparent url(../images/header-mask.png) no-repeat scroll right top;
display:block;
height:80px;
position:absolute;
right:-1px;
top:0;
width:602px;
}
change to :
Code:
.ja-headermask {
top;[/color]
display:block;
height:80px;
position:absolute;
right:-1px;
top:0;
width:602px;
}
3. Open index.php file in templates/ja_purity folder, find following code section at about line 112 :
Code:
change to :
Code:
__________________
h1.logo a {
background:transparent url(../images/logo.png) no-repeat scroll 0 0;
display:block;
height:80px;
position:relative;
width:208px;
z-index:100;
left:500px;
}
-------------------------
change to
--------------------
Hi !
You can do it following way below :
open index.php file in templates/ja_purity folder , find following code section at about line 119 :
-------------
http://www.joomlart.com/forums/showthread.php?t=17740
1.you can control position of logo by way below :
Open template.css file in templates/ja_purity/css folder , find following code section at about line 956 :
Code:
h1.logo a {
background:transparent url(../images/logo.png) no-repeat scroll 0 0;
display:block;
height:80px;
position:relative;
width:208px;
z-index:100;
}
change to :
Code:
h1.logo a {
background:transparent url(../images/logo.png) no-repeat scroll 0 0;
display:block;
height:80px;
position:relative;
width:208px;
z-index:100;
left:500px;
}
About background color of header , you change it following some steps below :
1.Open template.css file in templates/ja_purity/css folder , find following code section at about line 923 :
Code:
#ja-headerwrap {
background:#333333 none repeat scroll 0 0;
color:#CCCCCC;
height:80px;
line-height:normal;
}
change to :
Code:
#ja-headerwrap {
background:#FFFFFF none repeat scroll 0 0;
color:#CCCCCC;
height:80px;
line-height:normal;
}
2. find following code section at about line 935 :
Code:
.ja-headermask {
background:transparent url(../images/header-mask.png) no-repeat scroll right top;
display:block;
height:80px;
position:absolute;
right:-1px;
top:0;
width:602px;
}
change to :
Code:
.ja-headermask {
top;[/color]
display:block;
height:80px;
position:absolute;
right:-1px;
top:0;
width:602px;
}
3. Open index.php file in templates/ja_purity folder, find following code section at about line 112 :
Code:
change to :
Code:
__________________
h1.logo a {
background:transparent url(../images/logo.png) no-repeat scroll 0 0;
display:block;
height:80px;
position:relative;
width:208px;
z-index:100;
left:500px;
}
-------------------------
change to
--------------------
Hi !
You can do it following way below :
open index.php file in templates/ja_purity folder , find following code section at about line 119 :
-------------
http://www.joomlart.com/forums/showthread.php?t=17740
Montag, 6. April 2009
Joomla: Remove header mask
You will find the mask image in style.css, around line 6:
Code:
.ja-headermask {
background:transparent url(images/header-mask.png) no-repeat scroll right top;
}
when you take that out, this takes over:
Code:
.ja-headermask {
background:transparent url(../images/header-mask.png) no-repeat scroll right top;
}
so you will have to take this out also - in template.css, around line 935
Hope this helps.
http://forum.joomla.org/viewtopic.php?p=1640566
Code:
.ja-headermask {
background:transparent url(images/header-mask.png) no-repeat scroll right top;
}
when you take that out, this takes over:
Code:
.ja-headermask {
background:transparent url(../images/header-mask.png) no-repeat scroll right top;
}
so you will have to take this out also - in template.css, around line 935
Hope this helps.
http://forum.joomla.org/viewtopic.php?p=1640566
Mittwoch, 1. April 2009
GIMP: Neon Text
1. New File (White/Black)
2. Layer --> Image to Size
3. Use the brush to connect the letters.
4. Filter --> Blur Filter --> Guassian Blur --> 15
5. Colors --> Curves--> alpha --> change the curve
6. Filters --> Alpha to logo --> Neon
6.1. Set background as your image background
6.2. Set forground to whatever you wish
6.3. 40 points
7. Duplicate the layer (if you would like to increase the intensity of glow).
8. Go to Filter --> Gussian Blur --> 35 (??)
9. Save *.jpg
http://www.youtube.com/watch?v=0ZavXsbRFdw
2. Layer --> Image to Size
3. Use the brush to connect the letters.
4. Filter --> Blur Filter --> Guassian Blur --> 15
5. Colors --> Curves--> alpha --> change the curve
6. Filters --> Alpha to logo --> Neon
6.1. Set background as your image background
6.2. Set forground to whatever you wish
6.3. 40 points
7. Duplicate the layer (if you would like to increase the intensity of glow).
8. Go to Filter --> Gussian Blur --> 35 (??)
9. Save *.jpg
http://www.youtube.com/watch?v=0ZavXsbRFdw
Dienstag, 31. März 2009
GIMP: Sparkle Text Better Version
1. New File
2. Type Text (WHITE/BLACK)
3. Filter
3.1. Blur
3.2. Guassian B (set to 3)
4. Layer --> Merge Down
5. Color
5.1. Colorize
5.2. Saturation to 100, Hue left or right
Make Reflection
6. Rectangular Tool
6.1. Copy 1/3 and Paste
6.2. Move down
6.3. Layer --> Transform 180
6.4. Invert
6.5. Opacity to 70
8. Click on new layer --> then Merge Down
9. Click Duplicate Layer
10. Click Filter
10.1. Light and Shadow, Sparkle (Depends on Fonts size)
10.1.1. luminisity threshold: 0.020
10.1.2. flare intensity: 0.35
10.1.3. spike length: 20
10.1.4. spike point: 3
10.1.5. spike angle (-1): 19
10.1.6. spike density: 0.15
10.1.7. rest is 0
Important: check both Persereve Luminisity and Neutral color
11. Duplicate the layer again (increase the values by 2-3 points)
11.1.1. luminisity threshold: 0.020
11.1.2. flare intensity: 0.35
11.1.3. spike length: 23
11.1.4. spike point: 3
11.1.5. spike angle (-1): 19
11.1.6. spike density: 0.19
11.1.7. rest is 0
12. Filters, Animation
12.1. Blend and select value of 1
13. Save it as *.gif
http://www.youtube.com/watch?v=9JZf-_U_5lc
2. Type Text (WHITE/BLACK)
3. Filter
3.1. Blur
3.2. Guassian B (set to 3)
4. Layer --> Merge Down
5. Color
5.1. Colorize
5.2. Saturation to 100, Hue left or right
Make Reflection
6. Rectangular Tool
6.1. Copy 1/3 and Paste
6.2. Move down
6.3. Layer --> Transform 180
6.4. Invert
6.5. Opacity to 70
8. Click on new layer --> then Merge Down
9. Click Duplicate Layer
10. Click Filter
10.1. Light and Shadow, Sparkle (Depends on Fonts size)
10.1.1. luminisity threshold: 0.020
10.1.2. flare intensity: 0.35
10.1.3. spike length: 20
10.1.4. spike point: 3
10.1.5. spike angle (-1): 19
10.1.6. spike density: 0.15
10.1.7. rest is 0
Important: check both Persereve Luminisity and Neutral color
11. Duplicate the layer again (increase the values by 2-3 points)
11.1.1. luminisity threshold: 0.020
11.1.2. flare intensity: 0.35
11.1.3. spike length: 23
11.1.4. spike point: 3
11.1.5. spike angle (-1): 19
11.1.6. spike density: 0.19
11.1.7. rest is 0
12. Filters, Animation
12.1. Blend and select value of 1
13. Save it as *.gif
http://www.youtube.com/watch?v=9JZf-_U_5lc
GIMP: Metallic the easy Way
1. New File (White/Black)
2. Type Text (Fonts: 72)
3. Filter --> Blur --> Gaussian Blur Filter 5px
4. Color ---> Curves ---> Alpha --> Move both point Horzonitally
5. Filter --> Blur --> Gaussian Blur Filter 2px
5. Merge Down the layer
6. SELECT ---> Select by color (click on the background)
8. Click New Layer
9. Click SELECT --> Invert
10. Gradient Tool (Gray/Dark Gray)
10.1. Draw a line (Only text color changes)
11. SELECT --> None
12. Filter --> Map --> Bump Map
12.1. Choose Background Layer
12.2. Azimuth: 135, Elevation: 45, Depth: 3
13. Color
13.1. Curves
13.2. Value
13.3. Draw a Sin Curve or any curve that will lead to metallic color
14. Save
*SELECT: If select is capitalized, this means the capital menu.
http://www.youtube.com/watch?v=1oHNQzJpUlg&feature=channel
2. Type Text (Fonts: 72)
3. Filter --> Blur --> Gaussian Blur Filter 5px
4. Color ---> Curves ---> Alpha --> Move both point Horzonitally
5. Filter --> Blur --> Gaussian Blur Filter 2px
5. Merge Down the layer
6. SELECT ---> Select by color (click on the background)
8. Click New Layer
9. Click SELECT --> Invert
10. Gradient Tool (Gray/Dark Gray)
10.1. Draw a line (Only text color changes)
11. SELECT --> None
12. Filter --> Map --> Bump Map
12.1. Choose Background Layer
12.2. Azimuth: 135, Elevation: 45, Depth: 3
13. Color
13.1. Curves
13.2. Value
13.3. Draw a Sin Curve or any curve that will lead to metallic color
14. Save
*SELECT: If select is capitalized, this means the capital menu.
http://www.youtube.com/watch?v=1oHNQzJpUlg&feature=channel
Montag, 30. März 2009
GIMP: Sparkle Text
1. New File
2. Type Text (RED/BLACK)
3. Filter
3.1. Blur
3.2. Guassian B (set to 3)
4. Layer --> Merge Down
5. Color
5.1. Colorize
5.2. Saturation to 100, Hue left or right
Make Reflection
6. Rectangular Tool
6.1. Copy 1/3 and Paste
6.2. Move down
6.3. Layer --> Transform 180
6.4. Invert
6.5. Opacity to 70
7. Make the foreground same color as background
7.1. Click Blend and make a line from down to up
when you see floating layer
8. Click on new layer --> then Merge Down
9. Click Duplicate Layer
10. Click Filter
10.1. Light and Shadow, Sparkle (Depends on Fonts size)
10.1.1. spike length 36
10.1.2. spike points 3
10.1.3. spike density 0.3
11. Duplicate the layer again
11.1.1. spike length 39
11.1.2. spike points 3
11.1.3. spike density 0.33
11. Filters, Animation
11.1. Blend and select value of 1
12. Save it as *.gif
http://www.youtube.com/watch?v=JqUNPS_ULQs
2. Type Text (RED/BLACK)
3. Filter
3.1. Blur
3.2. Guassian B (set to 3)
4. Layer --> Merge Down
5. Color
5.1. Colorize
5.2. Saturation to 100, Hue left or right
Make Reflection
6. Rectangular Tool
6.1. Copy 1/3 and Paste
6.2. Move down
6.3. Layer --> Transform 180
6.4. Invert
6.5. Opacity to 70
7. Make the foreground same color as background
7.1. Click Blend and make a line from down to up
when you see floating layer
8. Click on new layer --> then Merge Down
9. Click Duplicate Layer
10. Click Filter
10.1. Light and Shadow, Sparkle (Depends on Fonts size)
10.1.1. spike length 36
10.1.2. spike points 3
10.1.3. spike density 0.3
11. Duplicate the layer again
11.1.1. spike length 39
11.1.2. spike points 3
11.1.3. spike density 0.33
11. Filters, Animation
11.1. Blend and select value of 1
12. Save it as *.gif
http://www.youtube.com/watch?v=JqUNPS_ULQs
GIMP: Metallic New Idea
1. Open New File (600*80 px; white/black (FG->BG)
2. Click on Text (Text Font: 46 px)
2.1. Type your Text (choose your fonts)
3. Gradiante Green/Black, FG/BG
4. Color light Green and Type your Text
5. Click Text Layer
5.1. Click Alpha to Selection (Ants lines)
5.2. Click Filter
5.2.1. Linght in Shadow
5.2.2. Drop Shadow
6. Select Eclipse (Properities: Intersect selection)
7. Add a new layer (Layer 01)
7.1. Select the eclipse about 2/3 over the text
7.2. Gradient (White/Black, FG/Transperent, Opacity: 50, Linear).
7.3. Line with the Gradient from top to bottom.
8. Select --> None
9. Select layer of TEXT and add: alpha to selection
10. Click on the first layer (Background layer)
11. Create New layer (call it oultine)
(It should be between background layer and text layer).
12. Click SELECT grow (3 px)
13. Bucket Tool (forground is white). and click (fill) the text.
14. SELECT none
15. Save
http://www.youtube.com/watch?v=M21ToVzC0Pc
2. Click on Text (Text Font: 46 px)
2.1. Type your Text (choose your fonts)
3. Gradiante Green/Black, FG/BG
4. Color light Green and Type your Text
5. Click Text Layer
5.1. Click Alpha to Selection (Ants lines)
5.2. Click Filter
5.2.1. Linght in Shadow
5.2.2. Drop Shadow
6. Select Eclipse (Properities: Intersect selection)
7. Add a new layer (Layer 01)
7.1. Select the eclipse about 2/3 over the text
7.2. Gradient (White/Black, FG/Transperent, Opacity: 50, Linear).
7.3. Line with the Gradient from top to bottom.
8. Select --> None
9. Select layer of TEXT and add: alpha to selection
10. Click on the first layer (Background layer)
11. Create New layer (call it oultine)
(It should be between background layer and text layer).
12. Click SELECT grow (3 px)
13. Bucket Tool (forground is white). and click (fill) the text.
14. SELECT none
15. Save
http://www.youtube.com/watch?v=M21ToVzC0Pc
Sonntag, 29. März 2009
GIMP: Text Reflection and Inversion
1. New File
2. Type Text
3. Duplicate Layer
On the Last Layer
4. Move the second text beneath the first one
5. Go to Layer
5.1. Transform
5.2. 180°
6. Click on the FLIP TOOL
Now you have mirror image
7. Go to Gradiant
7.1. Choose FG/BG to be the same
7.2. Draw a line from downward to upward
8. Go To the other Layer
8.1. Select the eclipse shape
8.2. Draw and eclipse at about 2/3 of the text
9. Click Gradiant
9.1. Draw a line Upward to Downward.
10. Click on SELECT and click None
11. Save
http://www.youtube.com/watch?v=mMRbdijTWF4
2. Type Text
3. Duplicate Layer
On the Last Layer
4. Move the second text beneath the first one
5. Go to Layer
5.1. Transform
5.2. 180°
6. Click on the FLIP TOOL
Now you have mirror image
7. Go to Gradiant
7.1. Choose FG/BG to be the same
7.2. Draw a line from downward to upward
8. Go To the other Layer
8.1. Select the eclipse shape
8.2. Draw and eclipse at about 2/3 of the text
9. Click Gradiant
9.1. Draw a line Upward to Downward.
10. Click on SELECT and click None
11. Save
http://www.youtube.com/watch?v=mMRbdijTWF4
GIMP: Metallic Text
1. Open New File (600*80 px; white/black (FG->BG)
2. Click on Text (Text Font: 46 px)
2.1. Type your Text (choose your fonts)
3. Click Filter
3.1. Blur Gussian, ok
4. Click on the text layer
4.1. Merge Down
5. on the Menu
5.1. Select
5.2. All
5.3. Select Color (Shift + O)
5.4. Click on the Text
5.5. Click once more Select menue
5.5.1. Invert
6. Click New Layer
7.Gradiante
8.1. Both FG/BG is gray
8.2. Normal
8.3. Opacity 100
8.4. Linear
8.5. FG ---> Transperent
9. Click Gradiante and make a line from up to down througth the text
10. Filter
10.1. Maps --> Bump Map
10.2. Select background layer and click ok
11. Select Menu
11.1. None
12. Color
12.1. Curve and change the curve shape to cos type
http://www.youtube.com/watch?v=-SKgincPaVA
2. Click on Text (Text Font: 46 px)
2.1. Type your Text (choose your fonts)
3. Click Filter
3.1. Blur Gussian, ok
4. Click on the text layer
4.1. Merge Down
5. on the Menu
5.1. Select
5.2. All
5.3. Select Color (Shift + O)
5.4. Click on the Text
5.5. Click once more Select menue
5.5.1. Invert
6. Click New Layer
7.Gradiante
8.1. Both FG/BG is gray
8.2. Normal
8.3. Opacity 100
8.4. Linear
8.5. FG ---> Transperent
9. Click Gradiante and make a line from up to down througth the text
10. Filter
10.1. Maps --> Bump Map
10.2. Select background layer and click ok
11. Select Menu
11.1. None
12. Color
12.1. Curve and change the curve shape to cos type
http://www.youtube.com/watch?v=-SKgincPaVA
Samstag, 28. März 2009
Joomla: Header + GIMP
GIMP
1. Configure
1.1. 600 * 80 px
1.2. Background Gray, Foreground Green
2. New File
3. Write text (Classic Remedy)
3.1. Change font to 46 px
4. Click on the text layer
4.1. Layer -> Alpha Select
4.2. Duplicate the layer (imp.)
5. Select
5.1. Layer -> grew px by 2
6. Change Color to yellow
6.1. Click on the last layer
6.2. Click Bucket fill with new color (yello).
7. Move second layer to first one
8. Layer --> Merge Down
9. Filter --> Drop Shadow
http://www.youtube.com/watch?v=raplIFbi21Q
1. Configure
1.1. 600 * 80 px
1.2. Background Gray, Foreground Green
2. New File
3. Write text (Classic Remedy)
3.1. Change font to 46 px
4. Click on the text layer
4.1. Layer -> Alpha Select
4.2. Duplicate the layer (imp.)
5. Select
5.1. Layer -> grew px by 2
6. Change Color to yellow
6.1. Click on the last layer
6.2. Click Bucket fill with new color (yello).
7. Move second layer to first one
8. Layer --> Merge Down
9. Filter --> Drop Shadow
http://www.youtube.com/watch?v=raplIFbi21Q
Montag, 9. März 2009
Check XML vs DTD or Your Home Page: XMLLINT or Weblint
To validate an xml file vs DTD you should open:
1. Bluefish
2. Open your document (*.xml)
3. External
3.1. Outbox
3.2. Xmllint xml checker
To Check HTML go To:
http://www.bookcase.com/library/utils/weblint/
1. Bluefish
2. Open your document (*.xml)
3. External
3.1. Outbox
3.2. Xmllint xml checker
To Check HTML go To:
http://www.bookcase.com/library/utils/weblint/
Samstag, 10. Januar 2009
Wikimedia: Suspend registration
How to disable registration for MediaWiki?
If you want to disable the option for your MediaWiki visitors to register accounts at your MediaWiki website you will have to add the following line in the LocalSettings.php file:
$wgGroupPermissions['*']['createaccount'] = false;
You can find below detailed instructions on how to do this on your web hosting account using cPanel:
1. Go to your cPanel. .
2. Click on the File Manager icon
3. Click on the folder icon next public_html folder name
4. Click on the folder icon next to the folder in which your MediaWiki is installed
5. Click on the LocalSettings.php file
6. In the upper right corner you will see several management options for LocalSettings.php file. Click on Edit File
7. Look for a line that starts with $wgGroupPermissions. If there is no such line you should add it yourself and if there already is such a line you should edit it to look this way
$wgGroupPermissions['*']['createaccount'] = false;
8. Save the edited LocalSettings.php file and the new users account creation will be disabled.
http://kb.siteground.com/article/How_can_I_disable_users_registration_on_my_MediaWiki_website.html
If you want to disable the option for your MediaWiki visitors to register accounts at your MediaWiki website you will have to add the following line in the LocalSettings.php file:
$wgGroupPermissions['*']['createaccount'] = false;
You can find below detailed instructions on how to do this on your web hosting account using cPanel:
1. Go to your cPanel. .
2. Click on the File Manager icon
3. Click on the folder icon next public_html folder name
4. Click on the folder icon next to the folder in which your MediaWiki is installed
5. Click on the LocalSettings.php file
6. In the upper right corner you will see several management options for LocalSettings.php file. Click on Edit File
7. Look for a line that starts with $wgGroupPermissions. If there is no such line you should add it yourself and if there already is such a line you should edit it to look this way
$wgGroupPermissions['*']['createaccount'] = false;
8. Save the edited LocalSettings.php file and the new users account creation will be disabled.
http://kb.siteground.com/article/How_can_I_disable_users_registration_on_my_MediaWiki_website.html
Montag, 5. Januar 2009
Joomal: Change logo position.
Ja Purity Change postion of your logo
From Joomla! Documentation
Jump to: navigation, search
Logo image
1. open with a text editor the file templates\ja_purity\css\template.css about at line 957 you will find:
h1.logo a {
width: 208px;
display: block;
background: url(../images/logo.png) no-repeat;
height: 80px;
position: absolute; <---- EDIT THIS
top: 10px; <---- ADD THIS
left: 10px; <---- ADD THIS
z-index: 100;
}
2. now in the added line you have to enter the number of pixel that is better for your logo.
3. finished
Logo text
1. open with a text editor the file templates\ja_purity\css\template.css about at line 972 you will find:
h1.logo-text a {
color: #CCCCCC !important;
text-decoration: none;
outline: none;
position: absolute;
bottom: 40px; <---- EDIT THIS
left: 5px; <---- EDIT THIS
}
p.site-slogan {
margin: 0;
padding: 0;
padding: 2px 5px;
color: #FFFFFF;
background: #444444;
font-size: 92%;
position: absolute;
bottom: 20px; <---- EDIT THIS
left: 0; <---- EDIT THIS
}
2. now in these lines you have to enter the number of pixel that is better for you.
3. finished
http://docs.joomla.org/Ja_Purity_Change_postion_of_your_logo
From Joomla! Documentation
Jump to: navigation, search
Logo image
1. open with a text editor the file templates\ja_purity\css\template.css about at line 957 you will find:
h1.logo a {
width: 208px;
display: block;
background: url(../images/logo.png) no-repeat;
height: 80px;
position: absolute; <---- EDIT THIS
top: 10px; <---- ADD THIS
left: 10px; <---- ADD THIS
z-index: 100;
}
2. now in the added line you have to enter the number of pixel that is better for your logo.
3. finished
Logo text
1. open with a text editor the file templates\ja_purity\css\template.css about at line 972 you will find:
h1.logo-text a {
color: #CCCCCC !important;
text-decoration: none;
outline: none;
position: absolute;
bottom: 40px; <---- EDIT THIS
left: 5px; <---- EDIT THIS
}
p.site-slogan {
margin: 0;
padding: 0;
padding: 2px 5px;
color: #FFFFFF;
background: #444444;
font-size: 92%;
position: absolute;
bottom: 20px; <---- EDIT THIS
left: 0; <---- EDIT THIS
}
2. now in these lines you have to enter the number of pixel that is better for you.
3. finished
http://docs.joomla.org/Ja_Purity_Change_postion_of_your_logo
Joomla: Change size of Image Headers.
Ja Purity resize header
Jump to: navigation, search
1. open with a text editor the file templates\ja_purity\css\template.css
2. about at line 921 you will find:
/* HEADER
--------------------------------------------------------- */
#ja-headerwrap {
background: #333333;
color: #CCCCCC;
line-height: normal;
height: 80px; <---- EDIT THIS
}
#ja-header {
position: relative;
height: 80px; <---- EDIT THIS
}
.ja-headermask {
width: 602px;
display: block;
background: url(../images/header-mask.png) no-repeat top right;
height: 80px; <---- EDIT THIS
position: absolute;
top: 0;
right: -1px;
}
3. change these values with the desidered height.
4. always in the file templates\ja_purity\css\template.css about at line 957 you will find
h1.logo a {
width: 208px; <---- EDIT THIS (same of your logo)
display: block;
background: url(../images/logo.png) no-repeat;
height: 80px; <---- EDIT THIS (same of your logo)
position: relative;
z-index: 100;
}
5. now using your graphic editor you have to resize the heighy of the following files (same height of your header):
1. templates\ja_purity\images\header-mask.png
2. templates\ja_purity\styles\header\blue\images\header-mask.png
3. templates\ja_purity\styles\header\green\images\header-mask.png
6. If the height of your logo is different of the height of your header you probanly need to look here Change postion of your logo
7. Remember that if you resize your header you will need header images with different height (see also Replace the header pictures)
8. Finished
http://goldfey.free.fr/?p=251
Menus:
Text that appears above the main menu is not controlled by the menu manager but rather by the module manager. The text is the title of the module. So simply change the title of the module to what yo would like displayed above the main menu.
JA_Purity template header graphic:
The JA_Purity template uses the function getRandomImage() in /templates/ja_purity/index.php to display a random image from the folder templates/ja_purity/images/header. The function getRandmoImage() is defined in /templates/ja_purity/ja_templatetools.php. It looks for images of type .gif, .jpg or .png in templates/ja_purity/images/header/. Any other files in that directory are ignored. The mask, templates/ja_purity/images/header-mask.png, and the CSS code need all the images in the templates/ja_purity/images/header to be 600x80 pixels.
There is a "PHP Cross Reference of Joomla 1.5.6 Documentation" at apostilas.fok.com.br/docs/joomla-1.5. This is vary handy.
http://cliffcrabtree.com/index.php?option=com_content&view=article&id=3&Itemid=3
http://docs.joomla.org/Replace_the_header_pictures_in_JA_Purity
Jump to: navigation, search
1. open with a text editor the file templates\ja_purity\css\template.css
2. about at line 921 you will find:
/* HEADER
--------------------------------------------------------- */
#ja-headerwrap {
background: #333333;
color: #CCCCCC;
line-height: normal;
height: 80px; <---- EDIT THIS
}
#ja-header {
position: relative;
height: 80px; <---- EDIT THIS
}
.ja-headermask {
width: 602px;
display: block;
background: url(../images/header-mask.png) no-repeat top right;
height: 80px; <---- EDIT THIS
position: absolute;
top: 0;
right: -1px;
}
3. change these values with the desidered height.
4. always in the file templates\ja_purity\css\template.css about at line 957 you will find
h1.logo a {
width: 208px; <---- EDIT THIS (same of your logo)
display: block;
background: url(../images/logo.png) no-repeat;
height: 80px; <---- EDIT THIS (same of your logo)
position: relative;
z-index: 100;
}
5. now using your graphic editor you have to resize the heighy of the following files (same height of your header):
1. templates\ja_purity\images\header-mask.png
2. templates\ja_purity\styles\header\blue\images\header-mask.png
3. templates\ja_purity\styles\header\green\images\header-mask.png
6. If the height of your logo is different of the height of your header you probanly need to look here Change postion of your logo
7. Remember that if you resize your header you will need header images with different height (see also Replace the header pictures)
8. Finished
http://goldfey.free.fr/?p=251
Menus:
Text that appears above the main menu is not controlled by the menu manager but rather by the module manager. The text is the title of the module. So simply change the title of the module to what yo would like displayed above the main menu.
JA_Purity template header graphic:
The JA_Purity template uses the function getRandomImage() in /templates/ja_purity/index.php to display a random image from the folder templates/ja_purity/images/header. The function getRandmoImage() is defined in /templates/ja_purity/ja_templatetools.php. It looks for images of type .gif, .jpg or .png in templates/ja_purity/images/header/. Any other files in that directory are ignored. The mask, templates/ja_purity/images/header-mask.png, and the CSS code need all the images in the templates/ja_purity/images/header to be 600x80 pixels.
There is a "PHP Cross Reference of Joomla 1.5.6 Documentation" at apostilas.fok.com.br/docs/joomla-1.5. This is vary handy.
http://cliffcrabtree.com/index.php?option=com_content&view=article&id=3&Itemid=3
http://docs.joomla.org/Replace_the_header_pictures_in_JA_Purity
Joomla: Change Image Width
Ja Purity was not a template club template so I am not 100% sure of this, but if you are using the 1.013 version I would try the directory templates/japurity/ja_vars.php
and find the following code
# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
#support extra color themes
$ja_color_themes = array('default','green','blue'); // You can add more color array if needed
$ja_header_images_wide = array ('header1.jpg','header2.jpg','header3.jpg','header 4.jpg','header5.jpg');
$ja_header_images_narrow = array ('header1-n.jpg','header2-n.jpg','header3-n.jpg','header4-n.jpg','header5-n.jpg');
####################################
# Change the width of the template
$ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768
# default color
$ja_color_default = 'green'; //blank for default, else pick one of in extra color themes $ja_color_themes
#font size default
$ja_font_size_default = 3;
# Enable users option
$ja_tool = 6; // 0: 0: disable all; 1: Screen tool; 2: font tool; 3: screen + font; 4: color tool; 5: screen + color; 6: font + color; 7: all;
# Choose your prefer Menu Type
$ja_menutype = 2; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Moomenu
# END: TEMPLATE CONFIGURATIONS ##########
__________________
Everyone has a photographic memory, some just don't have film.
http://www.joomlart.com/forums/showthread.php?t=11427
and find the following code
# BEGIN: TEMPLATE CONFIGURATIONS ##########
####################################
#support extra color themes
$ja_color_themes = array('default','green','blue'); // You can add more color array if needed
$ja_header_images_wide = array ('header1.jpg','header2.jpg','header3.jpg','header 4.jpg','header5.jpg');
$ja_header_images_narrow = array ('header1-n.jpg','header2-n.jpg','header3-n.jpg','header4-n.jpg','header5-n.jpg');
####################################
# Change the width of the template
$ja_width_default = 'wide'; // 'narrow': 800x600; 'wide': 1024x768
# default color
$ja_color_default = 'green'; //blank for default, else pick one of in extra color themes $ja_color_themes
#font size default
$ja_font_size_default = 3;
# Enable users option
$ja_tool = 6; // 0: 0: disable all; 1: Screen tool; 2: font tool; 3: screen + font; 4: color tool; 5: screen + color; 6: font + color; 7: all;
# Choose your prefer Menu Type
$ja_menutype = 2; // 1: Split Menu; 2: Son of Suckerfish Dropdown Menu; 3: Moomenu
# END: TEMPLATE CONFIGURATIONS ##########
__________________
Everyone has a photographic memory, some just don't have film.
http://www.joomlart.com/forums/showthread.php?t=11427
Joomla: Logo change
Here are some basic instructions to change the logo part.
For Joomla 1.5.3
Changing the Joomla logo in the Purity template
First step design your logo, as a JPG, or suitable image file
/templates/ja_purity/images/
“remember the name of the file”
Upload to your site in the directory
/templates/ja_purity/images/
using your upload tool, Filezilla etc.
Open up your web browser, on two tabs
One with the site, and one in Administrator
In the administrator log-in and go to
Extensions menu
[Template manager]
Choose the template you want to edit
Eg
2
JA_Purity
1.2.0 12/26/07 JoomlArt.com
Then Edit
Then edit ccs
And choose
template.css Unwritable
Then edit
Use ctrl f to find “logo” on the page
h1.logo a {
width: 400px;
display: block;
background: url(../images/trainsforyou.jpg) no-repeat;
height: 80px;
position: relative;
z-index: 100;
then Change background: url(../images/logo.png) no-repeat
to the file name you placed there like
background: url(../images/trainsforyou.jpg) no-repeat
click save and apply you may need to change the width and the height.like I did.
http://www.joomlart.com/forums/showthread.php?t=7092
The Solution
Plan A:
First I tried changing my gif image to a png. This made it show up in IE fine, but my png in Firefox and Safari displayed with a funny outline that I couldn't explain or get rid of.
Plan B:
I went back to using my gif image and simply edited ja_purity/index.php as follows:
1. Removed the call to fixPNG for the logo tag by removing the line
Code:
fixIEPNG($E('h1.logo a'));
2. Removed the logo tag from the IE CSS modifier that moved the background image off the screen. To do this, I changed:
Code:
For Joomla 1.5.3
Changing the Joomla logo in the Purity template
First step design your logo, as a JPG, or suitable image file
/templates/ja_purity/images/
“remember the name of the file”
Upload to your site in the directory
/templates/ja_purity/images/
using your upload tool, Filezilla etc.
Open up your web browser, on two tabs
One with the site, and one in Administrator
In the administrator log-in and go to
Extensions menu
[Template manager]
Choose the template you want to edit
Eg
2
JA_Purity
1.2.0 12/26/07 JoomlArt.com
Then Edit
Then edit ccs
And choose
template.css Unwritable
Then edit
Use ctrl f to find “logo” on the page
h1.logo a {
width: 400px;
display: block;
background: url(../images/trainsforyou.jpg) no-repeat;
height: 80px;
position: relative;
z-index: 100;
then Change background: url(../images/logo.png) no-repeat
to the file name you placed there like
background: url(../images/trainsforyou.jpg) no-repeat
click save and apply you may need to change the width and the height.like I did.
http://www.joomlart.com/forums/showthread.php?t=7092
The Solution
Plan A:
First I tried changing my gif image to a png. This made it show up in IE fine, but my png in Firefox and Safari displayed with a funny outline that I couldn't explain or get rid of.
Plan B:
I went back to using my gif image and simply edited ja_purity/index.php as follows:
1. Removed the call to fixPNG for the logo tag by removing the line
Code:
fixIEPNG($E('h1.logo a'));
2. Removed the logo tag from the IE CSS modifier that moved the background image off the screen. To do this, I changed:
Code: