Page Index Toggle Pages: 1 ... 11 12 [13]  Send TopicPrint
Very Hot Topic (More than 25 Replies) [Done] User Mood and Re-Status (Read 26914 times)
LCAngela
New Member
*
Offline



Posts: 32
Location: San Angelo
Joined: Mar 4th, 2003
Gender: Female
Re: [Done] User Mood and Re-Status
Reply #180 - Aug 11th, 2004 at 7:15am
Print Post  
Here are a few fixes for the two misspelled mood graphics, Aggressive and Psychedelic.  Smiley  I'm also including one I made for a friend: Groovy!

Great mod, BTW...the only suggestion I have I posted here.  Cheesy

   
  
Back to top
WWWYIM  
IP Logged
 
LCAngela
New Member
*
Offline



Posts: 32
Location: San Angelo
Joined: Mar 4th, 2003
Gender: Female
Re: [Done] User Mood and Re-Status
Reply #181 - Aug 12th, 2004 at 6:23am
Print Post  
I've got a tweak to this mod figured out, for those of you who want users to be able to preview the images before they save their profile changes.  This displays the mood images in the "edit profile" page's drop-down menu onChange.

In Profile.pl, look for this
Code
Select All
<select name="mood">
                <option value="$mdfile[0]" selected>$mdfile[0]</option>
                <option value="">$modtxt{'00'}</option>
                <option value="$modtxt{'1a'}">$modtxt{'1a'}</option>
###  etc, etc, etc...cutting out middle options to conserve space  ###
                <option value="$modtxt{'2n'}">$modtxt{'2n'}</option>
                </select></font> 


1)  Add this BEFORE that
Code
Select All
	    <script language="JavaScript1.2" type="text/javascript">
        function showimageMood()
        {
           if (!document.images) return;
		   var MoodSelect = document.creator.mood.options[document.creator.mood.selectedIndex].value
		   if(MoodSelect == "")
		   		{document.images.moodimg.src="http://forum.lunaclick.net/YaBBImages/moods/blank.gif";}
			else {document.images.moodimg.src="http://forum.lunaclick.net/YaBBImages/moods/"+MoodSelect+".gif";}
        }
        </script> 


2)  Add this AFTER that
Code
Select All
~;
	if($mdfile[0] eq "") {
	$yymain .= qq~
&nbsp;&nbsp;<img src="$imagesdir/moods/blank.gif" name="moodimg" border=0 hspace=15 align="absmiddle"></td>
     </tr><tr>~;
	 }
	else {
	$yymain .= qq~
&nbsp;&nbsp;<img src="$imagesdir/moods/$mdfile[0].gif" name="moodimg" border=0 hspace=15 align="absmiddle"></td>
     </tr><tr>~;
	 }
	$yymain .= qq~ 


3)  CHANGE <select name="mood"> to <select name="mood" onChange="showimageMood()">

That's it!  Upload your new Profile.pl, and it should work like a charm.  Grin

If you have any problems getting this to work correctly, please feel free to email me or send me an IM. Smiley
  
Back to top
WWWYIM  
IP Logged
 
Page Index Toggle Pages: 1 ... 11 12 [13] 
Send TopicPrint