AviatorBimmer

+Clients
  • Content count

    150
  • Joined

  • Last visited


4 Followers



About AviatorBimmer

  • Rank
    IPB Full Member
  • Birthday 11/08/1972

Profile Information

  • Gender Male

Recent Profile Visitors


2,745 profile views

AviatorBimmer's Activity

  1. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   


    Aiwa,

    The script is attached in Post #4 of this thread. Please shoot me an email and let me know if you would be willing to help and how much it's gonna cost. I opened a thread in custom projects and maybe you would be interested.
  2. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

    Hi Aiwa,


    Any other ideas? Thanks for your help, buddy.
  3. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   


    No other errors... I really don't need a redirect because once deployed, the script will not be executed by someone via a browser. I have a .NET application that sends data via POST to that script, so any new threads will be created behind scenes.

    Here is a link to the script itself:

    http://www.livedispatch.org/livedispatch/test.php
  4. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

    Aiwa,

    We are making progress! I don't get the errors anymore but now I get these new errors:

    Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/livedispatch/test.php:1) in /home/******/public_html/forums/admin/sources/classes/output/formats/html/htmlOutput.php on line 114 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/livedispatch/test.php:1) in /home/******/public_html/forums/admin/sources/classes/output/formats/html/htmlOutput.php on line 127 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/livedispatch/test.php:1) in /home/******/public_html/forums/admin/sources/classes/output/formats/html/htmlOutput.php on line 136 Warning: Cannot modify header information - headers already sent by (output started at /home/hondacop/public_html/livedispatch/test.php:1) in /home/******/public_html/forums/admin/sources/classes/output/formats/html/htmlOutput.php on line 137 Warning: Cannot modify header information - headers already sent by (output started at /home/******/public_html/livedispatch/test.php:1) in /home/******/public_html/forums/admin/sources/classes/output/formats/html/htmlOutput.php on line 141 Also, by executing this script from the browser, it should create the new thread,correct? Or it will not work running it via the browser, as I've been testing it so far. Just want to make sure.

    Thanks for all your help so far, man, I truly appreciate it!
  5. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   


    Ok, I made all the changes as you stated and when I changed:

    $this->ipbRegistry = ipsRegistry::instance();

    to

    ipbRegistry = ipsRegistry::instance();

    I get an error saying unexpected equal sign "=" at that line.
  6. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   


    Ok, so delete EVERY instance of $this->

    And what do you mean by replace with ipsRegistry?
  7. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

    Aiwa,
     
    I tried a quick test script and I get this error: 
    Fatal error: Using $this when not in object context in /home/**********/public_html/*********/test.php on line 38 Here is the test code I made:
    <?php // Connect to the database require 'settings.php'; mysql_connect($localhost, $database_user, $database_password) or die(); mysql_select_db($database_name) or die(); /** * Edit this path, to where you have your forum installed. */ $forum_path = '../forums'; /** * We will change directories so that proper directory is picked up */ chdir( $forum_path ); /** * Prevent a redirection from occuring */ define( 'ALLOW_FURLS', FALSE ); /** * Get some basic IPB files */ define( 'IPB_THIS_SCRIPT', 'public' ); require_once( $forum_path . '/initdata.php' ); /** * Get IPB registry */ require_once( IPS_ROOT_PATH . 'sources/base/ipsRegistry.php' ); require_once( IPS_ROOT_PATH . 'sources/base/ipsController.php' ); /** * initialise the ipsRegistry */ $this->ipbRegistry = ipsRegistry::instance(); $this->ipbRegistry->init(); //--------------------------------------------------------- // Get some libraries we need //--------------------------------------------------------- ipsRegistry::getAppClass( 'forums' ); $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/post/classPost.php', 'classPost', 'forums' ); $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/post/classPostForms.php', 'classPostForms', 'forums' ); $this->post = new $classToLoad( $this->registry ); try { $this->post->setBypassPermissionCheck( true ); $this->post->setIsAjax( false ); $this->post->setPublished( true ); $this->post->setForumID( 3 ); $this->post->setAuthor( IPSMember::load( 2 ) ); $this->post->setPostContentPreFormatted( "This is the already formatted content to store in the database" ); $this->post->setTopicTitle( "This is the topic title" ); $this->post->setSettings( array( 'enableSignature' => 1, 'enableEmoticons' => 1, 'post_htmlstatus' => 0 ) ); if( $this->post->addTopic() === false ) { print_r( $this->post->getPostError() ); return false; } $topic = $this->post->getTopicData(); } catch( Exception $e ) { print $e->getMessage(); return false; } ?> What am I doing wrong?
  8. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

    Correct, my script is not a class. It's a simple PHP script that receives data via POST, opens the database and writes the data to the database. Very simple script.

    I will add the code as you stated and see if it works.

    Thanks, I will let you know how it goes.

    BTW, I did attach the script in the 4th post, in case you would like to take a look at it.
  9. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   


    Hi Aiwa, so I just need to add this code to the beginning of my custom script?
  10. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

    In case someone is willing to help me with this, I have attached the custom PHP file which I need to edit so that the code posted above will work.
     
    If I need to pay someone, just PM with details.
     
    custom.php
  11. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

     
    Hi Sonya, thanks for the reply.
     
    So basically, I would need to have the following code:
    //--------------------------------------------------------- // Get some libraries we need //--------------------------------------------------------- ipsRegistry::getAppClass( 'forums' ); $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/post/classPost.php', 'classPost', 'forums' ); $classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . '/sources/classes/post/classPostForms.php', 'classPostForms', 'forums' ); $this->post = new $classToLoad( $this->registry ); try { $this->post->setBypassPermissionCheck( true ); $this->post->setIsAjax( false ); $this->post->setPublished( true ); $this->post->setForumID( 2 ); $this->post->setAuthor( IPSMember::load( 1 ) ); $this->post->setPostContentPreFormatted( "This is the already formatted content to store in the database" ); $this->post->setTopicTitle( "This is the topic title" ); $this->post->setSettings( array( 'enableSignature' => 1, 'enableEmoticons' => 1, 'post_htmlstatus' => 0 ) ); if( $this->post->addTopic() === false ) { print_r( $this->post->getPostError() ); return false; } $topic = $this->post->getTopicData(); } catch( Exception $e ) { print $e->getMessage(); return false; } inside my PHP script? Of course the values in that code are hard coded for demonstration purposes and I would need to edit those with my own variables.
     
    Am I correct?
  12. AviatorBimmer added a post in a topic: Start new thread from separate PHP script?   

    Hello all,
     
    Is it possible to be able to create a new thread from within a custom PHP script?
     
    I have a custom PHP script that takes data via POST and creates a new record on the same database where my IP.Board is installed, and I would like for that script to create a NEW THREAD once it finishes doing it's thing.
     
    Is this possible?
  13. AviatorBimmer added a post in a topic: Custom comments system   

    I really don't know if this is the right place to make this request and if it isn't please forgive me.
     
    Basically, I am looking for someone that is very good in dealing with IP.Board/IP.Content and can tell me if it is feasible to make a custom commenting system for the following page:
     
    http://www.livedispatch.org/pirep_details.html?pirep_id=10807
     
    I would like to be able to give my members, the ability to add comments at the bottom of that page, sort of a system like Disqus, but not as elaborate.
     
    I would need for it to just allow members from certain groups and comments would be displayed in chronological order from oldest to most recent.
     
    Is this even possible? Do there any freelancer programmers here?
     
    Thanks for any info...
  14. AviatorBimmer added a post in a topic: Embed Google Map into Page?   

    Can anyone PLEASE help me with this? I tried the suggestion by Mike above but it did not work. It will display the GoogleMap but it does not work.
  15. AviatorBimmer added a post in a topic: Embed Google Map into Page?   


    Ok, so I can probably just add an INCLUDE statement for the $mals variable pointing to my php file?

    Also, how do I use the ipsRegistry::$request ??? Can you show an example where I need to pass ?pirep_id=xxx via URL to the PHP file, please?



    Thanks, Alan...

About Me

I would write something about yourself, but I don't know who yourself is.

Status Feed