Author Topic: [addon] DREAMBOARD V 2.1  (Read 519953 times)

0 Members and 1 Guest are viewing this topic.

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #270 on: January 30, 2006, 11:39:05 PM »
Ok, thins now are:

I've deleted the post... misunderstood, sorry :(

You're with Trez in HIS forum trying to do that, ok.

While, I'm going to restore the showthread.php to start from 0... While, I'll be waiting your post here :P

Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #271 on: January 31, 2006, 12:32:25 AM »
Almost 1 hour have passed and there's no replies :(

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #272 on: January 31, 2006, 12:43:56 AM »
Almost 1 hour have passed and there's no replies :(

wait, he's workin' on.

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #273 on: January 31, 2006, 12:51:41 AM »
Quote

wenn users replay in forum. the error come.  could it be that thear is an error in Eglys Email@reply code ??


Please provide the URL "or" the filename with the action query on where this error happends.

Thanks.


Ok-  I believ that wenn users replay ther are in boardreply.php and wen they push replay  that error come up sometimes.

Fatal error: Cannot redeclare class email in /var/www/web7/html/4images/includes/email.php on line 28

the only thing i can find in boardreply.php is the code from Eglys Email@reply
Code: [Select]
//////////////////////////////////////////
////////////Eglys Email@reply/////////////
//////////////////////////////////////////
$sql = "SELECT user_email FROM ".BOARD_TREP_TABLE.", ".USERS_TABLE." WHERE "
.USERS_TABLE.".user_id = ".BOARD_TREP_TABLE.".repuser_id AND
repthrid = '$threadid' group by user_email";

        $result = $site_db->query($sql);
        $row = array();
        while ($row = $site_db->fetch_array($result)) {
$repuser = $row['repuser_id'];
$repmailto = $row['user_email'];
$from = "patrick@terradreams.de";            //insert your email adress here
$post_url=$script_url."/showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage";
        include_once(ROOT_PATH.'includes/email.php');
        $site_email = new Email();
        $site_email->set_from($from);
        $site_email->set_to($repmailto);
        $site_email->set_subject($subject_form);
        $site_email->register_vars(array(
          "recipient_name" => $board_moderator,
          "forum_name" => $board_name,
          "sender_name" => $username_form,
  "topics_url" => $post_url,
  "topics_content" => $message_form,
  "about" => $lang['new_reply'],
  "board_name" => $boardconfig['board_name']
 
        ));
                $site_email->set_body("board_mailtopics", $config['language_dir']);
                $site_email->send_email();
}
   
$sql= "SELECT user_email FROM ".BOARD_TCONT_TABLE.", ".USERS_TABLE." WHERE "
.USERS_TABLE.".user_id = ".BOARD_TCONT_TABLE.".thrstarter_id AND
thrid = '$threadid' ";

        $result = $site_db->query($sql);
        $row = array();
        while ($row = $site_db->fetch_array($result)) {
$repuser = $row['repuser_id'];
$repmailto = $row['user_email'];
$thrstarter2 =$row['thrstarter_id'];
if ($thrstarter2 <> $repuser) {

$from = "patrick@terradreams.de";            // insert your email adress here
$post_url=$script_url."/showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage";
        include_once(ROOT_PATH.'includes/email.php');
        $site_email = new Email();
        $site_email->set_from($from);
        $site_email->set_to($repmailto);
        $site_email->set_subject($subject_form);
        $site_email->register_vars(array(
          "recipient_name" => $board_moderator,
          "forum_name" => $board_name,
          "sender_name" => $username_form,
  "topics_url" => $post_url,
  "topics_content" => $message_form,
  "about" => $lang['new_reply'],
  "board_name" => $boardconfig['board_name']
 
        ));
                $site_email->set_body("board_mailtopics", $config['language_dir']);
                $site_email->send_email();
}else {}}

//////////////////////////////////////////
//////////End Eglys Email@reply///////////
//////////////////////////////////////////


Could it be that mail.php is included twice in the code above???? that it make the error  ??
        include_once(ROOT_PATH.'includes/email.php'); is in the code above twice..

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #274 on: January 31, 2006, 01:02:42 AM »
This has already been corrected along with the posts in the topic. Please read the entire discussion. ;)

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #275 on: January 31, 2006, 01:04:38 AM »
@Oracle Sorry about that . i did look threw the thread but did see anything about it.  but i will look again :))

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #276 on: January 31, 2006, 01:21:39 AM »
To make this fast, from what you posted above,

find :

Quote

$post_url=$script_url."/showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage";
        include_once(ROOT_PATH.'includes/email.php');
        $site_email = new Email();


(twice)

replace with :

Quote

$post_url = $script_url."/showthread.php?bid=".$bid."&threadid=".$threadid."&page=".$getlastpage;
        include_once(ROOT_PATH.'includes/email.php');
        if (!empty($site_email) || $site_email != "") {
        unset ($site_email);
        }
        $site_email = new Email();


This should do it. ;)

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #277 on: January 31, 2006, 06:36:47 AM »
OK ty very much..  i canged and will see if it still comes.


Offline crcbad

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #278 on: January 31, 2006, 10:59:54 PM »
Hi TheOracle!! How went with Trez yesterday? The avatar worked at the end??

I hope.... Greetinz

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #279 on: January 31, 2006, 11:00:55 PM »
Please do not fill this topic with status questions. If you wish to do so, you may PM me.

Thanks.

Offline Stoleti

  • Hero Member
  • *****
  • Posts: 574
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #280 on: February 06, 2006, 08:27:10 PM »
Hi Mantra

i have the same problem:

the code of version 2.1 for 4images 1.7.1 does not redirect after replying or quoting a post.

In the admin zone the redirect is working, but when i post a thread direct on the board, then it is only the message:

INfo


You will be redirected to your post shortly

but it does not return to the post.

please help me!!
Thanx lot


added on board.html  this tag {redirect} before {board}  :mrgreen:


-----

How make BBcode Smileys work in board ? i Mean on posts ? :|

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #281 on: February 08, 2006, 01:33:58 PM »
HI Me again  :)) . My user askt me if there is a way to insert the PM mod to the forum ???
like  in teh same way its iinplanted to thze comments

Greatzzzz 

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #282 on: February 08, 2006, 01:58:39 PM »
HI Me again  :)) . My user askt me if there is a way to insert the PM mod to the forum ???
like  in teh same way its iinplanted to thze comments

Greatzzzz 

just use the regular links, u have to edin "showthread.php" to show it under each post

Offline Flatermann

  • Newbie
  • *
  • Posts: 32
    • View Profile
Re: [addon] DREAMBOARD V 2.1
« Reply #283 on: February 08, 2006, 03:06:14 PM »
it isnt that easy - i can let the new pm link show yeah that easy. . but  the thing is.. wenn you push the pm button from a comment then that comment is shown in that pm

how can i do all that.  and the pm is already filled out to send to that person that wrote that comment.

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [addon] DREAMBOARD V 2.1
« Reply #284 on: February 08, 2006, 03:28:40 PM »
Flattermann:

Try describe it a little more better ;)
So if i understand you, you wanna have this:

Board ---- Topic:
blablabla

-> user clicks on PM

->

headline: RE: Topic XXX on XXX
subject: (quote topic)

user writes text


that? If yes, Oracle or V@no could give you the answer, but this forum is coded very badly, to many bugs, i think about to pay a php-coder here in bulgaria to completely rewrite this MOD next week, so when its ready i post the new installation under an new topic.