vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Query Request (https://vborg.vbsupport.ru/showthread.php?t=49111)

Rose 02-19-2003 01:46 PM

Query Request
 
This isn't really a hack request, but I couldn't decide on which forum would be the most appropriate, but as this is a "request", I stuck it in here. :nervous:

Many of my members have "http://www./" entered as their homepage. I'm not sure why, but to prevent future instances I have installed N9ne's "default homepage" hack.

However, for those members that have already registered, the value hasn't changed, obviously. Is there a way to run an UPDATE query or something in phpmyadmin that will allow all the values of "http://www./" changed to "http://www.mydefaultsite.com"?

:rambo: Thanks in advance!

Xenon 02-19-2003 01:54 PM

php forum would have been right ;)

[sql]UPDATE user SET homepage='http://www.mydefaultsite.com' WHERE homepage='http://www./'[/sql]

Rose 02-19-2003 02:03 PM

Quote:

Originally posted by Xenon
php forum would have been right ;)



Interestingly enough, I was in the PHP forum first. *hehe* :$

edited to say - Nevermind. Dunno what the error was that I originally got, but I've got it fixeded up. ;) But, the query didn't seem to have any effect on the current homepages.

Xenon 02-19-2003 02:07 PM

the query has an effect, but you have to be sure that the hompage is exactly like that.

is the last / really there?

if not use this:

[sql]UPDATE user SET homepage='http://www.mydefaultsite.com' WHERE homepage='http://www.'
[/sql]

Rose 02-19-2003 02:09 PM

Quote:

Originally posted by Xenon
the query has an effect, but you have to be sure that the hompage is exactly like that.

is the last / really there?

if not use this:

[sql]UPDATE user SET homepage='http://www.mydefaultsite.com' WHERE homepage='http://www.'
[/sql]

There we go. That did the trick. :D

The last "/" was showing up when I did a mouseover the button and when I clicked "properties" on it, too. :s But whether real or no, this worked! Thanks a million. :D

Xenon 02-19-2003 02:12 PM

:)
you're welcome :)


All times are GMT. The time now is 11:16 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.00993 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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