How can I make a thanks "system" like here in the support forum? Is this possible with phpBB2?
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
This is a Hitskin.com skin preview
Install the skin • Return to the skin page
var CopyrightNotice = 'New thank-you system for forumotion IPB2/Invision boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post-footer[style="background-color:#;"]').prepend('<div style="padding-top:2px;height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /> The topic starter thanks you, '+$('.post[style="background-color:#;"] .postprofile dt').text()+'! <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});
var CopyrightNotice = 'New thank-you system for forumotion phpBB3 boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post[style="background-color:#;"] div.clear').after('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><hr /><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /> The topic starter thanks you, '+$('.post[style="background-color:#;"] .postprofile dt').text()+'! <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});
var CopyrightNotice = 'New thank-you system for forumotion PunBB boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post[style="background-color:#;"] .post-options').prepend('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /> The topic starter thanks you, '+$('.post[style="background-color:#;"] .user-ident').text()+'! <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});
[img]http://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png[/img][color=olive][size=24]The topic starter thanks you![/size][/color][img]http://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png[/img]
var CopyrightNotice = 'New thank-you system for forumotion PunBB boards. Copyright © 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post[style="background-color:#;"] .post-options').prepend('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /> The topic starter thanks you, '+$('.post[style="background-color:#;"] .user-ident').text()+'! <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});
AuQaClan wrote:il re check my friend
AuQaClan wrote:hmm iv looked around and i think it might just be a Signature.
If you would like i could make you one?
AuQaClan wrote:The topic starter thanks you!
Its not the same but..
- Code:
[img]http://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png[/img][color=olive][size=24]The topic starter thanks you![/size][/color][img]http://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png[/img]
AuQaClan wrote:
- Code:
var CopyrightNotice = 'New thank-you system for forumotion PunBB boards. Copyright 2012 by Dion Designs. All Rights Reserved. Use and/or modification of this script is allowed, provided this entire copyright notice remains in the original or modified script. Distribution is not allowed without written consent from Dion Designs.';
$(function() {
$('.post[style="background-color:#;"] .post-options').prepend('<div style="height:32px;line-height:36px;color:#740;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /> The topic starter thanks you, '+$('.post[style="background-color:#;"] .user-ident').text()+'! <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png" /></div>');
});
Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead! [Second Reminder] |
$(function () {
var x = $('.post .row2:nth(1)').get();
for (i = 0; i < x.length; i++) {
if (x[i].style.backgroundColor == "rgb(221, 235, 202)") {
x[i].style.backgroundColor = '"rgb(0, 149, 255)"';
x[i].parentNode.firstChild.style.backgroundColor = '';
x[i].parentNode.nextSibling.getElementsByTagName('td')[0].style.backgroundColor = '';
x[i].parentNode.nextSibling.getElementsByTagName('td')[1].style.backgroundColor = '';
var stars = document.createElement('div');
stars.setAttribute('style', 'text-align: center;');
stars.innerHTML = '<hr><div style="padding-top:2px;height:32px;line-height:36px;text-shadow:#FFFFFF 1px 1px 8px;font-variant:small-caps;color:#021678;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://www.abload.de/img/iconnewi7c33.png"> Der Themenstarter dankt dir! <img style="vertical-align:top" src="http://www.abload.de/img/iconnotew2ei88.png"></div>';
x[i].appendChild(stars);
}
}
});
$(function () {
var x = $('.post .row2:nth(1)').get();
for (i = 0; i < x.length; i++) {
if (x[i].style.backgroundColor == "rgb(0, 149, 255)") {
x[i].style.backgroundColor = ' ' ;
x[i].parentNode.firstChild.style.backgroundColor = '';
x[i].parentNode.nextSibling.getElementsByTagName('td')[0].style.backgroundColor = '';
x[i].parentNode.nextSibling.getElementsByTagName('td')[1].style.backgroundColor = '';
var stars = document.createElement('div');
stars.setAttribute('style', 'text-align: center;');
stars.innerHTML = '<hr><div style="padding-top:2px;height:32px;line-height:36px;text-shadow:#FFFFFF 1px 1px 8px;font-variant:small-caps;color:#021678;font-size:16px;font-weight:bold;text-align:center"><img style="vertical-align:top" src="http://www.abload.de/img/iconnewi7c33.png"> Der Themenstarter dankt dir! <img style="vertical-align:top" src="http://www.abload.de/img/iconnotew2ei88.png"></div>';
x[i].appendChild(stars);
}
}
});
Mariofan13 wrote:Where is the error conlone in firefox?
Can anyone help me? I inserted the JS, but it still doesn't work! Where's the problem?Mariofan13 wrote:Thanks
I deleted the viewtopic_body, but it still doesn't work