Latest topics
» IconSkouliki
by skouliki Sun 17 Sep 2017, 11:05

» Awards
by Mr_Grande Sun 17 Sep 2017, 08:52

» Modify Category Tabs lead to a desired position and auto scroll click
by djblah Fri 15 Sep 2017, 14:56

» Display a preview of the user profile on hover
by Eiki Thu 14 Sep 2017, 02:38

» [GAME] Count to 30 - Ange Edition
by SLGray Mon 11 Sep 2017, 14:23

» Rank CSS
by Mr_Grande Fri 08 Sep 2017, 09:24

» make the topic a color
by Ultimas Wed 06 Sep 2017, 19:44

» Chit Chat Thread
by Valoish Sun 03 Sep 2017, 23:20

» The like/thumbs up or down feature
by Dr.kran Sun 03 Sep 2017, 19:21

» My text boxes are glitched, can you help with this type of problem?
by Wolfuryo Sun 03 Sep 2017, 17:08

» User - Made Creations
by SLGray Sun 03 Sep 2017, 16:25

» FM Themes
by SLGray Sun 03 Sep 2017, 16:24

» i need to add css improvement
by Wolfuryo Sat 02 Sep 2017, 12:12

» How do I add hover examine feature?
by Dr.kran Wed 30 Aug 2017, 16:43

» [GAME] World Snake
by SLGray Wed 30 Aug 2017, 14:46

Recent Tutorials
Top posting users this month
Who is online?
In total there are 7 users online :: 1 Registered, 0 Hidden and 6 Guests

Eslam Love

[ View the whole list ]


Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Widget: Recent Topics of a Specific Sub-forum

View previous topic View next topic Go down

avatar
Anita

Title :
Gender : Female
Posts : 26
Points : 197
Reputation : 10
Location : [404 - Not Found]
Language : English, Spanish, Rubbish
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostAnita on Fri 05 May 2017, 20:18

Huzzah Hello, everybody!
Before anything else, I wish all of you a fantastic weekend! Monster

Let me share an issue I've had with a widget based on this tutorial from the Forumotion Support Forum: http://help.forumotion.com/t129060-widget-recent-topics-of-a-specific-sub-forum

While it used to work before the conversion to FAE, now it's become irresponsive.

I created a widget. In the widget source text area, I inserted this code:
Code:
<div id="newsareal1" class="newsareal"> </div>

Then I created a JS with the following code for PHPBB3:
Code:
jQuery(document).ready(function(){
jQuery("#newsareal1").load("/f1-welcome div.topic-title-container:lt(10)");
});

Last, I added the CSS suggested in the tutorial:
Code:
.newsareal div.topic-title-container {
display: block !important;
margin: 2px 1px 0;
padding: 2px 5px 5px 30px;
border: 1px solid #B1BFC0;
border-radius: 5px;
background: #F3F9F9 url('http://i44.servimg.com/u/f44/16/54/26/99/old-ve10.png') no-repeat 5px center;
}
.newsareal div.topic-title-container:hover {
background-color: #D8DEDE;
}
.newsareal div.topic-title-container a {
color: #708090 !important;
text-decoration: none !important;
text-shadow: #fff 1px 1px 0px
}


However, the widget's still blank.
I wonder if you could help me figure out what the problem is. I tried deactivating the other scripts. I also made sure the address of the forum was the right one. Yet, it hasn't worked.

flower Thanks in advance for your help! Very good


Party Happy weekend!

avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Mon 08 May 2017, 12:13

Hi @Anita,

In the script, try changing
Code:
div.topic-title-container:lt(10)
to
Code:
.forum-category:not(.announcement) .topictitle:lt(10)
. You will also need to replace
Code:
div.topic-title-container
with
Code:
.topictitle
in the CSS.

If you need any help let me know.
avatar
Anita

Title :
Gender : Female
Posts : 26
Points : 197
Reputation : 10
Location : [404 - Not Found]
Language : English, Spanish, Rubbish
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostAnita on Wed 10 May 2017, 09:39

Hi, @Ange Tuteur! Hello How are you today?

I made the changes in the JS and the CSS. Nothing changed, though.
I'll keep trying to figure out whether I did anything wrong despite following the steps. Wink

Have a beautiful day! Bye
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Wed 10 May 2017, 10:24

Hi again,

Replace the JavaScript with :
Code:
jQuery(document).ready(function(){
jQuery("#newsareal1").load("/f1-welcome .forum-category:not(.announcement) .topictitle:lt(10)");
});

and replace the CSS with :
Code:
.newsareal .topictitle {
display: block !important;
margin: 2px 1px 0;
padding: 2px 5px 5px 30px;
border: 1px solid #B1BFC0;
border-radius: 5px;
background: #F3F9F9 url('http://i44.servimg.com/u/f44/16/54/26/99/old-ve10.png') no-repeat 5px center;
}
.newsareal .topictitle:hover {
background-color: #D8DEDE;
}
.newsareal .topictitle {
color: #708090 !important;
text-decoration: none !important;
text-shadow: #fff 1px 1px 0px
}

The HTML should be a-okay. Wink If there are any issues, let me know.
avatar
Anita

Title :
Gender : Female
Posts : 26
Points : 197
Reputation : 10
Location : [404 - Not Found]
Language : English, Spanish, Rubbish
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostAnita on Wed 10 May 2017, 20:51

Good evening! Huzzah

I'm afraid it didn't work, either. How strange... Think
I deactivated or deleted some JS I had in the forum, just in case they interfered. However, this widget doesn't work yet. I also tried linking it with another forum, just in case. But there's no reaction.

Smile My apologies for any inconvenience caused.

Have a good night, sir! Salute


^^ Nughty night! Bye
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Thu 11 May 2017, 11:07

Hmm.. do you only have one topic in the forum that's being loaded, and is that topic also an announcement ? If so, try removing
Code:
:not(.announcement)
from the script I gave you.

That little snippet ignores topics that are announcements, so that might be the issue. Think
avatar
Anita

Title :
Gender : Female
Posts : 26
Points : 197
Reputation : 10
Location : [404 - Not Found]
Language : English, Spanish, Rubbish
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostAnita on Thu 11 May 2017, 11:42

Wow, I see! None of the topics were announcements. However, when I removed the piece of code that you said, it started working! cheers Very good Bravo ! Yes Good Cheer Huzzah

Thank you very much, @Ange Tuteur! Bow 3 cheers You rock!
Bye Hug Bow 3 As always, thanks indeed for your patience, generosity and genius! Hello May your help be rewarded a gazillion times!

Best,


Anita
avatar
Ange Tuteur
Administrator
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4684
Points : 9727
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile https://github.com/SethClydesdale https://twitter.com/sethc1995

PostAnge Tuteur on Sun 14 May 2017, 15:11

No problem. Smile

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

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