vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Creating a New Thread using vBulletins API (https://vborg.vbsupport.ru/showthread.php?t=229654)

Digma 04-21-2010 04:05 PM

Is there a way to add:
1. The signature of the 'set' poster?
2. a Prefix to a title?

pein87 05-20-2010 01:54 PM

works perfectly
thanks a bunch

/gibigbig

Brandon Sheley 05-20-2010 01:56 PM

thanks for this, now to think of how I can use it :)

kesandal 10-24-2010 12:45 PM

Is there a way to have the code outside of the vB-directory?

e.g.

[root]
_[non-public]
___create_thread_external.php
_[folder1]
_[folder2]
_[vB]

I've tried to change thoose two lines:

PHP Code:

require_once('../vB/global.php'); 
require_once(
'../vB/includes/functions_databuild.php'); 

The result:
PHP Code:

Warning: require(./includes/class_bootstrap.php) [function.require]: failed to open streamNo such file or directory in /home/x/public_html/d/vB/global.php on line 15

Warning
: require(./includes/class_bootstrap.php) [function.require]: failed to open streamNo such file or directory in /home/x/public_html/d/vB/global.php on line 15

Fatal error
: require() [function.require]: Failed opening required './includes/class_bootstrap.php' (include_path='.:/usr/lib/php:/usr/local/lib/php'in /home/x/public_html/d/vB/global.php on line 15 

Any ideas?
Thansk in advance

Kesandal


Edit
I could fix the problem.

For thoose who are getting the same problem;
Just add thoose few lines above your page:

PHP Code:

$curdir getcwd (); 
chdir('../path_to_your_board/'); 
require_once(
'../path_to_your_board/global.php'); 
chdir ($curdir); 


FortressGamers 10-27-2010 02:02 PM

Sorry to bump an old thread....

is addslashes() for title & content necessary? I'm just curious if it's redundant. When I use the above, in my posts I get slashes along with my quotes :(

Thanks!

leitel 11-12-2010 10:26 AM

Can a similar approach be used to create CMS articles in 4+?

squishi 12-15-2010 09:40 PM

Thank you very much for this thread. Worked perfectly.

kesandal 04-18-2011 07:41 AM

Quote:

Originally Posted by leitel (Post 2120882)
Can a similar approach be used to create CMS articles in 4+?

same question here..

4x4 Mecca 01-16-2012 04:33 AM

Thanks! You helped me a ton!

qos 04-17-2012 07:39 AM

i try it on version 4.1.12 and it create new thread, so it works on 4+.
thx for the script:)


All times are GMT. The time now is 02:59 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.02267 seconds
  • Memory Usage 1,737KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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