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

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

0 Members and 1 Guest are viewing this topic.

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] PMv2 Tutorial Republished here
« Reply #225 on: February 21, 2006, 08:53:12 PM »
Danke Icecream!Es hat super funktioniert.
nur mein Problem mit dem Einloggen ist leider nach wie vor da :(
Keine ahnung woran das liegt.
ich habs jetzt einfach so geändert, dass man als "uneingeloggter" garnicht den link anklicken kann "privat nachricht schreiben"

Danke vielmals!

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] PMv2 Tutorial Republished here
« Reply #226 on: February 21, 2006, 09:14:03 PM »
So, i just dont understand, is tyhere a MOD for the userpic in the PMS, if yes, where is it, if no, is it hard to code it ? It would be a very nice feature.

To get userpic next to Name Modifiaction

In pm.php

Search for
Code: [Select]
<td>".$bstart."<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['user_id'])."\">".$row['user_name']."</a>".$bend."</td>
and replace with
Code: [Select]
<td>".$bstart."<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['user_id'])."\">".$row['user_name']."</a>".$bend." ".$userpic_img."</td>
         

Search for
Code: [Select]
$msg_list .= "<tr class=\"row".(($bgcounter++ % 2 == 0) ? 1 : 2)."\" align=\"center\">
and insert above
Code: [Select]
      $userpic_img = ($config['userpic'] && $row['userpic']) ? "<img src=\"./data/userpic/".$row['userpic']."\">" : "";
@glitzer: Das mit der Weiterleitung hab ich mir noch nicht genauer angeschaut,
aber da scheint sowieso noch nen anderer Fehler drin zu sein.
« Last Edit: February 21, 2006, 11:16:47 PM by IcEcReaM »
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] PMv2 Tutorial Republished here
« Reply #227 on: February 21, 2006, 09:19:05 PM »
@glitzer: Das mit der Weiterleitung hab ich mir noch nicht genauer angeschaut,
aber da scheint sowieso noch nen anderer Fehler drin zu sein.

Auweia sowas les ich nicht gern :-(
Es funzt aber sonst alles bei mir einwandfrei..bin sonst noch auf keinen Fehler draufgekommen ausser das mit dem Problem als uneinloggter "Private Nachricht senden" ding..


Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] PMv2 Tutorial Republished here
« Reply #228 on: February 21, 2006, 11:03:04 PM »
THANKS IcEcReaM, that works just fine. Just a little addition (yes, you coded that too ;) ) :

For showing userpics with fixed widht, and a picture for users without userpic called "nouserpic.jpg" change

Code: [Select]
<td>".$bstart."<a href=\"".$site_sess->url(ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['user_id'])."\">".$row['user_name']."</a>".$bend." ".$userpic_img."</td>
with

Code: [Select]
$userpic_img = ($config['userpic'] && (@file_exists(ROOT_PATH."data/userpic/".$row['userpic'])) && $row['userpic']) ? "<img src=\"".ROOT_PATH."data/userpic/".$row['userpic']."\" width=\"100".$userpic_width."\">" : "<img src=\"".get_gallery_image("nouserpic.jpg")."\" width=\"100".$userpic_width."\">";
and add a picture named "nouserpic.jpg" into your default images folder. Change the width in the line for your design. Line originally coded buy IcEcReaM too ;)
« Last Edit: February 22, 2006, 12:34:39 AM by trez »

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Re: [MOD] PMv2 Tutorial Republished here
« Reply #229 on: February 21, 2006, 11:10:59 PM »
@glitzer:

Jop, das meine ich ja, das mit der Weiterleitung.

Meinte nur, dass sich der Fehler noch auf andere Weise reprouzieren lässt,
aber auf der gleichen Ursache beruht.

Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] PMv2 Tutorial Republished here
« Reply #230 on: February 22, 2006, 11:03:51 AM »
der fehler ist aber erst durch das PM aufgefallen sonst noch nie!

NOch eine Frage, kann man das irgendwie machen,d ass man statt einen Newsletter per mail eine PM an alle mitglieder schickt?

Liebe Grüße
Alexx

Offline Loda

  • Sr. Member
  • ****
  • Posts: 353
    • View Profile
    • Fotosucht Schweiz
Re: [MOD] PMv2 Tutorial Republished here
« Reply #231 on: February 22, 2006, 11:16:46 AM »
ja!
schau mal hier:
http://www.4homepages.de/forum/index.php?topic=6732.0
vielleicht findest du da die lösung

Offline glitzer

  • Full Member
  • ***
  • Posts: 204
    • View Profile
    • over 7000 E-Cards
Re: [MOD] PMv2 Tutorial Republished here
« Reply #232 on: February 22, 2006, 03:38:40 PM »
Funktioniert super! Danke Loda!
Dachte das ist nur für das alte PM System, aber fürs neue funzt es auch einwandfrei!

Danke + Liebe Grüße,
Alexxandra

Offline trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] PMv2 Tutorial Republished here
« Reply #233 on: March 12, 2006, 04:18:09 PM »
what have i to change, to show ALL the smileys directly above the bbcode2 tags (i dont want to use the open-window function)\

i tried to include the smeles.php via "iframe", but it dont "put" the smileys in the textbox, even if i point the iframe to "_4imagessmiles" as a target  :|

edit: I hope someone call tell me what i have to change, to make it look that way:


comments:



PM:




please advise

thanks

georgi
« Last Edit: March 12, 2006, 04:32:25 PM by trez »

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 #234 on: March 12, 2006, 09:24:33 PM »
Simply move the {smiles_text} in the same column where {lang_comment} and {lang_message} is.
There are two things also will needed:
1) that column must have static width set ( width="90" )
2) also must have rowspan="3"

this is the column from my pm_new.html template:
Code: [Select]
                  <td width="90" valign="top" rowspan="2"><b>{lang_message}</b>{if bbcode}<br /><br />
                    <span onMouseOver="helpline('sm')">
                      {smiles_text}&nbsp;<a href="smiles.php" onclick="window.open('smiles.php', '_4imagessmilies', 'resizable=yes,scrollbars=yes,WIDTH=325, HEIGHT=410');return false;" target="_4imagessmilies">{lang_all}</a>
                    </span>{endif bbcode}
                  </td>
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 trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] PMv2 Tutorial Republished here
« Reply #235 on: March 12, 2006, 10:40:33 PM »
just something ... i dont have the "{smiles_text}" anywhere, and i dont changed the original files ?!?
PS: The second question is, what i have to do to show ALL emocions on the left side?

thanks for your support, here my comment_form and my new_pm:


comment_form:
Code: [Select]
<table width="100%" border="0" cellspacing="0" cellpadding="1" align="center">
  <tr>
    <td valign="top" class="cl_none">
      <table width="100%" border="0" cellpadding="3" cellspacing="0">
        <tr>
          <td height="20" valign="middle" class="com1">{lang_post_comment}</td>
        </tr>
        <tr>
          <td valign="top" class="head2clubsmain2">
            <form name="commentform" action="{self}" method="post" onsubmit="postbutton.disabled=true;">
              <table cellpadding="4" cellspacing="0" border="0">
                <tr>
                  <td width="90"><b>{lang_name}</b></td>
                  <td><input type="text" name="user_name" size="30" value="{user_name}" class="commentinput" /></td>
                </tr>
                <tr>
                  <td width="90"><b>{lang_headline}</b></td>
                  <td><input type="text" name="comment_headline" size="30" value="{comment_headline}" class="commentinput" /></td>
                </tr>
                <tr>
                  <td width="140" valign="top"><b>{lang_comment}</b>






</td>
                  <td><textarea name="comment_text" cols="35" rows="10" class="commenttextarea">{comment_text}</textarea></td>
                </tr>
                <tr>
                  <td width="90" valign="top">&nbsp;</td>
                  <td>{bbcode}</td>
                </tr>
                <tr>
                  <td width="90" valign="top">&nbsp;</td>
                  <td>
                    <input type="hidden" name="action" value="postcomment" />
                    <input type="hidden" name="id" value="{image_id}" />
                    <input type="submit" name="postbutton" value="{lang_post_comment}" class="button" />
                  </td>
                </tr>
              </table>
            </form>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

new_pm:
Code: [Select]
{preview}
<table border="0" cellspacing="0" cellpadding="0" class="bordercolor" align="center">
  <form name="postform" method="post" action="{self}" onSubmit="submit.disabled=true; preview.disabled=true; return checkForm(this);" />
    <tr>
      <td valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="1">
          <tr>
            <td class="row1">
  <table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="90">{lang_to}</td>
<td>
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td align="left">
          <input type="text" class="finduser" name="username" maxlength="25" size="10" value="{username}" />&nbsp;
        </td>
        <td align="left">
          <input type="submit" name="finduser" value="{lang_finduser}" class="button" onClick="window.open('{url_finduser}&username='+username.value, '_pmfinduser', 'HEIGHT=170,resizable=yes,WIDTH=320');return false;" />
        </td>
      </tr>
{if username_list}
                      <tr>
                        <td colspan="2">
                  <select name="user_id" class="select" onChange="if (this.options[this.selectedIndex].value != 0){ username.value=this.options[this.selectedIndex].text; }">
                  {username_list}
                  </select>&nbsp;*
                    </td>
                  </tr>
{endif username_list}
    </table>
</td>
</tr>
<tr>
<td>{lang_subject}</td>
<td><input type="text" name="subject" value="{subject}" size="40" class="commentinput" /></td>
</tr>
<tr>
<td valign="top">{lang_message}</td>
<td>
                    <textarea name="message" cols="35" rows="10" class="commenttextarea" wrap="virtual" {if bbcode2}onSelect="storeCaret(this);" onClick="storeCaret(this);" onKeyUp="storeCaret(this);"{endif bbcode2} />{message}</textarea>
</td>
</tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>{bbcode}</td>
                </tr>
<tr>
<td>&nbsp;</td>
<td>
                    {if lang_html}<input type="checkbox" name="html" value="1"{html_select}>&nbsp;{lang_html}<br />{endif lang_html}
                    {if lang_bbcode}<input type="checkbox" name="bbcode" value="1"{bbcode_select}>&nbsp;{lang_bbcode}<br />{endif lang_bbcode}
                    <input type="checkbox" name="smiles" value="1"{smiles_select}>&nbsp;{lang_smiles}<br />
</td>
</tr>
<input type="hidden" name="action" value="send" />
<input type="hidden" name="reply" value="{reply}" />
<input type="hidden" name="edit" value="{edit}" />
<input type="hidden" name="id" value="{id}" />
<tr>
<td width="100%" colspan="2" align="center">
<table>
<tr>
<td width="50%" align="right"><input type="submit" name="preview" value=" {lang_preview} " onClick="action.value='preview';" class="button" /></td>
<td width="50%" align="left"><input type="submit" name="submit" value=" {lang_send} " class="button" /></td>
</tr>
</table>
</td>
</tr>
{if username_list}
<tr>
  <td colspan="2">&nbsp;* {lang_user_id_priority}</td>
</tr>
{endif username_list}
  </table>
  </td>
          </tr>
        </table>
      </td>
    </tr>
  </form>
</table>

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 #236 on: March 12, 2006, 11:11:39 PM »
Its in bbcode.html template
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 trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] PMv2 Tutorial Republished here
« Reply #237 on: March 13, 2006, 12:08:50 AM »
it works now - but i still didnt know how to show all smileys, instead of open a new window

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 #238 on: March 13, 2006, 12:32:33 AM »
change the number in includes/functions.php[qcode]            if ($i > 18) {[/qcode]
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 trez

  • Hero Member
  • *****
  • Posts: 613
    • View Profile
    • blog / photography
Re: [MOD] PMv2 Tutorial Republished here
« Reply #239 on: March 13, 2006, 12:43:25 AM »
yes, works perfectly now, thanks.