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.

Member of the Day Widget

4 posters

Go down

Member of the Day Widget Empty Member of the Day Widget

Post by Scarlet D. November 21st 2015, 1:38 pm

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Opera, Safari, Other
Who the problem concerns : All members
Forum link : http://onepiecegr.forum-pro.org/

Description of problem

Hello!As you can see in the title i would like to make a widget which can see which member on my forum made the most posts on the previous 24h and print his avatar and his name on the widget. I think it is simple enought but i lack programming skill for this XD
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. November 22nd 2015, 8:30 pm

any help ?
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. November 24th 2015, 8:41 pm

still nothing?Maybe you can do it for "member of the week" widget?
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Guest November 24th 2015, 9:13 pm

Hi, there,

Are you asking if you want to make widget where it would automatically place the avatar and username in there or do it yourself manually?
avatar
Guest
Guest


Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. November 25th 2015, 11:13 pm

Draxion wrote:Hi, there,

Are you asking if you want to make widget where it would automatically place the avatar and username in there or do it yourself manually?
@Draxion

As i said i want a widget that will see the activity (number of post and topics made this week) of a member, and whoever has a the best activity, it will automatically add his icon and name on the widget.That's all
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. November 27th 2015, 3:16 pm

still nothing?
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Van-Helsing November 27th 2015, 4:01 pm

Hello @HeartSealed,
You can adapt this code here as you wish. It is a similar code.

Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. November 30th 2015, 5:54 pm

Black-Shadow wrote:Hello @HeartSealed,
You can adapt this code here as you wish. It is a similar code.

Thanks a lot @Black-Shadow

this is the only code that works on my phpbb3 forum,rest of them doesn't show the date

Code:
        <style type="text/css">
        #tavatar{width:50px;}
        table{background-color:#262E33;}
        .mipost, #nameh{display:inline-block;padding-left:10px}
        td,tr{border:none}
        hr {
            display: block;
            margin-top: 0.5em;
            margin-bottom: 0.5em;
            margin-left: auto;
            margin-right: auto;
            border-style: inset;
            border-width: 1px;
        width:100%
        }
        #bpart{background-color:#ccc;}
        #pprofile{
            padding: 2px 5px;
        background-color:darkgreen;
            border-radius:6px;
        color:white;
        font-weight:bolder;
        float:right;
        }
        #thedate {
            padding: 2px 5px;
        background-color:darkgreen;
            border-radius:6px;
        color:white;
        font-weight:bolder;
        }
        #motm{font-weight:bolder;color:gray;}
        </style>
        <table>
                     
            <tbody>
                <tr>
                         
                    <td style="width: 20%;" rowspan="2">
       
                          <img id="tavatar"
        src="http://2img.net/i/fa/invision/pp-blank-thumb.png" />         
                                                                     
                    </td>
                         
                </tr>
                     
                <tr>
                         
                    <td>
                             
                        <div id="nameh">
       
                              <strong>name</strong> <span
        class="mimp"><a href="/privmsg?mode=post&u=46"><img
        src="http://i.imgur.com/1B61PFG.png"
        /></a></span><span class="mipost"><a
        href="spa/test"><img src="http://i.imgur.com/Ex7KhNG.png"
        /></a></span><br />                               
                                   
                            <hr />
                                 
                            <div id="motm">
                                      motm   
                            </div>
                                                                                                           
                            <div id="thedate">
                                      8 - 2014     
                            </div>
                                                                                                           
                        </div>
                             
                    </td>
                         
                </tr>
                     
                <tr>
                         
                    <td colspan="2">
                             
                        <div id="bpart">
                                 
                        </div><br />     
                        <div id="pprofile">
                                 
                        </div>
                             
                    </td>
                         
                </tr>
                     
            </tbody>
        </table>
                                                                                           
        <div id="blah1" style="display:none;">
         
        </div>
       
        <script type="text/javascript">
        (function() {
              var user = "1";
              var thetitle = "Member Of The Month";
       
              var name = ".subtitle";
            var d = new Date();
        var month = new Array();
        month[0] = "January";
        month[1] = "February";
        month[2] = "March";
        month[3] = "April";
        month[4] = "May";
        month[5] = "June";
        month[6] = "July";
        month[7] = "August";
        month[8] = "September";
        month[9] = "October";
        month[10] = "November";
        month[11] = "December";
        var n = month[d.getMonth()];
          var y = d.getFullYear();
              var ddate = n+" "+y;
              var joindate = "#field_id-4";
              var bday = "#field_id-12";
              var postt = "#field_id-13";
              var points = "#field_id-6";
              var avatar = "#profile-advanced-right .main .main-content img";
              var msg1 = 'Congratulations to ';
              var msg2  = ' our member of ';
            var msg3  = '. Joined the first time in this forum ';
            var msg4  = '. He/She celebrates a birthday on ';
            var msg5  = '. He/She has a total of ';
            var msg6  = ' posts. He/She received ';
            var msg7  = ' reputation points. Congratulations to this months member.';
         
              var j = jQuery, info1, info2, info3, info4, info5, info6, info7;
              j('#blah1').load('/u'+user+' #main-content', function() {
                info1 = j(this).find(name).text();            //name
                info7= info1.replace('Πληροφορίες για τον/την ','');
                info2 = j(this).find(joindate+' .field_uneditable').text(); //join date
                info3 = j(this).find(bday+' .field_uneditable').text(); //birthday
                info4 = j(this).find(postt+' .field_uneditable').text(); //points
                info5 = j(this).find(points+' .field_uneditable').text(); //post
                info6 = j(this).find(avatar).attr('src'); //avatar
                j('#nameh strong').text(info7);
                j('.mimp a').attr('href', '/privmsg?mode=post&u='+user);
                j('.mipost a').attr('href', '/spa/'+info7);
                  j('#thedate').text(n+ " - " +y);
                j('#motm').text(thetitle);
                  j('#tavatar').attr('src', info6);
       
                j('#pprofile').append(' <a href="/u'+user+'">View Profile</a> ');
                  j('#bpart').text(msg1 + info7 + msg2 + n+ " - " +y+ msg3 +info2 + msg4 + info3 + msg5+ info5 + msg6 + info4 + msg7);
              });
        })();
        </script>


the only problem with this is that it can't add the picture of the member.Anything i can do about it?
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Van-Helsing November 30th 2015, 10:30 pm

Hello @Heartsealed,
This code is written for PunBB forum version maybe @Ange Tuteur can help us to adapt it for phpbb3. Is that you forum version?
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 1st 2015, 2:35 pm

yeah, that's what i am saying.hopefully a mod that knows the script will answer sooner or later to make the script adapt to phpbb3. Other than the avatar problem, the script works wonderfully
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 2nd 2015, 6:00 pm

@ange tuteur any help? has to be a piece of cake to you
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by SLGray December 3rd 2015, 3:28 am

Ange Tuteur is having health issues.  Because if this, Ange Tuteur can not visit the forum often.


Member of the Day Widget 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 : 51463
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 5th 2015, 12:06 pm

I hope she will be healthy again. Time is not my enemy right now, she, or whoever want can answer anytime


Last edited by Heartsealed on December 8th 2015, 2:33 pm; edited 1 time in total
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 7th 2015, 5:43 pm

bump
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 8th 2015, 2:33 pm

bump again
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 10th 2015, 11:34 am

bump agaiiin
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 12th 2015, 12:37 pm

more bump to go
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 14th 2015, 2:06 pm

that's a bump too
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by SophieDophs December 15th 2015, 3:26 pm

Heartsealed wrote:

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Opera, Safari, Other
Who the problem concerns : All members
Forum link : http://onepiecegr.forum-pro.org/

Description of problem


Hello!As you can see in the title i would like to make a widget which can see which member on my forum made the most posts on the previous 24h and print his avatar and his name on the widget. I think it is simple enought but i lack programming skill for this XD

I'm bumping it for you as I think it's a great idea. 

For my forum though, I would probably have member of the week instead of day, so if anyone does come up with this script, please can they show us how to change it from day to week?

Thanks!
SophieDophs
SophieDophs
Forumember

Female Posts : 375
Reputation : 3
Language : English

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 24th 2015, 11:59 am

SophieDophs wrote:
Heartsealed wrote:

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Opera, Safari, Other
Who the problem concerns : All members
Forum link : http://onepiecegr.forum-pro.org/

Description of problem


Hello!As you can see in the title i would like to make a widget which can see which member on my forum made the most posts on the previous 24h and print his avatar and his name on the widget. I think it is simple enought but i lack programming skill for this XD

I'm bumping it for you as I think it's a great idea. 

For my forum though, I would probably have member of the week instead of day, so if anyone does come up with this script, please can they show us how to change it from day to week?

Thanks!

hi @SophieDophs and thank you, i've been kinda busy these days so i can't bump everyday XD.

As you can see the solution already exist, but it is not automatical, this means you have to change the Member of the month/week yourself.

For now it doesn't matter to me i just want the avatar to get displayed for phpBB2 and i am done.
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Member of the Day Widget Empty Re: Member of the Day Widget

Post by Scarlet D. December 26th 2015, 6:31 pm

bump, once again
Scarlet D.
Scarlet D.
Forumember

Male Posts : 130
Reputation : 2
Language : Greek,English
Location : Athens,Greece

http://onepiecegr.forum-pro.org/

Back to top Go down

Back to top

- Similar topics

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