• [MOD] PMv2 Tutorial Republished here 5 0 5 1
Currently:  

Author Topic: [MOD] PMv2 Tutorial Republished here  (Read 771155 times)

0 Members and 4 Guests are viewing this topic.

Offline Zyga

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #150 on: November 13, 2005, 03:35:13 PM »
complete code ?

how many lines ?
parse error is only in one

I paste this line 2 posts ago and mark with ----319----[/li]

 :|

edit: sorry for my incompetence I setup this gallery yesterday and its magic for me (problem was between monitor and chair)

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] PMv2 Tutorial Republished here
« Reply #151 on: November 13, 2005, 03:47:31 PM »
is my request so hard to understand?  :roll:

then please redo step 12...

Offline master-crown

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #152 on: November 24, 2005, 01:36:17 PM »
Hallo an alle,

habe ein Problem und zwar die smilies werden nicht angezeigt!!!!
da kommt wenn man einen neue nachricht schreiben will unten lauter :) ;( *pig* ...... mit einem Roten stern.
Geuploadet habe ich schon smiles in /default/smiles rechte auf cdmod 777.
Ich che´cke aber nicht den step 6.2 welche smiles muss ich den da uncomment(unkommentiert) machen habe einfach den quelltext der darunter steht in die funktion.php eingebaut vor dem ?>.

Woran kann das liegen ?

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] PMv2 Tutorial Republished here
« Reply #153 on: November 24, 2005, 01:41:21 PM »
der hinweis mit dem auskommentieren gilt nur wenn du den simlies Mod installiert hast...

Offline master-crown

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #154 on: November 24, 2005, 02:03:15 PM »
welchen den smilies mod ??? ne habe ich nicht. woher krieg ich den? brauch ich den?
was habe ich dann falsch wenn ich den mod nicht brauch. es funktioniert alles nur die smilies nicht. wohin muss ich die bbcode.js ?
hat die was mit den smilies zu tun ?

gruß
kalle

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [MOD] PMv2 Tutorial Republished here
« Reply #155 on: November 24, 2005, 02:11:15 PM »
`nein aber das auskommentieren muss nur geacht werden wenn man den Smilies Mod eingebaut hat, das kannste also getrost wieder vergessen... (o:

Was jetzt genau flasch ist kann ich dir so nicht sagen, kann man dassich mal live anschauen?

Offline master-crown

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #156 on: November 24, 2005, 02:19:18 PM »
schau deine PM

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #157 on: December 04, 2005, 12:45:26 PM »
Hi @ all

I just installed this MOD and earned a lot of errors.... I have no idea, what to do!  8O

The circumstances: I've installed the following MOD's (they all are working):
http://www.4homepages.de/forum/index.php?topic=5142.0    (News...)
http://www.4homepages.de/forum/index.php?topic=7409.0    (Guestbook...)
http://www.4homepages.de/forum/index.php?topic=7066.0    (Ban...)
http://www.4homepages.de/forum/index.php?topic=8987.0    (Contact...)

the First error is on my index.php:  http://web72.login-22.hoststar.ch/home/
the second error ist on my guestbook.php:  http://web72.login-22.hoststar.ch/home/guestbook.php
and last but not least the third error on my pm.php:  http://web72.login-22.hoststar.ch/home/pm.php             (Username: Test, PW: test; if i will write a new message....)

In addition to this I have a problem with the smilies ( I want to install the following MOD after the PM-MOD:  http://www.4homepages.de/forum/index.php?topic=10168.0), but frist of all, I want  the PM-MOD running....

Thanks guys for helping me....      so I can learn something  :D

PS: I haven't done step 6.2... and iI'm using v1.7.1!

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #158 on: December 04, 2005, 02:26:37 PM »
The code of the index.php:

Code: [Select]
// This is the Paging stuff
 if ($newstype == "latestnewsall") {
     
   include(ROOT_PATH.'includes/paging.php');
   $perpage = $show_news_articles_archive;
   $link_arg = $site_sess->url(ROOT_PATH."index.php?newstype=latestnewsall");
   $getpaging = new Paging($page, $perpage, $num_rows, $link_arg);
   $offset = $getpaging->get_offset();

   $site_template->register_vars(array(
     "paging" => $getpaging->get_paging(),
     "paging_stats" => $getpaging->get_paging_stats()
   ));
   
   $sql = "SELECT c.comment_headline, c.comment_text, c.comment_date, c.image_id
           FROM ".COMMENTS_TABLE." c
           WHERE ".$additional_sql."
           ORDER BY c.comment_date DESC" .$additional_sql_2." 
           LIMIT $offset, $perpage";

         $result = $site_db->query($sql);
         $num_rows = $site_db->get_numrows($result);
         $news_comment_row = array();
         
     while ($row = $site_db->fetch_array($result)) {
           $news_comment_row[] = $row;
         }
 }

 if (!$num_rows) {
     $news_comments = "&nbsp;&nbsp;&nbsp;<b>No New News to report within the last ".$latest_news_days." days.</b>";
 }
 else {
     $news_comments = "";
     $bgcounter = 0;

   for ($i = 0; $i < $num_rows; $i++) {
       $row_bg_number = ($bgcounter++ % 2 == 0) ? 1 : 2;

       $site_template->register_vars(array(
           "news_comment_headline" => format_text($news_comment_row[$i]['comment_headline'], 0, $config['wordwrap_comments'], 0, 0),                             <--- this is line 261
           "news_comment_text" => format_text($news_comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
           "news_comment_date" => format_date($config['date_format']." ".$config['time_format'], $news_comment_row[$i]['comment_date']),
           "row_bg_number" => $row_bg_number));

       $news_comments .= $site_template->parse_template("news_comment_bit");
   }

 }
 $site_template->register_vars("news_comments", $news_comments);
 unset($news_comments);



An the code of the guestbook.php:

Code: [Select]
            $admin_links .= "<a href=\"".$site_sess->url(ROOT_PATH."guestbook.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id'])."\" target=\"admin_edit\">".$lang['delete']."</a>";
         } elseif ($comment_row[$i]['comment_ip'] == $session_info['session_ip']) { // if ip equals, permit to edit
            $admin_links .= ($config['user_edit_guestbook'] != 1) ? "" :
                          "<a href=\"".$site_sess->url(ROOT_PATH."guestbook.php?action=editcomment&amp;comment_id=".$comment_row[$i]['comment_id'])."\" target=\"admin_edit\">".$lang['edit']."</a>&nbsp;";
            $admin_links .= ($config['user_delete_guestbook'] != 1) ? "" :
                          "<a href=\"".$site_sess->url(ROOT_PATH."guestbook.php?action=removecomment&amp;comment_id=".$comment_row[$i]['comment_id'])."\" target=\"admin_edit\">".$lang['delete']."</a>";
         }
         $site_template->register_vars(array(
            "comment_id" => $comment_row[$i]['comment_id'],
            "comment_user_name" => $comment_user_name,
            "comment_user_ip" => $comment_user_ip,
            "comment_site" => format_text($comment_row[$i]['comment_site'], 0, $config['wordwrap_comments'], 0, 0),             <-- this is line 331
            "comment_text" => format_text($comment_row[$i]['comment_text'], $config['html_comments'], $config['wordwrap_comments'], $config['bb_comments'], $config['bb_img_comments']),
            "comment_date" => format_date($config['date_format']." ".$config['time_format'], $comment_row[$i]['comment_date']),
            "row_bg_number" => $row_bg_number,
            "admin_links" => $admin_links,
         ));
            $comments .= $site_template->parse_template("guestbook_comment_bit");
         
      } // end for
   } else {
      $comments = $lang['be_the_first'];
   }
   //---End Show Guestbook Comments----


And the code of the pm.php:

Code: [Select]
$bbcode_form = "";
  if ($config['pm_bbcode']) {
    $bbc_help = "";
    foreach ($lang['bbc_help'] as $key => $val) {
      $bbc_help .= $key."_help = \"".$val."\";\n";
    }
    $site_template->register_vars(array(
      "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'],
      "lang_close_tags" => $lang['close_tags'],
      "lang_all" => $lang['all'],
      "smiles_text" => get_smiles_text(),                   <-- this is line 427
      "bbc_help" => $bbc_help
    ));
    $bbcode_form = $site_template->parse_template(BBCODE);
  }

  :(  Please help me guys.....

Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #159 on: December 04, 2005, 02:39:36 PM »
Ok, the first 2 errors on index.php and on guestbook.php are, because the changes in the includes/function.php, but I don't know, what changes!??? I only recognize that the function.php is the problem. What can I do with that function.php, so that no more problems with my MODs wil arrive....???
The third error is, because the smiles-function. When I installed the guestbook, I had a similar error, but now I can't delete the line (...a lot more errors)...!???

 :?: :?: :?:

Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: [MOD] PMv2 Tutorial Republished here
« Reply #160 on: December 04, 2005, 06:41:04 PM »
When i compose a new PM i get an error:

Warning: Invalid argument supplied for foreach() in /home/www/web46/html/album/pm.php on line 414

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #161 on: December 04, 2005, 06:44:20 PM »
redo Step 3
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Toso

  • Jr. Member
  • **
  • Posts: 65
    • View Profile
    • Lachs & Leder
Re: [MOD] PMv2 Tutorial Republished here
« Reply #162 on: December 04, 2005, 06:51:31 PM »
Thats it. 

THX :mrgreen:


Offline Olphi

  • Full Member
  • ***
  • Posts: 101
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #163 on: December 04, 2005, 06:57:05 PM »
What can I do  :?: :?: :?:

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #164 on: December 04, 2005, 07:06:26 PM »
What can I do :?: :?: :?:
First quote the exact error messages instead of showing links to the pages with errors. Then we'll see what we can do about it ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)