vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   How would I auto post a thread? (https://vborg.vbsupport.ru/showthread.php?t=21649)

joebob 06-30-2001 02:52 PM

Ok here is what I want to do:
After a member registers I want an auto post to post and have the subject be his user name?
I have no idea how to do this and I would greatly appreciate any help! Thanx!

dwh 06-30-2001 04:02 PM

Great question, tough answer, but I think perhaps the same question in the code hacking forum would give you better results...

G0D 06-30-2001 04:17 PM

the auto post is just a mysql query. You have to put it in the script that makes a member.

joebob 06-30-2001 04:28 PM

Quote:

Originally posted by G0D
the auto post is just a mysql query. You have to put it in the script that makes a member.
I have no idea what any of that means, sorry I am still learning php and mysql, could you explain this in more detail?

joebob 07-01-2001 04:40 AM

come on people, help me out

joebob 07-02-2001 04:03 AM

somebody has to know this!

G0D 07-02-2001 10:18 AM

bleh
see my next reply

joebob 07-02-2001 06:29 PM

Thanx for replying, butI get this error:

Database error in vBulletin: Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,at tachmentid,pagetext,allowsmilie,showsignature,ipad
dress,iconid,visible) VALUES (NULL,'10','Hi! I\'m new here','amber','5','994101591','','','1','0','24.22 .128.147','0','1')
mysql error: You have an error in your SQL syntax near 'dress,iconid,visible) VALUES (NULL,'10','Hi! I\'m new here','amber','5','9941015' at line 2
mysql error number: 1064
Date: Monday 02nd of July 2001 03:19:51 PM
Script: /td/register.php
Referer: http://www.copyforum.com/td/register.php

G0D 07-02-2001 06:39 PM

i'll look at it tommorow..I'm to tired now.

dwh 07-02-2001 11:17 PM

I bet your problem is related to the text you trying to insert. I'm more used to perl but the word "I'm" contains an embedded single quote ' and that is probably causing your problem, if I remember correctly, php like perl wants you to precede single quotes, double quotes, or other reserved letters with a backslash \, so change it to
Quote:

Hi! I\'m here!
and the same for any other "special characters". Let me know if it helps..


All times are GMT. The time now is 05:35 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.01064 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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