4images Modifications / Modifikationen > Mods & Plugins (Releases & Support)

Smileys/Smilies/Smiles after PMv2 installation in guestbook & image discription

<< < (2/3) > >>

Olphi:

--- Quote from: Flo2005 on December 26, 2005, 03:35:41 PM ---What kind of MOD´s have you allready installed :?:

--- End quote ---

A lot, but i think the relevant are the guestbook, the pmv2 and the contact mod...

The smilies are no problem with the pmv2, but I can't see them in the guestbook and in the details.html.... If I insert the code I'm going to see them after posting!

 :?: :?: :?:


PS: Don't know if it's important, but I have to delete the get smiles function in the guestbook mod, because I've always got an error...   --->  http://www.4homepages.de/forum/index.php?topic=7409.0


--- Code: ---tikle wrote:
Fatal error: Call to undefined function: get_smiles_text() in /home/www/web22/html/foto/guestbook.php on line 362

Remove this line in guestbook.php

Code:
"smiles_text" => get_smiles_text(),




--- End code ---

Flo2005:
PM2 use his own bbcode (bbcode2.html)

I use for comments & guestbook bbcode.html

Have you changed {bbcode} tag ? e.g. in guestbook_form.html

Olphi:

--- Quote from: Flo2005 on December 26, 2005, 03:55:51 PM ---PM2 use his own bbcode (bbcode2.html)

I use for comments & guestbook bbcode.html

Have you changed {bbcode} tag ? e.g. in guestbook_form.html

--- End quote ---

Yeah, I know this fact, but I haven't changed the bbcode-tag! Should I?

Flo2005:
Mmm no, guestbook mod use normaly {bbcode} tag.

Perhaps something is wrong with your bbcode.html

I post my code from this file

--- Code: ---<br />
<script language="JavaScript" type="text/javascript">
tag_prompt = "{lang_tag_prompt}";

link_text_prompt = "{lang_link_text_prompt}";
link_url_prompt = "{lang_link_url_prompt}";
link_email_prompt = "{lang_link_email_prompt}";

list_type_prompt = "{lang_list_type_prompt}";
list_item_prompt = "{lang_list_item_prompt}";

tags = new Array();

function getarraysize(thearray) {
  for (i = 0; i < thearray.length; i++) {
    if ((thearray[i] == "undefined") || (thearray[i] == "") || (thearray[i] == null)) {
      return i;
    }
  }
  return thearray.length;
}

function arraypush(thearray,value) {
  thearraysize = getarraysize(thearray);
  thearray[thearraysize] = value;
}

function arraypop(thearray) {
  thearraysize = getarraysize(thearray);
  retval = thearray[thearraysize - 1];
  delete thearray[thearraysize - 1];
  return retval;
}

function bbcode(theform,bbcode,prompttext) {
  inserttext = prompt(tag_prompt+"\n["+bbcode+"]xxx[/"+bbcode+"]",prompttext);
  if ((inserttext != null) && (inserttext != "")) {
    theform.comment_text.value += "["+bbcode+"]"+inserttext+"[/"+bbcode+"] ";
    theform.comment_text.focus();
  }
}

function namedlink(theform,thetype) {
  linktext = prompt(link_text_prompt,"");
  var prompttext;
  if (thetype == "URL") {
    prompt_text = link_url_prompt;
    prompt_contents = "http://";
  }
  else {
    prompt_text = link_email_prompt;
    prompt_contents = "";
  }
  linkurl = prompt(prompt_text,prompt_contents);
  if ((linkurl != null) && (linkurl != "")) {
    if ((linktext != null) && (linktext != "")) {
      theform.comment_text.value += "["+thetype+"="+linkurl+"]"+linktext+"[/"+thetype+"] ";
    }
    else {
      theform.comment_text.value += "["+thetype+"]"+linkurl+"[/"+thetype+"] ";
    }
  }
  theform.comment_text.focus();
}

function dolist(theform) {
  listtype = prompt(list_type_prompt, "");
  if ((listtype == "a") || (listtype == "1")) {
    thelist = "[list="+listtype+"]\n";
    listend = "[/list="+listtype+"] ";
  }
  else {
    thelist = "[list]\n";
    listend = "[/list] ";
  }
  listentry = "initial";
  while ((listentry != "") && (listentry != null)) {
    listentry = prompt(list_item_prompt, "");
    if ((listentry != "") && (listentry != null)) {
      thelist = thelist+"[*]"+listentry+"\n";
    }
  }
  theform.comment_text.value += thelist+listend;
  theform.comment_text.focus();
}

// Smilie Mod
function smilie(theform,smiliecode) {
  theform.comment_text.value += smiliecode;
  theform.comment_text.focus();
}
// End Smilie Mod
</script>
<table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td class="head1">
      <table border="0" cellspacing="1" cellpadding="3">
        <tr>
          <td class="head1">{lang_bbcode}</td>
        </tr>
        <tr>
          <td class="row1">
            <input type="button" value=" F " onclick="bbcode(this.form,'B','')" name="button" class="button" />
            <input type="button" value=" K " onclick="bbcode(this.form,'I','')" name="button" class="button" />
            <input type="button" value=" U " onclick="bbcode(this.form,'U','')" name="button" class="button" />
            <input type="button" value="Bild" title="IMG" onclick="bbcode(this.form,'IMG','http://')" name="button" class="button" />
            <input type="button" value="http://" title="URL" onclick="namedlink(this.form,'URL')" name="button" class="button" />
            <input type="button" value="Code" title="CODE" onclick="bbcode(this.form,'code','')" name="button" class="button" />
            <input type="button" value="Liste" title="LIST" onclick="dolist(this.form)" name="button" class="button" />
          </td>
        </tr>
<!-- Smilie Mod -->
        <tr>
          <td class="row2">
            <input type="button" value=" " onClick="smilie(this.form,' :) ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/happy.gif); width: 20px;" />
    <input type="button" value=" " onClick="smilie(this.form,' :)) ')"        name="button" class="smilie" style="background-image: url({template_url}/smiles/very_happy.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :D ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/big_smile.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :O ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/surprised.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' ;) ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/wink.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :( ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/sad.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :*( ')"        name="button" class="smilie" style="background-image: url({template_url}/smiles/very_sad.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :confused: ')" name="button" class="smilie" style="background-image: url({template_url}/smiles/confused.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :shy: ')"      name="button" class="smilie" style="background-image: url({template_url}/smiles/embarrassed.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :vicious: ')"  name="button" class="smilie" style="background-image: url({template_url}/smiles/vicious.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :| ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/undecided.gif); width: 20px;" /><br />
            <input type="button" value=" " onClick="smilie(this.form,' :pig: ')"      name="button" class="smilie" style="background-image: url({template_url}/smiles/pig.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :P ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/tongue.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' B) ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/cool.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :B ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/nerd.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' X( ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/angry.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' :X ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/in_love.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' |) ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/asleep.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' =; ')"         name="button" class="smilie" style="background-image: url({template_url}/smiles/talk_to_hand.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' @};- ' )"      name="button" class="smilie" style="background-image: url({template_url}/smiles/rose.gif); width: 20px;" />
            <input type="button" value=" " onClick="smilie(this.form,' ):) ')"        name="button" class="smilie" style="background-image: url({template_url}/smiles/cowboy.gif); width: 20px;" />
          </td>
        </tr>
        <!-- End Smilie Mod -->
      </table>
    </td>
  </tr>
</table>
<br />
--- End code ---

Note: there´s a little mistake with this smiley :)) it´ll also print this  :) out -> I used the same smilys from the images file of pm2

Olphi:
Thanks...

Now I can see under the buttons a table, but without the smilies, only white squares...

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version