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.

Favourite topics link

View previous topic View next topic Go down

Solved Favourite topics link

Post by Liv on June 21st 2016, 12:07 am

Is it possible to add 'view favourite topics' link on a home page, for example next to these links?


My forum is on phpBB3

Thank you


Last edited by Liv on June 27th 2016, 10:03 pm; edited 1 time in total

Liv
New Member

Posts : 19
Reputation : 2
Language : English

http://klubopsednutih.forumotion.co.uk

Back to top Go down

Solved Re: Favourite topics link

Post by Liv on June 25th 2016, 10:47 pm

Help with this please? Smile

Liv
New Member

Posts : 19
Reputation : 2
Language : English

http://klubopsednutih.forumotion.co.uk

Back to top Go down

Solved Re: Favourite topics link

Post by Ace 1 on June 26th 2016, 6:55 pm

Yes but the link will take you to the favorite topics tab in your profile. Is this okay?

Ace 1
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Favourite topics link

Post by Liv on June 26th 2016, 9:09 pm

Yes, thank you! @Ace 1

Liv
New Member

Posts : 19
Reputation : 2
Language : English

http://klubopsednutih.forumotion.co.uk

Back to top Go down

Solved Re: Favourite topics link

Post by Ace 1 on June 26th 2016, 11:12 pm

Hey @Liv

Administration Panel >> Modules >> HTML & Javascript >> Javascript codes management >> Create new javascript

Title: Favorite Topics
Placement: In the home page

Code:
$(function() {
   var $newposts = $('a[href="/search?search_id=newposts"]');
   var $favorites = '<li><a href="/search?search_id=favouritesearch">View favorite topics</a></li>';
   $newposts.parents("ul.linklist").append($favorites);
});

Save it. And make sure to go to Display >> Colors >> CSS Stylesheet and add this code:

Code:
ul.linklist li:last-child:before { content: " " }

Hope this helps Super

Ace 1
Forumember

Male Posts : 693
Reputation : 38
Language : my css ready java yo scripts boi
Location : Druid Hill Park smoking indo

http://genocideclan.forumotion.com

Back to top Go down

Solved Re: Favourite topics link

Post by Liv on June 27th 2016, 1:38 pm

Hi Ace,

thanks for that, I think I've done it right but nothing happened, no link on the homepage Sad




Liv
New Member

Posts : 19
Reputation : 2
Language : English

http://klubopsednutih.forumotion.co.uk

Back to top Go down

Solved Re: Favourite topics link

Post by SLGray on June 27th 2016, 9:30 pm

Is JavaScript Management activated?


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


SLGray
Administrator
Administrator

Male Posts : 35672
Reputation : 2375
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Solved Re: Favourite topics link

Post by Liv on June 27th 2016, 10:02 pm

No Embarassed activated now and it works. Thank you both Hello

Liv
New Member

Posts : 19
Reputation : 2
Language : English

http://klubopsednutih.forumotion.co.uk

Back to top Go down

Solved Re: Favourite topics link

Post by Nemo on June 28th 2016, 12:13 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules

Nemo
Support Moderator
Support Moderator

Male Posts : 994
Reputation : 101
Language : Greek, English, French

http://www.helpgr.forumgreek.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