• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • If you're using Gesior 2012 or MyAAC, please review this thread for information about a serious security vulnerability and a fix.

[MyAAC][Plugin] Landing page

MyAAC

Well-Known Member
Joined
May 4, 2017
Messages
98
Solutions
8
Reaction score
60

slaw

MyAAC Creator
Joined
Aug 27, 2007
Messages
3,442
Solutions
111
Reaction score
880
Location
Germany
GitHub
slawkens
Twitch
PL_Flamaster
FYI: Its shown when first time visiting page. Then its saving in PHP session that you visited the landing page, and on next visit it shows main AAC site.

Maybe I'll change in the future that it will be saved in cookies instead of session then it will be saved for ever i suppose.
 

Jennyx

New Member
Joined
Aug 27, 2017
Messages
12
Solutions
1
Reaction score
0
"The file you are trying to upload is not a .zip file. Please try again." :(

I see many ppl have this problem.
 

slaw

MyAAC Creator
Joined
Aug 27, 2007
Messages
3,442
Solutions
111
Reaction score
880
Location
Germany
GitHub
slawkens
Twitch
PL_Flamaster

henkas

Active Member
Joined
Jul 8, 2015
Messages
922
Solutions
5
Reaction score
49
Saves in php, exactly where? And you cant uninstall this plugin when you are in admin panel it says you dont have permission or something like this, which makes no sense.
 

Stanos

Veteran OT User
Joined
Jun 12, 2018
Messages
539
Reaction score
272
Location
Europe
@Lucifer @MxSoft
Untitled.png

To align it to center go to landing\basic.css and replace
Line:89
CSS:
body
{
   text-align: center;
   margin: 0;
   position: absolute;
   width: 1200px;
   height: 600px;
   background-color: #061222;
   color: #061222;
}
With
CSS:
body
{
   text-align: center;
   margin: 0;
   position: absolute;
   left: 250px;
   top: 160px;
   width: 1200px;
   height: 600px;
   background-color: #061222;
   color: #061222;
}
To adjust align how ever you want just play with width and height.
 

Stanos

Veteran OT User
Joined
Jun 12, 2018
Messages
539
Reaction score
272
Location
Europe
Forgot to mention: you have to remake background_artwork because you can see clear cut at the top so if you have the basic of photshop just brush it.
 

Webtimize

Pro Grammer
Joined
Oct 3, 2011
Messages
490
Solutions
10
Reaction score
181
Location
The Netherlands
Please fix that horrible background centering with this.
CSS:
html {
    background: url(images/bg.jpg) no-repeat center center fixed;
    background-size: cover; 
}
 

ajo2901

New Member
Joined
May 20, 2019
Messages
8
Reaction score
0
FYI: Its shown when first time visiting page. Then its saving in PHP session that you visited the landing page, and on next visit it shows main AAC site.

Maybe I'll change in the future that it will be saved in cookies instead of session then it will be saved for ever i suppose.


Hello can u do this please ?
 

jonasu

Active Member
Joined
Nov 3, 2009
Messages
136
Solutions
2
Reaction score
38
Location
Stockholm, Sweden
Hi slawkens!
I'm impressed with your AAC and it's been fun refreshing my skills while editing the homepage to fit my needs. Check it out if you'd like Reborn (https://reborn.jhockert.se)

Anyhow, have you had a chance to look at saving to cookies instead of session for this plugin yet?
Would it be as simple as changing below?
setSession('user_landed', true);
to
setCookie('user_landed', true);


EDIT:
plugins/landing-page.php
PHP:
<?php
if($_COOKIE('user_landed') == false) {
    header('Location: landing/');
    exit();
}
?>
landing/index.php
PHP:
setcookie("user_landed", true);
 
Last edited:
Top