We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Last I used EE was more than 10 years ago

How Do I?

Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

Hi All, My old profile didn’t work on the forum so I made a new one. I have a short question, since technology has changed quite a bit since I used the EE last, I wan’t to make sure that I will be able to do something like in

this example

with EE, is a way that in the backend I would be able to make a new lesson and automatically a new accordion level would be added and javascript updated with where I would use variables instead of numbers like in this code:

$('#btn_lesson-1').click(function(){
    $('#lesson-1').show();
    $('#lesson-2').hide();
    $('#lesson-3').hide();
});

$('#btn_lesson-2').click(function(){
    $('#lesson-2').show();
    $('#lesson-1').hide();
    $('#lesson-3').hide();
});

    
$('#btn_lesson-3').click(function(){
    $('#lesson-3').show();
    $('#lesson-1').hide();
    $('#lesson-2').hide();
    
});

Thanks.

       
vw000's avatar
vw000
482 posts
3 years ago
vw000's avatar vw000

Yes, you can do this with EE without issues, you can have both HTML and JavaScript templates that have dynamic tags or variables and get updated from the back end as well add new courses using channels. This could be done in several different ways.

       
Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

Thanks vw000, that’s what I remember I was able to do in the old version, but on a simpler design.

Last question, will the pro version be a lot more helpful for this project?

       
5BYFIVE Creative's avatar
5BYFIVE Creative
159 posts
3 years ago
5BYFIVE Creative's avatar 5BYFIVE Creative

Piotr, I’m far from a javascript expert, but I think some javascript could probably be written that would account for an unlimited number of accordion items, and wouldn’t need to be updated to account for additional content. Probably some accordion js plugins out there. But if you stick with what you have, it would be doable in EE.

       
Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

Thanks,, this accordion is pure bootstrap, javascript is related to the lessons and video on the right

I think I know how to do it now. All I have to do is try.

       
vw000's avatar
vw000
482 posts
3 years ago
vw000's avatar vw000

The Pro version does not really have anything particular that would help you here, except if you prefer users to edit directly on the front end, that might come handy.

But still, Pro is a way to support EE with an affordable yearly cost, and you receive support. Said that, you might consider it eventually. Personally, I think Pro is more targeted at running projects that look to have a commercial company behind them for support. It makes sense once your site is production ready.

Nothing on the latest EE is missing in terms of older versions, except modules support, for example if your old version relies on add-ons they might not be compatible anymore but internally everything you could do in older versions is available in the latest release as well but better.

Bootstrap, JavaScript, PHP, HTML, CSS, you can edit and integrate all types of code in templates and make them dynamic by using channels, variables and other parameters.

Your requirements are rather simple, and making courses or learning sites is a good fit for Expression Engine.

I would start first by creating the templates HTML files for your site, including all the JavaScript and accordions, and content. Just like how you like it to look in a regular site. Then start to take pieces part, and put the JS code in its own template or partial templates, and eventually integrate the channels to them to be able to generate them on the fly or dynamically once you start to create courses. A course would probably be its own new channel entry.

This is very doable and nothing very complicated for someone that knows a bit around EE. For newcomers, you have great documentation you can follow and play around in your test installation. Once you understand how EE works, it makes sense. If you already run an older EE site, it should keep working once upgraded, as long as you don’t rely on add-ons which are not supported in the latest release.

       
Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

Thanks, I am installing the latest version, going trough the instructions. DO I really have to change all the permissions?

system/ee/
system/ee/* (only top-level files and directories need modifying)
system/user/config/config.php
system/user/cache/
system/user/templates/
images/avatars/
images/captchas/
images/member_photos/
images/pm_attachments/
images/signature_attachments/
images/uploads/
themes/ee/
themes/ee/* (only top-level files and directories need modifying)
themes/user/

looks kind of strange to open all these folders with 777

       
vw000's avatar
vw000
482 posts
3 years ago
vw000's avatar vw000

No, absolutely not. In the docs it says “in a worst-case scenario” (which means your web server is probably not properly configured if you need 777 to write to folders)

Just set all permissions to the lowest possible, if you get an error, for example since EE needs to write templates or cache, you start to increase them slowly until you see it working, for example most servers will only require 751 or 755 for write, if your user has write access to the folders under your account you can just use the defaults. Are you using a Windows server? Because those instructions are for IIS web servers, not Apache under Linux.

Just let your server use the defaults.

Check this: https://docs.expressionengine.com/latest/troubleshooting/general.html#file-permissions

For a new installation just use the defaults, you can later increase them if you see an error. Usually, directories to which you need to write files require higher permissions. That would be the cache, or image/file upload directories, of templates (if you are going to edit templates from the control panel, if you don’t, they are not required)

Best security practices with all software programs, is to start with the lowest possible and if something does not work, increase them slowly until the permission that works. Not the other way around, you don’t want to set all to 777 as you might then forget to lower them, it would be a security risk. Unless this is a test installation and nobody has access, and you are just debugging server permissions. But even so, ideally your test installation should match the production one.

       
Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

I thought so, this looked so strange to, but it says so in the instructions.

For some stupid reason now it will not install using my database. I tried so many times…

The database user and password combination you submitted is invalid.

I checked 1000 times, all is correct. I need to contact support of the host. Thanks for all the good information!!!!

       
vw000's avatar
vw000
482 posts
3 years ago
vw000's avatar vw000

Did you set the web server on your own, or are you using a hosting provider?

If you are using a commercial hosting provider, the permissions are already set by the host and a proper hosting company will already allow read/write access to all files under your account, which means you don’t need to change them or mess around with file permissions.

Is your database a new one? You should use a new, a clean, empty database for a new EE installation.

       
Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

Yes, I just got it to work. In this host the username is created automatically with the same name as database, and I was persisten on creating a new user and this didn’t work. I am in the admin now. !!!!!

       
vw000's avatar
vw000
482 posts
3 years ago
vw000's avatar vw000

Are you using cPanel in your hosting provider? This is usually the behavior (same name for both).

If you create a user manually, you can assign it to a database as well, and it should work.

       
Piotr Bagniewski's avatar
Piotr Bagniewski
7 posts
3 years ago
Piotr Bagniewski's avatar Piotr Bagniewski

No cPanel. They use some strange panel, but I got it to work and now I am going trough the basic course to refresh my memory.

It’s been years since I worked with EE. I had made an applevacations clone website, there were all the hotels and destinations by country, region, room types, dining, everything, pagination for the destinations and hotel list, blog, etc. I was really proud of the site. It was however hacked and deleted at some point and I couldn’t find a copy on my hard drives anywhere.

There’s a copy of it on Archive org

web.archive(dot)org/web/20130620053212/http://patsvacations(dot)com/

I did all by myself with limited knowledge and just the EE manual that I printed and kept in a binder. There were no online tutorials at that time.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.