quick question about forumotion variables in HTML pages
4 posters
Page 1 of 1
quick question about forumotion variables in HTML pages
Hi,
I am trying to create a custom shoutbox for a forum, and we are using an external server to host the PHP, and forumotion for the HTML itself. The PHP is already coded, and we are fairly certain it is working as intended. We have a slight problem with integration, however. We are trying to get the username of the poster, and send that via a hidden field in the HTML form. The { USERNAME } variable does not work in a board's description, so it literally inserts "{ USERNAME }" instead of the user's actual username. I've also tried using HTML pages, with no luck. My understanding is that variables do not work in HTML pages or in the the descriptions of forum boards, and I was wondering if there was an alternative way to get the username of the sender without requiring the user to type it in. Any help would be greatly appreciated!
Thanks in advance, -Darth Apple.
I am trying to create a custom shoutbox for a forum, and we are using an external server to host the PHP, and forumotion for the HTML itself. The PHP is already coded, and we are fairly certain it is working as intended. We have a slight problem with integration, however. We are trying to get the username of the poster, and send that via a hidden field in the HTML form. The { USERNAME } variable does not work in a board's description, so it literally inserts "{ USERNAME }" instead of the user's actual username. I've also tried using HTML pages, with no luck. My understanding is that variables do not work in HTML pages or in the the descriptions of forum boards, and I was wondering if there was an alternative way to get the username of the sender without requiring the user to type it in. Any help would be greatly appreciated!
Thanks in advance, -Darth Apple.
Last edited by Darth Apple on April 6th 2013, 5:05 pm; edited 1 time in total
Darth Apple- Forumember
- Posts : 122
Reputation : 12
Language : English
Location : Between the moon and mars
Re: quick question about forumotion variables in HTML pages
Yes, not possible to be used there.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: quick question about forumotion variables in HTML pages
Alright, thanks. Would it be possible to use a hidden <div> tag in the forum description to contain the username from the variable, then use javascript to send the data from the div element? Not sure if that's been done before or not. If it can't be done that way, we'll probably just have the user enter their name instead.
Darth Apple- Forumember
- Posts : 122
Reputation : 12
Language : English
Location : Between the moon and mars
Re: quick question about forumotion variables in HTML pages
I guess the easiest way would be to get the user add the name.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: quick question about forumotion variables in HTML pages
I've already tried using that tutorial. It seems to work for getting the variable into the HTML page, but I cannot send the variable in an input form since you have to use a <span> tag to retrieve the value. (<span> tags cannot exist inside of text input forms in HTML)
I'm thinking I'll probably just try using javascript at this point. I've been looking around for some solutions, and haven't really come across any other ideas. If that doesn't work, I'll just have the user add their name.
Thanks for the help guys. I guess this can be considered solved now.
I'm thinking I'll probably just try using javascript at this point. I've been looking around for some solutions, and haven't really come across any other ideas. If that doesn't work, I'll just have the user add their name.
Thanks for the help guys. I guess this can be considered solved now.
Darth Apple- Forumember
- Posts : 122
Reputation : 12
Language : English
Location : Between the moon and mars
Re: quick question about forumotion variables in HTML pages
Topic Solved & Locked |
Jophy- ForumGuru
- Posts : 17922
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» Question about HTML pages
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» HTML Pages and HTML Templates: {VALUES}
» HTML pages help
» HTML pages problem
» How to Embed a Google Docs Form into an HTML page using HTML Pages Management
» HTML Pages and HTML Templates: {VALUES}
» HTML pages help
» HTML pages problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum