phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

[DEV] Smiles Creator


 
Search this topic... | Search MOD Development... | Search Box
Register or Login to Post    Index » MOD Development  Previous TopicPrint TopicNext Topic
Author Message
vlad77
Board Member



Joined: 31 May 2015

Posts: 20


flag
PostPosted: Wed Oct 21, 2015 9:14 am 
Post subject: Smiles Creator

Title: Smiles Creator
Author: esperitox, phpbb2_plus, vlad77
Description: Mod allows you to create emoticons with any text. Using: BBCode [schild]text[/schild]
Version: 3.0.0
This version adds support for international characters.



Example.png
 Description:
 Filesize:  6.38 KB
 Viewed:  9233 Time(s)

Example.png



smilie_creator_3.0.1.rar
 Description:
V 3.0.1

Download
 Filename:  smilie_creator_3.0.1.rar
 Filesize:  236.89 KB
 Downloaded:  107 Time(s)


smilie_creator.rar
 Description:
V 3.0.0

Download
 Filename:  smilie_creator.rar
 Filesize:  234.28 KB
 Downloaded:  417 Time(s)

Back to top
Vendethiel
Board Member



Joined: 26 Oct 2014

Posts: 64



PostPosted: Wed Oct 21, 2015 10:06 am 
Post subject: Re: Smiles Creator

Thanks! Is there a upgrade path from previous version? I can also just remove the old one beforehand...
_________________
Developer on EzArena, the ADR premod.
Developer on Icy Phoenix, the phpBB hybrid cms.
Developer on IntegraMOD.
Back to top
vlad77
Board Member



Joined: 31 May 2015

Posts: 20


flag
PostPosted: Wed Oct 21, 2015 1:05 pm 
Post subject: Re: Smiles Creator

Simply remove the old version and install a new version.
Consider that in the new version is used in bbcode $uid, so you have to open for editing existing posts and save them.
Or after update, do
Code:
open
includes/bbcode.php

find
//Begin Smilie Creator Mod Copyright esperitox 2003 [schild=] and [/schild] code..
   $text = preg_replace("#\[schild:$uid=([a-z0-9]+)([a-z0-9\-\.,\?!% \*_\#:;~\\&$@\/=\+\\\\)]*)\](.*?)\[/schild:$uid\]#sie", $bbcode_tpl['schild'], $text);
//Begin Smilie Creator Mod Copyright esperitox 2003 [schild] and [/schild] code..
   $text = preg_replace("#\[schild:$uid\](.*?)\[/schild:$uid\]#sie", $bbcode_tpl['schild2'], $text);

replace with
//Begin Smilie Creator Mod Copyright esperitox 2003 [schild=] and [/schild] code..
   $text = preg_replace("#\[schild=([a-z0-9]+)([a-z0-9\-\.,\?!% \*_\#:;~\\&$@\/=\+\\\\)]*)\](.*?)\[/schild\]#sie", $bbcode_tpl['schild'], $text);
//Begin Smilie Creator Mod Copyright esperitox 2003 [schild] and [/schild] code..
   $text = preg_replace("#\[schild\](.*?)\[/schild\]#sie", $bbcode_tpl['schild2'], $text);

find
//Begin Smilie Creator Mod Copyright esperitox 2003
$text = preg_replace("#\[schild=([a-z0-9]+)([a-z0-9\-\.,\?!% \*_\#:;~\\&$@\/=\+\\\\)]*)\](.*?)\[\/schild\]#si","[schild:$uid=\\1\\2\]\\3[/schild:$uid]", $text);
$text = preg_replace("#\[schild\](.*?)\[\/schild\]#si","[schild:$uid\]\\1[/schild:$uid]", $text);

replace with
//Begin Smilie Creator Mod Copyright esperitox 2003
$text = preg_replace("#\[schild=([a-z0-9]+)([a-z0-9\-\.,\?!% \*_\#:;~\\&$@\/=\+\\\\)]*)\](.*?)\[\/schild\]#si","[schild=\\1\\2\]\\3[/schild]", $text);
$text = preg_replace("#\[schild\](.*?)\[\/schild\]#si","[schild\]\\1[/schild]", $text);
Back to top
DVG
Board Member



Joined: 22 Oct 2015

Posts: 3



PostPosted: Fri Nov 20, 2015 8:43 pm 
Post subject: Re: Smiles Creator

Great!
use php5.5.9
fix warning text2shield.php:

find
Code:
      $schriftwidth = imagefontwidth($schriftdatei);
      $schriftheight = imagefontheight($schriftdatei);

replace
Code:
      $schriftwidth = imagefontwidth((int)$schriftdatei);
      $schriftheight = imagefontheight((int)$schriftdatei);



respect.png
 Description:
А чтобы вместо крякозябр текст на лету пре
 Filesize:  1.63 KB
 Viewed:  9103 Time(s)

respect.png


Back to top
vlad77
Board Member



Joined: 31 May 2015

Posts: 20


flag
PostPosted: Thu Jan 12, 2017 10:01 am 
Post subject: Re: Smiles Creator

v 3.0.1
Several fixes, including to work correctly with newer versions of php. Thanks DVG. For the treatment of the signs '<' and '>' in the text smiley is used in available php function strip_tags().
Back to top
Display posts from previous:   
Register or Login to Post    Index » MOD Development  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0209 seconds using 19 queries. (SQL 0.0037 Parse 0.0032 Other 0.0140)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo