How to make a thanks system like here?
+4
Jaytective9
SLGray
AuQaClan
Mariofan13
8 posters
Page 2 of 2
Page 2 of 2 • 1, 2
How to make a thanks system like here?
First topic message reminder :
Hello,
How can I make a thanks "system" like here in the support forum? Is this possible with phpBB2?
Hello,
How can I make a thanks "system" like here in the support forum? Is this possible with phpBB2?
Re: How to make a thanks system like here?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: How to make a thanks system like here?
Yes, I know. But the problem is, that the script doesn't work in my forum!
Here is the sript again:
Here is the sript again:
- Code:
$(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);
}
}
});
Re: How to make a thanks system like here?
Mariofan13 wrote:Yes, I know. But the problem is, that the script doesn't work in my forum!
Here is the sript again:
- Code:
$(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);
}
}
});
are you following the instructions properly, you must not be doing something right?
Is this even compatible with phpbb2? what the link to the main tutorial on this, i will have to test it my self and see whats what?
kirk- Forumaster
- Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn
Re: How to make a thanks system like here?
I followed the instructions. This is the main tutorial: http://www.malware-site.www/t29-how-to-add-styling-to-thanked-posts
I changed the pictures and the text, which will appear below thanked posts.
I changed the pictures and the text, which will appear below thanked posts.
Re: How to make a thanks system like here?
Did you enable Javascript management? and if that doesnt work take the link of the JS file you created, edit Overall_header template and add:
<script type="text/javascript" src="YOURJSLINK"></script>
and make sure its in the head tag.
<script type="text/javascript" src="YOURJSLINK"></script>
and make sure its in the head tag.
Mike- Hyperactive
- Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado
Re: How to make a thanks system like here?
yes, I enabled Javascript, and activated the script for the thanks-text "in the topics".
I don't want to place it in overall_header, because I have other javascripts activated for all pages, and this one is only for 2in the topics", and I don't want too long loading time
I don't want to place it in overall_header, because I have other javascripts activated for all pages, and this one is only for 2in the topics", and I don't want too long loading time
Re: How to make a thanks system like here?
It still doesn't work
The code:
The code:
- Code:
$(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://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);
}
}
});
Re: How to make a thanks system like here?
Sorry, this makes no sense I wrote a lot of times, , that the javascript of your tutorial doesn't work in my bb2 forum! And you poste the link to the tutorial! This makes no sense!
The color of thanked posts is the same as the color of normal posts - #0095FF or rgb(0,149,255)!
The color of thanked posts is the same as the color of normal posts - #0095FF or rgb(0,149,255)!
Last edited by Mariofan13 on February 12th 2013, 1:10 pm; edited 1 time in total
Re: How to make a thanks system like here?
The last posting of the first page is a thanked posting: http://mario-universe.forumieren.com/t62-internet-trojanbho
The reason, why the scrpt is not working, is NO TEMPLATE ERROR, because the scritp doesn't work with activated original templates too.
The reason, why the scrpt is not working, is NO TEMPLATE ERROR, because the scritp doesn't work with activated original templates too.
Re: How to make a thanks system like here?
yes, this code is in my template viewtopic_body. I had deactivated the templates with this new one click-feature, but there was no text shown below the thanked posting. So i activated templates again.
Last edited by Mariofan13 on February 14th 2013, 8:50 pm; edited 1 time in total
Re: How to make a thanks system like here?
NO Whrere did I write, that the problem is solved! The javascript does NOT work in my forum.
Page 2 of 2 • 1, 2
Similar topics
» how to make an thank system?
» How Do I Make A Reputation System
» How can i make a shop system?
» how to make a rating system
» Is it possible to make this kind of Character system?
» How Do I Make A Reputation System
» How can i make a shop system?
» how to make a rating system
» Is it possible to make this kind of Character system?
Page 2 of 2
Permissions in this forum:
You cannot reply to topics in this forum