Quote:
Originally Posted by onealien
installed and connection made to blog...
can someone break down the txt instruction for a more novice user...lol
how do I get multiple id's in there? like wat does it look like?
how do I get the title in there?
how do I get the body in there?
here is wat the blog looks like...lol
Wednesday, September 29, 2010
BLOG SUBJECT
BLOG MESSAGE BODY HERE - HTML CAN BE USED - USE
FOR A LINEBREAK - LINK TO TOPIC LIKE THIS - CLICKABLE LINK TEXT
any assistance would be appreciated....
|
This is what my code looks like.
Code:
// START BLOGMAIL MOD
//Define Variables
$posttitle = $post['title']; // Outputs vBulletin Post Title
$threadid = $threadinfo['threadid']; // Outputs Thread ID
$forumid = $foruminfo['forumid']; // Outputs Forum ID
$tags = $post['taglist']; // Outputs Tag List
if ( $type == 'thread') {
// START BLOGMAIL MOD
switch($forumid)
{
case '161': // Replace xx with Forum ID (numerals).
case '106': // Replace xx with Forum ID (numerals).
case '18': // Replace xx with Forum ID (numerals).
// case 'XX': Optionally use multiple cases to specify more than one forum.
$to = "*******@blogger.com";
$subject = "$posttitle"; // use $posttitle
$body = "Click the link below to read more on this topic.<BR><a href=http://www.marineaquariumsa.com/forumdisplay.php?f=$forumid>Full thread here.</a>";
$headers = "From: ******@marineaquariumsa.com\n";
$headers .= "Content-Type: text/html; charset=us-ascii\n";
$headers .= "Content-Transfer-Encoding: 7bit";
mail($to,$subject,$body,$headers);
break;
default;
// Either a reply or not in a forum that is used, just ignore.
break;
}
}
//END BLOGMAIL MOD
You can see the 3 "case" lines with my 3 different forum numbers that I am pulling the posts from. Also I am using the $forumid as I couldn't get the $threadid working.