Variable names
+2
tikky
skouliki
6 posters
Page 1 of 1
Variable names
Hellouz,
Let's say I need variable names and values for:
1. User avatar
2. Username
3. Latest post (his)
4. Latest topic (his)
5. Registration date
6. Data for (birthday, gender, hobbies)
Now, this one is most important. How to get value of newly added field from profile? It's a text value.
All of these variables must be accessed from jQery script on all pages. If not possible on all, only front one then.
Thanks in advance. <3
Let's say I need variable names and values for:
1. User avatar
2. Username
3. Latest post (his)
4. Latest topic (his)
5. Registration date
6. Data for (birthday, gender, hobbies)
Now, this one is most important. How to get value of newly added field from profile? It's a text value.
All of these variables must be accessed from jQery script on all pages. If not possible on all, only front one then.
Thanks in advance. <3
Guest- Guest
Re: Variable names
Okay, didn't read this so far.
What about other variables? Such as user avatar? Or, special field in profile settings of user? How can I access that value? Given list miss many variables I asked for. But still, it's a good list
What about other variables? Such as user avatar? Or, special field in profile settings of user? How can I access that value? Given list miss many variables I asked for. But still, it's a good list
Guest- Guest
Re: Variable names
So let's say I want to use them on AwesomeBB. How can I access on Home page to variables for avatar, username, age, last topic, last post and access new field I made in CP? The last one is most important for me.
Guest- Guest
Re: Variable names
Hello @System32,
In the portuguese support forum (Forumeiros) we have solved question about it: https://translate.google.com/translate?sl=pt&tl=en&u=https%3A%2F%2Fajuda.forumeiros.com%2Ft117089-criacao-de-novas-variaveis%23828387&result=Obter+Tradu%C3%A7%C3%A3o (the better) and https://ajuda-forumeiros-com.translate.goog/t113598-criacao-de-variaveis-customizadas?_x_tr_sl=pt&_x_tr_tl=en&_x_tr_hl=pt-PT#803375
In the portuguese support forum (Forumeiros) we have solved question about it: https://translate.google.com/translate?sl=pt&tl=en&u=https%3A%2F%2Fajuda.forumeiros.com%2Ft117089-criacao-de-novas-variaveis%23828387&result=Obter+Tradu%C3%A7%C3%A3o (the better) and https://ajuda-forumeiros-com.translate.goog/t113598-criacao-de-variaveis-customizadas?_x_tr_sl=pt&_x_tr_tl=en&_x_tr_hl=pt-PT#803375
skouliki, TonnyKamper and Razor12345 like this post
Re: Variable names
Doing this is possible using a script and Ajax to obtain the data from the specific domain, like for example their profile and the specific profile field.
Re: Variable names
Do you have some example of it?Draxion wrote:Doing this is possible using a script and Ajax to obtain the data from the specific domain, like for example their profile and the specific profile field.
Guest- Guest
Re: Variable names
Hello,
Have you tried looking through the forum templates to see if the variable names that you need can be found there? Since those contain the html code that is being rendered by the browser, the variables used should be in the templates so the browser knows what to request from the server.
-Brandon
Have you tried looking through the forum templates to see if the variable names that you need can be found there? Since those contain the html code that is being rendered by the browser, the variables used should be in the templates so the browser knows what to request from the server.
-Brandon
Remember to mark your topic when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?
Team Leader
Review Section Rules | Request A Review | Sticker Points
Re: Variable names
Yes, but you cant take the variable name from one template and just use it in another. That's why I ask is there a way to achieve that.brandon_g wrote:Hello,
Have you tried looking through the forum templates to see if the variable names that you need can be found there? Since those contain the html code that is being rendered by the browser, the variables used should be in the templates so the browser knows what to request from the server.
-Brandon
Guest- Guest
Re: Variable names
pedxz wrote:Hello @System32,
In the portuguese support forum (Forumeiros) we have solved question about it: https://translate.google.com/translate?sl=pt&tl=en&u=https%3A%2F%2Fajuda.forumeiros.com%2Ft117089-criacao-de-novas-variaveis%23828387&result=Obter+Tradu%C3%A7%C3%A3o (the better) and https://ajuda-forumeiros-com.translate.goog/t113598-criacao-de-variaveis-customizadas?_x_tr_sl=pt&_x_tr_tl=en&_x_tr_hl=pt-PT#803375
I'm extremely interested in this problem as well. I've tried it myself but I can't make it work as it seems, maybe it's about forum versions? Do you think it should also work like this in ModernBB as well or does it need any modification?
The reason I'm looking for this solution is so that I can separate and use specific CSS designing for some specific profile fields than rest.
Re: Variable names
Works on any version the code is universalDo you think it should also work like this in ModernBB as well or does it need any modification?
Re: Variable names
pedxz wrote:Works on any version the code is universalDo you think it should also work like this in ModernBB as well or does it need any modification?
Ah okay, I finally managed to work the code in a different forum, I must be doing something wrong in my main forum. I'll tweak around and figure it out.
But this code is taking the value from the account that is logged in. I can use it to do things in main page or navbar or widgets etc. Is there a way to make it so that it takes the value from whoever have sent the post so that I can use this variable in the postprofile section? Currently when I place the variable in the postprofile section, under the avatar, it gives the same value to each post, taking it from the logged in user.
Re: Variable names
Hi @zachwinch Please make your own topic about this as this is not your topic / post.
Re: Variable names
Ape wrote:Hi @zachwinch Please make your own topic about this as this is not your topic / post.
Ah, I'm sorry, at first I thought topic was exactly the same thing I'm looking for and thought would be wrong to open the same thing but now I'm not exactly sure anyway. I'll move it to a separate topic. Thanks for the clarification.
Ape likes this post
Similar topics
» sitename_title variable
» What variable is this?
» avatar variable
» User Variable
» Category Variable?
» What variable is this?
» avatar variable
» User Variable
» Category Variable?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum