The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Using { } Codes In HTML??

View previous topic View next topic Go down

Solved Using { } Codes In HTML??

Post by crum98 on October 18th 2012, 5:13 pm

I would really like for there to be a { username } code in one of my HTML pages. Is there any possible way I could make it work? When I try, it just says { username } it doesnt say Crum98 or anything. It is a slightly necessary feature, but I CAN work around it.

Im using it to link to another website which all users have registered to as well. It goes to their profile.
I use Iframes to display it on a forum page.
So it would be something like
Code:
<iframe src="www.website.com/{ username }"></iframe>


Last edited by crum98 on October 19th 2012, 5:25 pm; edited 1 time in total

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 18th 2012, 10:39 pm

It still is not working. When I try it in the URL it says 'url not found' and when I type it in on the page it still says { username}
(I have to add the spaces for posting, if i dont it says Using php in posts is called being a smart [Language]... Stop it)

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 2:10 am

In the add HTML pages area, is for a new page that im making

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 2:28 am

How do you do that?? :3

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 2:39 am

Ok ive done that. It still just shows up as {username }

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 3:00 am

Yes I have been capitalizing all of it, and i have also tried the code you just sent me.

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 3:20 am

I am trying to rebuild this page:
http://repterrarium.4umer.com/h2-your-terrarium
to go to a different link like this:
http://repterrarium.myadopts.com/profile.php?user=Crum

Im testing it on this page:
http://repterrarium.4umer.com/h15-tests

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 3:41 am

Ok i got the username thing to work.. now for the link Razz *crosses fingers*

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 3:50 am

NUUUUU It doesnt work
When I put the URL into the Iframe it doesnt give the correct link. It still links to mysite.com/user=<span class="USERNAME"></span> and not mysite.com/user=me
Which makes it redirect to the incorrect page, it says 'this user does not exist'

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by SLGray on October 19th 2012, 3:54 am

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead!


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36705
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by LGforum on October 19th 2012, 2:43 pm

That's because you can't a put a SPAN element in a HREF attribute lol.

I've updated that tutorial (http://www.avacweb.com/t125-17-variable-in-html-pages-and-templates ) to include a method for putting the username in links and attributes.

You'll be able to achieve what your trying to after reading and updating your script.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by crum98 on October 19th 2012, 5:22 pm

It works!! Thank you all sooo much! Very Happy

crum98
New Member

Female Posts : 23
Reputation : 0
Language : English
Location : Minnesota

http://www.repterrarium.4umer.com

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by SLGray on October 19th 2012, 10:06 pm

Topic Solved & Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36705
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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