[RC1] Username make

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
[PT]BlueDragon
Registered User
Posts: 60
Joined: Wed Mar 02, 2005 3:25 pm

[RC1] Username make

Post by [PT]BlueDragon » Sun Jan 14, 2007 12:25 pm

hi people, i do this little mod because i need it to my own forum...

i hope you like it

DOWNLOAD

Code: Select all

##############################################################
## MOD Title: Username Make
## MOD Author: Blue < carloszephid@gmail.com > (PTSeries) http://www.pt-series.com/
## MOD Description: Replaces boring usernames by image with the username, in viewtopic
## MOD Version: 0.1.0
## 
## Installation Level: Easy
## Installation Time: ~ 3 Minutes 
## Files To Edit: 
##		viewtopic.php
##
## Included Files:
##    install.txt
##    usernamemake.php to /
##    usernamemake/username.gif to /usernamemake/
##    usernamemake/trebucbd.ttf
############################################################## 
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/ 
############################################################## 
## Author Notes: 
## 
## You server needs to have GD for this mod to work, contact your host if you are unsure. If you have any questions feel free to ask them in my forum which is located here: www.elektro.net.tf
##
############################################################## 
## MOD History: 
##
##   2007-01-13 - Version 0.1.0
##      - First version, seems to work fine.
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
#
#-----[ COPY ]------------------------------------------
#
copy usernamemake.php to / usernamemake.php

copy usernamemake/username.gif to /usernamemake/username.gif

#
#-----[ SQL ]------------------------------------------
# 

INSERT INTO phpbb_config(config_name, config_value) VALUES ('username_url', 'usernamemake/username.gif');

# 
#-----[ OPEN ]------------------------------------------
# 
viewtopic.php
# 
#-----[ FIND ]------------------------------------------
# 

		'POSTER_NAME' =>....
			
#
#-----[ REPLACE WITH ]------------------------------------------ 
# 

		'POSTER_NAME' =>($poster_name = '<img src="usernamemake.php?color=' . $board_config['username_url'] . '&name=' . $poster . '" alt="" border="0" />')? $poster_name : $poster,


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
Last edited by [PT]BlueDragon on Sun Jan 14, 2007 5:35 pm, edited 1 time in total.

kkroo
Registered User
Posts: 729
Joined: Sat Dec 03, 2005 4:49 pm
Contact:

Post by kkroo » Sun Jan 14, 2007 4:05 pm

Cool mod you got there!
My MODs

Need a coder?

Enjoy my Mods? - Image

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Sun Jan 14, 2007 4:17 pm

Sounds interresting! Can you post a demo? And does it handle special chars? (such as in my username)
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Post by kber » Sun Jan 14, 2007 4:29 pm

a demo will be very nice :)

User avatar
IPlasma
Registered User
Posts: 101
Joined: Sun Jul 04, 2004 9:36 pm
Location: Bretagne Sud (France)

Post by IPlasma » Sun Jan 14, 2007 4:43 pm

demo: http://www.pt-series.com/viewtopic.php?t=6

i just copied the link of the download one and removed the zip part :wink:

[PT]BlueDragon
Registered User
Posts: 60
Joined: Wed Mar 02, 2005 3:25 pm

Post by [PT]BlueDragon » Sun Jan 14, 2007 4:49 pm

eviL<3 wrote: Sounds interresting! Can you post a demo? And does it handle special chars? (such as in my username)


yes... it supports all chars that trebuche font supports..

tks

Paul
Infrastructure Team Leader
Infrastructure Team Leader
Posts: 25482
Joined: Sat Dec 04, 2004 3:44 pm
Location: The netherlands.
Name: Paul Sohier
Contact:

Post by Paul » Sun Jan 14, 2007 5:16 pm

Hello,

Please edit your topic title with a prefix as outlined in MOD Development forum rules, section 3.a. This will allow people to see the development status of your MOD at a glance.

Thank you,
The phpBB MOD Team
Knock knock
Race condition
Who's there?

My BlogMy Photosmy phpBB Extensionscustom phpBB work & Development

User avatar
tahoebuff
Registered User
Posts: 1427
Joined: Tue Jul 20, 2004 12:33 am
Location: Nevada
Name: Michael
Contact:

Post by tahoebuff » Sun Jan 14, 2007 5:17 pm

Great Mod...

Looks very good on my Morpheus Blue :D

Tahoebuff

Electra736
Registered User
Posts: 270
Joined: Fri Aug 11, 2006 4:25 pm

Post by Electra736 » Sun Jan 14, 2007 5:20 pm

Great MOD. 8)

mzonas
Registered User
Posts: 6
Joined: Mon Aug 21, 2006 7:52 am
Location: Old Hatfield / GB
Contact:

Post by mzonas » Sun Jan 14, 2007 5:30 pm

IPlasma wrote: demo: http://www.pt-series.com/viewtopic.php?t=6

i just copied the link of the download one and removed the zip part :wink:



WHOA !!! 8O

This mod looks very nice... I will use this mod !!! Very nice and great job, thank you, [PT]BlueDragon.

User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Post by igorw » Sun Jan 14, 2007 5:49 pm

Looks awesome! You need to unhtmlspecialchars() it though, i think...

Code: Select all

if ( !function_exists('htmlspecialchars_decode') )
{
   function htmlspecialchars_decode($text)
   {
       return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
   }
}
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three

deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet » Sun Jan 14, 2007 5:51 pm

i can definately see potential in this mod... would it be possible to merge the users avatar into the image also just like tahoebuff avatar here :)

[PT]BlueDragon
Registered User
Posts: 60
Joined: Wed Mar 02, 2005 3:25 pm

Post by [PT]BlueDragon » Sun Jan 14, 2007 5:56 pm

yes its possible, i think there is a mod that do that...

deejaybet
Registered User
Posts: 1814
Joined: Thu Dec 08, 2005 2:01 pm
Location: Derry, Northern Ireland
Contact:

Post by deejaybet » Sun Jan 14, 2007 6:06 pm

well will you make that or post the code here :)

[PT]BlueDragon
Registered User
Posts: 60
Joined: Wed Mar 02, 2005 3:25 pm

Post by [PT]BlueDragon » Sun Jan 14, 2007 6:20 pm

i don't know, but i think that is "avatar magik", it uses also the image magik system... like my mod

Post Reply

Return to “[2.0.x] MODs in Development”