vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [3.6.5] Find and Replace in Templates (https://vborg.vbsupport.ru/showthread.php?t=141495)

|Jordan| 03-08-2007 04:16 PM

[3.6.5] Find and Replace in Templates
 
When i do a "Find and Replace in Templates", the page doesnt auto forward. I have to manually click "Next Page" on every page (time consuming).

It worked for me in previous versions and has been disabled in 3.6.5.

Zachery 03-08-2007 04:29 PM

Don't believe it ever had an autoforward to be honest.

If it did, BRING IT UP, as this is likely a bug. www.vbulletin.com/forum/bugs36.php

|Jordan| 03-08-2007 04:37 PM

Hmm, it auto brings it up in 3.0.17 and it appears to be a feature, not a bug.

I found the code that controls it, but cant figure out where to put it (im not familiar with 3.6.x structure yet).

Code:

<p align="center" class="smallfont"><a href="template.php?do=replace&regex=0&requirerebuild=0&test=0&dostyleid=22&startat_template=50&startat_style=0&searchstring=%3Cbr%3E&replacestring=%3Cbr%3E" onclick="javascript:clearTimeout(timerID);">Processing Complete - Proceed</a></p>
<script type="text/javascript">
myvar = ""; timeout = 10;
                function exec_refresh()
                {
                        window.status="Redirecting..."+myvar; myvar = myvar + " .";
                        timerID = setTimeout("exec_refresh();", 100);
                        if (timeout > 0)
                        { timeout -= 1; }
                        else { clearTimeout(timerID); window.status=""; window.location="template.php?do=replace&regex=0&requirerebuild=0&test=0&dostyleid=22&startat_template=50&startat_style=0&searchstring=%3Cbr%3E&replacestring=%3Cbr%3E"; }
                }
                exec_refresh();
</script>


Zachery 03-08-2007 04:39 PM

No, the fact that its not there may be a bug and should be reported :)

|Jordan| 03-08-2007 04:44 PM

I reported it on vb support page too, i added it here too cause i thought that a coder here could get to it faster.

Looks like you're correct, it was disabled to prevent a cross site forgery attack (i submitted a bug report)

Quote:

Originally Posted by Scott MacVicar
It was intentionally made into a POST request to stop a potential cross site forgery attack where someone forces you to that URL via an image or something similar.



All times are GMT. The time now is 04:43 PM.

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.02287 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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