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/

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





{postrow.POST_SUBJECT}


Sponsor




Insert your ad code here





Sponsor


 












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

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

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

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

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

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

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