FM Design
Would you like to react to this message? Create an account in a few clicks or log in to continue.

IMPORTANT

FM Design is in read-only mode, please click here for more information.

Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49

» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21

» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28

» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15

» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11

» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24

» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58

» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50

» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22

» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12

» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10

» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51

» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11

» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19

» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34

Recent Tutorials
Top posting users this month

Who is online?
In total there are 58 users online :: 0 Registered, 0 Hidden and 58 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 515 on Tue 14 Sep 2021, 15:24

show someting just in desktop version

View previous topic View next topic Go down

sohab
sohab

Gender : Unspecified
Posts : 140
Points : 3261
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.saudijobstoday.net/

Postsohab Sun 14 Aug 2016, 11:58

i want add some link in the footer
but i want show it just in desktop !!
Anonymous
Guest
Guest

PostGuest Sun 14 Aug 2016, 12:52

I never tried that one before, but common sense tells me you could add the link and then hide the element from within the mobile template (CSS) Wink
sohab
sohab

Gender : Unspecified
Posts : 140
Points : 3261
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.saudijobstoday.net/

Postsohab Sun 14 Aug 2016, 13:34

yes that what i want
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12252
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 14 Aug 2016, 17:28

Hi @sohab

You could use a bit of JavaScript for this. Go to Admin Panel > Modules > JavaScript codes management > new

Placement : In all the pages ( or just a specific page if you want )
Code:
$(function() {
  if (!_userdata.page_desktop) {
    $('#page-footer .footer-links.left').append(' | <a href="#top">NEW LINK</a>');
  }
});

Modify the anchor's attributes to whatever you like --->
Code:
<a href="#top">NEW LINK</a>
Doff
sohab
sohab

Gender : Unspecified
Posts : 140
Points : 3261
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.saudijobstoday.net/

Postsohab Sun 14 Aug 2016, 17:57

don't ork
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12252
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 14 Aug 2016, 18:02

Is the code still installed on your forum ? If so could you provide a link to the forum ?
sohab
sohab

Gender : Unspecified
Posts : 140
Points : 3261
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.saudijobstoday.net/

Postsohab Sun 14 Aug 2016, 18:04

Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12252
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 14 Aug 2016, 18:34

Remove this script from JavaScript codes management :
Code:
<script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create','UA-82313707-1','auto');ga('send','pageview');</script>

It's causing and error because <script> tags are not meant to be in a JavaScript file.
sohab
sohab

Gender : Unspecified
Posts : 140
Points : 3261
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.saudijobstoday.net/

Postsohab Sun 14 Aug 2016, 18:50

where place this code exist ?
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12252
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 14 Aug 2016, 18:51

You have it somewhere in JavaScript codes management. Edit each script one by one, and look for parts that are similar to it, such as --->
Code:

<script>(function(i,s,o,g,r,a,m)
sohab
sohab

Gender : Unspecified
Posts : 140
Points : 3261
Reputation : 2
Language : frensh
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : phpBB2
http://www.saudijobstoday.net/

Postsohab Sun 14 Aug 2016, 19:03

ah ok
but the url is apear in the footer with copyright link

me i want add a lot of links before copyright link
Ange Tuteur
Ange Tuteur
Administrator
Gender : Male
Posts : 4741
Points : 12252
Reputation : 2376
Location : Pennsylvania
Language : EN, JA, FR
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
https://sethclydesdale.github.io/ https://twitter.com/sethc1995

PostAnge Tuteur Sun 14 Aug 2016, 19:52

Replace the script with this one then :
Code:
$(function() {
  if (!_userdata.page_desktop) {
    $('#page-footer').prepend('<div><a href="#top">NEW LINK</a></div>');
  }
});
Sponsored content

PostSponsored content

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