Welcome to the forum. If this is your first time you can browse around and see what you like. You will need to be registered in order to post!

Join our community and talk about tech, gaming, get support for computer problems and even sale your own product.
Considering supporting us by subscribing.

phpBB Code

Post Reply
User avatar
Site Admin
Site Admin
Posts: 47
Joined: Sat Jul 01, 2017 9:35 pm

phpBB Code

Post by kachan64 » Fri Nov 30, 2018 11:45 pm

This is a collection of code for phpBB.

We are not responsible for damaged phpBB board. Please create a backup before proceed.

Tested with: 3.2.x

Set gravatar as default for registration:
Open includes/functions_user.php and find:

Code: Select all

		'user_avatar'			=> '',
		'user_avatar_type'		=> '',
Replace with:

Code: Select all

		'user_avatar'			=> strtolower($user_row['user_email']),
		'user_avatar_type'		=> 'avatar.driver.gravatar',
Set gravatar as default for registration (Pt.2):
This will generate random avatar for each user instead of default Gravatar icon.
Open phpbb/avatar/driver/gravatar.php and find:

Code: Select all

			$url .= '?s=' . max($row['avatar_width'], $row['avatar_height']);
Replace with:

Code: Select all

			$url .= '?s=' . max($row['avatar_width']."&d=identicon", $row['avatar_height']);
You can change &d=identicon part to something other than Identicon.
Identicon = identicon
Wavatar = wavatar
MonsterID = monsterid
Retro = retro
Thanks Ephestione's HQ for the Gravatar code.
PC: Custom Built Gaming PC
Monitor: Samsung S24D390H, Asus VE248H

Post Reply

Return to “phpBB”

Who is online

Users browsing this forum: No registered users and 1 guest

Topic Subscribers

1 user subscribed to this topic: kachan64