Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Egly

Pages: [1] 2 3 4 5
1
Templates & Styles (Requests & Discussions) / Re: Loader for Images
« on: January 10, 2007, 01:19:26 AM »
Great Mod, thanks!

Tip: Here you can generate your own loaders: http://www.ajaxload.info/

2
Hi!

öffne member.php und finde:

Code: [Select]
else {
      $user_email = REPLACE_EMPTY;
      $user_email_save = REPLACE_EMPTY;
      $user_mailform_link = REPLACE_EMPTY;
      $user_email_button = REPLACE_EMPTY;
    }
    $site_template->register_vars(array(
      "user_id" => $user_row['user_id'],

ersetze es durch:

Code: [Select]
else {
      $user_email = REPLACE_EMPTY;
      $user_email_save = REPLACE_EMPTY;
      $user_mailform_link = REPLACE_EMPTY;
      $user_email_button = REPLACE_EMPTY;
    }

$sql = "SELECT COUNT(image_id) AS totimg
         FROM ".IMAGES_TABLE."
         WHERE  user_id = $user_id";
  $result = $site_db->query($sql);
$row = $site_db->fetch_array($result);
$uploaded_images = $row['totimg'];

    $site_template->register_vars(array(
  "uploaded_imgs" => $uploaded_images,
      "user_id" => $user_row['user_id'],

danach füge in der Datei /templates/*deintemplate*/member_profile.html folgendes ein, wo du die Anzahl der Bilder angezeigt haben willst:

Code: [Select]
{uploaded_imgs}
Ich hoffe es funktioniert, bei mir hats das getan...

Gruß Bastian

3
Hi!

I have used the search, but i haven´t found it...
I think i have seen here a MOD which allows to post comments under a Members-Profile.

Has anybody a link for me?

Thanks,

Bastian

4
Mods & Plugins (Requests & Discussions) / Re: Upload Limit
« on: February 06, 2006, 06:28:30 PM »
Hi,

versuch mal die Schrägstriche vor beiden Zeilen wegzumachen..
könnte klappen  :D

Gruß

5
Mods & Plugins (Requests & Discussions) / Re: [addon] DREAMBOARD V 2.1
« on: January 21, 2006, 12:28:47 PM »
Hi,

i think its no a thread problem. It only happens in replys.
I think it must be in this code section (I modified it..):

Code: [Select]
}elseif ($action == "qu") {
        $thread = mysql_query ("SELECT thrtopic,thrid,thrtext,thrstarter FROM ".BOARD_TCONT_TABLE." WHERE thrid='$threadid' AND thrforid='$bid'");
        while ($row = mysql_fetch_array($thread)) {
            $thrid = $row['thrid'];
$thrtopic = $row['thrtopic'];
$thrtext = format_boardtext($row['thrtext'], $boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
$thrstarter = $row['thrstarter'];       
 $subject_form = "RE :".$thrtopic.""; 
 $reply = "";
 
  $hans = mysql_query ("SELECT repuser,reptext FROM egly_boardtrep WHERE repthrid='$thrid'");
while ($row = mysql_fetch_array($hans)) {
$replier = $row['repuser'];
$replytext = format_boardtext($row['reptext'], $boardconfig['html_board'], $boardconfig['wordwrap_board'], $boardconfig['bb_board'], $boardconfig['bb_image_board'],1);
 $replyspicker .="<table width=\"700\" border=\"0\" align=\"center\" cellpadding=\"4\" cellspacing=\"0\" class=\"threadspicker\">\n";
 $replyspicker .="<tr>\n";
 $replyspicker .="<td width=\"150\" valign=\"top\"><b>$replier</b> schrieb: </td>\n";
 $replyspicker .="<td>\n";
 $replyspicker .="<p>$replytext</p></td>\n";
 $replyspicker .="</tr>\n";
 $replyspicker .="</table>\n";
 $replyspicker .="<br>\n";
  };





  }

  }
     $forums = mysql_query ("SELECT board_id,board_catid,board_name,board_moderator_id,auth_reply FROM ".BOARD_TABLE." WHERE board_id ='$bid' ");
     while ($row = mysql_fetch_array($forums)) {
         $board_id = $row['board_id'];
         $board_catid = $row['board_catid'];
         $board_name = $row['board_name'];
$board_moderator_id = $row['board_moderator_id'];
$auth_reply = $row['auth_reply'];
     }
   if ( (empty($threadid) || $threadid < 0  ||   $bid < 0  )) {
   $error_board = $lang['board_badrequest'];
    }
  if ($error_board) {
  $main_template = "board";
  include(ROOT_PATH.'includes/page_header.php');
  show_error_board($error_board);

                  }
       $subject_form .= $headline ;
       $categories = mysql_query ("SELECT catid,catname FROM ".BOARD_CAT_TABLE." WHERE catid ='$board_catid'");
       while ($row = mysql_fetch_array($categories)) {
         $catid = $row['catid'];
         $catname = $row['catname'];
                                                    }
  $txt_clickstream = "<a href=\"board.php\">".$boardconfig['board_name']."</a>".$config['category_separator']."<a href=\"showboard.php?bid=$board_id\">$board_name</a>".$config['category_separator']."<a href=\"showthread.php?bid=$board_id&threadid=$threadid\"> $subject_form</a>".$config['category_separator']."".$lang['new_reply']."";

  if ( $user_info['user_level'] < $auth_reply   ){

    $iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\"  border=\"0\"> ";
    $msg = $lang['board_register'];
$txt_clickstream = "".$lang['board_badrequest']."";
    $content ="";
    $redirectpage="<meta http-equiv=refresh content=\"11; url=board.php \">"; }
 else {
if ($user_info['user_level'] == GUEST || $user_info['user_level'] == USER_AWAITING) {
   $sender_name = "<input name=\"username_form\" maxlength=\"15\" type=\"text\" class=\"inputarea\" id=\"username_form\"  size=\"50\">";
   $sender_id = GUEST ;
       }else {
   $sender_name = ($user_info['user_level'] != GUEST) ? $user_info['user_name'] : "";
   $sender_id = ($user_info['user_id'] != GUEST) ? $user_info['user_id'] : "";
   $sender_email = ($user_info['user_level'] != GUEST) ? $user_info['user_email'] : "";
   $sender_name_hidden = "<input type=\"hidden\" name=\"username_form\" value=\"$sender_name\">";
    }
 if ($boardconfig['bb_board'] == 1 ) {
    $site_template->register_vars(array(
  "smiles" => $smiles,
      "lang_bbcode" => $lang['bbcode'],
      "lang_tag_prompt" => $lang['tag_prompt'],
      "lang_link_text_prompt" => $lang['link_text_prompt'],
      "lang_link_url_prompt" => $lang['link_url_prompt'],
      "lang_link_email_prompt" => $lang['link_email_prompt'],
      "lang_list_type_prompt" => $lang['list_type_prompt'],
      "lang_list_item_prompt" => $lang['list_item_prompt']
    ));
    $bbcode = $site_template->parse_template("bbcodeboard");
  }

 
$site_template->register_vars(array(
  "sender_name_hidden" =>$sender_name_hidden,
  "lang_name" => $lang['name'],
  "lang_subject" => $lang['subject'],
  "lang_massage" => $lang['massage'],
  "lang_post_reply" => $lang['post_reply'],
  "threadid" =>$threadid,
  "board_id" => $board_id,
  "showtopic" => $showtopic,
  "replyquote" =>$editpost,
  "subject" =>$subject_form,
  "reply" =>$reply,
  "sender_id" => $sender_id,
  "bbcode" => $bbcode,
  "sender_name" => $sender_name,
  "thrtext" => $thrtext,
  "thrstarter" => $thrstarter,
  "replyspicker" => $replyspicker,
  "replier" => $replier,
  "replytext" => $replytext
 
));
$content = $site_template->parse_template("boardform_reply");


$error = 0;
if ($action == "post_reply") {

  $reply= (isset($HTTP_POST_VARS['message_form'])) ? un_htmlspecialchars(trim($HTTP_POST_VARS['message_form'])) : "";
$user_name_field = get_user_table_field("", "user_name");
    if (!empty($user_name_field)) {
      if ($site_db->not_empty("SELECT $user_name_field FROM ".USERS_TABLE." WHERE $user_name_field = '".strtolower($username_form)."' AND ".get_user_table_field("", "user_id")." <> '".$user_info['user_id']."'")) {
        $msg .= (($msg != "") ? "<br />" : "").$lang['username_exists'];
        $error = 1;
      }
    }
      if ($username_form == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['name_required'];
      $error = 1;
    }
      if ($subject_form == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['subject_required'];
      $error = 1;
    }
      if ($message_form == "")  {
      $msg .= (($msg != "") ? "<br />" : "").$lang['massage_required'];
      $error = 1;
    }
          if ($error)  {
  $iconmsg="<img src=\"".TEMPLATE_PATH."/board_images/danger.gif\"  border=\"0\"> ";
      $txt_clickstream = "<a href=\"board.php\">".$boardconfig['board_name']."</a>".$config['category_separator']."".$lang['error_proses']."";
    }
     if (!$error)  { 

           $dbdate = time();   
        mysql_query ("UPDATE ".BOARD_TABLE." SET board_posts=board_posts+1, board_lastpost_id='$threadid', board_lastpost_user='$username_form', board_lastpost_date='$dbdate' WHERE board_id = '$bid'");
        mysql_query ("UPDATE ".BOARD_TINDEX_TABLE." SET thrreplies=thrreplies+1, thrlastpost_id='$userid', thrlastpost_user='$username_form', thrlastpost_date='$dbdate' WHERE thrid = '$threadid'");
        mysql_query ("INSERT INTO ".BOARD_TREP_TABLE." (repthrid,repforid,reptopic,repuser,repuser_id,reptext,repdate,repposterip) VALUES ('$threadid','$bid','$subject_form','$username_form','$sender_id','$message_form','$dbdate','$REMOTE_ADDR')");
        mysql_query ("UPDATE ".USERS_TABLE." SET user_posts=user_posts+1 WHERE user_name = '$username_form'");
        mysql_query ("UPDATE ".BOARD_STAT_TABLE." SET totalposts=totalposts+1");
       
$reply_page = $boardconfig['posts_perpage'];
             $thread_rep = mysql_query ("SELECT * FROM ".BOARD_TREP_TABLE." WHERE repthrid ='$threadid'");
             $total_reply = mysql_numrows ($thread_rep);
$getlastpage = ceil($total_reply / $reply_page);

mysql_query ("UPDATE ".BOARD_TABLE." SET board_lastpost_page='$getlastpage' WHERE board_id = '$bid'");
mysql_query ("UPDATE ".BOARD_TINDEX_TABLE."  SET thrlastpost_page='$getlastpage' WHERE thrid = '$threadid'");


$sql = "SELECT board_name, board_moderator, board_moderator_email, board_mod_emailpost FROM ".BOARD_TABLE."  WHERE board_id = '$bid'";
        $result = $site_db->query($sql);
        $num_rows = $site_db->get_numrows($result);
        $row = array();
        while ($row = $site_db->fetch_array($result)) {
$board_id = $row['board_id'];
        $board_name = $row['board_name'];
    $board_moderator = $row['board_moderator'];
$board_moderator_email = $row['board_moderator_email'];
$board_mod_emailpost  = $row['board_mod_emailpost'];
        }
   $site_db->free_result($result);
   
 //////////////////////////////////////////
 ////////////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 = "Antwort@Fotostube.net";            //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 = "Antwort@Fotostube.net";            // 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///////////
 ////////////////////////////////////////// 
       
 if ($board_mod_emailpost == 1) {
        // send email to moderator of this forum
$post_url=$script_url."/showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage";
$site_email = new Email();
        $site_email->set_from($sender_email, $username_form);
        $site_email->set_to($board_moderator_email);
        $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 { // email not send

}
$txt_clickstream = "<a href=\"board.php\">".$boardconfig['board_name']."</a>".$config['category_separator']."".$lang['redirect_msg']."";
        $redirectpage = "<meta http-equiv=refresh content=\"3; url=showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage#last \">";
             $content ="";
$msg= "<br><center>".$lang['redirect_msg']." <br> <a href=\"showthread.php?bid=$bid&threadid=$threadid&page=$getlastpage#last\">".$lang['redirect_msglink']." </a></center><br>";
                         }
}
}
}; // end if
$site_template->register_vars(array(
  "content" => $content,
  "reply" => htmlspecialchars(stripslashes($reply)),
  "threadid" =>$threadid,
  "board_id" => $board_id,
  "msg" => $msg,
  "iconmsg" => $iconmsg,
  "lang_info" => $lang['board_langinfo'],
  "clickstream" => $clickstream
 
));
$boardcontent = $site_template->parse_template("boardcontent");


It only happens sometimes...

6
Mods & Plugins (Requests & Discussions) / Re: [addon] DREAMBOARD V 2.1
« on: January 20, 2006, 05:37:56 PM »
Hi Guys!

Big BIG Problem!!

I really like this board, but now i have a big Problem myself...

Sometimes if users post threads or write replys and i want to watch them it shows me this error:

"This topic does not exist"

It is not saved in my database too...

Hey guys!

A few days ago i had this error above.

I think it is the best thing if i describe it in an example.

I´m writing a thread whos id is 105. Then i write one more topic and its id is 106.
Now i delete the last topic (id 106) and post a new one.
Its id normally is 107.
If i want to open it the link from the board points to the thread with the id 106 although it should point to 107  and it gives me the error "Topic does not exist."

Does anybody know where the topics are counted or how i can fix this??

I fixed it with adding some "blind threads" that the counts are allright, but if someone deletes one topic it doesnt work any more...

plz help!!!

7
Mods & Plugins (Releases & Support) / Re: Small Credit "System" "MOD"
« on: January 19, 2006, 06:51:48 PM »
Das in die member.php einbinden is nicht einmal so dumm...
Ich glaub das werd ich auch machen!
Wenns soweit ist, werd ich diesen Thread auch updaten.
Zurzeit sind leider Prüfungen anner FH angesagt...  :roll:

Das mit den 138.12 uploads find ich gut  :)

wie is denn deine hp dosensteck?

8
Mods & Plugins (Requests & Discussions) / Re: [addon] DREAMBOARD V 2.1
« on: January 04, 2006, 05:10:34 PM »
Hi Guys!

Big BIG Problem!!

I really like this board, but now i have a big Problem myself...

Sometimes if users post threads or write replys and i want to watch them it shows me this error:

"This topic does not exist"

It is not saved in my database too...

9
Mods & Plugins (Requests & Discussions) / Re: Upload Limit
« on: December 31, 2005, 09:53:59 AM »
Jo, das ist standardmäßig so eingestellt, es geht aber auch dass du ein tägliches Limit hast.
Bei mir läufts schon seit geraumer Zeit so.

Also wenn du es installiert hast müsstest du in deiner member.php folgenden code haben:

Code: [Select]
if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_picture_limit($user_id))) {
// if ($cat_id != 0 && (!isset($cat_cache[$cat_id]) || !check_daily_picture_limit($user_id))) {

Die beiden Zeilen sind die ausschlaggebenden.
Mach die beiden Schrägstriche vor der zweiten Zeile weg und mach sie vor die erste und du hast ein tägliches Limit.

Thats it.

greets Bastian

11
ok now i have implemented it and it works nearly great!

My only problem is, that i dont have (in the emails):

- no link to user profile (doesnt work)
- Customer ID and Adress
- Delivery Adress
- Payment Method


Where could the mistake be?

Great MOD!!

greets Bastian

12
Oh yes, i see..

But on party-cam.org?

13
thx Mawenzi!

Is the shop on rustynet this mod?

14
Hi,

i want to use this mod, but the download link doesnt work any more...

greets, Bastian

15
Mods & Plugins (Requests & Discussions) / Re: [addon] DREAMBOARD V 2.1
« on: November 13, 2005, 08:35:13 AM »
Hi Jens,

no, it hasnt a mail function, but if you want it anyway do as follows:

open boardreply.php and find:

Code: [Select]
$sql = "SELECT board_name, board_moderator, board_moderator_email, board_mod_emailpost FROM ".BOARD_TABLE."  WHERE board_id = '$bid'";
        $result = $site_db->query($sql);
        $num_rows = $site_db->get_numrows($result);
        $row = array();
        while ($row = $site_db->fetch_array($result)) {
$board_id = $row['board_id'];
        $board_name = $row['board_name'];
    $board_moderator = $row['board_moderator'];
$board_moderator_email = $row['board_moderator_email'];
$board_mod_emailpost  = $row['board_mod_emailpost'];
        }
   $site_db->free_result($result);

insert below:

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 = "xyz@xyz.com";            //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 = "xyz@xyz.com";            // 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///////////
 ////////////////////////////////////////// 

I commented two lines, where you have to insert your email Adress.
It should work, im using it for a while now.

2. Question:  The board uses another .css file
this file is in: /templates/<your template>/board_images/board_style.css


Greez Egly

Pages: [1] 2 3 4 5