vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Change Guest to User on threads (EZBoard) (https://vborg.vbsupport.ru/showthread.php?t=60983)

Marco van Herwaarden 10-04-2005 03:54 AM

Change:
PHP Code:

     $getuserid=$DB_site->query_first("SELECT userid FROM user WHERE username='".addslashes($newusername)."'"); 

To:
PHP Code:

     $getuserid=$DB_site->query_first("SELECT userid FROM " TABLE_PREFIX "user WHERE username='".addslashes($newusername)."'"); 


feldon23 10-04-2005 11:19 AM

Quote:

Originally Posted by MarcoH64
Change:
PHP Code:

     $getuserid=$DB_site->query_first("SELECT userid FROM user WHERE username='".addslashes($newusername)."'"); 

To:
PHP Code:

     $getuserid=$DB_site->query_first("SELECT userid FROM " TABLE_PREFIX "user WHERE username='".addslashes($newusername)."'"); 


Thanks, Marco! As always, an invaluable member of vb.org. :)

I've updated the script to reflect this change.

a squared 10-04-2005 01:13 PM

Thank you both!!! I saw the post this morning and immediately changed the code. uploaded and ran the script. Ran without a hitch! Is it safe to assume that this script is now supports all versions of vB 3.0.x? It certainly works in 3.0.8

Thanks again

Mike

feldon23 10-05-2005 03:53 PM

Quote:

Originally Posted by a squared
Thank you both!!! I saw the post this morning and immediately changed the code. uploaded and ran the script. Ran without a hitch! Is it safe to assume that this script is now supports all versions of vB 3.0.x? It certainly works in 3.0.8

Thanks again

Mike

To my knowledge, the user, post, thread, and forum tables did not change from vB3.0.0 through 3.0.9. Anyone?

vocalise 11-10-2005 07:02 PM

Will this work on vbulletin 3.5.0? Freddie just did a wonderful job importing my board from ezboard to vbulletin, and I'm kind of lost what to do with the script (excuse this very new newbie)

I saved the script to ezimport.php and uploaded it.

Do I just access it from http://mydomain.com/admincp/ezimport.php and then run it that way? I ask because I'm getting errors. I must be something.

Any help would be greatly appreciated.

feldon23 11-10-2005 07:26 PM

Quote:

Originally Posted by vocalise
Will this work on vbulletin 3.5.0? Freddie just did a wonderful job importing my board from ezboard to vbulletin, and I'm kind of lost what to do with the script (excuse this very new newbie)

I saved the script to ezimport.php and uploaded it.

Do I just access it from http://mydomain.com/admincp/ezimport.php and then run it that way? I ask because I'm getting errors. I must be something.

Any help would be greatly appreciated.

I have not tested it in vB3.5.0. What error(s) are you getting?

vocalise 11-10-2005 07:30 PM

I am getting the following errors:

Notice: Only variable references should be returned by reference in /home/vocalise/public_html/includes/class_core.php on line 1824

Notice: Only variable references should be returned by reference in /home/vocalise/public_html/includes/class_core.php on line 1771

Notice: Only variables should be assigned by reference in /home/vocalise/public_html/includes/class_core.php on line 1510

feldon23 11-10-2005 07:46 PM

Quote:

Originally Posted by vocalise
I am getting the following errors:

Notice: Only variable references should be returned by reference in /home/vocalise/public_html/includes/class_core.php on line 1824

Notice: Only variable references should be returned by reference in /home/vocalise/public_html/includes/class_core.php on line 1771

Notice: Only variables should be assigned by reference in /home/vocalise/public_html/includes/class_core.php on line 1510

Guess I need to learn how to code for vB3.5. What would be really nice is if Jelsoft took this project over and officially supported it.

akanevsky 11-10-2005 08:17 PM

Install my port of the Advanced Editing Options for Mods and Admins, then you get to have such feature :)

vocalise 11-11-2005 01:22 AM

I installed the port of the Advanced Editing Options, and it seems to be installed properly.

However, when I got to http://_mydomain_/admincp/ezimport.php

I am still getting the same errors..


All times are GMT. The time now is 09:15 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.01140 seconds
  • Memory Usage 1,748KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete