The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help with Anchor in Vb 4.1.X
I want to put this anchor system http://www.ps3trophies.com/forums/tr...-trophies.html on my forum: www.play4trophies.com
I used this BBCode: https://www.vbulletin.com/forum/show...s-using-vbcode Apparently not work on vB 4.1.x as it is vB 3.8. Then I read all this topic: https://www.vbulletin.com/forum/show...anchor-BB-Code But I found no other solution than that used by rossco_2005 But it only works with the first click, and does not return to work with any other. But it can work, I leave the link above ps3trophies clearly see that it works to perfection. I know that I make this system work on my site, thanks. W.Montilla. ------------------------------------------------------------------- When I call to replace HTML javaScript: HTML Code:
<a href="javascript: window.location.hash = '{option}';>{param}</a> Here is a topic where you can see now that I have to replace is this: HTML Code:
<a href="#{option}">{param}</a> There's a link where you can see in my forum: http://www.play4trophies.com/threads/152-Anchor I followed this tutorial: https://www.vbulletin.com/forum/show...s-using-vbcode I also want to look here: http://www.ps3trophies.com/forums/tr...-trophies.html if I missed something. Thank you very much Lynne, I hope you can help me at heart Original: https://www.vbulletin.com/forum/show...2#post2248482? I Need help. |
#2
|
||||
|
||||
Did you read the second page in the thread? This solution works just fine - https://www.vbulletin.com/forum/show...=1#post1976671
(May have to change single quotes for double quotes and vice versa.) |
#3
|
|||
|
|||
Quote:
HTML Code:
<a href="#" onclick="document.location.hash=''; document.location.hash='{option}'; return false;">{param}</a> |
#4
|
||||
|
||||
As I said, switch the single and double quotes for that statement:
HTML Code:
<a href="#" onclick='document.location.hash=""; document.location.hash="{option}"; return false;' >{param}</a> |
#5
|
|||
|
|||
Yeah, I work well, again thanks a million without your help Lynne d elas many things I want to do on my forum would be impossible.
|
#6
|
|||
|
|||
Trying to do this exact thing... but I'm concerned that the above code is wide open for a Javascript injection. What's to stop someone dropping in a something more sneaky inside the {option}? It needs some kind of sanitation or you'll be spawning off all kinds of things.
Anyone done anything safer? |
#7
|
|||
|
|||
Fix for VB 4 is here in the original thread https://vborg.vbsupport.ru/showpost....14&postcount=3
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|