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

Wanted to know more about how to improve your site? Ask here!
Post Reply
User avatar
kachan64
USER_STATUS: Offline
Site Admin
Site Admin
Posts: 34
Joined: Sat Jul 01, 2017 9:35 pm
Contact:

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.
Image
PC: Custom Built Gaming PC
Monitor: Samsung S24D390H, Asus VE248H

Post Reply

Return to “Web Design Section”

Who is online

Users browsing this forum: No registered users and 0 guests

Topic Subscribers

1 user subscribed to this topic: kachan64