[SOLVED] Mood system appears to not work.
Page 1 of 1 • Share
[SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Hello,
I have installed the mood system, however, when I change the mood on a post on the Founder account then try to view it on a regular test account with (no special permissions) I do not see the mood appearing. Also some posts do not even show the drop down box on some of (my) posts.
Is there a reaskn for this? Maybe something I am doing wrong, or maybe I installed it wirng? My forum is phpbb2 and I followed the installation instrcutions found in the tutorial on this forum.
Thanks for any assistance,
-Brandon
I
I have installed the mood system, however, when I change the mood on a post on the Founder account then try to view it on a regular test account with (no special permissions) I do not see the mood appearing. Also some posts do not even show the drop down box on some of (my) posts.
Is there a reaskn for this? Maybe something I am doing wrong, or maybe I installed it wirng? My forum is phpbb2 and I followed the installation instrcutions found in the tutorial on this forum.
Thanks for any assistance,
-Brandon
I
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
I've seen that the day I left. Please provide screenshots, your JS and CSS on that so we can have a closer look. Also, are all emoticons in place and in the correct order? Did you add the correct field_ID for the profile and where did you change your mood? In the profile itself or in the topics & posts where it should be?
Last edited by Samantha on 2/2/2015, 10:17 am; edited 2 times in total
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Honestly there was no CSS when I originally followed the installation instructions, but now it appears the topic or tutorial was edited and added on to. I have now added the CSS. I also added that HTML code to the staff lounge.
Screen Shot of ACP CSS:
[You must be registered and logged in to see this link.]
Screenshots of ACP JavaScript:
[You must be registered and logged in to see this link.]
As for your other question I am not sure if it is not properly aligned, I have not seen the drop box in a while .
Just in case the screen shots are hard to read I will provide the JavaScript code spoilers:
Screen Shot of ACP CSS:
[You must be registered and logged in to see this link.]
Screenshots of ACP JavaScript:
[You must be registered and logged in to see this link.]
As for your other question I am not sure if it is not properly aligned, I have not seen the drop box in a while .
Just in case the screen shots are hard to read I will provide the JavaScript code spoilers:
- Click to see the code:
- Code:
//Post Profile Mood Selector By:_Twisted_Mods_
// Special Thanks To Ange Tuteur For Helping And Testing
// Also To SamanthaS For The Idea And List Of Moods
$(function(){
var idd = 'field_id1';
var namee = 'profile_field_2_1';
var list1 = ['None','Very Happy','Happy','Sad','Surprised','Shocked','Cool','Funny','Mad','Witty','Embarassed','Very Sad','Very Mad','Furious','Misunderstood','Good','Creative','Neutral','Like a Star','Suspicious','In Love','Sick','Amusing','Silent','Pale','Out of this World','Hyperactive','Confused','Affraid','Great!','Explosive','Drunk','Sleepy','Brightened Up','Like Santa','Like a King','Like a Queen','Like a Joker','Like a Geek','Not interested','Super Great!','Rocking','Partying','Meditating','Generous','Like I care','Feels Like Dancing','Wanna Fight?','Angelic','Like a Winner!','Very busy ...'];
var list2 = [' ',':D',':)',':(',':o',':shock:','8)',':lol:',':x',':P',':oops:',':cry:',':evil:',':twisted:',':roll:',';)',':idea:',':|',':star:',':suspect:',':heart:',':no:',':clown:',':silent:',':pale:',':alien:',':bounce:',':confused:',':affraid:',':cheers:',':bom:',':drunken:',':sleep:',':sunny:',':santa:',':king:',':queen:',':joker:',':geek:',':study:',':superman:',':rock:',':party:',':zen:',':roos:',':mouais:',':bananadance:',':boxing:',':angelic:',':mvp:',':computer:'];
var list3 = ['http://2img.net/i/fa/empty.gif','http://2img.net/i/fa/i/smiles/icon_biggrin.png','http://2img.net/i/fa/i/smiles/icon_smile.gif','http://2img.net/i/fa/i/smiles/icon_sad.gif','http://2img.net/i/fa/i/smiles/icon_surprised.gif','http://2img.net/i/fa/i/smiles/icon_eek.gif','http://2img.net/i/fa/i/smiles/icon_cool.gif','http://2img.net/i/fa/i/smiles/icon_lol.gif','http://2img.net/i/fa/i/smiles/icon_mad.gif','http://2img.net/i/fa/i/smiles/icon_razz.gif','http://2img.net/i/fa/i/smiles/icon_redface.gif','http://2img.net/i/fa/i/smiles/icon_cry.gif','http://2img.net/i/fa/i/smiles/icon_evil.gif','http://2img.net/i/fa/i/smiles/icon_twisted.gif','http://2img.net/i/fa/i/smiles/icon_rolleyes.gif','http://2img.net/i/fa/i/smiles/icon_wink.gif','http://2img.net/i/fa/i/smiles/icon_idea.png','http://2img.net/i/fa/i/smiles/icon_neutral.gif','http://2img.net/i/fa/i/smiles/star3.png','http://2img.net/i/fa/i/smiles/suspect.gif','http://2img.net/i/fa/i/smiles/herz.png','http://2img.net/i/fa/i/smiles/kopfschuettel.gif','http://2img.net/i/fa/i/smiles/icon_clown.png','http://2img.net/i/fa/i/smiles/icon_silent.png','http://2img.net/i/fa/i/smiles/icon_pale.gif','http://2img.net/i/fa/i/smiles/alien.png','http://2img.net/i/fa/i/smiles/icon_bounce.gif','http://2img.net/i/fa/i/smiles/confused.png','http://2img.net/i/fa/i/smiles/affraid.gif','http://2img.net/i/fa/i/smiles/icon_cheers.png','http://2img.net/i/fa/i/smiles/bom.png','http://2img.net/i/fa/i/smiles/drunken_smilie.png','http://2img.net/i/fa/i/smiles/sleep.gif','http://2img.net/i/fa/i/smiles/icon_sunny.png','http://2img.net/i/fa/i/smiles/icon_santa.png','http://2img.net/i/fa/i/smiles/icon_king.png','http://2img.net/i/fa/i/smiles/icon_queen.png','http://2img.net/i/fa/i/smiles/icon_jokercolor.png','http://2img.net/i/fa/i/smiles/icon_geek.png','http://2img.net/i/fa/i/smiles/icon_study.png','http://r16.imgfast.net/users/1616/35/61/96/smiles/1838004359.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/2896949932.gif','http://www.websmileys.com/sm/party/fest02.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/80174283.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/3305799796.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/4046336487.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/2097953958.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/1218057395.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/89381941.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/2265350431.gif','http://r16.imgfast.net/users/1616/35/61/96/smiles/2297342943.gif']; var lcolors = ['E9967A','FFA07A','DC143C','FF0000','FFB6C1','FF69B4','FF1493','C71585','FF6347','FF4500','FF8C00','FFD700','FFFF00','7CFC00','00FF00','32CD32','7FFFD4','40E0D0','48D1CC','C0C0C0','A9A9A9'];
var lcolors = ['E9967A','FFA07A','DC143C','FF0000','FFB6C1','FF69B4','FF1493','C71585','FF6347','FF4500','FF8C00','FFD700','FFFF00','7CFC00','00FF00','32CD32','7FFFD4','40E0D0','48D1CC','C0C0C0','A9A9A9'];
var thecode = '<center>Mood:<select id="blahh">';
for(var i=0;i<list1.length;i++){
thecode = thecode + ' <option value="'+i+'" style="background-image: url('+list3[i]+');">'+list1[i]+'</option>';
};
$('.post .row1').each(function(){
var uid = _userdata.user_id;
if($(this).find('a[href="/u'+uid+'"]').length ==0){}else{
$(this).append(thecode+'</select><br><span id="mstat">Status: Idle.<span></center><br>');
};
});
$('#blahh option').click(function(){
var ggg = $(this).val();
var hhhk = $(this);
function getcolor() {
return lcolors[Math.floor(Math.random() * lcolors.length)];
};
var newcolor = getcolor();
var newwmood = list2[ggg]+'[b][color=#'+newcolor+'] '+list1[ggg]+'[/color][/b]';
$('#mstat').text('Status: Loading.');
$.getScript('http://illiweb.com/rs3/86/frm/jquery/json/jquery.json-1.3.min.js', function(){
var id = idd, name = namee, content = new Array();
content.push(new Array(name, newwmood));
$.post('/ajax_profile.forum?jsoncallback=?', {
id: id.substring(8, id.length),
user: _userdata.user_id,
active: '1',
content: $.toJSON(content),
tid: document.getElementById('logout').href.replace(/.*tid=(.*?)&.*/,'$1')
},function(data){}, 'json') .done(function() {
$('.post .row1').each(function(){
$(this).find('#mstat').text('Status: Done.');
var oldhtm = $('.poster-profile:contains('+_userdata.username+')').html();
newhtm = oldhtm .replace(/(.*)Mood<\/span>: <\/span>(.*)<\/strong><br>(.*)/,'$1Mood</span>: </span> <img src="'+list3[ggg]+'"><strong><font color="#'+newcolor+'"> '+list1[ggg]+'</font></strong><br>$3');
$('.poster-profile:contains('+_userdata.username+')').html(newhtm);
});
})
.fail(function() {
$('.post .row1').each(function(){$(this).find('#mstat').text('Status: Error');});
})
})
.fail(function() {
$('.post .row1').each(function(){$(this).find('#mstat').text('Status: Error');});
})
.always(function() {
$('.post .row1').each(function(){$(this).find('#mstat').text('Status: Updating.');});
})
});
});
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
OK, I did this with my eyes closed, but I think you just copied it off, right? Do you see this part in your JS: [You must be registered and logged in to see this link.] ? It's copied straight off from the tutorial. Above the phpBB2 section something was mentioned in general to set your JS up for your forum. Did you follow that part when installing it?
In comparison to the tutorial, here's my field_ID: [You must be registered and logged in to see this link.] . I mentioned it in my website's JS just below the tutorial.
In comparison to the tutorial, here's my field_ID: [You must be registered and logged in to see this link.] . I mentioned it in my website's JS just below the tutorial.
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Yes I copied and pasted directly from the tutorial.
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
Then you miss a bit of installation still. That's why it's not working. Please, re-check your installation conform the tutorial.
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Ok, I will uninstall it and re install it from scratch, I will get back to you with the result. Thank you for all the help so far.
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
Yeah, I think you already did, because I can't find any JS nor CSS related to the mood installation using the tools I've got. Thank you!
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
It has been re installed and appears to working fine now.
I have tested it on 3 different profiles and it appears to working good now.
I make a new topic if I run into any more problems
Thank You for all the assistance and help Samantha
-Brandon
I have tested it on 3 different profiles and it appears to working good now.
I make a new topic if I run into any more problems
Thank You for all the assistance and help Samantha
-Brandon
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
Ofc it does ! I'm happy for you on BD. You know what to do now, don't you? Read that field ID, that was the problem actually! You know how to use it now, so tell your members NOT to edit the profile field itself but update the mood in the topics and posts on the left side below the avatar.
Bye!
Bye!
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Acutally Samantha No drop down appears still... Just what I edited in the profile appears in every post .
-Brandon
-Brandon
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
Change the profile field order in the acp. It needs to be somewhere at the top to be working. Test like 5 different positions then come back to me with the result, pls. Empty the profile field you updated by hand (you always tried this in that field "", so delete that in your profile so there is an empty field). After testing, please make a screenshot of your pull-down menu.
Last edited by Samantha on 2/2/2015, 5:45 pm; edited 1 time in total
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Tried the top 5 positions still no drop down box... I will put it back to [You must be registered and logged in to see this link.] 1st now .
-Brandon
-Brandon
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
I edited my post just now just before you posted....
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
After I remove the text in the User Profile I see this on every post:
[You must be registered and logged in to see this link.]
When I re add the text in the user profile I see this:
[You must be registered and logged in to see this link.]
Either way I have no drop down box .
-Brandon
[You must be registered and logged in to see this link.]
When I re add the text in the user profile I see this:
[You must be registered and logged in to see this link.]
Either way I have no drop down box .
-Brandon
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
I just checked and you've got the moods script installed twice now. And you copied the text in the tutorial instead of using the copy code (select content) button provided to ya. And you've got a script with
tags in it ......
Why don't you ask Legend to do it for you?
- Code:
<script> </script>
tags in it ......
Why don't you ask Legend to do it for you?
Last edited by Samantha on 2/2/2015, 6:15 pm; edited 1 time in total
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
Oh right....
Legend is busy at the moment, he has a job now (money). So he is busy with that besides his web stuff... this is easy code, I will figure it out, EVENTUALLY.
-Brandon
Legend is busy at the moment, he has a job now (money). So he is busy with that besides his web stuff... this is easy code, I will figure it out, EVENTUALLY.
-Brandon
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
OK, well if you know how to install it the proper way now, let's have this topic marked solved then and lock it, agreed?
Re: [SOLVED] Mood system appears to not work.
brandon_g- Posts : 22
Reputation : 0
Join date : 2015-01-22
well this time I used the select code and still no drop down box. You did mean Javascript right?
Re: [SOLVED] Mood system appears to not work.
Guest- Guest
Solution:
- Members must use the 'Select Content' button found in the top-right corner of the code boxes to copy codes into their JS or CSS;
- Members must install features following the tutorials precisely. In this case member wasn't aware of the unique field_ID he had to read using a temporary script for that;
- Members should be aware of possible errors and thus possible conflicts to be found in other scripts on their own website and solve them first.
- Members must use the 'Select Content' button found in the top-right corner of the code boxes to copy codes into their JS or CSS;
- Members must install features following the tutorials precisely. In this case member wasn't aware of the unique field_ID he had to read using a temporary script for that;
- Members should be aware of possible errors and thus possible conflicts to be found in other scripts on their own website and solve them first.
Topic solved, locked & moved to the archives.
Similar topics
» topic profile mood
» [SOLVED]Hide forum category
» How can I modify this code to work with new f/m chatbox?
» [SOLVED]New Affiliate
» Master Widget Doesn't Work Properly.
» [SOLVED]Hide forum category
» How can I modify this code to work with new f/m chatbox?
» [SOLVED]New Affiliate
» Master Widget Doesn't Work Properly.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|