Page 1 of 1

Smilies Pages

Posted: 08 Mar 2010, 20:38
by Stoker
Title: Smilies Pages 1.0.4

Moved: viewtopic.php?f=45&t=1293

Re: Smilies Pages

Posted: 04 Apr 2010, 05:13
by Denny
Stoker. How do I make it so log in members only can see this, and have it come up in a blank page ? Is this possible. If so, could you give me some guidance in how to do this ? Or what to add, and where please.

Re: Smilies Pages

Posted: 04 Apr 2010, 06:28
by Stoker
Yes, find this in the smilies.php:

Code: Select all

$user->setup('common');
Add before:

Code: Select all

if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN']);
}
'This will give a login box for users not logged in.

Re: Smilies Pages

Posted: 04 Apr 2010, 17:06
by Denny
Thank you Stoker for the help. Is there also a way to have the smilie page come up in a new window, new page, instead of on the same one ? I appreciate the help very much.

Re: Smilies Pages

Posted: 04 Apr 2010, 20:54
by Stoker
Sure, just change this part of the overall_header edit:

Code: Select all

<a href="{U_SMILIESPAGE}" title="{L_SMSMILIES}">{L_SMSMILIES}</a>
to:

Code: Select all

<a href="{U_SMILIESPAGE}" title="{L_SMSMILIES}" onclick="window.open(this.href); return false;" onkeypress="window.open(this.href); return false;">{L_SMSMILIES}</a>

Re: Smilies Pages

Posted: 05 Apr 2010, 02:36
by Denny
Thank you very much stoker. :)

Re: Smilies Pages

Posted: 17 Apr 2010, 18:52
by Michel
French translation

Code: Select all

// Smiley page by stoker   
$lang = array_merge($lang, array(
    'SMSMILIES'            => 'Smileys',
    'VIEW_SMSMILIES'    => 'Voir les Smileys',
    'SMID'                => 'ID',
    'SMCODE'            => 'Code',
    'SMEMOTION'            => 'Emotion',
    'SMWIDTH'            => 'Largeur',
    'SMHEIGHT'            => 'Hauteur',
    'SMSMILEY'            => 'Smiley',
    'SMDISPLAY'            => 'Afficher',
    'SMORDER'            => 'Ordre',
    'SMPX'                => 'px',
    'SMILIEY_COUNT'     => '1 smiley',
    'SMILIES_COUNT'     => '%d Smileys',
)); 

Re: Smilies Pages

Posted: 28 Jun 2010, 18:45
by Chalong
My translation to German

Open language/de/common.php
Find

Code: Select all

?>
Add BEFORE

Code: Select all

// Smiley page by stoker   
$lang = array_merge($lang, array(
   'SMSMILIES'         => 'Smilies',
   'VIEW_SMSMILIES'   => 'Smilies betrachten',
   'SMID'            => 'ID',
   'SMCODE'         => 'Code',
   'SMEMOTION'         => 'Emotion',
   'SMWIDTH'         => 'Breite',
   'SMHEIGHT'         => 'Höhe',
   'SMSMILEY'         => 'Smiley',
   'SMDISPLAY'         => 'Anzeigen',
   'SMORDER'         => 'Reihenfolge',
   'SMPX'            => 'Pixel',
   'SMILIEY_COUNT'     => '1 smiley',
    'SMILIES_COUNT'     => '%d smilies',
));
Save language files as UTF8 without a BOM.

Demo: http://www.chalong.de/smilies.php



Posted at

Re: Smilies Pages

Posted: 08 Jul 2010, 11:23
by goodprice
:lol: thanks

Re: Smilies Pages

Posted: 03 Mar 2011, 20:12
by Stoker
This attachment has been updated and fixed.