Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2002, 07:00 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default "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.
Reply With Quote
  #2  
Old 04-12-2002, 07:08 AM
Andy Z Andy Z is offline
 
Join Date: Nov 2001
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried it just today and it worked fine.
Reply With Quote
  #3  
Old 04-12-2002, 04:09 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It only works for custom templates. (personally I find it useless)
Reply With Quote
  #4  
Old 04-13-2002, 12:48 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 04-13-2002, 09:45 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 04-13-2002, 11:05 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-13-2002, 06:51 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #8  
Old 04-14-2002, 09:02 AM
tubedogg's Avatar
tubedogg tubedogg is offline
 
Join Date: Oct 2001
Location: Medina, OH
Posts: 785
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 04-14-2002, 10:35 AM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:06 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.04064 seconds
  • Memory Usage 2,233KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete