News:

Wondering if this will always be free?  See why free is better.

Main Menu

create topic

Started by nuva, December 21, 2009, 01:37:42 PM

Previous topic - Next topic

nuva

hello,

At the moment I am making a website with a homepage that has smf integrated. I included ssi.php.
Now i was wondering if it is possible to create a forum topic from the main site?

Thank you,
Nuva ;)
Alone for a while I've been searching through the dark
For traces of the love you left inside my lonely heart
To weave by picking up the pieces that remain
Melodies of life--love's lost refrain

H

You can use createpost() to create topics or replies :)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

nuva

Works great after some time of trying :P :D

Thanks!
Alone for a while I've been searching through the dark
For traces of the love you left inside my lonely heart
To weave by picking up the pieces that remain
Melodies of life--love's lost refrain

H

Glad that did what you wanted :)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

nuva

Is there a function to send a pm as well?
Alone for a while I've been searching through the dark
For traces of the love you left inside my lonely heart
To weave by picking up the pieces that remain
Melodies of life--love's lost refrain

H

sendpm() :). Be sure to checkout all the other functions on the main Function DB page :)
-H
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

nuva

#6
Quote from: H on December 22, 2009, 06:45:18 AM
Be sure to checkout all the other functions on the main Function DB page :)
Sorry, it has been a long time since i visited this forum O:)


edit:
I used the following code:

<?php
include_once("forum/SSI.php");
require_once(
$sourcedir '/Post.php');
require_once(
$sourcedir '/Subs-Post.php');

$msgOptions = array(
'bbc' => array(),
'to' => array('nuva'),
);

$subject "test";
$message "test";
$outbox_store false;

$from = array(
'id' => 1,
'name' => 'nuva',
'username' => 'nuva',
);

$result sendpm(array $recipientsstring $subjectstring $messagebool $outbox_store[, array $from])

?>



And i get the following error, though I don't seem to find why...

Parse error: parse error, expecting `'('' in C:\wamp\www\nuva\pmtest.php on line 21

Line 21 is the line where the sendpm function is called.
Alone for a while I've been searching through the dark
For traces of the love you left inside my lonely heart
To weave by picking up the pieces that remain
Melodies of life--love's lost refrain

nuva

#7
sorry, my bad.
I found out.

Thanks, works great ;D


edit:
Just one more question ::)

Can i make a link redirect to the pm page with $to, $subject and $message already filled in?
Alone for a while I've been searching through the dark
For traces of the love you left inside my lonely heart
To weave by picking up the pieces that remain
Melodies of life--love's lost refrain

Kill Em All

Sorry for the delayed response. As far as one specific link, I don't think so.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

MultiformeIngegno

nuva I'm interested on this too! Can you post the right code for the one 3 posts ago? Thanks!!
RockCiclopedia (wiki - forum), Tutta la storia del rock, scritta da voi ...
Rimanere aggiornati sul mondo della musica grazie al nuovo feed "RockCiclopedia Music News"!

Advertisement: