[1.0.2] Sig, Rank, Avatar OnOff Mod for 2.0.3 - Unmaintained

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.
sunlord
Registered User
Posts: 66
Joined: Wed Jan 16, 2002 5:28 am

[1.0.2] Sig, Rank, Avatar OnOff Mod for 2.0.3 - Unmaintained

Post by sunlord »

I'm looking for someone to take over this mod as i no longer have the time nor interest to maintain it.

Only phpBB 2.0.3 is supported by me sorry.

Devel on 1.1 is starting now. BBCode options and a few other thigns are being looked at for addition in 1.1. I will probally break the mod up in the install info so each mod is actually a seperate install seciton in the file.

All Version prior to 1.0.0 may contain a MAJOR bug that can lead to user becoming admin when they register. This bug has been fixed in 1.0.1 and below is code that can be used to fix previous versions.

Heres a link to 1.0.1

Get it here

1.0.1 contains a bug that breaks the avatar gallery. I posted a possible fix below based on gender mod code. I will update the zip once i test it which won't before a day or so.


The code below will fix the bug if you already have it installed. The problem is caused by the userlevel value when i user creates an account the mod caused the userlevel value to use the default vaul of sigson which is 1 this was fixed by moving the mod to a different place in the insert sql. I don't know if this bug exists in the admin cp or when users updates there info.

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/usercp_register.php

#
#-----[ IN-LINE FIND ]------------------------------------------
#

, user_allow_pm, user_sigson, user_avatarson, user_rankson

#
#-----[ REPLACE ]------------------------------------------
#

, user_allow_pm

#
#-----[ IN-LINE FIND ]------------------------------------------
#

, $user_style, '$sigson', '$avatarson', '$rankson'

#
#-----[ REPLACE ]------------------------------------------
#

, $user_style

#
#-----[ IN-LINE FIND ]------------------------------------------
#
, user_notify_pm, user_popup_pm 
 
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

, user_sigson, user_avatarson, user_rankson,

#
#-----[ IN-LINE FIND ]------------------------------------------
#
, $notifypm, $popuppm

#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

, '$sigson', '$avatarson', '$rankson'

Avatar gallery fix. Untested.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
#  
includes/usercp_register.php

# 
#-----[ FIND ]------------------------------------------ 
# 
display_avatar_gallery(

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
);

# 
#-----[ IN-LINE, BEFORE, ADD ]------------------------------------------ 
# 
, $sigson, $avatarson, $rankson

# 
#-----[ OPEN ]------------------------------------------ 
# 
includes/usercp_avatar.php

# 
#-----[ FIND ]------------------------------------------ 
# 
function display_avatar_gallery(

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
)

# 
#-----[ IN-LINE, BEFORE, ADD ]------------------------------------------ 
# 
, &$sigson, &$avatarson, &$rankson

# 
#-----[ FIND ]------------------------------------------ 
# 
$params = array(

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 
);

# 
#-----[ IN-LINE, BEFORE, ADD ]------------------------------------------ 
# 
, 'sigson', 'avatarson', 'rankson'

Last edited by sunlord on Fri Jan 31, 2003 4:25 am, edited 27 times in total.
User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix »

hum... i think there is a error in your db_update.php file !

there is :

Code: Select all

'ALTER TABLE '.USERS_TABLE.' ADD user_sigson tinyint(1) DEFAULT "1" ',
'ALTER TABLE '.USERS_TABLE.' ADD user_avatarson tinyint(1) DEFAULT "1" ',
'ALTER TABLE '.USERS_TABLE.' ADD user_avatarson tinyint(1) DEFAULT "1"'
but, i think this should be :

Code: Select all

'ALTER TABLE '.USERS_TABLE.' ADD user_sigson tinyint(1) DEFAULT "1" ',
'ALTER TABLE '.USERS_TABLE.' ADD user_avatarson tinyint(1) DEFAULT "1" ',
'ALTER TABLE '.USERS_TABLE.' ADD user_rankson tinyint(1) DEFAULT "1"'
no ? :roll:
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:
User avatar
morpheus2matrix
Former Team Member
Posts: 9171
Joined: Wed Apr 10, 2002 7:31 pm
Location: France
Contact:

Post by morpheus2matrix »

also, you said :

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#

$avatar_sql . "

#
#-----[ REPLACE WITH ]----------------------------------
#

user_sigson = $user_sigson, user_avatarson = $user_avatarson,  user_rankson = $user_rankson
but, this should be :

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#

includes/usercp_register.php

#
#-----[ FIND ]------------------------------------------
#

$avatar_sql . "

#
#-----[ AFTER ADD]----------------------------------
#

,user_sigson = $user_sigson, user_avatarson = $user_avatarson,  user_rankson = $user_rankson
Former phpBB MOD-Team Member -

Forgive my bad English :(

No support by PM/Email - Thanks - You can thanks me here :) - Pay me for installing MOD's :lol:
sunlord
Registered User
Posts: 66
Joined: Wed Jan 16, 2002 5:28 am

Post by sunlord »

Fixed in 0.9.1
Last edited by sunlord on Thu Aug 01, 2002 12:29 pm, edited 1 time in total.
sunlord
Registered User
Posts: 66
Joined: Wed Jan 16, 2002 5:28 am

Post by sunlord »

...
custmguru®
Registered User
Posts: 233
Joined: Wed Apr 10, 2002 6:06 pm
Location: Somewhere, Over the rainbow
Contact:

Post by custmguru® »

ok, so what does this do exactly?

can i use this so that when someone registers the default on the avatar is OFF?

and then i can use the admin CP to turn it on for whoever i choose?
custmguru®
Registered User
Posts: 233
Joined: Wed Apr 10, 2002 6:06 pm
Location: Somewhere, Over the rainbow
Contact:

Post by custmguru® »

ok.

so after perusing this i might be able to make it work.

i should be able to modify this code by making the default go to OFF, and then not giving them the option of modifying it in thier profiles.


how do i turn them off?
custmguru®
Registered User
Posts: 233
Joined: Wed Apr 10, 2002 6:06 pm
Location: Somewhere, Over the rainbow
Contact:

Post by custmguru® »

well, after installing it i realised that it turned off ALL the avatars and sigs. not just the users...

which isnt necesarily a bad thing, just not what im lookiing for...
sunlord
Registered User
Posts: 66
Joined: Wed Jan 16, 2002 5:28 am

Post by sunlord »

Well originally its defaulted to off i just 'fixed' it to default to on -.- cause its less confusing for users... but any ways this isn't meant for admin to pick and choose its mostly for users... you could remove to option from the usercp_register.php so they couldn't set it them selves it wouldn't be that hard either just skip the install part for that one files i think...

Yeah this is more of a mod to let users choose how much gfx they want to get from other users in the form of sigs and avatars... its ment to help the poor 56K people.... :P

Any bugs?

Is needing lil more feedback before Final...
custmguru®
Registered User
Posts: 233
Joined: Wed Apr 10, 2002 6:06 pm
Location: Somewhere, Over the rainbow
Contact:

Post by custmguru® »

yeah. i noticed that. and it turns off all the avatars for that user, not just that particular users avatar.

thanks
funkdoobiest
Registered User
Posts: 2
Joined: Wed Jul 10, 2002 8:57 pm

Post by funkdoobiest »

BUMP

I really need the 0.9.5 version of this mod but the download link is dead!

Can anyone help me?
Kajun
Registered User
Posts: 40
Joined: Mon Feb 18, 2002 4:09 pm
Location: Bonnybridge, Scotland
Contact:

Post by Kajun »

v0.9.9 is working fine now funk.

sunlord: I'll try and get back to you later today, sorry :(
Kajun
funkdoobiest
Registered User
Posts: 2
Joined: Wed Jul 10, 2002 8:57 pm

Post by funkdoobiest »

Thankyou Kajun and sunlord!

I will install this hack tonight - we need it to shut up some of our whinging members who don't like sig images :wink:
sunlord
Registered User
Posts: 66
Joined: Wed Jan 16, 2002 5:28 am

Post by sunlord »

Hehe that why i wanted it also :P and to make myself happy
DoubleDoom
Registered User
Posts: 844
Joined: Wed Jun 26, 2002 6:48 pm

Post by DoubleDoom »

This works on phpbb2.0.2 but you need to be wary that some of the order of the code has changed with viewtopic so that you have to go back up at one point to adjust the code.
Post Reply

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