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.

Pinned Topic Widget

View previous topic View next topic Go down

Solved Pinned Topic Widget

Post by Metalgod542 on September 14th 2014, 4:19 pm

Hello Forumotions Team. I am the owner ofhttp://www.eherouniverisity.com/

I am wanting to get a widget similar to the "Latest Topic" widget only with customizable content. I make announcements on a regular basis and due to other people making other posts these announcements do not stay on the latest topics widget for very long. I am wanting a widget that I can "pin" topics on to. I am aware there is a pinning system in each individual section but, even though it is sad to say, my members do not use common sense and check the announcements sections often and only see my announcements for the brief time period they remain on the latest topics widget.

So the big question: Is this possible, and if so, what is the code for this widget?

Metalgod542
Forumember

Male Posts : 29
Reputation : 1
Language : English

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Ange Tuteur on September 14th 2014, 4:26 pm


Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Metalgod542 on September 14th 2014, 4:35 pm

Thank you for your prompt response. I completed all of these steps however there is no topics on the widget.

Metalgod542
Forumember

Male Posts : 29
Reputation : 1
Language : English

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Ange Tuteur on September 14th 2014, 4:43 pm

Could you provide a link to your forum ?

Thanks Smile

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Metalgod542 on September 14th 2014, 4:45 pm

Huh that is odd. I did in my OP but it did not "link" here it is.

http://www.eherouniverisity.com/

Metalgod542
Forumember

Male Posts : 29
Reputation : 1
Language : English

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Ange Tuteur on September 14th 2014, 4:54 pm

Add this to a widget :
Code:
<script type="text/javascript">
forum_id = 15;
number_of_topics = 6;
</script>
<div id="newsareal1" class="newsareal"> </div>
<script type="text/javascript">jQuery(function(){
jQuery("#newsareal1").load("/f"+forum_id+"- div.topictitle:lt("+number_of_topics+")");
});</script>

forum_id = 15; is the id of the forum we want to load.
number_of_topics = 6; is the amount of topics loaded.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Metalgod542 on September 14th 2014, 4:59 pm

Alright. Cool its now loading the topics. This is solved but i do have 1 more question about this and it is just a detail thing so if its not possible i can deal with it but is there a way to make it look like the "Latest Topic" widget?

Here is an image. As you can see there is a clear difference. http://i.imgur.com/iFGhpAt.png

Metalgod542
Forumember

Male Posts : 29
Reputation : 1
Language : English

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Ange Tuteur on September 14th 2014, 5:03 pm

You can modify the CSS of the links to make it look similar, but as far as the author and date/time I'm not sure.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Metalgod542 on September 14th 2014, 5:06 pm

Alright thank you for your help. This Topic is Solved.

Metalgod542
Forumember

Male Posts : 29
Reputation : 1
Language : English

Back to top Go down

Solved Re: Pinned Topic Widget

Post by Ange Tuteur on September 14th 2014, 5:08 pm

You're welcome Smile

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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