• Page 1 of 1
  • 1
uCause Community » Trash & Archives » Forum » Mood status Help Topic
Mood status Help Topic
AnimorphDate: Saturday, 2010-11-06, 1:10 PM | Message # 1
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
@none.png

Hello , i just updated the mood status script , because as you might know it not worked for you

now if there are any questions or if there's something not working just ask it in here

First go to CP -> Design -> Design management (template) -> New Message Form

Paste This after

Code
$_MESSAGE$

Code
<tr><td class="gTableLeft">Choose Post Mood:</td><td class="gTableRight">
<img src="/postIcons/none.png" id="postIcon" class="postIcon" alt="img" /><img src="/postIcons/smile.png" class="postIcon" alt="img" /><img src="/postIcons/sad.png" class="postIcon" alt="img" /><img src="/postIcons/laugh.png" class="postIcon" alt="img" /><img src="/postIcons/shock.png" class="postIcon" alt="img" /><img src="/postIcons/straight.png" class="postIcon" alt="img" /><img src="/postIcons/tounge.png" class="postIcon" alt="img" /><img src="/postIcons/alert.png" class="postIcon" alt="img" /><img src="/postIcons/help.png" class="postIcon" alt="img" /><img src="/postIcons/settings.png" class="postIcon" alt="img" /><img src="/postIcons/coffee.png" class="postIcon" alt="img" /><img src="/postIcons/pizza.png" class="postIcon" alt="img" /><img src="/postIcons/music.png" class="postIcon" alt="img" /><img src="/postIcons/movie.png" class="postIcon" alt="img" /><img src="/postIcons/medal.png" class="postIcon" alt="img" /><img src="/postIcons/time.png" class="postIcon" alt="img" /><img src="/postIcons/chat.png" class="postIcon" alt="img" />
<style type="text/css">img.postIcon {vertical-align:middle;cursor:pointer;margin-right:5px;opacity:0.5}img.postIcon:hover,#postIcon {opacity:1.0}img.selectedposticon {vertical-align:middle}</style>
<script type="text/javascript">
/* From uCause*/ var icon,mess,_icon;$('img.postIcon').click(function(){icon=this.src.match(/\w+\.png$/i);$('img[id="postIcon"]').removeAttr('id');$(this).attr('id','postIcon')});$('form[name="addform"]').submit(function(){mess=$(this).find('textarea');if(mess.val().length){mess.val('@'+(icon==undefined?'none.png':icon)+'\n'+mess.val());}});_icon = $('form[name="addform"] textarea').val().split('\n')[0].match(/\@\w+\.png$/i);if(_icon){$('form[name="addform"] textarea').val($('form[name="addform"] textarea').val().replace(/\@\w+\.png\n/g,''));icon=_icon.toString().substr(1);$('img[id="postIcon"]').removeAttr('id');$('img.postIcon[src$="'+icon+'"]').attr('id','postIcon');}
</script>
</td></tr></td></tr>

Now appeareance of entries

Find:

Code
$MESSAGE$

Replace by:

Code
<?if(substr($MESSAGE$,0,1)='@'&&strpos($MESSAGE$,'.png')!=-1)&&len(substr($MESSAGE$,strpos($MESSAGE$,'png')))>3?><?substr($MESSAGE$,strpos($MESSAGE$,'png')+10)?><?else?>$MESSAGE$<?endif?>

Find:

Code
<td class="postTdTop"><?if($AWARDS_DO_URL$ && $USER_LOGGED_IN$ && $CUR_USER_ID$!=$UID$)?><div style="float:right"><a href="javascript://" rel="nofollow" onclick="new _uWnd('AwD','Give award',380,200,{autosize:1,maxh:300},{url:'/index/55-$UID$-28-forum-$FID$_$TID$_$ID$_16_$TIMESTAMP$'});return false;"><img alt="" src="http://s104.ucoz.net/img/icon/thumbu.png" width="13" border="0" title="Good post"></a> <a href="javascript://" rel="nofollow" onclick="new _uWnd('AwD','Give award',380,200,{autosize:1,maxh:300},{url:'/index/55-$UID$-47-forum-$FID$_$TID$_$ID$_16_$TIMESTAMP$'});return false;"><img alt="" src="http://s104.ucoz.net/img/icon/thumbd.png" width="13" border="0" title="Bad post"></a></div><?endif?>

Paste directly after the previus code:

Code
<?if(substr($MESSAGE$,0,1)='@'&&strpos($MESSAGE$,'.png')!=-1)&&len(substr($MESSAGE$,strpos($MESSAGE$,'png')))>3?><img src="/postIcons/<?substr($MESSAGE$,1,strpos($MESSAGE$,'png')+2)?>" class="selectedposticon" alt="img" /><?else?><img src="/postIcons/none.png" class="selectedposticon" alt="img" /><?endif?>
 
0 Thanked you For This Useful Post:
Dr_MarshallDate: Saturday, 2010-11-06, 6:00 PM | Message # 2
Member
Group: Senior Members
Messages: 118
Awards: 1
Reputation: 2
Status: :-(
@coffee.png
Well unfortunately, I am still unable to get this code to work. When I post I get this message in text area "3?>@none.png" minus the quotation marks, and When I select an image it will not highlight.
 
0 Thanked you For This Useful Post:
Maczo12310Date: Saturday, 2010-11-06, 6:58 PM | Message # 3
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
@none.png
Apollo, Can you provide your code of the mood script ? I will check it on my testing site and I will try to help you..



Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
Dr_MarshallDate: Saturday, 2010-11-06, 7:52 PM | Message # 4
Member
Group: Senior Members
Messages: 118
Awards: 1
Reputation: 2
Status: :-(
@none.png
Code was stretching forum so its removed

Best regards Pistol

Message edited by Apollo - Saturday, 2010-11-06, 7:53 PM
 
0 Thanked you For This Useful Post:
Maczo12310Date: Saturday, 2010-11-06, 7:55 PM | Message # 5
Member
Group: Senior Members
Messages: 987
Awards: 12
Reputation: 11
Status: :-(
@none.png
Hmm.. Give me some time, I will try to figure it out...



Visit my Graphic forum board on uCause !!!
 
0 Thanked you For This Useful Post:
Dr_MarshallDate: Saturday, 2010-11-06, 7:56 PM | Message # 6
Member
Group: Senior Members
Messages: 118
Awards: 1
Reputation: 2
Status: :-(
@none.png
Alright thank you for the help. Sorry for the code altering the size of the post.
 
0 Thanked you For This Useful Post:
AnimorphDate: Saturday, 2010-11-06, 9:11 PM | Message # 7
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
@none.png
made a tutorial more detailed in forum
 
0 Thanked you For This Useful Post:
Dr_MarshallDate: Saturday, 2010-11-06, 10:45 PM | Message # 8
Member
Group: Senior Members
Messages: 118
Awards: 1
Reputation: 2
Status: :-(
@none.png
The only thing that I can't seem to get to work is, the actual selection process, it will by default post the default mood.
 
0 Thanked you For This Useful Post:
AnimorphDate: Saturday, 2010-11-06, 10:53 PM | Message # 9
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
@none.png
Apollo, i will try to figure it out tommorow
 
0 Thanked you For This Useful Post:
AloyashaDate: Monday, 2010-11-29, 4:02 PM | Message # 10
Member
Group: Senior Members
Messages: 282
Awards: 0
Reputation: 2
Status: :-(
Hm.. i did everything right it's just..
On top of every post when i select and finish the post it just shows whatever the smileys name is "@none.png"
And nothing else on each post.


 
0 Thanked you For This Useful Post:
AnimorphDate: Monday, 2010-11-29, 6:44 PM | Message # 11
uCause forum Admin
Group: Developer
Messages: 2835
Awards: 73
Status: :-(
Aloyasha, do you even uploaded the images ?
 
0 Thanked you For This Useful Post:
AloyashaDate: Tuesday, 2010-11-30, 3:40 AM | Message # 12
Member
Group: Senior Members
Messages: 282
Awards: 0
Reputation: 2
Status: :-(
yes i did to the File Manager and named the folder postIcons and uploaded every image ._.

Added (2010-11-30, 3:40 Am)
---------------------------------------------
NVM, I did some investigating, didn't save when added a code xD


 
0 Thanked you For This Useful Post:
uCause Community » Trash & Archives » Forum » Mood status Help Topic
  • Page 1 of 1
  • 1
Search:


"Making uCoz web designs simple and easy to use"
- uCause Developers