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.

How can I add "Add to favorites" in template?

View previous topic View next topic Go down

Solved How can I add "Add to favorites" in template?

Post by Van-Helsing on October 18th 2014, 1:08 am

Hi all,
How can I add the "Add to favourites" function in viewtopic_body template? I have a custom template and I dont want it in plus menu. I want to place it in a different place in the template.


Last edited by Black-Shadow on October 21st 2014, 9:30 am; edited 2 times in total

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Van-Helsing on October 19th 2014, 1:10 am

Bump

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Van-Helsing on October 20th 2014, 9:44 am

Bump

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Ange Tuteur on October 20th 2014, 2:33 pm

Hello Black-Shadow,

Could you provide your viewtopic_body template, and where exactly you want the favourites to be ?

Thanks.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Van-Helsing on October 20th 2014, 6:09 pm

Hello Ange:),
I want to add the option "Add to favourites" in this menu http://prntscr.com/4y0n4b . Can I pm you the templates viewtopic_body?

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Ange Tuteur on October 20th 2014, 6:55 pm

Yes, you may. Wink

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Ange Tuteur on October 21st 2014, 3:44 am

Try adding this anywhere where you want in your template :
Code:
<a href="/search?add_favourite" id="anchorFav">Add to favourites</a>
<script type="text/javascript">document.getElementById('anchorFav').href = '/search?add_favourite=' + window.location.pathname.replace(/\/t(\d+).*/,'$1') + '&search_id=favouritesearch';</script>

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Van-Helsing on October 21st 2014, 9:29 am

Hello Ange,
Thanks its solved now.
~1~

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

Solved Re: How can I add "Add to favorites" in template?

Post by Ange Tuteur on October 21st 2014, 4:42 pm

You're welcome

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
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