The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to make a thanks system like here?

+4
Jaytective9
SLGray
AuQaClan
Mariofan13
8 posters

Page 2 of 2 Previous  1, 2

Go down

Solved How to make a thanks system like here?

Post by Mariofan13 December 22nd 2012, 6:26 pm

First topic message reminder :

Hello,
How can I make a thanks "system" like here in the support forum? Is this possible with phpBB2?
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down


Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 13th 2013, 11:05 pm

bump
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 18th 2013, 6:40 am

bump
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 18th 2013, 11:57 pm

Am I ignored here? BUMP Exclamation
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by SLGray January 19th 2013, 12:09 am



How to make a thanks system like here? - Page 2 Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 19th 2013, 9:21 am

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);
          }
      }
    });
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 20th 2013, 9:50 am

bump!
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 21st 2013, 1:49 pm

Buuuuuuuuuuuuuuuump Exclamation
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by kirk January 22nd 2013, 2:02 am

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
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 22nd 2013, 4:54 pm

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.
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mike January 22nd 2013, 5:18 pm

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.
Mike
Mike
Hyperactive

Male Posts : 4255
Reputation : 471
Language : English, HTML, CSS
Location : Loveland, Colorado

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 22nd 2013, 5:22 pm

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 Wink
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 29th 2013, 10:10 pm

bump
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 January 30th 2013, 5:09 pm

It still doesn't work Sad
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);
          }
      }
    });
I thanked for a posting, but no text is shown below the posting Sad
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 1st 2013, 11:11 pm

bump
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 9th 2013, 4:25 pm

buuuuuuuuuuuuuuuuump Exclamation Exclamation
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 10th 2013, 3:51 pm

bump Exclamation bump Exclamation
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 11th 2013, 5:20 pm

Buuuuuuuump!!!11
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 12th 2013, 10:53 am

bump... Crying or Very sad
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 12th 2013, 12:24 pm

Sorry, this makes no sense Exclamation 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)!


Last edited by Mariofan13 on February 12th 2013, 1:10 pm; edited 1 time in total
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 12th 2013, 1:08 pm

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.
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 13th 2013, 2:01 pm

bump Exclamation
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 14th 2013, 2:43 pm

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
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 14th 2013, 8:52 pm

NO Exclamation Exclamation Whrere did I write, that the problem is solved! The javascript does NOT work in my forum.
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 14th 2013, 10:13 pm

You have a new Pm Wink
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Solved Re: How to make a thanks system like here?

Post by Mariofan13 February 14th 2013, 11:25 pm

THank you very much Exclamation Wink
-solved-
Mariofan13
Mariofan13
Forumember

Male Posts : 188
Reputation : 6
Language : German, English, Latin, 1337, HTML, CSS, BBCode, Wikitext
Location : Mushroom Kingdom

http://mario-forum.net

Back to top Go down

Page 2 of 2 Previous  1, 2

Back to top

- Similar topics

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