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.

FM Template Bug

View previous topic View next topic Go down

In progress FM Template Bug

Post by MarcoNecroX on October 17th 2014, 10:54 pm

While editing templates there seems to be a bug that upon adding new scripts, the whole template gets resetted to default.
This is ridiculous. I've lost several hours of HTML / Javascript / jQuery coding for no reason. TWICE.

There is also this pseudo-security "feature" that after certain time (2 hours?) you somehow get logged off from the AP and
whatever thing you do, you are sent to the main AP menu (losing all changes). Which is also quite annoying as you get no
warning at all about it.

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by Ange Tuteur on October 17th 2014, 11:01 pm

Hello MarcoNecroX,

When you enter the Admin Panel an SID (Session ID) is generated. Once this SID expires you'll need reauthentication. This will usually return you to the front of the PA, if you're idle long enough.(30m to 60m ?)

If you're making extensive edits in the template I would recommend using a program to edit in, like Notepad++. That way you can have your markup backed up.

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by _Twisted_Mods_ on October 17th 2014, 11:21 pm

i would recommend always keeping a back up of and scripts, css, template edits or anything else you edit.. you never know whats gonna happen ..i lost some of my css during the migration but luckly i had a backup copy and just copy and pasted it and boom back to normal

anytime im editing anything or adding code i keep notepad open and copy and paste constantly to make sure i don't loose anything

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by MarcoNecroX on October 17th 2014, 11:32 pm

The problem is that programming is a lot of times about trial & error, sometimes you only need to do small stuff like give an ID to a tag and whatnot, having to copy-paste everything on all edits is a big timesink that could be solved if things here worked properly instead.


As for the AP SID, this could be solved by simply adding a popup after an expired session. It's just kind of rough that you're redirected to the main panel with no warning whatsoever.

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by Ramdaman on October 17th 2014, 11:35 pm

@MarcoNecroX wrote:As for the AP SID, this could be solved by simply adding a popup after an expired session. It's just kind of rough that you're redirected to the main panel with no warning whatsoever.

That could be a suggestion here.

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

In progress Re: FM Template Bug

Post by MarcoNecroX on October 17th 2014, 11:48 pm

Well I would, but it looks like a waste of time. There are even threads that are 7 years old and still haven't been adressed. Which includes a lot of security holes that have not been fixed yet as well as some crucial things that need to be fixed (such as the 100 thread page limit). It's so frustrating.


Also if I might ask, where can I see the code generation of scripts that adress {curly brackets} ? Trying to make a modified navbar and I keep getting undesired tags such as <li></li>.

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by _Twisted_Mods_ on October 18th 2014, 12:29 am

what are you trying to do to the navbar it might be easier to show you an example

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by MarcoNecroX on October 18th 2014, 12:53 am

I want to increase the size of the <a> tags, for that I need to set them as a inline-block element, but for some reason this is adding two spaces at the end (in form of ' &nbps;') after a line break.

I have a workaround for this but I'd rather not use js for something as simple as this...

Code:
     <script>
           function delSpaces(){
                  var sQuery = document.querySelectorAll("#marconavb li");
                  for(var prop in sQuery){
                    sQuery[prop].innerHTML = sQuery[prop].innerHTML.replace(" &nbsp;", "");
                  }
                } 
     </script>
     <script type="text/javascript">
        $(function(){
                   $('a.mainmenu:contains("You have no new messages")').text('Inbox');
                $('a.mainmenu:contains("Home")').text('Forum');
                $('a.mainmenu:contains("Index")').text('Home');
                $('a.mainmenu:contains("new message")').css( "color" , "#FF0" );
                delSpaces();
                });
     </script>

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by _Twisted_Mods_ on October 18th 2014, 2:37 am

u can do this in css

acp>display>pictures&colors>colors>css tab

a.mainmenu[href*="/forum"]{
text-size: 30px;
}

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by MarcoNecroX on October 18th 2014, 2:39 am

Not sure if serious or..

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by Ramdaman on October 18th 2014, 2:40 am

thetwistedkilla wrote:u can do this in css

acp>display>pictures&colors>colors>css tab

a.mainmenu[href*="/forum"]{
text-size: 30px;
}

This increases the size of an option in the navigation bar. I don't see how this relates to the problem.

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

In progress Re: FM Template Bug

Post by _Twisted_Mods_ on October 18th 2014, 2:42 am

then im confused of what your trying to do

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by Ramdaman on October 18th 2014, 2:44 am

@MarcoNecroX

You want to make your links to become inline-block elements?

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

In progress Re: FM Template Bug

Post by MarcoNecroX on October 18th 2014, 2:47 am

The navigation bar links, yes, but without having 2 spaces after the end of every one of them (because they spawn in a new line)

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by _Twisted_Mods_ on October 18th 2014, 2:49 am

white-space: nowrap;

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by MarcoNecroX on October 18th 2014, 3:00 am

Doesn't work Smile

The problem should be possible to recreate with the following CSS:

Code:
<!-- Makes navbar cover 100% of the forum width -->
.linklist li{ display: table-cell; width:auto; }

<!-- Transforms links from span to div, so that size can be adjusted -->
.linklist a{ display:block; }

That should add 2 spaces to the end of every navbar link Smile


Last edited by MarcoNecroX on October 18th 2014, 3:02 am; edited 1 time in total (Reason for editing : fixed code)

MarcoNecroX
Forumember

Posts : 97
Reputation : 3
Language : English

http://www.medianxl.com

Back to top Go down

In progress Re: FM Template Bug

Post by Ramdaman on October 18th 2014, 3:01 am

Try putting this in your CSS Stylesheet:

Code:
#marconavb > li:nth-child(4) > a {
display: block;
font-size: #px;
white-space: nowrap;
}

Change the "#" in "font-size:" to your liking.
White-space: nowrap; by thetwistedkilla

---

I see your new post. If you want that in CSS, here it is.

Code:

/* Makes navbar cover 100% of the forum width */
.linklist li {
  display: table-cell;
  width:auto;
}

/* Transforms links from span to div, so that size can be adjusted */
.linklist a {
  display: block;
}

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

In progress Re: FM Template Bug

Post by _Twisted_Mods_ on October 18th 2014, 3:15 am

or u can just say screw the spaces and over lap them because u cant see them anyways and use

margin: -10;

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

In progress Re: FM Template Bug

Post by Ramdaman on October 18th 2014, 3:57 am

I think you have to add px after the number.

margin: -10px;

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

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