Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 50 users online :: 0 Registered, 0 Hidden and 50 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
[IN PROGRESS] My forum toolbar doesn't appear
Page 1 of 1 • Share
Hy @Ange Tuteur My forum toolbar doesnt appear on my forum index body when i login but appears on other pages when like profile, when viewing post, etc but when i logout i see the toolbar on my forum index body
pls can you help
pls can you help
Last edited by Paradiseng on Mon 16 May 2016, 10:51; edited 3 times in total
- GuestGuest
LOL Xflint! I bet you just saw my latest post on AvacWeb. Shopping everywhere aren't you? I bet ya. I don't mean to be mean to you, but it's striking me to see you seek for help here now. Why don't you just go for the FM Support Forum and seek for help there? Ange's having his own business here and he retired from FM.
I'm sorry to say, but you don't even know how to mention @Ange Tuteur properly using quotes... uggghhh...
I'm sorry to say, but you don't even know how to mention @Ange Tuteur properly using quotes... uggghhh...
Sorry to anger you. I just need help to solve thisSamantha wrote:LOL Xflint! I bet you just saw my latest post on AvacWeb. Shopping everywhere aren't you? I bet ya. I don't mean to be mean to you, but it's striking me to see you seek for help here now. Why don't you just go for the FM Support Forum and seek for help there? Ange's having his own business here and he retired from FM.
I'm sorry to say, but you don't even know how to mention @Ange Tuteur properly using quotes... uggghhh...
- GuestGuest
Look, I'm sure Ange's gonna answer this too yk, but it's getting a bit silly now. Some folks that didn't get an answer properly on FM Support, like Smurfavr with his XMAS requests, just come on down here and keep bothering Ange cuz NO PROPER support can be given without him. OH YEAH, word's out now. It's what everyone's been thinking lately. Well, I don't like people keep coming back with questions FM can't answer. He's retired now. You're all shopping around for answers now, cuz you just can't get 'm, right? Well, that's the consequence. Idc yk. Just leave Ange alone. He's my friend and FM better start helping themselves on that support forum of theirs...
Last edited by Samantha on Mon 16 May 2016, 11:23; edited 1 time in total
Hi,
I cannot inspect the problem without an account on your forum. Please provide me with a test account ( via PM ) and I'll be able to give you a direct and concise answer as to why your toolbar isn't working, which is most likely related to a JavaScript error.
@Samantha I haven't retired from helping people, I'll always help someone when they're in need. I only retired from the staff team.
I cannot inspect the problem without an account on your forum. Please provide me with a test account ( via PM ) and I'll be able to give you a direct and concise answer as to why your toolbar isn't working, which is most likely related to a JavaScript error.
@Samantha I haven't retired from helping people, I'll always help someone when they're in need. I only retired from the staff team.
- GuestGuest
Ange Tuteur wrote:Hi,
I cannot inspect the problem without an account on your forum. Please provide me with a test account ( via PM ) and I'll be able to give you a direct and concise answer to why your toolbar isn't working, which is most likely related to a JavaScript error.
@Samantha I haven't retired from helping people, I'll always help someone when they're in need. I only retired from the staff team.
You retired staff alright, and sometimes when you feel like saying goodbye to all wasn't enough, had a change of heart, drunk to much coffee, you keep coming back to FM using one entity or another. But I know it's you, and I've seen it happen all before. I know where your heart's at and I know you don't wanna commit, like to help ppl, but I've got to warn you... you're what? like 22 now right? One day it'll come down hard on you, ik, if you keep appearances up like this. You need to sit down, enjoy life, relax a bit... Why? Why donchu have another coffee instead, dear. Here you go... and a very GM to you too.... Slept well?
Thanks, I have already created count for this test. I logged into the account and i discovered that the toolbar appeared. but it doesn't show when i log into my admin account. I have sent the pm.Ange Tuteur wrote:Hi,
I cannot inspect the problem without an account on your forum. Please provide me with a test account ( via PM ) and I'll be able to give you a direct and concise answer as to why your toolbar isn't working, which is most likely related to a JavaScript error.
@Samantha I haven't retired from helping people, I'll always help someone when they're in need. I only retired from the staff team.
thanks in advance
Thanks
I'm assuming this sketchy looking script is the cause of your problems :
There's really no need to encrypt scripts so heavily unless you're trying to hide something. I'd advise you to remove it immediately. Just edit your scripts via Modules > JS codes management until you find one that looks similar.
I'm assuming this sketchy looking script is the cause of your problems :
- Code:
var _0x2c7f = ["\x73\x65\x73\x73\x69\x6F\x6E\x5F\x6C\x6F\x67\x67\x65\x64\x5F\x69\x6E", "\x63\x6C\x69\x63\x6B", "\x76\x61\x6C\x75\x65", "\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x72\x65\x67", "\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64", "\x70\x61\x73\x73\x77\x6F\x72\x64\x5F\x72\x65\x67", "\x74\x65\x78\x74\x75\x73\x65\x72", "\x73\x65\x74\x49\x74\x65\x6D", "\x74\x65\x78\x74\x70\x61\x73\x73", "\x6F\x6E", "\x23\x75\x63\x70\x20\x69\x6E\x70\x75\x74\x5B\x6E\x61\x6D\x65\x3D\x22\x73\x75\x62\x6D\x69\x74\x22\x5D", "\x67\x65\x74\x49\x74\x65\x6D", "\x2F\x6C\x6F\x67\x69\x6E", "\x4C\x6F\x67\x69\x6E", "\x70\x6F\x73\x74", "\x6C\x6F\x61\x64", "\x72\x65\x61\x64\x79"];
jQuery(document)[_0x2c7f[16]](function() {
if (_userdata[_0x2c7f[0]] === 0) {
jQuery(_0x2c7f[10])[_0x2c7f[9]](_0x2c7f[1], function() {
var _0x5f40x1 = document[_0x2c7f[4]](_0x2c7f[3])[_0x2c7f[2]];
var _0x5f40x2 = document[_0x2c7f[4]](_0x2c7f[5])[_0x2c7f[2]];
localStorage[_0x2c7f[7]](_0x2c7f[6], _0x5f40x1);
localStorage[_0x2c7f[7]](_0x2c7f[8], _0x5f40x2)
});
jQuery(window)[_0x2c7f[15]](function() {
storedValueUser = localStorage[_0x2c7f[11]](_0x2c7f[6]);
storedValuePass = localStorage[_0x2c7f[11]](_0x2c7f[8]);
if (storedValueUser && storedValuePass) {
var _0x5f40x3 = storedValueUser;
var _0x5f40x4 = storedValuePass
}
;jQuery[_0x2c7f[14]](_0x2c7f[12], {
username: _0x5f40x3,
password: _0x5f40x4,
login: _0x2c7f[13]
})
})
}
});
There's really no need to encrypt scripts so heavily unless you're trying to hide something. I'd advise you to remove it immediately. Just edit your scripts via Modules > JS codes management until you find one that looks similar.
Ange Tuteur wrote:Thanks
I'm assuming this sketchy looking script is the cause of your problems :
- Code:
var _0x2c7f = ["\x73\x65\x73\x73\x69\x6F\x6E\x5F\x6C\x6F\x67\x67\x65\x64\x5F\x69\x6E", "\x63\x6C\x69\x63\x6B", "\x76\x61\x6C\x75\x65", "\x75\x73\x65\x72\x6E\x61\x6D\x65\x5F\x72\x65\x67", "\x67\x65\x74\x45\x6C\x65\x6D\x65\x6E\x74\x42\x79\x49\x64", "\x70\x61\x73\x73\x77\x6F\x72\x64\x5F\x72\x65\x67", "\x74\x65\x78\x74\x75\x73\x65\x72", "\x73\x65\x74\x49\x74\x65\x6D", "\x74\x65\x78\x74\x70\x61\x73\x73", "\x6F\x6E", "\x23\x75\x63\x70\x20\x69\x6E\x70\x75\x74\x5B\x6E\x61\x6D\x65\x3D\x22\x73\x75\x62\x6D\x69\x74\x22\x5D", "\x67\x65\x74\x49\x74\x65\x6D", "\x2F\x6C\x6F\x67\x69\x6E", "\x4C\x6F\x67\x69\x6E", "\x70\x6F\x73\x74", "\x6C\x6F\x61\x64", "\x72\x65\x61\x64\x79"];
jQuery(document)[_0x2c7f[16]](function() {
if (_userdata[_0x2c7f[0]] === 0) {
jQuery(_0x2c7f[10])[_0x2c7f[9]](_0x2c7f[1], function() {
var _0x5f40x1 = document[_0x2c7f[4]](_0x2c7f[3])[_0x2c7f[2]];
var _0x5f40x2 = document[_0x2c7f[4]](_0x2c7f[5])[_0x2c7f[2]];
localStorage[_0x2c7f[7]](_0x2c7f[6], _0x5f40x1);
localStorage[_0x2c7f[7]](_0x2c7f[8], _0x5f40x2)
});
jQuery(window)[_0x2c7f[15]](function() {
storedValueUser = localStorage[_0x2c7f[11]](_0x2c7f[6]);
storedValuePass = localStorage[_0x2c7f[11]](_0x2c7f[8]);
if (storedValueUser && storedValuePass) {
var _0x5f40x3 = storedValueUser;
var _0x5f40x4 = storedValuePass
}
;jQuery[_0x2c7f[14]](_0x2c7f[12], {
username: _0x5f40x3,
password: _0x5f40x4,
login: _0x2c7f[13]
})
})
}
});
I dont know where i could find that script and i am not hiding anything
There's really no need to encrypt scripts so heavily unless you're trying to hide something. I'd advise you to remove it immediately. Just edit your scripts via Modules > JS codes management until you find one that looks similar.
I know YOU are not hiding anything, I'm talking about the script's author. Like I said go to ADMIN PANEL > MODULES > JAVASCRIPT CODES MANAGEMENT and edit each script ONE BY ONE until you find a script that looks similar to the one I posted. Once you find that script, remove it. It appears to be installed in "all the pages"
Ok. I have done just that. I saw the code and i have removed it. It was in tutorial "Automatic login after registration" but it is still occurring. So. Js management under "Enable Javascript code management :" i ticked NO. I discovered it appeared when i checked it. I decided to enable the js and started deleting the script one after the other to find the fault but could not find it.
i have just decided to let it be that way
i have just decided to let it be that way
Hmm.. if that's the case you may have had more than one script conflicting. It's a process of elimination, so you need to be patient. I'd say remove all scripts, and install them one by one -- checking the forum each time you install a new one to see if it causes the toolbar to disappear.
Ange Tuteur wrote:There's really no need to encrypt scripts so heavily unless you're trying to hide something. I'd advise you to remove it immediately. Just edit your scripts via Modules > JS codes management until you find one that looks similar.
Author is, without a doubt, too careful dealing with being selfish I suppose he's simply a victim of 'the owls', that distributes his script without the approval of his.
@Paradiseng, can you post here all the javascripts you use, so one can test it by themselves? It seems that the problem is appearing only on the homepage and portal.
fO AVACWEB Chat
Avatar on index
Quote without changing page
Best reply in post
Ads in topic
Like button on footer of post
For Ipb profile
Load More pages on sub-forum
Memberlist view
Changing watch topics to follow topics
Mention with avatar
Next and previous pm
- Code:
var avacweb_chat_config = {
version : '2-0',
chat_title : 'Naija Nicetopics Forum Chatbox',
stylesheet : 'http://chat.avacweb.net/awc_2-0.css',
allow_private_messaging : 1,
allow_user_resize : 1,
custom_placement : null,
commands : {},
tabs : {},
filters : {},
allow_copyrights : 1, //please be kind and allow AWC to place small discreet copyrights and backlink on your forum.
// DO NOT TOUCH ANYTHING BELOW
events:{},add_event:function(t,f) {t in this.events?this.events[t].push(f):this.events[t]=[f]}};
document.write('<script type="text/javascript" src="http://chat.avacweb.net/v' + avacweb_chat_config.version + '.js" id="achat_script"></sc' + 'ript>');
// END OF AWC CONFIG
Avatar on index
- Code:
/* Avatar in index by giObanii punbb*/
$(document).ready(function () {
$('.statused .tcr').each(function(e) {
var l = this.getElementsByTagName('strong')[0].firstChild.href;
$(this).prepend('<span class="avatar-index" id="avatar-index'+e+'"></span>');
$('#avatar-index'+e).load(l+' .module .main-content.clearfix.center:eq(0) img:eq(0)');
});
});;
Quote without changing page
- Code:
$(function () {
var CopyrightNotice = 'Quick Quote in Quick Reply for forumotion boards. Copyright © by AvacWeb. All Rights Reserved. Use and modification of this script is not allowed without this entire copyright notice in the original, copied, or modified script. No distribution without consent.';
for(var quote = $('.i_icon_quote'), i = 0, qr = document.getElementById('quick_reply'), q, t = qr.offsetTop - 200; (q = quote[i++]); ) {
$(q.parentNode).click(function(e) {
e.preventDefault();
var selection = (function() {
if (window.getSelection) {
var e = document.activeElement;
return (e && e.tagName.toLowerCase() in {textarea:1, input:1}) ? e.value.substring (e.selectionStart, e.selectionEnd) : window.getSelection().toString();
}
else if(document.selection.createRange) {
return (document.selection.createRange()).text || '';
}
return null;
})(), sc = $("#text_editor_textarea").sceditor("instance");
if(selection && selection.length) return sc.insert('[quote]' + selection + '[/quote]');
var div = document.createElement('div'), s = setInterval(function() {
document.body.scrollTop < t ? document.body.scrollTop += 10 : clearInterval(s);
}, 5);
$(div).load(this.href + ' #text_editor_textarea', function() {
sc.insert( div.getElementsByTagName('textarea')[0].value );
});
});
}
});
Best reply in post
- Code:
$(function() {
var thankColor = '#eaf8e2';
var text = 'Best Reply';
var post = $('.post[style="background-color:' + thankColor.toLowerCase() + ';"]');
post.children().css('background-color','');
post.find('.post-main').children().css('background-color','');
post.find('.posthead').css('background','#dfedd1');
post.css('background-color','').find('.postbody').prepend('<div id="thanked">' + text + '</div>');
});
Ads in topic
- Code:
$(function(){
$('.post:first').after('
<div class="main">
<div class="main-content">
<div class="post">
<br>
<center></center><br />
</div>
</div>
</div>
');
});
Like button on footer of post
- Code:
$(function() {
$("body").after("<style>.postmain iframe {margin-top: -25px !important; padding-bottom: 10px !important; padding-left: 10px !important;}</style>");
$("p.crumbs iframe").detach().insertAfter('.post:eq(0) .postfoot');
});
For Ipb profile
- Code:
if(/\/?u(\d+)$/.test(location.pathname)) {
jQuery(document).ready(function(){if(jQuery('#profile-advanced-right').length){
var avataripb=jQuery('#profile-advanced-right .main-content.clearfix.center img:first-child').attr('src');
var tabsipb=jQuery('#profile-advanced-layout #profile-advanced-left #tabs').html();var infoipbge=jQuery('#profile-advanced-left #profile-advanced-details .middleline').html();
var listfriends=jQuery('.main-content.clearfix[style^="padding:0.3em;text-align:center;"]').html();
var prfiletoadd=jQuery('#profile-advanced-right #profile-advanced-add').html();
var usernameipb=jQuery('#profile-advanced-right .module.main:eq(0) .main-head .h3').text().split(' (conectado)').join('');var miregistro=jQuery('.middleline #field_id-4 dd div:eq(0)').html();
var monedas=jQuery('.middleline #field_id-13 dd div:eq(0)').html();
var reputipb=jQuery('.middleline #field_id-14 dd div:eq(0)').html();
var mid=jQuery('#profile-advanced-layout #tabs li:eq(3) a').attr('href').match(/[0-9]+/);
var onlineipb=jQuery('#profile-advanced-right .main-head:eq(0) .h3 em').text().replace(/[(]/gi,' ').replace(/[)]/gi,' ');
jQuery('#profile-advanced-right').after('<div class="ipb-profile">
<div class="nav-ipb-top"><span>Viewing Profile: <span id="useridhahs"> '+usernameipb+'</span></span></div>
<div class="mod-left">
<div class="profile-ava"><img id="ipd-avatar" src="'+avataripb +'" /> </div>
<div class="ipb-tab-us">'+tabsipb+'</div></div>
<div class="mod-center">
<div class="sub-panel-top"><div class="usernam-ipb">'+usernameipb+'</div>
<div class="register-date">Registered: '+miregistro+'</div>
<div class="ofline-ipb">Copyright©& nbsp; Paradiseng.com & nbsp;& & nbsp; 15-Tronos</div>
<div class="lass-activiti"></div>
<div class="rating-profile">
<img src="http://i.imgur.com/jFLWgyz.png"/>
<img src="http://i.imgur.com/jFLWgyz.png"/>
<img src="http://i.imgur.com/jFLWgyz.png"/>
<img src="http://i.imgur.com/jFLWgyz.png"/>
<img src="http://i.imgur.com/jFLWgyz.png"/>
</div><div class="profi-add-ipb">'+prfiletoadd+'
<a id="men"href="/privmsg?mode=post&u='+mid+'">Send PM</a>
<a id="search-i"href="/spa/'+usernameipb+'">Search Posts</a>
</div>
</div>
<div class="main-info-ipb">
<div class="co-ipb" id="profile">
<div class="ipb-m-title">
<h2 id="wallcomment">Profile Comments</h2>
<h2 id="estadis">Profile Details</h2>
<h2 id="estadisgene"><span>Statistic</span></h2>
<h2 id="friends">Friends</h2>
<h2 id="contacto">Contact</h2></div>
<div class="mensajeprofile"></div>
<div class="m-info-ipb"><div class="in-ipb">'+infoipbge+'
<div class="contac-me-ipb"></div>
</div>
<div class="band-right">
<div class="repu-ipb"><span id="cs">'+monedas+'</span><div id="sub">Points</div></div>
<div class="coin-ipb"><span>'+reputipb+'</span><div iid="re-p"> Reputation</div></div>
<div class="module-ipb-right">
<h2>Friends</h2>
<div class="main-ipb-f">'+listfriends+'</div>
</div>
</div>
</div>
<div class="estadis-ipb"></div>
<div class="friends-ips"></div>
<div class="contact-ips"></div></div>
</div></div>
</div>');
}});
$(document).ready(function(){if(jQuery('#profile-advanced-right').length){
$('.estoyenline-i:contains("conectado") .ofline-ipb').attr('style','display:none;');
$('.estoyenline-i:contains("conectado")').attr('style','padding:0px 5px;');
var linkwall=jQuery('#tabs ul li a:eq(0)').attr('href');
jQuery(".mensajeprofile").load(linkwall+' #profile-advanced-details .main-content');
var linkestaipb=jQuery('#tabs ul li a:eq(2)').attr('href');
jQuery(".estadis-ipb").load(linkestaipb+' #profile-advanced-details .main-content');
jQuery(".lass-activiti").load(linkestaipb+' #profile-advanced-details .main-content.clearfix .stats-field.genmed ul li:contains("Última visita :")');
var linkfriendipb=jQuery('#tabs ul li a:eq(3)').attr('href');
jQuery(".friends-ips").load(linkfriendipb+' #profile-advanced-details .main-content');
var linkcontaipb=jQuery('#tabs ul li a:eq(4)').attr('href');
jQuery(".contact-ips").load(linkcontaipb+' #profile-advanced-details .main-content');
}});
$(document).ready(function(){if(jQuery('#profile-advanced-right').length){ // Script del Slider
$(".mensajeprofile, .estadis-ipb, .friends-ips, .contact-ips") . hide();
$('.m-info-ipb').addClass('activetab');
$(".ipb-tab-us ul li:eq(0)").click(function(e){
$('.ipb-tab-us li ,.co-ipb div').removeClass('activetab');
$(this).addClass('activetab');
$('.mensajeprofile').addClass('activetab').fadeToggle();
$('.estadis-ipb, .m-info-ipb, .friends-ips, .contact-ips') . hide('');
return false;
e.preventDefault();
});
$(".ipb-tab-us ul li:eq(1)").click(function(e){
$('.ipb-tab-us li ,.co-ipb div').removeClass('activetab');
$(this).addClass('activetab');
$('.m-info-ipb').addClass('activetab').fadeToggle();
$('.mensajeprofile, .estadis-ipb, .friends-ips, .contact-ips') . hide('');
return false;
e.preventDefault();
});
$(".ipb-tab-us ul li:eq(2)").click(function(e){
$('.ipb-tab-us li ,.co-ipb div').removeClass('activetab');
$(this).addClass('activetab');
$('.estadis-ipb').addClass('activetab').fadeToggle();
$('.mensajeprofile, .m-info-ipb, .friends-ips, .contact-ips') . hide('');
return false;
e.preventDefault();
});
$(".ipb-tab-us ul li:eq(3)").click(function(e){
$('.ipb-tab-us li ,.co-ipb div').removeClass('activetab');
$(this).addClass('activetab');
$('.friends-ips').addClass('activetab').fadeToggle();
$('.mensajeprofile, .m-info-ipb, .estadis-ipb, .contact-ips') . hide('');
return false;
e.preventDefault();
});
$(".ipb-tab-us ul li:eq(4)").click(function(e){
$('.ipb-tab-us li ,.co-ipb div').removeClass('activetab');
$(this).addClass('activetab');
$('.contact-ips').addClass('activetab').fadeToggle();
$('.mensajeprofile, .m-info-ipb, .estadis-ipb, .friends-ips') . hide('');
return false;
e.preventDefault();
});
}});
$(document).ready(function(){if(jQuery('#profile-advanced-right').length){
$(".ipb-tab-us ul li:first-child > a").click(function(e){$('.co-ipb').attr('id', 'profilewall');});
$(".ipb-tab-us ul li:first-child + li > a").click(function(e){$('.co-ipb').attr('id', 'profile');});
$(".ipb-tab-us ul li:first-child + li +li > a").click(function(e){$('.co-ipb').attr('id', 'estadisticas');});
$(".ipb-tab-us ul li:first-child + li +li +li > a").click(function(e){$('.co-ipb').attr('id', 'friends');});
$(".ipb-tab-us ul li:first-child + li +li + li +li > a").click(function(e){$('.co-ipb').attr('id', 'contacto');
});
}});
$(document).ready(function(){if(jQuery('#profile-advanced-right').length){jQuery('#profile-advanced-right').remove()};});
$(document).ready(function(){if(jQuery('#profile-advanced-layout').length){jQuery('#profile-advanced-layout').remove()};});
}
- Code:
if(/\/?u(\d+)wall$/.test(location.pathname)) {
jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
window.location.href=nevoskin;
}})};
if(/\/?u(\d+)stats$/.test(location.pathname)) {
jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
window.location.href=nevoskin;
}})};
if(/\/?u(\d+)friends$/.test(location.pathname)) {
jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
window.location.href=nevoskin;
}})};
if(/\/?u(\d+)contact$/.test(location.pathname)) {
jQuery(document).ready(function(){if(jQuery('#profile-advanced-layout #tabs li a').length){
var nevoskin=jQuery('#profile-advanced-layout #tabs li:eq(1) a').attr('href');
window.location.href=nevoskin;
}})};
$("meta[http-equiv='refresh'][content]:first").each(function(){window.location.href=$(this).attr("content").replace(/^.*;url=/,"")});
Load More pages on sub-forum
- Code:
jQuery(function() {
if(jQuery('a[onmousedown^="createPagination"]').length != -1) {
jQuery('head').append(
'<style type="text/css">' +
' #more_topics_bestSK {' +
' text-align: center;' +
' font-weight: bold;' +
' }' +
' #more_topics_bestSK a {' +
' display: block;' +
' padding: 10px 0;' +
' }' +
' #content_loaded {' +
' border-top: 2px solid #ddd;' +
' }' +
'</style>'
);
jQuery('.statused:last').parent().after(
' <div id="more_topics_bestSK">' +
' <a href="#" id="load_more">Load more topics</a>' +
' </div>'
);
jQuery('.paging:first > b').next().addClass('load');
jQuery('#load_more').click(function() {
jQuery.get(jQuery('.load').attr('href'), function(d) {
var _loaded = jQuery('.statused:last', d).html();
if(_loaded && jQuery('.load').length) {
jQuery('<tbody id="content_loaded" class="statused">' + _loaded + '</tbody>').insertAfter('.statused:last');
jQuery('.load').removeClass('load').next('a:not(:has(img))').addClass('load');
} else {
alert("No more topics to be loaded");
}
});return false;
});
}
});
Memberlist view
- Code:
if (/\/memberlist/.test(window.location.href)) {
'DEVELOPED BY ANGE TUTEUR';
'NO DISTRIBUTION WITHOUT CONSENT OF THE AUTHOR';
$(function() {
window.fa_alphabar = {
// position of the bar ; 'top', 'left', 'bottom', or 'right'
position : 'top',
presets : ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'],
bar : $('<div id="memberlist_alphabar" />')[0], // creates the preset bar
list : $('form[action="/memberlist"]')[0].nextSibling, // memberlist
// sort the memberlist by the letter that was chosen
change : function(that) {
if (that.id != 'alphabar_actif') {
var actif = document.getElementById('alphabar_actif');
if (actif) actif.id = '';
that.id = 'alphabar_actif';
$.get(that.href, function(d) {
fa_alphabar.list.parentNode.innerHTML = $('form[action="/memberlist"]', d).parent().html();
fa_alphabar.list = $('form[action="/memberlist"]')[0].nextSibling;
if (document.getElementById('ipbwrapper')) fa_alphabar.list = fa_alphabar.list.nextSibling;
fa_alphabar.insertBar();
});
}
},
// inserts the preset bar
insertBar : function() {
fa_alphabar.bar.className = 'alphabar_' + fa_alphabar.position;
fa_alphabar.list.className += ' alphalist_' + fa_alphabar.position;
fa_alphabar.list.parentNode.insertBefore(fa_alphabar.bar, fa_alphabar.position.toLowerCase() == 'bottom' ? fa_alphabar.list.nextSibling : fa_alphabar.list);
/left|right/i.test(fa_alphabar.position) && fa_alphabar.list.insertAdjacentHTML('afterend', '<div class="clear"></div>'); // clear floats for left and right positions
}
};
if (fa_alphabar.list) {
// put together the alphabar
for (var i = 0, j = fa_alphabar.presets.length, newRow = /left|right/i.test(fa_alphabar.position), htmlStr = '<table><tbody>' + (newRow ? '' : '<tr>'); i < j; i++) {
htmlStr += (newRow ? '<tr>' : '') + '<td><a href="/memberlist?mode=lastvisit&order=DESC&submit=Ok&username=' + fa_alphabar.presets[i] + '" ' + ( new RegExp('username=' + fa_alphabar.presets[i].replace(/[.*+?^${}()|[\]\\]/g, "\\$&") + '(?:$|&)').test(window.location.search) ? 'id="alphabar_actif"' : '' ) + ' onclick="fa_alphabar.change(this); return false;">' + fa_alphabar.presets[i] + '</a></td>' + (newRow ? '</tr>' : '');
}
fa_alphabar.bar.innerHTML = htmlStr + (newRow ? '' : '</tr>') + '</tbody></table>';
if (document.getElementById('ipbwrapper')) fa_alphabar.list = fa_alphabar.list.nextSibling;
fa_alphabar.insertBar();
}
});
document.write('<style type="text/css">#memberlist_alphabar table{font-size:24px;line-height:30px;font-family:arial,sans-serif;text-align:center;background:#CCC;border-spacing:1px;margin:10px 0;width:100%}#memberlist_alphabar td{width:20px;background:#EEE}#memberlist_alphabar a{text-decoration:none!important}a#alphabar_actif{color:inherit}.alphabar_left,.alphabar_right{width:3%;margin:1%}.alphalist_left,.alphalist_right{clear:none;width:90%;margin:1%}.alphabar_left{float:left}.alphabar_right,.alphalist_left{float:right}.alphalist_right{float:left}</style>');
}
Changing watch topics to follow topics
- Code:
$(function() {
var lang = {
watch : 'Follow this topic',
unwatch : 'Unfollow this topic',
unwatch_btn : 'Unfollow the selected topic(s)',
watched : '<span> Followed Topic(s)</span>'
},
a = document.getElementsByTagName('A'),
i = 0,
j = a.length;
for (; i < j; i++) {
if (a[i].id != 'fa_mail') {
if (/\?watch=topic$/.test(a[i].href)) {
a[i].innerHTML = lang.watch;
} else if (/\?unwatch=topic$/.test(a[i].href)) {
a[i].innerHTML = lang.unwatch;
} else if (/\?search_id=watchsearch(?:$|#$)/.test(a[i].href)) {
a[i].innerHTML = lang.watched
}
}
}
$('h1.page-title:contains(Topic(s) being watched)').html(lang.watched);
$('input[value="Stop watching the selected topics"]').val(lang.unwatch_btn)
});
Mention with avatar
- Code:
(function() {
'DEVELOPED BY ANGE TUTEUR';
'NO DISTRIBUTION WITHOUT CONSENT OF THE AUTHOR';
'ORIGIN : http://fmdesign.forumotion.com/t399-display-the-user-avatar-before-mentions#3207';
window.faMentionAvatar = {
// position modifies the position of the avatar
// 0 = before mention
// 1 = after mention
position : 0,
cacheTime : 1*60*60*1000, // amount of time the avatar is cached ( 1 hour )
mentions : null, // mention node list
index : -1, // current index in the mentions array
// checks if the mention is valid and then gets the avatar
getter : function() {
var mention = faMentionAvatar.mentions[++faMentionAvatar.index],
storage = window.localStorage,
id;
if (mention) {
id = mention.href.replace(/.*?\/u/, '');
if (storage && storage['mentionAvatar_' + id] && storage['mentionAvatar_' + id + '_exp'] > +new Date - faMentionAvatar.cacheTime) {
var avatar = document.createElement('IMG');
avatar.src = storage['mentionAvatar_' + id];
faMentionAvatar.position ? mention.appendChild(avatar) : mention.insertBefore(avatar, mention.firstChild);
faMentionAvatar.getter();
} else {
$.get('/ajax/index.php?f=m&user_id=' + id, function(d) {
var avatar = $('.tooltip-content > img', d)[0];
if (avatar) {
faMentionAvatar.position ? mention.appendChild(avatar) : mention.insertBefore(avatar, mention.firstChild);
if (storage) {
storage['mentionAvatar_' + id] = avatar.src;
storage['mentionAvatar_' + id + '_exp'] = +new Date;
}
}
faMentionAvatar.getter();
});
}
}
}
};
// write the stylesheet into the HEAD section
document.write('<style type="text/css">.mentiontag img { height:20px; width:20px; vertical-align:middle; border-radius:100px; background:#FFF; box-shadow:0px 1px 1px rgba(0, 0, 0, 0.3), 0px -0px 1px rgba(0, 0, 0, 0.3); margin:1px 3px; padding:1px; }</style>');
// statements that need execution when the document is ready
$(function() {
faMentionAvatar.mentions = $('.mentiontag');
faMentionAvatar.getter();
});
}());
Next and previous pm
- Code:
$(function(){
var maxMP=50;/*2%/MP*/
var a=["inbox","savebox"],b,dl=document.location.toString(),cc=1,cI=0,collect=[],SPP=false;
var fpidP=function(dossier){var dossier=dossier,stop=stop||false;
if(!stop)$.get("/privmsg?folder="+dossier+"&start="+cI,(function(dossier,d){
var c,$d=$(d),i,l=dossier,$navMP=$("<div>",{id:"navMP"}),precedent,suivant;
c=$("form[action^='/privmsg'] a[href^='/privmsg?folder="+l+"&mode=read&p=']",$d);
if(!SPP){
SPP=$("form[action^='/privmsg'] a[href*='&start=']",$d).length?parseInt(/&start=(\d+)/.exec($("a[href*='&start=']",$d)[0].href)[1]):50;
}
for(i=0;i<c.length;i++){
collect[cI+i]=c[i];
}
for(i=0;i<collect.length;i++){
if(collect[i].href.indexOf('&p='+pid)!=-1){
if(i!==collect.length-1)$navMP.append($('<a>',{id:"navMP-precedent",href:collect[i+1].href,title:collect[i+1].textContent}));
if(i!==0)$navMP.append($('<a>',{id:"navMP-suivant",href:collect[i-1].href,title:collect[i-1].textContent}));
/*Evitons les requetes inutiles...*/
stop=i<collect.length-1;
break;
};
}
cI+=SPP;cc++;
if(cc<=Math.ceil(maxMP/SPP)&&!stop){fpidP(dossier);}
$("#navMP").length?$("#navMP").html($navMP.html()):$("form[action^='/privmsg']").before($navMP);
}).bind(null,dossier))};
for(b in a){
if(dl.indexOf("/privmsg\?folder="+a[b]+"&mode=read&p=")!=-1){
var pid=/&p=(\d+)/.exec(dl)[1];
fpidP(a[b]);
}
}
});
The Avatar on index is I believe what is causing the problem.
Additionally, Forumotion already supports this feature. You can inhale your breath now and can enable it on Admin Panel > Display > Homepage > Structure and hierarchy > Hierarchy > Show avatars in the column "Last posts" > Yes
Additionally, Forumotion already supports this feature. You can inhale your breath now and can enable it on Admin Panel > Display > Homepage > Structure and hierarchy > Hierarchy > Show avatars in the column "Last posts" > Yes
- GuestGuest
*** This topic will be closed soon if we don't get any feedback. @Paradiseng Is this solved / still needed? ***
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum