Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1398)
MOD Reflection Avatar v1.1
==================
| M-DVD (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997) |
| 1.1 |
| 11th September 2008 |
| Nothing ~ All |
| SMF 1.1.1 - 1.1.8 SMF 2 Beta 3 & 4 & RC1 |
|
| Comment this Mod (http://www.simplemachines.org/community/index.php?action=post;topic=262194.0) |
| My MODs (http://custom.simplemachines.org/mods/index.php?action=profile;u=148997) |
|
- Update v1.1: See More (http://www.simplemachines.org/community/index.php?topic=262194.msg1792607#msg1792607)
- Known Issues: Solutions (http://www.simplemachines.org/community/index.php?topic=262194.msg1792608#msg1792608)
With this MOD you can add a nice effect of reflection at all Avatars, automatically, without making changes in the images and without adding more work to the server.
Thanks and Credits authorship of reflection.js 2.0 to: cow.neondragon.net (read licence.txt)Compatibility:
- Internet Explorer 5.5+
- Mozilla Firefox 1.5+
- Opera 9+
- Safari
- Google Chrome
On older browsers, it'll degrade and your visitors won't notice a thing. Best of all, it's under 5KB.
==========================
Con este Mod es posible agregar un bonito efecto de reflejo a todos los Avatares, de forma automatica, sin hacer cambios en las imagenes y sin aplicarle mas carga al server.
Agradecimientos y Creditos de autoria del reflection.js 2.0 a: cow.neondragon.net (leer la licencia)Compatible con:
- Internet Explorer 5.5+
- Mozilla Firefox 1.5+
- Opera 9+
- Safari
- Google Chrome
En navegadores viejos se comporta como si no estuviera. Y solo ocupa 5KB.
Gracias a
kenet (http://www.simplemachines.org/community/index.php?action=profile;u=141702) por la idea.
Fin.
OK I give up.
I installed it and no reflection. What do i have to do to get the reflections? It doesn't work under FF 3.0.1 under Ubuntu Linux or Windows Vista running FF.
FF 3.0.1 here xrunner and it worked fine immediately on install. Nice effect
Quote from: Rafferty on September 15, 2008, 08:45:14 PM
FF 3.0.1 here xrunner and it worked fine immediately on install. Nice effect
So it just "works" with no permission settings or check boxes to check? I've tried it on two different computers and no-go.
Nothing xrunner, I just installed it and it worked
Quote from: Rafferty on September 15, 2008, 09:00:53 PM
Nothing xrunner, I just installed it and it worked
OK - well I'm taking it off until the author chimes in on this thread. Thanks.
not working on Aa new damage theme .. i edited the index template and steal not working
not working for me either... FF3.
Hi.
The MOD is very simple. It installs and runs. There is nothing to configure.
I hope you like it.
Quote from: xrunner on September 15, 2008, 07:58:54 PM
OK I give up.
I installed it and no reflection. What do i have to do to get the reflections? It doesn't work under FF 3.0.1 under Ubuntu Linux or Windows Vista running FF.
Quote from: BOS4O on September 15, 2008, 09:22:36 PM
not working on Aa new damage theme .. i edited the index template and steal not working
Quote from: timned88 on September 15, 2008, 09:24:35 PM
not working for me either... FF3.
I use FF 3.01 under Windows and work for me.
The reflection is done with JS, so if it does not work is perhaps due to clash with another JS its Web (or even advertising host).
The JS is not made by me, is cow.neondragon.net.
There you will see from which browsers works (Internet Explorer 5.5+, Mozilla Firefox 1.5+, Opera 9+ and Safari), and can download the latest version, whenever they want. (now v1.9 is included in the package).
--
Thanks for trying out the MOD, and most grateful if they liked.
If they have doubts and problems, alert and try to help.
Great mod. Works fine in my site using Firefox 3 ^_^. Thank a lot for this.
Quote from: M-DVD on September 15, 2008, 09:53:35 PM
I use FF 3.01 under Windows and work for me.
Well I am on a computer that is using FF 3.01 and Vista and it doesn't work on my forum. So unless you can give me some ideas on what to do or what files to modify, I'll have to uninstall it.
First is to find the cause, Is the browser? Does the browser+OS? Do other JS?
...Can you give the URL of your forum?
:)
Quote from: M-DVD on September 15, 2008, 10:25:44 PM
First is to find the cause, Is the browser? Does the browser+OS? Do other JS?
I think there is a slight language barrier going on here, I don't know what "Do other JS?" means.
Quote
...Can you give the URL of your forum?
Look at my signature...
Quote from: xrunner on September 15, 2008, 10:35:36 PM
I think there is a slight language barrier going on here, I don't know what "Do other JS?" means.
Possibly. I hope it is not serious. :-[
If there's a lot javascript in your web, some script that can not work.
Quote from: xrunner on September 15, 2008, 10:35:36 PM
Look at my signature...
I wanted to see if you had installed the MOD.
If the MOD was installed, wanted to see if I could see the reflection.
If I could see the reflection (Cause = Browser + OS)
If I could not see the reflection (Cause = other scripts js)
Edit: Did you test with another browser? with another OS?
I added this last week from the original site, and had problems with my gif images returning a blue reflection(other formats are fine), and the avatars being resized back to their original dimensions, canceling the forum settings.
This does not correct those issues.
Do you have any idea how to remedy these 2 actions?
Thank You in advance :)
hi
the mod works Perfectly in Firefox 3.x for windows and linux (tested in ubuntu and debian) thanks M-DVD ;)
it works with the default template but the Aa new damage no
Quote from: M-DVD on September 15, 2008, 10:49:54 PM
If there's a lot javascript in your web, some script that can not work.
That maybe the answer to my questions.
Nice mod M-DVD.
Keep up the good work
Quote from: M-DVD on September 15, 2008, 10:49:54 PM
If there's a lot javascript in your web, some script that can not work.
I have nneonneo's shout box installed - does that count?
Quote
If I could not see the reflection (Cause = other scripts js)
Edit: Did you test with another browser? with another OS?
Yes I did, I already said that though. I tested with two different computers - one windows and FF 3.01 and the other with Ubuntu Linux with FF 3.01. Neither shows a reflection, and there are no problems with my forum that I'm aware of, but I am using nneonneo's shoutbox (which is working fine).
Quote from: xrunner on September 16, 2008, 07:31:35 AM
Yes I did, I already said that though. I tested with two different computers - one windows and FF 3.01 and the other with Ubuntu Linux with FF 3.01. Neither shows a reflection, and there are no problems with my forum that I'm aware of, but I am using nneonneo's shoutbox (which is working fine).
Ok, i have no doubt, isn't the browser, isn't the OS. It is a script on your site.
Some of the script that is already working, must be collisions with reflejct.js.
For example, the following case:
Quote from: BOS4O on September 16, 2008, 03:56:13 AM
it works with the default template but the Aa new damage no
Try deleting:
onload = "PreloadFlag = true;" I think will work.
Quote from: M-DVD on September 16, 2008, 08:33:54 AMTry deleting: onload = "PreloadFlag = true;" I think you will work.
I'd love to try that if you would please be more specific as to where that is located. I have no idea where to find that line of code. Please specify the filename where it is located.
Excuse me, that recommendation was for BOS4O, in the theme
Aa new damage, the file
index.template.php XD.
In your case, let me investigate a little to find the cause (the script). 
Edit:
The cause of the fault seems to me this (index.template.php, I suppose):
window.onload=function(){loadChat();};Try deleting
If removing it works, then ... I will seek an alternative
Yes conflict with ajax shoutbox...
window.onload=function(){loadChat();LOADREFLECTION()};
Somone needs to find out what the other onload statement is.. and needs to add it together..
Thats my theory.. i think the creator of the mod will use this idea and give you fix soon.
It works perfectly for me!!
FF 3.0.1! :)
Thanks for this MOD, is fantastic! ;)
Thats becuase you dont have neeones shoutbox installed ;) i advise you not to install that mod if you wish to have reflections hehe
yea it works perfectly now tnx ;D
it loud be nice to add gif support :P
Possible to make this work with Neeones Shoutbox ?
Quote from: M3THOD on September 16, 2008, 04:49:34 PM
Yes conflict with ajax shoutbox...
window.onload=function(){loadChat();LOADREFLECTION()};
Somone needs to find out what the other onload statement is.. and needs to add it together..
Thats my theory.. i think the creator of the mod will use this idea and give you fix soon.
True, there is a pattern.
When there is another statement onload, missed the first declared (Reflect).
--
So you can try this:
1 .- Clear one of the two.
2 .- put together (as M3THOD say)
In the latter case, you can try to put together well:
window.onload=function(){ loadChat(); if(previousOnload) previousOnload(); addReflections(); };Green: Other MODs (in this case: nneonneo)
Blue: MOD Reflect
XD...el primero respondiendo en español, mi pregunta es que debo modificar para que funcione con mi theme, este el silent wave, pues lo instale y nada de nada,
saludos
Quote from: M-DVD on September 17, 2008, 12:00:51 PM
window.onload=function(){ loadChat(); if(previousOnload) previousOnload(); addReflections(); };
Would you kindly tell me where to find that line of code - what file is it in?
Quote from: Guittenk on September 17, 2008, 04:14:39 PM
XD...el primero respondiendo en español, mi pregunta es que debo modificar para que funcione con mi theme, este el silent wave, pues lo instale y nada de nada,
saludos
Si, al fin alguien XD.
Es bastante simple, solo debes abrir el
index.template.php de tu theme y buscar:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>Y le añades:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js?fin11"></script>Quote from: xrunner on September 17, 2008, 04:53:22 PM
Quote from: M-DVD on September 17, 2008, 12:00:51 PM
window.onload=function(){ loadChat(); if(previousOnload) previousOnload(); addReflections(); };
Would you kindly tell me where to find that line of code - what file is it in?
No problem.
Search in
index.template.php:
window.onload=function(){loadChat();};Replace with:
window.onload=function(){ loadChat(); if(previousOnload) previousOnload(); addReflections(); };
Thanks it works now

WITH IE 7 ON WIN XP SP3!!!
Is there any fix?? :(
Is because avatars are very large and because IE bet XD
Solutions:1 .- Reduce the size of avatars.
Or2 .- Edit the style.css and add to final
.avatar { overflow: hidden; } O:)
Quote from: feelingshehides on September 17, 2008, 05:16:33 PM
Thanks it works now
Ahhhhh, i am glad, i thought that this problem would be my Nemesis XD
Quote from: M-DVD on September 17, 2008, 05:05:38 PM
Replace with:
window.onload=function(){ loadChat(); if(previousOnload) previousOnload(); addReflections(); };
Yes thanks this did solve the issue. Appreciate it!
Doesn't work in google Chrome :)
Very good! Oh man, nice designing mod...;-)
e.g.: http://www.porno.mystiq4ever.sk/index.php?action=profile;u=1
Quote from: Rafferty on September 15, 2008, 08:45:14 PM
FF 3.0.1 here xrunner and it worked fine immediately on install. Nice effect
Quote from: fangweile on September 15, 2008, 10:04:55 PM
Great mod. Works fine in my site using Firefox 3 ^_^. Thank a lot for this.
Quote from: manfred on September 15, 2008, 11:28:06 PM
hi
the mod works Perfectly in Firefox 3.x for windows and linux (tested in ubuntu and debian) thanks M-DVD ;)
Quote from: Sabre™ on September 16, 2008, 04:15:50 AM
That maybe the answer to my questions.
Nice mod M-DVD.
Keep up the good work 
Quote from: lorenzone92 on September 16, 2008, 05:10:49 PM
It works perfectly for me!!
FF 3.0.1! :)
Thanks for this MOD, is fantastic! ;)
Quote from: BOS4O on September 16, 2008, 05:51:09 PM
yea it works perfectly now tnx ;D
it loud be nice to add gif support :P
Quote from: feelingshehides on September 17, 2008, 05:16:33 PM
Thanks it works now
Quote from: xrunner on September 19, 2008, 04:45:49 PM
Yes thanks this did solve the issue. Appreciate it!
Quote from: ALL4MOBIL on September 20, 2008, 11:13:18 AM
Very good! Oh man, nice designing mod...;-)
e.g.: http://www.porno.mystiq4ever.sk/index.php?action=profile;u=1
Thank you very much for using the MOD and I am glad they have liked. :D
I will continue doing things :D
I got it to work for my forum, but the reflections do not seem to work for the avatar shown in the shoutbox itself. How can I fix this?
Actualy the avatar I'm talking about thats not showing the reflection is not related to ajax but is the users avatar located in the main header which is also where the shoutbox is located. Any suggestions?
Quote from: M-DVD on September 18, 2008, 02:44:24 PM
Is because avatars are very large and because IE bet XD
Solutions:
1 .- Reduce the size of avatars.
Or
2 .- Edit the style.css and add to final .avatar { overflow: hidden; }
O:)
Quote from: feelingshehides on September 17, 2008, 05:16:33 PM
Thanks it works now
Ahhhhh, i am glad, i thought that this problem would be my Nemesis XD
Will you add this fix to the next version? :)
Hi
Quote from: Zk5 on September 21, 2008, 09:37:18 PM
I got it to work for my forum, but the reflections do not seem to work for the avatar shown in the shoutbox itself. How can I fix this?
URL?
Some of these ways:
1.- Search in
index.template.php: window.onload=function(){loadChat();};
(or similar)
Replace with:
window.onload=function(){ loadChat(); if(previousOnload) previousOnload(); addReflections(); };2.- Search:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js?fin11"></script>
Move to, before:
</head>
Example:
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js?fin11"></script>
</head>Quote from: lorenzone92 on September 22, 2008, 08:56:25 AM
Quote from: M-DVD on September 18, 2008, 02:44:24 PM
Is because avatars are very large and because IE bet XD
Solutions:
1 .- Reduce the size of avatars.
Or
2 .- Edit the style.css and add to final .avatar { overflow: hidden; }
O:)
Quote from: feelingshehides on September 17, 2008, 05:16:33 PM
Thanks it works now
Ahhhhh, i am glad, i thought that this problem would be my Nemesis XD
Will you add this fix to the next version? :)
Possibly. It's a minor change, and easy to do manually. Furthermore, only operate in the default theme.
:D
That didn't seem to do the trick...
Thanks.
Which is the URL of your forum?
To check which may be the script that cancels reflect.
i've tried to install this, but it installs straight to the default theme, and i'm using a custom one. what do i need to edit in my theme to get this to work?
Quote from: haley on October 16, 2008, 05:47:55 PM
i've tried to install this, but it installs straight to the default theme, and i'm using a custom one. what do i need to edit in my theme to get this to work?
Hi
Is very easy
You must edit the "index.template.php"
Find
</head>
and put before
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js?fin11"></script>
or in SMf beta 2
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/reflection.js?b4"></script>
Works perfect on FF, Opera, Safari and IE.
But not in Chrome (it just duplicates the avatar).
Just to let you know... ;)
Quote from: dimdom on October 19, 2008, 02:32:56 AM
Works perfect on FF, Opera, Safari and IE.
But not in Chrome (it just duplicates the avatar).
Just to let you know... ;)
Hi, Monday or Wednesday I will make an update, I will also whin the Reflection Img BBC (http://custom.simplemachines.org/mods/index.php?mod=1415)
Whey hey! Installed it, edited the theme, works like a charm.
Cheers. :)
Hey there, this doest work for ME :( Im using smf 1.6 with ironwow theme, t worked perfectly on 2.0 beta 4, but not this.. Im only using neos shoutbox with this, but did use that code that you supplied but stil nothing..
Please help M-DVD?
works fine for me and i have alot of other js scripts working and alot of other mods installed. Give it a few seconds to load won't always show the reflection instantly.
great job! :)
im permanently on the site, so it isnt load time.
Thanks for this nice tweek works great :)
Una duda, en mi foro, hay gente que le gusta y gente que no le gusta como queda su avatar ???
Se podría hacer que cada uno eligiera si quiere que se haga el reflejo en su avatar o no ??
tengo darkbreak instalado en mi foro y lo instale normalmente luego fui a index.temple.php y puse
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/reflection.js?b4"></script>
antes de <head> y entre ala carpeta de themes darkbreak y puse el script de reflecciones y no funciona en ke me perdi ke debo hacer para ke funcione bien?
Update Reflection Avatar v1.1:
====================New features:
- Includes reflection.js v2.0
- Work in Google Chrome
- Fixes IE's bug with large Avatars
- Eliminates problems with other MOD that have js (as nneonneo's shout box)
How do I upgrade?
- Uninstall the previous version
- Install the new
=======================================
Características Nuevas:
- Incluye el reflection.js v2.0
- Trabaja en Google Chrome
- Corrige un Bug de IE con Avatares grandes
- Elimina la colisión con otros MOD que incluyen js (como nneonneo's shoutbox)
¿Como actualizar?
- Desintalar la anterior versión
- Instalar la nueva
Known Issues:
==========
Problem:
1.- I have a theme (for example: Theme Cargo) the avatar have align center, then using the MOD Reflect Avatar the avatar is aligned to the left.
2.- I want to put the avatar in the center
Answer: Edit the style.css and added to the end:
.avatar { margin: auto }
and Refresh your site with: Ctrl+F5
Problemas Conocidos:
===============
Problema:
1.- Tengo un theme (por ejemplo: Theme Cargo) donde el Avatar está en el centro, y luego de usar el MOD Avatar Reflect, el avatar se alinea a la izquierda
2.- Quiero poner el avatar en el centro
Respuesta: Edita el style.css y añade al final:
.avatar { margin: auto }
Refresca la página con Ctrl+F5
Quote from: lorenzone92 on September 22, 2008, 08:56:25 AM
Will you add this fix to the next version? :)
Done, thank for idea 8)
Quote from: dimdom on October 19, 2008, 02:32:56 AM
Works perfect on FF, Opera, Safari and IE.
But not in Chrome (it just duplicates the avatar).
Just to let you know... ;)
Solved :D
Quote from: Dave P on October 25, 2008, 03:29:56 PM
Whey hey! Installed it, edited the theme, works like a charm.
Cheers. :)
Quote from: Final60 on October 29, 2008, 11:47:28 AM
works fine for me and i have alot of other js scripts working and alot of other mods installed. Give it a few seconds to load won't always show the reflection instantly.
great job! :)
Thanks for yours comments :D
Quote from: Pho3niX90 on October 29, 2008, 08:26:10 AM
Hey there, this doest work for ME :( Im using smf 1.6 with ironwow theme, t worked perfectly on 2.0 beta 4, but not this.. Im only using neos shoutbox with this, but did use that code that you supplied but stil nothing..
Please help M-DVD?
Sorry for the delay.
Try the new version :D
Quote from: klonico on November 07, 2008, 06:12:11 PM
Una duda, en mi foro, hay gente que le gusta y gente que no le gusta como queda su avatar ???
Se podría hacer que cada uno eligiera si quiere que se haga el reflejo en su avatar o no ??
Poooosiblemente para otra versión :'(
Quote from: sombra on November 07, 2008, 06:30:27 PM
tengo darkbreak instalado en mi foro y lo instale normalmente luego fui a index.temple.php y puse
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/reflection.js?b4"></script>
antes de <head> y entre ala carpeta de themes darkbreak y puse el script de reflecciones y no funciona en ke me perdi ke debo hacer para ke funcione bien?
Prueba con la nueva versión :D
Looks great - I will try it live as soon as I install SMF again. :) Suggestion - there should be an option available to the users to disable the reflection.
Possibly, in the next version.
thank you! nice mod!
Only a question...
Why in Firefox, Opera, safari animated gif don't work?
In IE with animated gif there are no problem.
Thank you, bye :)
ho do i align center the avatar? the avatar align center in IE but left align in FF
Quote from: Neo2099 on November 29, 2008, 02:42:55 AM
thank you! nice mod!
Only a question...
Why in Firefox, Opera, safari animated gif don't work?
In IE with animated gif there are no problem.
Thank you, bye :)
Thank you.
So far i know, is "problem" of the browsers, not the script.
Quote from: qubbah on November 29, 2008, 09:47:10 AM
ho do i align center the avatar? the avatar align center in IE but left align in FF
Already did this?
http://www.simplemachines.org/community/index.php?topic=262194.msg1792608#msg1792608
and Refresh your site with: Ctrl+F5
and tell me if it works.
Quote from: M-DVD on October 16, 2008, 10:10:06 PM
Quote from: haley on October 16, 2008, 05:47:55 PM
i've tried to install this, but it installs straight to the default theme, and i'm using a custom one. what do i need to edit in my theme to get this to work?
Hi
Is very easy
You must edit the "index.template.php"
Find
</head>
and put before
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/reflection.js?fin11"></script>
or in SMf beta 2
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/reflection.js?b4"></script>
Never worked for me, I'm using MysticOpal and I don't have any other java problems or java based mods installed. Any ideas?
But possibly your host has adds, js, popups.
URL of your forum?
Hey, I've closed the forum now, but no there was no popups or js from the host, thanks anyway
Nope this mod still doesn't center the avatars for Chrome or FF3, it instead left aligns them
Quote from: Lord Anubis on December 13, 2008, 11:54:40 PM
Nope this mod still doesn't center the avatars for Chrome or FF3, it instead left aligns them
Hi.
Edit your
style.cssSearch:
.avatar { overflow: hidden; }
Replace:
.avatar { overflow: hidden; margin: auto }Important: Save and Refresh your Browser with Ctrl+F5 (clear your browser cache) before you will be able to see the changes.
O:)
Worked like a charm, I did all the edits except in the style.css
Edit: I noticed that the new package doesn't include the added margin:auto in the style.css
Oh, funny, just found out about this other mod of yours, M-DVD... ;)
I actually first saw reflection.js being used on another board (passion-xbmc.org), and thought they'd installed it manually. Maybe they used your mod, I'm not sure...
I installed the thing manually and it didn't work under Opera. I modified reflection.js to relocate the created canvas's paddingTop to (divHeight-reflectionHeight)+'px' and then it worked. Just so you know... There may be themes where reflections appear right beneath the avatar (behind it), instead of below it. I think it's because reflection.js expects the image's div container to not have specific sizes.
My goal was to make my user info appear on top of the reflection, I made it work but it wasn't too readable, and changing the reflection's alpha to something lighter wouldn't look too good, so I gave up for now. I may work on it again in the future though. If I have some spare time :)
Oh, thank you.
If you find flaws or improvements, you can contact the author of reflect.js, sure you appreciate.
Also, I will be careful of what you say it can occur in some themes.
I have also been working a bit with this code, especially to change the DIV, and change that 'Image with Reflection', for an not element block, but I have not had time.
This is a personal theme problem lol, but if you can help.....on my PMs it is centering the avatars
Screenshot: HERE (http://nextsite.org/forum/imagehost/uploads/096caeec41.png)
It covers all the buttons for the PM section
any idears on how to fix that easily?
Quote from: Lord Anubis on December 17, 2008, 12:10:00 AM
This is a personal theme problem lol, but if you can help.....on my PMs it is centering the avatars
Screenshot: HERE (http://nextsite.org/forum/imagehost/uploads/096caeec41.png)
It covers all the buttons for the PM section
any idears on how to fix that easily?
Sorry, i haven't much idea.
You can edit the file PersonalMessage.template.php, find the variable of the avatar and put some <br /> after or before, depending. Thing is, try and test. It is everything that I can think of.
And that template of PM is different, I have never seen anything like this. :)
Nice work
good mod
All thought this installed fine it isn't actually having any effect. Can you help, please?
Quote from: Rehash D Internet on February 05, 2009, 05:27:32 PM
All thought this installed fine it isn't actually having any effect. Can you help, please?
Sure.
Have you edited your theme? Does work in default theme?
URL?
Well all work fine, exept userprofile avatar at top of page (index.template.php):
if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';
Here effect isn`t appear :(
Quote from: crazyASD on March 20, 2009, 07:46:06 PM
Well all work fine, exept userprofile avatar at top of page (index.template.php):
if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';
Here effect isn`t appear :(
Ok, because there is no reflection here XD
1 .- Because all themes not show the avatar here.
2 .- Because it wasn't looked good in default theme.
If you want to add this, then do this change:
Edit he
Subs.phpSearch:
if (!empty($context['user']['avatar']))
$context['user']['avatar']['image'] = '<img src="' . $context['user']['avatar']['href'] . '"' . (isset($context['user']['avatar']['width']) ? ' width="' . $context['user']['avatar']['width'] . '"' : '') . (isset($context['user']['avatar']['height']) ? ' height="' . $context['user']['avatar']['height'] . '"' : '') . ' alt="" class="avatar" border="0" />';
Replace:
if (!empty($context['user']['avatar']))
$context['user']['avatar']['image'] = '<img src="' . $context['user']['avatar']['href'] . '"' . (isset($context['user']['avatar']['width']) ? ' width="' . $context['user']['avatar']['width'] . '"' : '') . (isset($context['user']['avatar']['height']) ? ' height="' . $context['user']['avatar']['height'] . '"' : '') . ' alt="" class="avatar reflect" border="0" />';
Note: In the next version, i will add this feature as: enable/disable. The current reflect also will be enable/disable.
Works nice with Linux Browsers: Epiphany 2.26.0 2.27.2-WebKit and Midori 0.1.5.
Thank you for this nice mod :)
Question.
Whenever I install this mod, my avatars align left in other mods when I view them in Firefox. Is there something that I can add to your code in order to get things centered again? It's just the avatar that aligns left instead of staying center.
It effects my Simple Portal User Block, the Dynamic Memberlist Block, and also inside the profile info that gets displayed in a post.
Quote from: kromonos on April 01, 2009, 12:18:58 PM
Works nice with Linux Browsers: Epiphany 2.26.0 2.27.2-WebKit and Midori 0.1.5.
Thank you for this nice mod :)
Your welcome :D
Quote from: C4G-TK on May 02, 2009, 06:52:17 PM
Question.
Whenever I install this mod, my avatars align left in other mods when I view them in Firefox. Is there something that I can add to your code in order to get things centered again? It's just the avatar that aligns left instead of staying center.
It effects my Simple Portal User Block, the Dynamic Memberlist Block, and also inside the profile info that gets displayed in a post.
Ok, edit your style.css and add in the end
.avatar { margin: auto }And tell me :)
BINGO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
THANK YOU THANK YOU THANK YOUUUUUUUUUUUUUUUUU!!!!
That was what I needed~!
Everything is centered and looks fantastic! Now, I can go on and turn all the bottles in my medicine cabinet to face me when I open the door, so I can read everything easy... I'm very anal about certain things! LOL
Your welcome. I am glad that it worked. :)
I'm getting an error in Internet Explorer saying "Stack Overflow at line 171" after installing this mod. I'm running SMF 2.0 RC1-1
Quote from: General_Naga on June 20, 2009, 06:14:29 PM
I'm getting an error in Internet Explorer saying "Stack Overflow at line 171" after installing this mod. I'm running SMF 2.0 RC1-1
The reflect.js is compatible with IE, and the error you mention, it seems problem your browser's.
Maybe your site has many javascript. The reflect.js is the last thing it will be loaded, then the warning "Stack Overflow" will be showed with this script.
In addition, is possible you may have installed in your browser many plugings, toolbars, and perhaps, even malware and you don't know.
Anyway, doesn't look problem reflect's script. :)
not working for me, im using 1.1.9 and I have the ultimate profile mod installed, and my current theme is musonica.
any ideas?
Amazing. I'm using a custom theme. I just followed your 2 changes from other comments:
- Add a javascript line before </head> in index.template file.
- Added the style thing to avoid scroll bars for the reflections for IE.
Great job!!!
stopped working for me in FF and Chrome... only works in IE.
smf 1.1.10.
This was working.... but now stopped. Yes I do have a lot of javascript throughout the the site... that may be the problem? Love the look that this mod provides.
Thanks.
it does work on rc3?
@Kurakama:
Works well with RC5 with a manual install.
Search load php for:
class="avatar"
=(three instances)=
Replace with:
class="avatar reflect"
Everything else is the same.
Thanks for the mod!
: )
Getting error in smf 2.0.8 ./Sources/Load.php test failed