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 06-15-2008, 01:44 AM
mark350 mark350 is offline
 
Join Date: Jan 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Signiture Question

I have already made several posts on my forum before I added a signiture (that appears on the bottom of each post).

Is there a way to make this signiture automatically appear on all my old posts/replies... or will it only appear on new threads/replies?

I guess I could delete all my posts and repost them now that the signiture is activated, however, that's a pain. Does anyone know the answer to this question?

Thanks in advance for any help!
Reply With Quote
  #2  
Old 06-15-2008, 04:23 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

[sql]UPDATE post
SET showsignature = 1
WHERE userid = X[/sql]
Replace "X" with your userid.
Reply With Quote
  #3  
Old 06-15-2008, 11:38 AM
mark350 mark350 is offline
 
Join Date: Jan 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I logged in as the administrator and went to 'Maintenance > Execute SQL Query.'

However, it said that I do not have permission to execute SQL Query...? Any idea what I am doing wrong?

Ultimately, all I want to do is add this phrase to the signiture:
"Ad Majorem Dei Gloriam!"

I don't want to risk messing up the database to accomplish this... can you please explain a little better what I need to do. Your help is much appreciated!
Reply With Quote
  #4  
Old 06-15-2008, 11:52 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to add your user id into config.php, the part with "Users With Query Running Permissions". Clicking "how to run queries" also reveals this .
Reply With Quote
  #5  
Old 06-15-2008, 01:02 PM
mark350 mark350 is offline
 
Join Date: Jan 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I added myself as a user and was able to "execute SQL Query" ... I then did the following:

1. went to the 'execute SQL Query"

2. Entered this information in the "Manual Query":
UPDATE post
SET showsignature = 1
WHERE userid = 27

3. Recieved the following error message:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'true350_buddy.post' doesn't exist

*Any more help will be greatly appreciated, thanks.
Reply With Quote
  #6  
Old 06-15-2008, 02:10 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mark350 View Post
Ok, I added myself as a user and was able to "execute SQL Query" ... I then did the following:

1. went to the 'execute SQL Query"

2. Entered this information in the "Manual Query":
UPDATE post
SET showsignature = 1
WHERE userid = 27


3. Recieved the following error message:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'true350_buddy.post' doesn't exist


*Any more help will be greatly appreciated, thanks.
Changed post to include your table prefix, as it appears you have one.
Reply With Quote
  #7  
Old 06-15-2008, 02:18 PM
mark350 mark350 is offline
 
Join Date: Jan 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for responding... please forgive my ignorance. I do not understand the instructions....

"Changed post to include your table prefix, as it appears you have one."

What is a table prefix? How do I find this information? Where do I add it once I find it?

Here's what I understand so far:

1. Go to the "Execute SQL Query "

2. under the manual query, enter this:

UPDATE post
SET showsignature = 1
WHERE userid = 27

*** do you want me to change the word "post"... what should it look like? I'm sorry, but I'm not understanding the instructions. Thanks for your patience.
Reply With Quote
  #8  
Old 06-15-2008, 02:23 PM
King Kovifor's Avatar
King Kovifor King Kovifor is offline
 
Join Date: Nov 2004
Location: PA
Posts: 3,872
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Within your config file, you set the following PHP variable to something:

$config['Database']['tableprefix']

Whatever is found within the '' needs to be placed in front of post within the query. There should be no spaces.

So if you had bb_ within the quotes you would change post to bb_post.
Reply With Quote
  #9  
Old 06-15-2008, 02:30 PM
mark350 mark350 is offline
 
Join Date: Jan 2007
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That worked! Thanks for your patience and your help!
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 12:47 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.04051 seconds
  • Memory Usage 2,237KB
  • Queries Executed 13 (?)
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_postinfo_query
  • fetch_postinfo
  • 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