Posted April 26th 2013, 3:22 pm
I want to ask how can i make that when someone press on thanks button a picture or a text that i made will appear in the post i thanked ?
(Not Buttons)
Thanks
Message (Page 1 of 1)
Posted April 26th 2013, 3:49 pm
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>');
});
Posted April 26th 2013, 4:09 pm
$(function () {
var x = $('.post .row2:nth(1)').get();
for (i = 0; i < x.length; i++) {
if (x[i].getAttribute('style') == "background-color:#0095ff;") {
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; 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! <img style="vertical-align:top" src="http://cdn.iconfinder.net/data/icons/Basic_set2_Png/32/star1.png"></div>';
x[i].appendChild(stars);
}
}
});
Posted April 26th 2013, 7:16 pm
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() {
$('td.row2[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://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png" /> The topic starter thanks you! <img style="vertical-align:top" src="http://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png" /></div>');
});
Posted April 26th 2013, 11:42 pm
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() {
$('td.row2 div.postbody 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://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png" /> The topic starter thanks you! <img style="vertical-align:top" src="http://icons.iconarchive.com/icons/iconshock/christmas/48/star-icon.png" /></div>');
});
Message (Page 1 of 1)
Similar topics
Permissions in this forum:
You cannot reply to topics in this forum
In total there is 0 user online :: 0 Registered, 0 Hidden and 0 Guests
Users browsing this forum: None