Welcome, Guest. Please Login or Register.
May 09, 2025, 11:22:14 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Mod Request to Disable Pictures in User Prefrences « previous next »
Pages: [1] 2 Reply Ignore Print
Author Topic: Mod Request to Disable Pictures in User Prefrences  (Read 491 times)
Dktah
Noobie
*
Posts: 2


I think and I forgot why

Mod Request to Disable Pictures in User Prefrences
« on: November 13, 2002, 04:35:30 AM »
Reply with quote

Hi. A site i frequent has recently installed a YabbSE Board this is a chat site and though it adult only many who chat there have small children running about as they review the message boards. No one wishes to disable avatars for posters and the admin dont wish to have to delete any avatar that is racey. They would like if in the Profile section a Member has the Option to Disable Viewing of Avatars. Any help would be Greatly appreciated.
« Last Edit: November 13, 2002, 04:36:28 AM by Dktah » Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #1 on: November 13, 2002, 07:19:01 AM »
Reply with quote

I am also positive this mod exists.  Look in the sticky topics on the completed mods board for it.
Logged

Nemesis
What's an Admin?
Global Moderator
YaBB God
*****
Posts: 2199


WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #2 on: November 14, 2002, 04:54:58 AM »
Reply with quote

I made a mod that disables avatars totally, but not one that allows members to choose to see or not.
Logged


Want to say thanks?
*************************************
DONATE or check out my WishList
*********************************
klumy
Sr. Member
****
Posts: 432


Re:Mod Request to Disable Pictures in User Prefrences
« Reply #3 on: December 27, 2002, 01:52:32 PM »
Reply with quote

Yeah this mod is really needed for modem users !!

The mod should not only disable avatars, it should also disable signatures in the the user profile.

Some memberavatars or signatures are just becoming too big. It's not against avatars in general, but those pictures took a lot of time to load for low speed users.

If you have a cable connection it doesn't matter, but I don't think most users have such a connection.
Logged
sylvester
YaBB God
*****
Posts: 525


Re:Mod Request to Disable Pictures in User Prefrences
« Reply #4 on: December 27, 2002, 05:09:04 PM »
Reply with quote

I thought I've made this mod... ::)
Logged

I'm back
klumy
Sr. Member
****
Posts: 432


Re:Mod Request to Disable Pictures in User Prefrences
« Reply #5 on: December 27, 2002, 05:27:47 PM »
Reply with quote

Where can we find this mod?
Is it 1.5 compatible?
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #6 on: December 28, 2002, 01:01:02 PM »
Reply with quote

Well i doubt that sylvester's mod is compatible with 1.5 but if you want this mod ill look into developing it just tell me and ill do it no problem, thing is I don't know how to do the packages thing for install so it will be an add/edit script on pages or replace files completely if you wish yet this will remove all previous mods.
Logged
klumy
Sr. Member
****
Posts: 432


Re:Mod Request to Disable Pictures in User Prefrences
« Reply #7 on: December 28, 2002, 01:30:42 PM »
Reply with quote

This would be great, if you can do so ;)
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #8 on: December 29, 2002, 11:46:28 AM »
Reply with quote

Yes I can do so welcome to the MOD list lol.
I got a few to make 1-2 weeks ill have it up.

Actually ill see if I can do it in the next 2 days or so as it seems to be a very easy mod but a colum in the database will need to be added in the members table to store this value.
« Last Edit: December 29, 2002, 11:49:01 AM by tdodnz » Logged
klumy
Sr. Member
****
Posts: 432


Re:Mod Request to Disable Pictures in User Prefrences
« Reply #9 on: December 29, 2002, 11:52:17 AM »
Reply with quote

wow, thank you very much for doing this ;)
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #10 on: December 29, 2002, 12:55:57 PM »
Reply with quote

ok its on the list itll be out in a week or so.  ;D
Im making a limit private messages mod, creating v1.1 of my zones mod, making a preview template mod and last but not least a mod that posts a welcome message for each user that joins in a board u specify in admin ??? and also that same mod sends u a PM. so its on the list a week and i should have all of them done that cool, minus 1 or 2 which aren't as wanted as the rest.
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #11 on: December 29, 2002, 01:48:41 PM »
Reply with quote

Well here it is you will have to edit the files yourself as im tired and going to bed can't be bothered making a package for it.

Heres the package script, my problem is the package.list file for the server.
In the members table create a column called show_avatars like so.
ALTER TABLE `database name`.`db prefix_members` ADD `show_avatars` VARCHAR(1) NOT NULL;

<file>
Sources/Display.php
</file>

<search>
$userinfo = $usernamelink . '<br />
<font size="1">
' . $title . '
' . $memberinf . '<br />';

if ($muserID != '-1')
{
</search>

<add>
$disablepic = mysql_query ("SELECT show_avatars FROM {$db_prefix}members WHERE memberName = '$username'");
$pic_array = mysql_fetch_array ($disablepic);
$ShowAvatar = $pic_array['show_avatars'];         
if ($ShowAvatar == 1) {
$show = $userprofile[$mname]['avatar'];
}
            
</add>

<search>
' . $userprofile[$mname]['avatar'] . '
</search>

<replace>
' . $show . '
</replace>

<file>
Sources/Profile.php
</file>

<search>
if ($allowpics)
{
</search>

<add>
$disablepic = mysql_query ("SELECT show_avatars FROM {$db_prefix}members WHERE memberName = '$username'");
$pic_array = mysql_fetch_array ($disablepic);
$checked1 = $pic_array['show_avatars'];
      
if ($checked1 == 1 ) {
$checked1 = ' selected="selected"';
}
</add>

<search>
<tr>
<td width="45%"><font size="2"><b>' . $txt[475] . '</b></font></td>
<td><input type="checkbox" name="userpicpersonalcheck"' . $checked . ' /> <input type="text" name="userpicpersonal" size="45" value="' . $tmp . '" /></td>
</tr>
</search>

<add>
<tr>
<td width="45%"><font size="2"><b>Disable Avatars</b></font></td>
<td><input type="checkbox" name="disablepic"' . $checked1 . ' /></td>
</tr>
</add>

<search>
global $usertitle, $REMOTE_ADDR, $userpic_width, $userpic_height, $mbname;
</search>

<replace>
global $usertitle, $REMOTE_ADDR, $userpic_width, $userpic_height, $mbname, $checked1;
</replace>

<search>
foreach ($HTTP_POST_VARS as $key => $value)
$member[$key] = str_replace(array('&', '"', '<', '>'), array('&amp;', '&quot;', '&lt;', '&gt;'), trim($value));
</search>

<add>

$insert = mysql_query ("UPDATE {$db_prefix}members SET show_avatars = '$disablepic' WHERE memberName = '$username'");

</add>

And thats it you, there is now a check box labelled Disable Avatars on the profiles page if checked no avatars will be shown.
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #12 on: December 29, 2002, 02:17:21 PM »
Reply with quote

Ok ive got the package server up with the package and 1 other on it.
the server URL is
http://www.cnd.net.nz/Zones
copy this URL into the YaBBPak center and add it as a new server, the server name is CyberNet Design
Logged
klumy
Sr. Member
****
Posts: 432


Re:Mod Request to Disable Pictures in User Prefrences
« Reply #13 on: January 03, 2003, 09:11:30 AM »
Reply with quote

@ tdodnz
Once again thank you ;)
Could this mod also be enhanced to disable "user signaturs" in the user profile? Some signature's are as big as normal banners, which is not fast displayed by modem users.

@YabbSE Team
Can we have this mod integrated into next big release please. It's soo usefull  ::)
Logged
tdodnz
Sr. Member
****
Posts: 275


Asleep zzzzz (Snore Snore)

ICQ - 166370583cnd_nz@go.com WWW
Re:Mod Request to Disable Pictures in User Prefrences
« Reply #14 on: January 04, 2003, 07:21:27 AM »
Reply with quote

Ok here you go this disables signatures, same server as above but the avatar mod is needed as this is an addon to it  ;D
« Last Edit: January 04, 2003, 11:26:08 PM by tdodnz » Logged
Pages: [1] 2 Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Mod Request to Disable Pictures in User Prefrences « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.158 seconds with 20 queries.