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.

Using { } Codes In HTML??

3 posters

Go down

Solved Using { } Codes In HTML??

Post by crum98 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
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 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
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 October 19th 2012, 2:10 am

In the add HTML pages area, is for a new page that im making
crum98
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 October 19th 2012, 2:28 am

How do you do that?? :3
crum98
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 October 19th 2012, 2:39 am

Ok ive done that. It still just shows up as {username }
crum98
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 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
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 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
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 October 19th 2012, 3:41 am

Ok i got the username thing to work.. now for the link Razz *crosses fingers*
crum98
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 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
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 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!


Using { } Codes In HTML?? Slgray10

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

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Using { } Codes In HTML??

Post by LGforum 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
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: Using { } Codes In HTML??

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

It works!! Thank you all sooo much! Very Happy
crum98
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 October 19th 2012, 10:06 pm

Topic Solved & Locked


Using { } Codes In HTML?? Slgray10

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

Male Posts : 51463
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top


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