News:

Wondering if this will always be free?  See why free is better.

Main Menu

Generic Avatars

Started by Deprecated, November 06, 2008, 12:59:52 PM

Previous topic - Next topic

Deprecated

You're going to have to quit installing and uninstalling mods while we are working on this. I'm sure you can understand that I already fixed ManageSettings.php and now you're asking me to fix it again. Why don't you just uninstall the new mod, replace the file, then reinstall the new mod? I told you, I removed every trace of my mod from the file that you posted.

Do not install any more mod packages until this is fixed! Even better, uninstall that other mod. Okay?

In the mean time tell me what SMF version you are using and what mod packages you have installed: complete list.

Also, there is one sure way you can fix it on your end if you want. Just uninstall ALL of your mod packages, then replace all your SMF files with fresh files from the SMF version you are using. Then reinstall the mod packages after that.

Also, if the problem is not solved today please post a screen shot so I can see exactly what your problem looks like.

Deprecated

Okay here's your fixed ModificationSettings.php

Your Display.template.php file didn't have any code from the Generic Avatars mod.

Attach your Admin.php to your reply. Or if you wish, you can edit your Admin.php file yourself.

1. Find the line that has// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:

2. In the next line or next few lines find my code and remove it'generic_avatars' => array($txt['generic_avatars_cat']),

In the mean time do not install or uninstall any mod packages. I can't keep chasing a moving target.

GamePersia

Quote from: Deprecated on February 26, 2014, 02:34:36 PM
Okay here's your fixed ModificationSettings.php

Your Display.template.php file didn't have any code from the Generic Avatars mod.

Attach your Admin.php to your reply. Or if you wish, you can edit your Admin.php file yourself.

1. Find the line that has// Mod Authors for a "ADD AFTER" on this line. Ensure you end your change with a comma. For example:

2. In the next line or next few lines find my code and remove it'generic_avatars' => array($txt['generic_avatars_cat']),

In the mean time do not install or uninstall any mod packages. I can't keep chasing a moving target.
;D ;D
By deleting that line from admin.php,...solved my problem !!... ;D ;D
Thanks,...Dude....

Deprecated

Great! I'm glad you can edit code. I never know which ppl can and which can't, unless they say.

So you're good to go, you are welcome, and I'm glad my help solved your problem.

Good luck with your forum!

420Connect.co.uk

Looking to try out this mod but I think another mod has changed this line in my Display template...


// Otherwise, show the guest's email.
elseif (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" border="0" />' : $txt['email']), '</a></li>';


I have:

// Otherwise, show the guest's email.
elseif (!empty($message['member']['email']) && in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li class="email"><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" />' : $txt['email']), '</a></li>';


(to be replaced by...*)


// Otherwise it's a guest.
else
{
// Show generic guest avatar?
if (!empty($modSettings['generic_avatars_guest_enable']) && !empty($modSettings['generic_avatars_guest_image_url']) && !empty($settings['show_user_images']) && empty($options['show_no_avatars']))
echo '
<li class="margintop" style="overflow: hidden;"><img src="' . $modSettings['generic_avatars_guest_image_url'] . '"  alt="" class="avatar" border="0" /></li>';

// Show the guest's email?
if (in_array($message['member']['show_email'], array('yes', 'yes_permission_override', 'no_through_forum')))
echo '
<li><a href="', $scripturl, '?action=emailuser;sa=email;msg=', $message['id'], '" rel="nofollow">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt['email'] . '" title="' . $txt['email'] . '" border="0" />' : $txt['email']), '</a></li>';
}


Much appreciated if you can help merging the versions together!
www.420Connect.co.uk ~ A Social Network For The #CannabisCommunity ~ Come say "High" ;)

Deprecated

Sorry, no can do. My suggestion is to uninstall both mods, install Generic Avatars, then verify all is working. Download backup copies of the affected files (see the mod package info).

Then install your other mod and see what changes it makes, see if you can figure it out.

Generic Avatars works perfectly with 2.0.9 and default theme. I'm about to go to the new SMF release shortly, will report back if I encounter any difficulties.

Debbie3

Hi I installed the avatars, I am using SMF 2.0.11 Vertex Theme. It is listed under configuration Generic Avatars in my admin panel, but the avatars are not showing up on the board for members who did not choose an avatar.
Please advise.
Thank you

Debbie3

I just realized it is working but not on the mod I installed to show icons in the last post posted in each section of my forums. Is there any way to get them to show up there?

Deprecated

Without any more information all I can tell you is that this modification changes the theme template, and you will have to manually edit your template to make Generic Avatars work. IIRC that's Display.template.php but don't hold me to it.

-Rock Lee-

@Deprecated very good modification ;D why I would like to work in Spanish also appreciate why I leave the Spanish language Latin translation

Modifications.spanish_latin.php
$txt['generic_avatars'] = 'Avatares gen&eacute;ricos';
$txt['generic_avatars_cat'] = 'Avatares gen&eacute;ricos';
$txt['generic_avatars_banned_enable'] = 'Habilitar avatares gen&eacute;ricos prohibidos:';
$txt['generic_avatars_banned_image_url'] = 'URL de la imagen del avatar prohibido:';
$txt['generic_avatars_female_image_url'] = 'URL de la imagen del avatar mujer:';
$txt['generic_avatars_gender_enable'] = 'Permitir la selecci&oacute;n basada en el g&eacute;nero:';
$txt['generic_avatars_guest_enable'] = 'Habilitar avatares gen&eacute;ricos de los visitantes:';
$txt['generic_avatars_guest_image_url'] = 'Avatar Invitado, URL de la imagen:';
$txt['generic_avatars_male_image_url'] = 'URL de la imagen del avatar hombre:';
$txt['generic_avatars_member_enable'] = 'Habilitar avatares gen&eacute;ricos para miembros:';
$txt['generic_avatars_neutral_image_url'] = 'Avatar neutral, URL de la imagen:';
$txt['generic_avatars_settings_title'] = 'Avatares gen&eacute;ricos';


and Modifications.spanish_latin-utf8.php
$txt['generic_avatars'] = 'Avatares genéricos';
$txt['generic_avatars_cat'] = 'Avatares genéricos';
$txt['generic_avatars_banned_enable'] = 'Habilitar avatares genéricos prohibidos:';
$txt['generic_avatars_banned_image_url'] = 'URL de la imagen del avatar prohibido:';
$txt['generic_avatars_female_image_url'] = 'URL de la imagen del avatar mujer:';
$txt['generic_avatars_gender_enable'] = 'Permitir la selección basada en el género:';
$txt['generic_avatars_guest_enable'] = 'Habilitar avatares genéricos de los visitantes:';
$txt['generic_avatars_guest_image_url'] = 'Avatar Invitado, URL de la imagen:';
$txt['generic_avatars_male_image_url'] = 'URL de la imagen del avatar hombre:';
$txt['generic_avatars_member_enable'] = 'Habilitar avatares genéricos para miembros:';
$txt['generic_avatars_neutral_image_url'] = 'Avatar neutral, URL de la imagen:';
$txt['generic_avatars_settings_title'] = 'Avatares genéricos';



Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Deprecated

Thank you. Again, my present day job takes too much of my available time to update present mod packages. However when SMF 2.1 stable is released I intend to review my ensemble and assess the feasibility of upgrading them for 2.1 compatibility, and add collected suggestions like yours Rock.

-Rock Lee-

Quote from: Deprecated on August 26, 2016, 08:49:03 PM
Thank you. Again, my present day job takes too much of my available time to update present mod packages. However when SMF 2.1 stable is released I intend to review my ensemble and assess the feasibility of upgrading them for 2.1 compatibility, and add collected suggestions like yours Rock.

@Deprecated Excuse my delay in responding, but I've taken some more time to peruse (slow but for my bad English lol) and say no problem when you can;) will always be helping, as I said gladly collaborate on what you can!


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Advertisement: