vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Signiture Question (https://vborg.vbsupport.ru/showthread.php?t=182517)

mark350 06-15-2008 01:44 AM

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!

Dismounted 06-15-2008 04:23 AM

[sql]UPDATE post
SET showsignature = 1
WHERE userid = X[/sql]
Replace "X" with your userid.

mark350 06-15-2008 11:38 AM

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!

Dismounted 06-15-2008 11:52 AM

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 ;).

mark350 06-15-2008 01:02 PM

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.

King Kovifor 06-15-2008 02:10 PM

Quote:

Originally Posted by mark350 (Post 1549944)
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.

mark350 06-15-2008 02:18 PM

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.

King Kovifor 06-15-2008 02:23 PM

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.

mark350 06-15-2008 02:30 PM

That worked! Thanks for your patience and your help!


All times are GMT. The time now is 03:39 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.00982 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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