FM Template Bug
4 posters
Page 1 of 1
FM Template Bug
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.
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 : 102
Reputation : 3
Language : English
Re: FM Template Bug
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.
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.
Re: FM Template Bug
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
anytime im editing anything or adding code i keep notepad open and copy and paste constantly to make sure i don't loose anything
Re: FM Template Bug
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.
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 : 102
Reputation : 3
Language : English
Re: FM Template Bug
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.
Re: FM Template Bug
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>.
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 : 102
Reputation : 3
Language : English
Re: FM Template Bug
what are you trying to do to the navbar it might be easier to show you an example
Re: FM Template Bug
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...
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(" ", "");
}
}
</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 : 102
Reputation : 3
Language : English
Re: FM Template Bug
u can do this in css
acp>display>pictures&colors>colors>css tab
a.mainmenu[href*="/forum"]{
text-size: 30px;
}
acp>display>pictures&colors>colors>css tab
a.mainmenu[href*="/forum"]{
text-size: 30px;
}
Re: FM Template Bug
Not sure if serious or..
MarcoNecroX- Forumember
- Posts : 102
Reputation : 3
Language : English
Re: FM Template Bug
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.
Re: FM Template Bug
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 : 102
Reputation : 3
Language : English
Re: FM Template Bug
Doesn't work
The problem should be possible to recreate with the following CSS:
That should add 2 spaces to the end of every navbar link
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
Last edited by MarcoNecroX on October 18th 2014, 3:02 am; edited 1 time in total (Reason for editing : fixed code)
MarcoNecroX- Forumember
- Posts : 102
Reputation : 3
Language : English
Re: FM Template Bug
Try putting this in your CSS Stylesheet:
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:
#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;
}
Re: FM Template Bug
or u can just say screw the spaces and over lap them because u cant see them anyways and use
margin: -10;
margin: -10;
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum