vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   "Search and replace string" bug in v.225? (https://vborg.vbsupport.ru/showthread.php?t=37327)

TECK 04-12-2002 07:00 AM

"Search and replace string" bug in v.225?
 
does anyone tried to search and replace a template string in v.225?
i tried this today and it didnt work.

let me know please if this is a local issue or a bug.

Andy Z 04-12-2002 07:08 AM

I tried it just today and it worked fine.

Admin 04-12-2002 04:09 PM

It only works for custom templates. (personally I find it useless)

TECK 04-13-2002 12:48 AM

i posted this 3 days ago at vB.com and nobody answered. so i decided to ask here also. while i was playing with my admin panel (in localhost) i tried the "search and replace" function. i replaced index.php with forums.php and reindexed all data. i also changed the following files:
- forumdisplay.php
- global.php
- member.php
- online.php
- register.php
- admin\index.php
- mod\index.php

to match the new file name.

when i went to the main page, the changes were not done.
after that, i went again in the admin panel and did a simple search for "index.php", in templates. no changes were made.

this was experienced on a vBulletin v2.2.5 clean install with no hacks or database mods. i personally think that almost nobody uses the function "search and replace" and that's why this bug was not detected.

please let me know if it is a local issue, or a bug. thanks.

NOTE: to fix this issue, i simply opened vbulletin.style and replaced all "index.php" strings, with a text editor.. to "forums.php". then i ran the step 6 from install.php.

TECK 04-13-2002 09:45 AM

Quote:

Originally posted by FireFly
It only works for custom templates. (personally I find it useless)
thanks firefly. and i apologise about the double post, i completly forgot i started a thread here first. :ermm:

is it possible that a dev can get this option to work properly? i find it usefull if you decide to customize the board in a different way. here it is an example: install the forums directly into the root and rename the index.php to forums.php (i know about .htaccess). or switch from .php3 to .php files.

Admin 04-13-2002 11:05 AM

I believe it was fixed in vB3. That whole system was rewritten so I don't think they left it half-working.

Edit: nope, looks like it's still broken in vB3.

TECK 04-13-2002 06:51 PM

thanks firefly. now since we are here talking about replacements, can anyone explain to me if vbulletin.style is needed in the /admin folder? the way i see it me to fix this problem is to have VB export the templates database contents to a similar file like vbulletin.style. then all we have to do is create a code addon in template.php that will grab that file and update the template table.

i did this so far, but i dont know how to import from the database all template data in the vbulletin.style format. maybe firefly can release a little addon to his TBS? ;)

tubedogg 04-14-2002 09:02 AM

It's not a bug. It's not broken.

It has never searched non-custom templates because it would have to create a new template to do a replacement which opens up a whole can of worms in terms of what styles do you create them in, etc.

TECK 04-14-2002 10:35 AM

thanks tubedogg. then you should change the search description. it's telling us that it searches in all templates.


All times are GMT. The time now is 03:21 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.01017 seconds
  • Memory Usage 1,726KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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