vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Help with Anchor in Vb 4.1.X (https://vborg.vbsupport.ru/showthread.php?t=276238)

WDS 12-31-2011 05:09 AM

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>
If you have an index with 10 anchors only works the first to whom you give it. the other times that you give will not work unless you refresh the page.

Here is a topic where you can see now that I have to replace is this:
HTML Code:

<a href="#{option}">{param}</a>
But if I give you sends me to the front page of the web.
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 :D

Original: https://www.vbulletin.com/forum/show...2#post2248482?

I Need help.

Lynne 12-31-2011 05:04 PM

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.)

WDS 12-31-2011 07:39 PM

Quote:

Originally Posted by Lynne (Post 2282571)
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.)

O_O of irongamer
HTML Code:

<a href="#" onclick="document.location.hash=''; document.location.hash='{option}'; return false;">{param}</a>
It works. exactly that I put in the HTML but I put a message before validating it, I run a single irrigation Option placing a one quote?

Lynne 12-31-2011 08:08 PM

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>

WDS 01-01-2012 07:07 PM

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.

warlord0 07-18-2012 10:28 AM

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?

sub_ubi 07-27-2012 11:54 PM

Fix for VB 4 is here in the original thread https://vborg.vbsupport.ru/showpost....14&postcount=3


All times are GMT. The time now is 11:38 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01228 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete