It was not working until I had to delete the $Gender = "u"... that took me for a while lol...
I was like keep holding and holding to not post it until solve it by myself as if I post it again with it is being not working, I know I would discourage you.
But it works now!!
btw, eventhough the path was pointing to a different folder than plugins, it still works. Sweet aint it?
btw, eventhough the path was pointing to a different folder than plugins, it still works. Sweet aint it?
all you have done, is take compartmentalization away. one would think images related to plugin would be better in the plugin itself. you could make it point anywhere, doesn't mean its a good idea though.
suit your self
this makes absolutely no sense.
worked with:
if (($Gender != "m") || ($Gender != "f"));
it does absolutely nothing except to add a test that does absolutely nothing - nonsense code.
You're correct, I need extensive training on php development and I really appreciate for your patience.
Currently, I'm learning almost everything in webdevelopment at the same time. Perhaps that is why I am creating some painfully stupid simple questions on coding for those who know what they are doing. Every single code, I try to dig and understand as much as possible.
Well... officially, I graduated as a graphic designer and illustrator and have worked extensively in print, ad, motion design field. Now I'm wanting to learn more into programming side...
I hope you all patiently understand my transformation and learning process, but it is really painful.
Thank you!
oh, for @hgtonight's question: Version 2.1rc1 just updated to 2.1
I thought I mentioned my current version several times right before posting this discussion. I apologize for that.
I thought I mentioned my current version several times right before posting this discussion. I apologize for that.
no problem.
Currently, I'm learning almost everything in webdevelopment at the same time
yes. many of us did what you are doing, learning all at the same time and. it gets easier with practice, if you find coding interesting. and probably all of us are still learning.
each new discussion is a new discussion topic . Assume no one read other discussions.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Comments
@peregrine , Thanks so much, the plugin works exactly what I wanted!
This was very smart, however it is not working on the Profile image with width 200. I couldn't see the problem there.
there are two areas in code you probably missed one! as well as think about what your are doing.
the profile one calls
plugins/Gravatar/default_250.png'
so you would need to call it default_250
to evaluate to default_250m.png, default_250f.png and default_250u.png
to work with the 3 250 sized png files.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
empty
That is right.
Thats what I did, and it is not injecting the gender to file name and pulling the right one.
here is my code:
and this is what is getting getting pulled without the gender.
try this
and make sure you have images for
defaultu.png
defaultm.png
defaultf.png
default_200u.png
default_200m.png
default_200f.png
default_250u.png
default_250m.png
default_250f.png
in the /plugins/Gravatar/ folder
if you deviate, I can't help you much past that.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
on second thought use this code.
on second thought use this code.
and make sure you have images for
defaultu.png
defaultm.png
defaultf.png
default_200u.png
default_200m.png
default_200f.png
in the /plugins/Gravatar/ folder
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine ;
I appreciate your help, finally it works.
It was not working until I had to delete the $Gender = "u"... that took me for a while lol...
I was like keep holding and holding to not post it until solve it by myself as if I post it again with it is being not working, I know I would discourage you.
But it works now!!
btw, eventhough the path was pointing to a different folder than plugins, it still works. Sweet aint it?
worked with:
all you have done, is take compartmentalization away. one would think images related to plugin would be better in the plugin itself. you could make it point anywhere, doesn't mean its a good idea though.
suit your self
this makes absolutely no sense.
it does absolutely nothing except to add a test that does absolutely nothing - nonsense code.
if you cut and paste what I posted will indeed work. http://vanillaforums.org/discussion/comment/206486/#Comment_206486 and ensure the 6 images I posted are in your plugin location. The code posted will ensure it will work when you upgrade to 2.1 as well.
that said. I surrender. use what you want.
I advise you run through a php tutorial.
glad you had some success though.
but you failed to answer hgtonights question What version number of Vanilla are you running?
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Thanks @peregrine for helping me.
You're correct, I need extensive training on php development and I really appreciate for your patience.
Currently, I'm learning almost everything in webdevelopment at the same time. Perhaps that is why I am creating some painfully stupid simple questions on coding for those who know what they are doing. Every single code, I try to dig and understand as much as possible.
Well... officially, I graduated as a graphic designer and illustrator and have worked extensively in print, ad, motion design field. Now I'm wanting to learn more into programming side...
I hope you all patiently understand my transformation and learning process, but it is really painful.
Thank you!
oh, for @hgtonight's question: Version 2.1rc1 just updated to 2.1
I thought I mentioned my current version several times right before posting this discussion. I apologize for that.
no problem.
yes. many of us did what you are doing, learning all at the same time and. it gets easier with practice, if you find coding interesting. and probably all of us are still learning.
each new discussion is a new discussion topic . Assume no one read other discussions.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@gohunter
Since you said you are using 2.1
please add to this thread as you add new add-ons to your forum ....
http://vanillaforums.org/discussion/26703/plugins-and-themes-that-work-in-vanilla-2-1
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Sure I will
if you haven't seen these.
http://vanillaforums.org/discussion/comment/204749/#Comment_204749
http://vanillaforums.org/discussion/20231/how-to-become-somewhat-adept-at-modifying-vanilla-to-meet-your-needs-for-free
http://css-tricks.com/video-screencasts/15-introduction-to-firebug/
http://vanillaforums.org/discussion/comment/185517#Comment_185517
http://php.net/manual/en/tutorial.php
http://www.w3schools.com/php/default.asp
http://html.net/tutorials/php/
http://www.w3schools.com/css/default.asp
http://www.w3schools.com/jquery/default.asp
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.