Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Simple HTML in a post; Not working.
Topic Started: May 14 2009, 05:46 AM (331 Views)
Bombe
Tha Godfather
 *   *  
Quote:
 
<a name="Top"></a>

text

<a href="#Top">Naar boven!</a>


Hello :)

I have put this correct code in a post in a topic, but it doesn't work. It keeps referring me to http://127.0.0.1/#Top and I'm wondering what I should put instead of that code.

Are posts in frames? Anyway, thanks for replying if you do ;)
Offline Profile Quote Post Goto Top
 
~kato~
Member Avatar
A.K.A Mankato
 *   *   *   *   *   *   *  
You have to enable dohtml for your user group and for the forums you want to use dohtml in.
ACP>USERS AND GROUPS>MANAGE USER GROUPS
Click edit on your group and find Can use [doHTML] tag?Tick the box yes scroll down and
click complete edit.
Next ACP>FORUM CONTROL>MANAGE FORUMS
Click settings and find Allow use of the [doHTML] tag?Tick the box yes,scroll down and click
edit this forum. Do that to all forums you want to use dohtml.
Offline Profile Quote Post Goto Top
 
CrimsonRiven
Member
 *  
I followed the advice that was given in this topic and it hasnt worked for me

can anyone tell me why?
Offline Profile Quote Post Goto Top
 
Jason
Member Avatar
Member
 *   *   *   *   *  
Are you putting the code inside of the doHTML tags? It needs to be inbetween these two tags:-
Code:
 
[doHTML]<a name="Top"></a>

text

<a href="#Top">Naar boven!</a>[/doHTML]
Offline Profile Quote Post Goto Top
 
Tony
Member Avatar
If found, please report missing.

IPS implemented the base tag into the software. You will be required to use an exact URI within posts.
Offline Profile Quote Post Goto Top
 
Bombe
Tha Godfather
 *   *  
Dohtml is turned on, that's not the problem ;)

Problem lies indeed in the implented base tag...

<base href="http://127.0.0.1/" />

This thingy. Now I can put an extra one in the JS box, this will successfully overwrite the implented base tag. The problem I fase now, is that I have to change the new base tag into the topic/post ID.
This way I can only add these codes onto 1 topic/page/post/whatever and I can't use it in other pages or posts...

So basically I need a dynamic code for my board. And that's where my thinking stops ;)

Board: http://z3.invisionfree.com/Meldpunt_stats/index.php
Not that it helps a bit, but someone might ask so here it is...
Offline Profile Quote Post Goto Top
 
Tony
Member Avatar
If found, please report missing.

At the bottom of your style sheet place the following:
Quote:
 
</style>
<!--
At the top of Javascript:, place the following:
Quote:
 
-->
Your links will now work correctly. :)

CrimsonRiven, if you are not a part of the same board please don't hijack someone else's topic. You will not receive support until you start your own.
Offline Profile Quote Post Goto Top
 
Bombe
Tha Godfather
 *   *  
Thanks Tony ;)

About 20 minutes ago I asked a friend what to do and he gave me this code that works too:

Code:
 
<script type="text/javascript">
document.write('<base href="'+window.location.href+'" />');
</script>


What you adviced me may influence scripts in between?

Anyways, thanks to everybody :D
Offline Profile Quote Post Goto Top
 
Tony
Member Avatar
If found, please report missing.

The code there does the same as typing the tag into the Javascripts box. Or there abouts, I'm not JavaScript savy. :P

The snippets I gave comment the base tag out.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards Support & Galleries · Next Topic »
Add Reply