Does anyone know if it is possilbe to add something in the users profile so that they can configure what <!--INCLUDE -->'s Load and what dont.
I have a Top Panel i am working on, it has three sections,
i use includes to get the file content for the three sections.
I was wondering if it would be possilbe to add something in the UCP so that a user could control which includes he wanted the page to load (eg, login panel, welcome message and latest announcements) of a choice.
Any Ideas.
All help appreciated.
User Controllable <!--INCLUDE-->'s?
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
- jojobarjo32
- Registered User
- Posts: 164
- Joined: Wed Jun 22, 2005 7:38 pm
- Location: France
Re: User Controllable <!--INCLUDE-->'s?
Do a simple conditionnal test :
Code: Select all
<!-- IF xxx -->
<!-- INCLUDE blah1 -->
<!-- ELSEIF yyy -->
<!-- INCLUDE blah2 -->
<!-- ELSEIF zzz -->
<!-- INCLUDE blah3 -->
<!-- ENDIF -->
Re: User Controllable <!--INCLUDE-->'s?
Ok, i try it.
Re: User Controllable <!--INCLUDE-->'s?
I am confused how to get this to work,
what would i create in user profile?
3 new fields?
each one defining an include?
what would i create in user profile?
3 new fields?
each one defining an include?
Re: User Controllable <!--INCLUDE-->'s?
For example, if you wanted to include welcome message first create an option such as "Enable Welcome Message" for the user's profile with a Yes/No option. Then you take that variable and use it for your conditional statement.
I don't know if that would work, I have not looked at additional profile options or the template conditional system yet.
Code: Select all
<!-- IF EnableWelcome -->
<!-- INCLUDE WelcomeMessage -->
<!-- IF EnableLoginBox -->
<!-- INCLUDE LoginBox -->
Re: User Controllable <!--INCLUDE-->'s?
Code: Select all
<!-- IF ENABLE_WELCOMEMESSAGE --><!-- INCLUDE Wwlcomemessage.html --><!-- ENDIF -->
<!-- IF LOGINBOX --><!-- INCLUDE loginbox.html --><!--ENDIF -->