Recents Topics

Go down

In progress Recents Topics

Post by Viih_Derby on July 28th 2019, 6:35 pm


How to add member avatars in the recent topics widget?

My forum - http://brasilrealplayrpg.forumeiros.com/
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by skouliki on July 28th 2019, 10:19 pm

skouliki
skouliki
Manager
Manager

Female Posts : 6540
Reputation : 982
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 28th 2019, 10:25 pm

Get it, but the images do not load ... please help me.
I already recovered several images, I don't know what to do

see http://brasilrealplayrpg.forumeiros.com/forum
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by brandon_g on July 29th 2019, 12:07 am

Hello,

I do not see the recent topics widget when I view the forum? Do you have it set for members only. If so, may you set it to guests as well so we can check the issue?

-Brandon


Recents Topics Brando10
Remember to mark your topic Recents Topics Solved15 when a solution is found.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8433
Reputation : 769
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 12:10 am


The widget is in the portal
http://brasilrealplayrpg.forumeiros.com/
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by brandon_g on July 29th 2019, 12:19 am

Hmm that is very strange. Do you have any javascripts or anything that effect the portal?


Recents Topics Brando10
Remember to mark your topic Recents Topics Solved15 when a solution is found.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8433
Reputation : 769
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 12:23 am

Sad No

I don't know, the same problem is happening with online staff widget
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 1:21 am

Did you save the changes to the template and publish the modified template?


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 1:29 am

I get this widget in another forum (http://dillimore.forumeiros.com/) !!!
but my avatar doesn't work ...
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 1:50 am

@SLGray wrote:Did you save the changes to the template and publish the modified template?


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 1:58 am

yes
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 2:10 am

Were your templates modified before you added this?


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 2:12 am

yes
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 2:25 am

That could be the reason then.


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 2:18 pm

how to fix?


My Codes

Css Widget
Code:
/* Ultimos assuntos(Viih)*/
.mod-recent-row {
    background: #fff;
    border: 1px solid #2251BF;
    border-radius: 0 0 3px 3px;
    height: 280px;
    margin-top: -12px;
    overflow: scroll;
    overflow-x: hidden;
   
}

.recentTopics {
    margin: 15px 0;
}
.mod-recent-row + .mod-recent-row {
    border-color: rgba(0,0,0,0.1);
    border-style: solid;
    border-width: 1px 0 0;
    margin-top: 6px;
    padding-top: 3px
}

.mod-recent-title {
    font-size: 1.6rem
}

.mod-recent-info {
    clear: both;
    display: block
}

.mod-recent-author {
    margin-left: 9px
}
.h3{
text-align: center !important;
}
.h3, h3 {
    border-color: #3793ff;
    border-style: solid;
    border-width: 0 0 1px;
}
.recentTopics div.h3 {
    background-color: #2251BF;
    color: rgb(255, 255, 255);
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: none;
    text-align: center;
    font-family: Oswald, sans-serif;
    border-radius: 3px 3px 0px 0px;
    padding: 15px 18px;
    border-bottom: solid 3px #1f1f1f!important;
    border: 2px solid #2251BF;
}

JavaScript
Code:
$(function() {
    $('head').append('<style type="text/css">' + '.recentTopics .main-content {' + '  font-family: helvetica, arial, sans-serif !important;' + '  line-height: 15px;' + '  padding: 0;' + '}' + '.recentTopics ul {' + '  padding-left: 0 !important;' + '}' + '.mini_photo {' + '  margin-right: 5px;' + '}' + 'li.recentPost {' + '  min-height: 50px;' + '  padding: 1em 1em 0.5em 1em;' + '  list-style-type: none;' + '  border-bottom: 1px solid #f3f3f3;' + '}' + '.recentPost a[href^="/t"] {' + '  font-size: 13.8px;' + '  text-decoration: none;' + '  font-weight: normal;' + '}' + '.recentInline {' + '  min-width: 30%;' + '  font-size: 12px;' + '  float: right;' + '}' + '.small_links {' + '  display: table;' + '  margin-top: 10px;' + '}' + '.local {' + '  font-size: 0;' + '}' + '.local a:after {' + '  content: " → ";' + '}' + '.local a:last-child:after {' + '  content: "";' + '}' + '.small_links, .small_links a {' + '  color: #a4a4a4 !important;' + '  font-size: 12px !important;' + '  text-decoration: none !important;' + '}' + '.creator_post:before {' + '  content: "Tópico iniciado por ";' + '}' + '.creator_post:after {' + '  content: ", Em: ";' + '}' + '.recentTopics {' + '  margin: 15px 0;' + '}' + ' #right {' + ' position: relative;' + ' top: -354px;' + '}' + '</style>');
    var jModuleRecentPosts = $('.module:contains("Últimos assuntos")');
    jModuleRecentPosts.remove().prependTo('#wrapper').addClass('recentTopics').removeClass('module');
    $('.recentTopics').each(function() {
        $(this).html($(this).html().replace(/\»/g, '').replace(/\<a href="\/t(.*?)\-/g, '<li class="recentPost"><a href="/t$1-').replace(/\<\/a\><br\>/g, '</a><div class="recentInline">').replace(/\<a href="\/u([0-9])"\>(.*?)<\/a\>/g, '<a href="/u$1">$2</a><br>')).find('li').wrapAll('<ul></ul>');
        $('a[href^="/u"]', this).each(function() {
            var jLinkUser = $(this).attr('href');
            $(this).before('<a href="' + jLinkUser + '" class="user_photo lastpost-avatar">' + '    <img src="https://7img.net/users/2617/31/90/74/avatars/1-40.png" alt="no_photo" class="mini_photo" />' + '</a>');
            var jImg = $(this).prev().find('img')
              , jUser = sessionStorage.getItem(jLinkUser);
            if (jUser) {
                jImg.attr('src', jUser)
            } else {
                $.ajax({
                    url: jLinkUser + '?change_version=punbb',
                    type: 'GET',
                    success: function(data) {
                        var jImage = $('#profile-advanced-right .module:first img:first', data).attr('src');
                        jImg.attr('src', jImage);
                        sessionStorage.setItem(jLinkUser, jImage)
                    },
                    error: function(err) {
                        console.log('AJAX error in request (Last posts)')
                    }
                })
            }
        });
        $('a[href^="/t"]', this).each(function() {
            var jThis = $(this)
              , jLinkTpc = jThis.attr('href').split('#')[0];
            $.ajax({
                url: jLinkTpc + '?change_version=punbb',
                type: 'GET',
                success: function(recent) {
                    var jCreator = ''
                      , jLocal = $('.crumbs:first a.nav', recent).wrapAll('<div></div>').parent().html()
                      , jPaging = $('.paging', recent)[0];
                    jThis.parents('.recentPost').append('<div class="small_links">' + '    <span class="creator_post">Carregando...</span>' + '    <span class="local">' + jLocal + '</span>' + '</div>').find('a[href*="change_version"]').each(function() {
                        var jHref = $(this).attr('href').split('?')[0];
                        $(this).attr('href', jHref)
                    });
                    if (jPaging) {
                        jCreator = $('a:contains("1")', jPaging).attr('href');
                        jThis.parents('.recentPost').find('.creator_post').load(jCreator + ' .username:first', function() {
                            $(this).text($(this).text())
                        })
                    } else {
                        jCreator = $('.username:first', recent).text();
                        jThis.parents('.recentPost').find('.creator_post').text(jCreator)
                    }
                },
                error: function(err) {
                    console.log('AJAX error in request (Last posts)')
                }
            })
        })
    })
});
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 6:38 pm

Are you using this?  Did you do the edit to the template?


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 6:44 pm


yes, but I took why it didn't work.

I just want the problem of broken images to be solved
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by brandon_g on July 29th 2019, 6:49 pm

When I look at the Javascript in the tutorial and compare it with the Javascript you provided above, they are not the same. It is either a completely different code, or you heavily edited it. Perhaps one of your edits is what is breaking the code.

Try using the original Javascript in the tutorial and see if that works.


Recents Topics Brando10
Remember to mark your topic Recents Topics Solved15 when a solution is found.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8433
Reputation : 769
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 6:54 pm


The tutorial javascript didn't please me, so I got this Js from this forum ---> http://dillimore.forumeiros.com/portal


However in my widget the avatars are broken link
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 7:09 pm

Do you mean from a tutorial from that forum?


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 7:10 pm

Not,
I got the widget code from that forum
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 10:42 pm

Ok.  You need to ask the staff there about it.  There coiuld be something you are missing.  You should not take something from a forum without getting permission.


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 29th 2019, 10:47 pm

They provided me with the widget.
The problem is my forum that doesn't load images in widgets.
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SLGray on July 29th 2019, 11:04 pm

Are you sure that you got the correct/full coding?


Recents Topics 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 : 46087
Reputation : 3250
Language : English
Location : United States

https://help.forumotion.com/

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 30th 2019, 2:36 pm

Yes i don't know what it can be



This must be the reason for the bug.
Recents Topics Bug10
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by brandon_g on July 30th 2019, 3:52 pm

Have you made any changes to your templates prior to this? If so it's possible maybe an id or class was changed by accident.
'


Recents Topics Brando10
Remember to mark your topic Recents Topics Solved15 when a solution is found.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8433
Reputation : 769
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Recents Topics

Post by Viih_Derby on July 30th 2019, 3:55 pm

Yes
templates I changed;

mod_login
mod_recent_topics
mod_whoisonline
index_body
overall_footer_end
overall_header
profile_view_body
Viih_Derby
Viih_Derby
Forumember

Posts : 49
Reputation : 1
Language : Português

http://brasilrealplayrpg.forumeiros.com/

Back to top Go down

In progress Re: Recents Topics

Post by SeeK on August 9th 2019, 7:28 pm

I'm the owner of the forum: (dillimore.forumeiros.com) I have not provided nor authorized him to use the code.

I do not allow the copy of my forum !!
SeeK
SeeK
New Member

Posts : 1
Reputation : 1
Language : PT/BR

https://winxfamily.forumeiros.com

Back to top Go down

In progress Re: Recents Topics

Post by Occultist on August 9th 2019, 8:12 pm

Hi,

@SeeK, welcome to forumotion!

@Viih_Derby, remove all of the codes that you already added. After doing that, post the mod_recent_topics(Admin panel->Display->Templates->Portal) template, without any modifications that you did to add avatars here.
Copying a code from another forum doesn't mean that it will just work on your forum.
Occultist
Occultist
Forumember

Posts : 54
Reputation : 21
Language : English and couple others

https://idonthaveaforum.forumotion.com

Back to top Go down

In progress Re: Recents Topics

Post by brandon_g on August 9th 2019, 11:11 pm

@SeeK wrote:I'm the owner of the forum: (dillimore.forumeiros.com) I have not provided nor authorized him to use the code.

I do not allow the copy of my forum !!

Since the owner of the site that made the code does not want it used anywhere else, we can no longer provide support on your issue.

If you wish to use the code and fix the issues your having, you will have to take it up with the owner of the site you got it from privately, as they own the rights to the code and you have no legal right to use it without their permission.

Since the code doesn't belong to you, or us and you have no right to use it, we have no choice but to lock this topic, as we can not support the use of other people's codes without permission.

If you get permission and can prove it, please pm a staff member with a screenshot of the permission you got to use the code, as well as the link to this topic and we will unlock this and continue to help you with this.

Topic locked


Recents Topics Brando10
Remember to mark your topic Recents Topics Solved15 when a solution is found.
brandon_g
brandon_g
Manager
Manager

Male Posts : 8433
Reputation : 769
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

Back to top


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