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.

quick question about forumotion variables in HTML pages

4 posters

Go down

Solved quick question about forumotion variables in HTML pages

Post by Darth Apple April 5th 2013, 9:32 pm

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! Smile

Thanks in advance, -Darth Apple.


Last edited by Darth Apple on April 6th 2013, 5:05 pm; edited 1 time in total
Darth Apple
Darth Apple
Forumember

Posts : 122
Reputation : 12
Language : English
Location : Between the moon and mars

Back to top Go down

Solved Re: quick question about forumotion variables in HTML pages

Post by Sanket April 6th 2013, 4:59 am

Yes, not possible to be used there.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: quick question about forumotion variables in HTML pages

Post by Darth Apple April 6th 2013, 5:09 am

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
Darth Apple
Forumember

Posts : 122
Reputation : 12
Language : English
Location : Between the moon and mars

Back to top Go down

Solved Re: quick question about forumotion variables in HTML pages

Post by Sanket April 6th 2013, 5:13 am

I guess the easiest way would be to get the user add the name.
Sanket
Sanket
ForumGuru

Male Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai

Back to top Go down

Solved Re: quick question about forumotion variables in HTML pages

Post by Neymar1 April 6th 2013, 12:32 pm

Neymar1
Neymar1
Forumember

Male Posts : 406
Reputation : 28
Language : HTML, CSS, and a bit of JavaScript
Location : Scotland

http://www.simplyfifa.com

Back to top Go down

Solved Re: quick question about forumotion variables in HTML pages

Post by Darth Apple April 6th 2013, 5:04 pm

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.
Darth Apple
Darth Apple
Forumember

Posts : 122
Reputation : 12
Language : English
Location : Between the moon and mars

Back to top Go down

Solved Re: quick question about forumotion variables in HTML pages

Post by Jophy April 6th 2013, 5:08 pm

Topic Solved & Locked
Jophy
Jophy
ForumGuru

Male Posts : 17924
Reputation : 836
Language : English
Location : Somewhere

Back to top Go down

Back to top

- Similar topics

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