[SOLVED] Mood system appears to not work.

View previous topic View next topic Go down

Solved [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/1/2015, 10:04 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
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

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 3:10 am


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

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 9:42 am

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
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 image.]

Screenshots of ACP JavaScript:
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]

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 tongue .
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://illiweb.com/fa/empty.gif','http://illiweb.com/fa/i/smiles/icon_biggrin.png','http://illiweb.com/fa/i/smiles/icon_smile.gif','http://illiweb.com/fa/i/smiles/icon_sad.gif','http://illiweb.com/fa/i/smiles/icon_surprised.gif','http://illiweb.com/fa/i/smiles/icon_eek.gif','http://illiweb.com/fa/i/smiles/icon_cool.gif','http://illiweb.com/fa/i/smiles/icon_lol.gif','http://illiweb.com/fa/i/smiles/icon_mad.gif','http://illiweb.com/fa/i/smiles/icon_razz.gif','http://illiweb.com/fa/i/smiles/icon_redface.gif','http://illiweb.com/fa/i/smiles/icon_cry.gif','http://illiweb.com/fa/i/smiles/icon_evil.gif','http://illiweb.com/fa/i/smiles/icon_twisted.gif','http://illiweb.com/fa/i/smiles/icon_rolleyes.gif','http://illiweb.com/fa/i/smiles/icon_wink.gif','http://illiweb.com/fa/i/smiles/icon_idea.png','http://illiweb.com/fa/i/smiles/icon_neutral.gif','http://illiweb.com/fa/i/smiles/star3.png','http://illiweb.com/fa/i/smiles/suspect.gif','http://illiweb.com/fa/i/smiles/herz.png','http://illiweb.com/fa/i/smiles/kopfschuettel.gif','http://illiweb.com/fa/i/smiles/icon_clown.png','http://illiweb.com/fa/i/smiles/icon_silent.png','http://illiweb.com/fa/i/smiles/icon_pale.gif','http://illiweb.com/fa/i/smiles/alien.png','http://illiweb.com/fa/i/smiles/icon_bounce.gif','http://illiweb.com/fa/i/smiles/confused.png','http://illiweb.com/fa/i/smiles/affraid.gif','http://illiweb.com/fa/i/smiles/icon_cheers.png','http://illiweb.com/fa/i/smiles/bom.png','http://illiweb.com/fa/i/smiles/drunken_smilie.png','http://illiweb.com/fa/i/smiles/sleep.gif','http://illiweb.com/fa/i/smiles/icon_sunny.png','http://illiweb.com/fa/i/smiles/icon_santa.png','http://illiweb.com/fa/i/smiles/icon_king.png','http://illiweb.com/fa/i/smiles/icon_queen.png','http://illiweb.com/fa/i/smiles/icon_jokercolor.png','http://illiweb.com/fa/i/smiles/icon_geek.png','http://illiweb.com/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/rsc/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.');});

})
});
});

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 10:11 am


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: http://prntscr.com/604lhf ? 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: http://prntscr.com/604nk6 . I mentioned it in my website's JS just below the tutorial.

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 4:39 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
Yes I copied and pasted directly from the tutorial.

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 4:57 pm


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.

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 5:04 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
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. Smile

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 5:09 pm


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!

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 5:31 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
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 cheers Very Happy Like a Winner

-Brandon

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 5:34 pm


Guest
Guest


Ofc it does Wink ! 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!

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 5:36 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
Acutally Samantha No drop down appears still... Just what I edited in the profile appears in every post Smile.

-Brandon

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 5:39 pm


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 "Very Happy", 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

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 5:45 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
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 Smile.

-Brandon

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 5:46 pm


Guest
Guest


I edited my post just now just before you posted....

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 5:59 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
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 image.]

When I re add the text in the user profile I see this:
[You must be registered and logged in to see this image.]

Either way I have no drop down box Sad.

-Brandon

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 6:08 pm


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

Code:
<script> </script>

tags in it Rolling Eyes ......

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

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 6:14 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
Oh right.... Laughing

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

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/2/2015, 6:18 pm


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?

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by brandon_g on 2/2/2015, 6:30 pm

avatar
brandon_g
Member
Member

Posts : 22
Reputation : 0
Join date : 2015-01-22

View user profile
well this time I used the select code and still no drop down box. You did mean Javascript right?

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Guest on 2/4/2015, 5:12 am


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.



Topic solved, locked & moved to the archives.

Back to top Go down

Solved Re: [SOLVED] Mood system appears to not work.

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum