The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to make a thanks system like here?

Page 2 of 2 Previous  1, 2

View previous topic View next topic Go down

Solved How to make a thanks system like here?

Post by Mariofan13 on 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
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 on January 13th 2013, 11:05 pm

bump

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 on January 18th 2013, 6:40 am

bump

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 on January 18th 2013, 11:57 pm

Am I ignored here? BUMP Exclamation

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 on January 19th 2013, 12:09 am



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


SLGray
Administrator
Administrator

Male Posts : 36748
Reputation : 2449
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

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

Post by Mariofan13 on 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
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 on January 20th 2013, 9:50 am

bump!

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 on January 21st 2013, 1:49 pm

Buuuuuuuuuuuuuuuump Exclamation

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

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

Back to top Go down

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

Post by Mariofan13 on 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
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 on 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
Hyperactive

Male Posts : 4242
Reputation : 466
Language : English, HTML, CSS
Location : Bozeman, Montana

Back to top Go down

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

Post by Mariofan13 on 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
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 on January 29th 2013, 10:10 pm

bump

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 on 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
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 on February 1st 2013, 11:11 pm

bump

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 on February 9th 2013, 4:25 pm

buuuuuuuuuuuuuuuuump Exclamation Exclamation

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 on February 10th 2013, 3:51 pm

bump Exclamation bump Exclamation

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 on February 11th 2013, 5:20 pm

Buuuuuuuump!!!11

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 on February 12th 2013, 10:53 am

bump... Crying or Very sad

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 on 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
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 on 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
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 on February 13th 2013, 2:01 pm

bump Exclamation

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 on 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
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 on 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
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 on February 14th 2013, 10:13 pm

You have a new Pm Wink

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 on February 14th 2013, 11:25 pm

THank you very much Exclamation Wink
-solved-

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

View previous topic View next topic Back to top


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