Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2013, 12:59 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default phpMyadmin query help

OK i have a mod that i need help with in phpMyadmin area

The author sent me this:

Quote:
Then go to phpMyAdmin and execute following query:

Code:
ALTER TABLE vbclan_games ADD forumsbanner VARCHAR(50) NOT NULL DEFAULT '' AFTER banner
If you use a different prefix than vb for the database tables, you'll have to replace it first.
I use forums as my prefix so anyone help me on how to do this ?

I tried altering the "vbclan_games" to "forumsclan_games" but no luck

I am stuck at the BOLD bit in the quote
Reply With Quote
  #2  
Old 01-20-2013, 01:27 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you ARE running this in phpmyadmin then
PHP Code:
ALTER TABLE forumsclan_games ADD forumsbanner VARCHAR(50NOT NULL DEFAULT '' AFTER banner 
but first visit the table forumsclan_games then click the SQL tab then run the query.

is your prefix actually
forumsclan
or
forums_clan
Reply With Quote
  #3  
Old 01-20-2013, 01:34 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
#1142 - ALTER command denied to user 'nextgen6'@'localhost' for table 'clan_games'
That is what i am getting back when i try to run the query mate

--------------- Added [DATE]1358692734[/DATE] at [TIME]1358692734[/TIME] ---------------

Its actually
_forum

I can execute the original code but the alteration on the mod does not work, It does not post the game banner , It just posts the variable as text
Reply With Quote
  #4  
Old 01-20-2013, 02:13 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then your query should be
PHP Code:
ALTER TABLE _forumclan_games ADD forumsbanner VARCHAR(50NOT NULL DEFAULT '' AFTER banner 
Reply With Quote
  #5  
Old 01-20-2013, 03:30 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cheers for the help but that does not work either

I will have to wait for the coder to reply to me as its not working at all

Cheers for your help though mate
Reply With Quote
  #6  
Old 01-20-2013, 03:35 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did it at least add the new column for you?
Reply With Quote
  #7  
Old 01-20-2013, 03:37 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
#1142 - ALTER command denied to user 'nextgen6'@'localhost' for table 'clan_games'

This error is showing that the problem is permissions and not the query syntax. Do you have access to the Execute SQL Query function under the Maintenance menu in the admincp? If so you could try it there. If not, then you need to talk to someone who can adjust the permissions (if that isn't you).

Edit: oh, well if you got the column added (as you mentioned below) then maybe it was the syntax, and it was misunderstanding what you wanted to change. never mind.
Reply With Quote
  #8  
Old 01-20-2013, 03:48 PM
betts02's Avatar
betts02 betts02 is offline
 
Join Date: Jun 2009
Posts: 910
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Simon Lloyd View Post
Did it at least add the new column for you?
Yes it added the column which i did before but as it was not working still i assumed i was not doing something correctly which is why i asked here

It could be the files i uploaded or it simply does not work correctly
I will have to wait for a reply from the author of this mod
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 07:27 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.04052 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_code
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)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