Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 32

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 03.08.2004, 22:57   #1 (permalink)
Junior Mamber
 
Join Date: Apr 2004
Posts: 48
thiemo is on a distinguished road
Lightbulb MosSmilies 2.0 gemeinsam mit AkoComment

Hallo,

damit MosSmilies 2.0 mit AkoComment funktioniert, habe ich die mossmiles.php aus dem Mambot Verzeichnis folgendermaßen verändert (alles rot geschriebene ist selbst dazu programmiert; es ist vielleicht ein wenig Umständlich programmiert, da es meine erste etwas größere php Modifikation ist):

Code:
# Replace the text smilies by associated pictures (from above variables...)
foreach ($botsmiley as $idx=>$botsm) {

# modification if you use ako comment
# for example $idx                    =  :x
#             $idxrot                 =  x:
#             $idxacsm                =  ac_smilie(':x') 
#             $idxacsmc               =  ac_smilie('x:')
#             $idxacti                =  title=':x'
#             $idxactic               =  title='x:'
#             $idxacal                =  ALT=':x'
#             $idxacalc               =  ALT='x:'

   $idxrot = strrev($idx);
   $idxacsm = 'ac_smilie(\'' . $idx . '\')';
   $idxacsmc = 'ac_smilie(\'' . $idxrot . '\')';
   $idxacti = 'title=\'' . $idx . '\'';
   $idxactic = 'title=\'' . $idxrot . '\'';
   $idxacal = 'ALT=\'' . $idx . '\'';
   $idxacalc = 'ALT=\'' . $idxrot . '\'';

   $row->text = str_replace ("$idxacsm", "$idxacsmc", $row->text);
   $row->text = str_replace ("$idxacti", "$idxactic", $row->text);
   $row->text = str_replace ("$idxacal", "$idxacalc", $row->text);
   
   $row->text = str_replace ("$idx", "<IMG src='$mosConfig_live_site/mambots/mossmilies/$botsm' BORDER='0' ALT='$idx' align=\"absmiddle\">", $row->text);

   $row->text = str_replace ("$idxacsmc", "$idxacsm", $row->text);
   $row->text = str_replace ("$idxactic", "$idxacti", $row->text);
   $row->text = str_replace ("$idxacalc", "$idxacal", $row->text);

}
thiemo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 03.08.2004, 23:29   #2 (permalink)
Elite Mamber
 
-peter-'s Avatar
 
Join Date: Apr 2004
Posts: 1,283
-peter- is an unknown quantity at this point
Default Re: MosSmilies 2.0 gemeinsam mit AkoComment

Klasse dafür gibt es einen daumen
-peter- is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 14.08.2004, 19:24   #3 (permalink)
Junior Mamber
 
manolo's Avatar
 
Join Date: Aug 2004
Posts: 45
manolo is on a distinguished road
Default Re: MosSmilies 2.0 gemeinsam mit AkoComment

Hi,

The smillies also mess up email adressess, like: :P = same as: mailto:P
How can i fix that?

Thx!
manolo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.08.2004, 12:22   #4 (permalink)
Junior Mamber
 
Join Date: Apr 2004
Posts: 48
thiemo is on a distinguished road
Default Re: MosSmilies 2.0 gemeinsam mit AkoComment

Hi manolo,

thanks for the hint. This should work. I have tried it on my page.
I'm sorry that my answer is so late.

Code:
# Replace the text smilies by associated pictures (from above variables...)
foreach ($botsmiley as $idx=>$botsm) {
# modification if you use ako comment
# for example $idx                    =  :x
#             $idxrot                 =  x:
#             $idxacsm                =  ac_smilie(':x') 
#             $idxacsmc               =  ac_smilie('x:')
#             $idxacti                =  title=':x'
#             $idxactic               =  title='x:'
#             $idxacal                =  ALT=':x'
#             $idxacalc               =  ALT='x:'

# modification if you use email adress in content
#             $idxcoma                = mailto:x
#             $idxcomac               = mailtox:

   $idxrot = strrev($idx);
   $idxacsm = 'ac_smilie(\'' . $idx . '\')';
   $idxacsmc = 'ac_smilie(\'' . $idxrot . '\')';
   $idxacti = 'title=\'' . $idx . '\'';
   $idxactic = 'title=\'' . $idxrot . '\'';
   $idxacal = 'ALT=\'' . $idx . '\'';
   $idxacalc = 'ALT=\'' . $idxrot . '\'';

   $idxcoma = 'mailto' . $idx;
   $idxcomac = 'mailto' . $idxrot;

   $row->text = str_replace ("$idxacsm", "$idxacsmc", $row->text);
   $row->text = str_replace ("$idxacti", "$idxactic", $row->text);
   $row->text = str_replace ("$idxacal", "$idxacalc", $row->text);
   $row->text = str_replace ("$idxcoma", "$idxcomac", $row->text);

   $row->text = str_replace ("$idx", "<IMG src='$mosConfig_live_site/mambots/mossmilies/$botsm' BORDER='0' ALT='$idx' align=\"absmiddle\">", $row->text);

   $row->text = str_replace ("$idxacsmc", "$idxacsm", $row->text);
   $row->text = str_replace ("$idxactic", "$idxacti", $row->text);
   $row->text = str_replace ("$idxacalc", "$idxacal", $row->text);
   $row->text = str_replace ("$idxcomac", "$idxcoma", $row->text);
}
But there is also a bug in the Akocomment component/mambot. Because when you use the BCode feature for email and you click then in the comment on the email address you will get an error.
I will have a look later on that problem.
thiemo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.08.2004, 12:46   #5 (permalink)
Junior Mamber
 
Join Date: Apr 2004
Posts: 48
thiemo is on a distinguished road
Default Re: MosSmilies 2.0 gemeinsam mit AkoComment

I have also fixed the bug in akocomment use bcode for email.

edit following file:
components/com_akocomment/functions.akocomment.php

Look for following code. (all written in color red is my modification, the rest is original code)
Code:
  # Convert smilies to images
  if ($ac_smiliesupport) {
    foreach ($smiley as $i=>$sm) {

# modification by Thiemo Geisberger(BCode Email click doesn't work)
# for example $i      = :x
#             $irot   = x:
#             $icoma  = mailto:x
#             $icomac = mailtox: 

      $irot = strrev($i);       
      $icoma = 'mailto' . $i;
      $icomac = 'mailto' . $irot;
      
      $message = str_replace ("$icoma", "$icomac", $message);
      $message = str_replace ("$i", "<IMG src='$mosConfig_live_site/components/com_akocomment/images/$sm' BORDER='0' ALT='$i'>", $message);
      $message = str_replace ("$icomac", "$icoma", $message);
    }
  }
  return $message;

Last edited by thiemo; 21.09.2004 at 17:53.
thiemo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12.09.2004, 13:08   #6 (permalink)
Junior Mamber
 
manolo's Avatar
 
Join Date: Aug 2004
Posts: 45
manolo is on a distinguished road
Default Re: MosSmilies 2.0 gemeinsam mit AkoComment

Hey thx,

But uhm, how does the whole file look now, cause with all these modifications, i cant get it to work, is it possible that you can show the whole file that works?

Very nicely done btw !!!

manolo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 12.09.2004, 13:10   #7 (permalink)
Junior Mamber
 
manolo's Avatar
 
Join Date: Aug 2004
Posts: 45
manolo is on a distinguished road
Default Re: MosSmilies 2.0 gemeinsam mit AkoComment

Quote:
Originally Posted by manolo
Hey thx,

But uhm, how does the whole file look now, cause with all these modifications, i cant get it to work, is it possible that you can show the whole file that works?

Very nicely done btw !!!

hmm... sorry, im very stupid, i didnt saw/read correctly i had to edit the akocomment.php file!

manolo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
AkoComment Components -> post new comment box visible under news xylem Component 'How Do I' Questions 9 12.08.2004 10:07
akocomment - deactivation for the print view? crashdummy Component 'How Do I' Questions 4 11.08.2004 17:06
Akocomment - How the...? rickDa Component 'How Do I' Questions 2 30.06.2004 16:03
Akocomment will nicht? CRen Komponenten 1 30.06.2004 02:35
AkoComment 1.0 beta 2 rolf Komponenten 5 23.05.2004 19:53


All times are GMT +2. The time now is 06:25.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.