The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

HTML Pages and HTML Templates: {VALUES}

5 posters

Go down

HTML Pages and HTML Templates: {VALUES} Empty HTML Pages and HTML Templates: {VALUES}

Post by The Crocodile April 13th 2018, 10:46 pm

Hello supports,

1. Am i able to use the {VALUES} for new features i would implement myself lets say in new HTML pages, or tweak the existing templates ? I don't know if these are php related or what. Please enlighten me what the stuff inside curly braces usually does in templates.

2. Is it possible to work with CSS Frameworks within the templates like Bootstrap 4 ?
Id like to have the forum template more responsive to the screen sizes.
Could i work with CSS grid?

3. Is there any forumotion API i can consume, or is there anything out there developers can use to build great forumotion forums?

Please bring good news Very Happy
Appreciated.
The Crocodile
The Crocodile
Forumember

Male Posts : 73
Reputation : 0
Language : Bosnian

View user profile http://lsacademy.forumotion.com

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by The Crocodile April 15th 2018, 11:23 am

Bump

Sent from Topic'it App
The Crocodile
The Crocodile
Forumember

Male Posts : 73
Reputation : 0
Language : Bosnian

View user profile http://lsacademy.forumotion.com

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by pedxz April 21st 2018, 2:21 pm

Hey,

  • 1. You can use this
    Code:
    <script src="http://sd-1.archive-host.com/membres/up/137670929941788204/var_fa.js"></script>
    and change
    Code:
    {USERNAME}
    to
    Code:
    <span class="USERNAME"></span>
    .
  • 2. Yap you can use bootstrap, materialize or other Frameworks, you only need to understand each template (tpl) variable.
  • 3. what you mean?


best regards,
pedxz
pedxz
Forumember

Posts : 698
Reputation : 137
Language : 🇵🇹

View user profile https://www.forumotion.com/create-forum/modernbb

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by Wecoc April 21st 2018, 7:15 pm

1. I don't think he means the message variables like
Code:
{USERNAME}
, he may be referring to the template variables, for example
Code:
{postrow.U_POST_ID}
.

They are template-based and there's not much to do. They are based on the template context, and even the global ones like
Code:
{CURRENT_TIME}
don't work directly in a custom HTML page, you can try it yourself. I'm not sure but they are probably PHP related indeed, the thing is they only work in the templates.

In some cases you could store the template value into the value property of an input of type 'hidden', and get it later using Javascript. These type of inputs are already used in some templates for example when you send a message to store the topic ID or so, and this way you can refer to it later.

2. Just to make sure you are aware of it, I'll remember you can make responsive changes on CSS based on screen size and type using @media

Code:
@media (max-width: 740px) {
  .EV_Item{
    height: auto;
  }
}

Usually that's enough so you don't have to make huge template changes based on that...

3. Not sure what you mean by forumotion API.
Wecoc
Wecoc
Forumember

Male Posts : 144
Reputation : 110
Language : Catalan, Spanish, English

View user profile

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by The Crocodile April 21st 2018, 10:57 pm

2. Are there any guidelines for those {VARIABLE}s. If i could understand what each of them does i could do great stuff in the existing templates (don't have to be a new HTML page).

3. I mean a backend API (PHP backend i guess) i can make (AJAX) HTTP requests to, to fetch data, make HTTP POST requests to make a new post, group, register a user etc. and much more.
The Crocodile
The Crocodile
Forumember

Male Posts : 73
Reputation : 0
Language : Bosnian

View user profile http://lsacademy.forumotion.com

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by Draxion April 21st 2018, 11:58 pm

The answer to 3 is yes you can use Ajax to get and post data. I use it on my own site.


HTML Pages and HTML Templates: {VALUES} Draxio14
NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as HTML Pages and HTML Templates: {VALUES} Solved11 when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself
Draxion
Draxion
Support Moderator
Support Moderator

Male Posts : 2513
Reputation : 321
Language : English
Location : USA

View user profile https://www.talesoftellene.com/

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by The Crocodile April 22nd 2018, 12:04 am

I didnt ask if i can use ajax, but if theres an Backend API from forumotion i can consume. Ajax is one way to do it. I could use FetchAPI in javascript too.
The Crocodile
The Crocodile
Forumember

Male Posts : 73
Reputation : 0
Language : Bosnian

View user profile http://lsacademy.forumotion.com

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by Draxion April 23rd 2018, 6:27 am

Oh, sorry, I misread your question. Is there is a backend API? I'm not entirely sure.


HTML Pages and HTML Templates: {VALUES} Draxio14
NEVER provide your founder's account or email
Please provide forum's URL when dealing with design and appearance issues
Don't forget to mark the topic as HTML Pages and HTML Templates: {VALUES} Solved11 when the issue is resolved. This helps the staff greatly.
PM Support is prohibited!
TOS | General Rules | FAQ | Tricks & Tips | Latest Updates | Introduce Yourself
Draxion
Draxion
Support Moderator
Support Moderator

Male Posts : 2513
Reputation : 321
Language : English
Location : USA

View user profile https://www.talesoftellene.com/

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by The Crocodile April 23rd 2018, 9:41 pm

Wecoc wrote:you can make responsive changes on CSS based on screen size and type using @media

Code:
@media (max-width: 740px) {
  .EV_Item{
    height: auto;
  }
}

Usually that's enough so you don't have to make huge template changes based on that...

Take the current topic section as an example. Many objects use floats etc. for layout. All of that would be rewritten using a grid system.
The Crocodile
The Crocodile
Forumember

Male Posts : 73
Reputation : 0
Language : Bosnian

View user profile http://lsacademy.forumotion.com

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by Walt April 24th 2018, 12:30 am

Hello,

The Crocodile wrote:2. Are there any guidelines for those {VARIABLE}s. If i could understand what each of them does i could do great stuff in the existing templates (don't have to be a new HTML page).

There is a French guidelines here : https://github.com/Etana/template#templates-de-forumactif
I don't think there is something like that in English, unfortunately.

The Crocodile wrote:I didnt ask if i can use ajax, but if theres an Backend API from forumotion i can consume. Ajax is one way to do it. I could use FetchAPI in javascript too.

No, there is no API.

Regards,
Walt
Walt
Walt
Forumember

Male Posts : 111
Reputation : 35
Language : French, English

View user profile http://forum.forumactif.com

Back to top Go down

HTML Pages and HTML Templates: {VALUES} Empty Re: HTML Pages and HTML Templates: {VALUES}

Post by The Crocodile April 24th 2018, 1:03 am

Exactly what i needed thank you very much. Ill google translate that. Should be simple enough.
The Crocodile
The Crocodile
Forumember

Male Posts : 73
Reputation : 0
Language : Bosnian

View user profile http://lsacademy.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum