1 (edited by F.M 2007-02-22 16:07)

Topic: emailer.php

I'd like to include the emailer.php in another website such that i can inform users some information using email. Direct me on how to do it using php.
Also what do i set the target of the pages i integrate with site to if i want them to open on the forum template like other pages on the forum e.g  register,profile etc.

Thank you.
Francis

Re: emailer.php

well you need to look at the wiki about this.. the main things is the locations of the punbb forum.

<?php
 
define('PUN_ROOT', './'); <-------------------------------------this is the locations of the punbb  you can add to the front http://yoursite.com/forum
define('PUN_QUIET_VISIT', 1);
require PUN_ROOT.'include/common.php';
 
$page_title = pun_htmlspecialchars($pun_config['o_board_title']);
define('PUN_ALLOW_INDEX', 1);
require PUN_ROOT.'header.php';
require PUN_ROOT.'include/parser.php';

simply why not do an iframes in the other site of the emailer.php
so that it will pull the file into that site?

search google for iframes


just simply do links to the register,etc.
or iframes again for all the files you need to be on the other site.
that seem to be the simplest way.


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

3 (edited by F.M 2007-02-22 17:55)

Re: emailer.php

is the code above for the frames or for the emailer.
if for the frames, what about the emailer

How do i get to THE WIKI?
THANK YOU

4

Re: emailer.php

What is the name of your frame where all other page sopen from, so that i set my target pages to open on tht frme?
Thanks

Re: emailer.php

google iframes
that simple enough..

the code is for the locations of the punbb directory.

define('PUN_ROOT', './');

define('PUN_ROOT', 'http://yoursite.com/forum/');
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

6 (edited by F.M 2007-02-23 12:17)

Re: emailer.php

Okay now its opening with the punnbb look but its opening a new page.a new session.
i'd like it to open on the same same page.thanks.

It only includes the header and the footer iframes and not the main iframe. where the page should load.
cheers.

Re: emailer.php

Moved to Integration

8

Re: emailer.php

how are you able to ensure that the login, forum, etc, load in the main frame. i want my pages too to load in the main template.
thanks