Smilies Pages

Modifications for phpBB3. Try the Mods here and share Your own Mods
There is no support here! Only Read Access!
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support
Locked
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Smilies Pages

Post by Stoker »

Title: Smilies Pages 1.0.4

Moved: viewtopic.php?f=45&t=1293
Board rules! No PM support
Denny
BBCoder II
BBCoder II
Posts: 29
Joined: 10 Mar 2010, 17:48

Re: Smilies Pages

Post 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.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Smilies Pages

Post 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.
Board rules! No PM support
Denny
BBCoder II
BBCoder II
Posts: 29
Joined: 10 Mar 2010, 17:48

Re: Smilies Pages

Post 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.
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Smilies Pages

Post 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>
Board rules! No PM support
Denny
BBCoder II
BBCoder II
Posts: 29
Joined: 10 Mar 2010, 17:48

Re: Smilies Pages

Post by Denny »

Thank you very much stoker. :)
User avatar
Michel
BBCoder II
BBCoder II
Posts: 11
Joined: 13 Mar 2010, 19:13

Re: Smilies Pages

Post 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',
)); 
User avatar
Chalong
BBCoder II
BBCoder II
Posts: 59
Joined: 06 Mar 2010, 14:03
Location: Pforzheim / Germany
Contact:

Re: Smilies Pages

Post 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
Regards Chalong

www.chalong.de
goodprice
BBCoder I
BBCoder I
Posts: 2
Joined: 08 Jul 2010, 10:40
Contact:

Re: Smilies Pages

Post by goodprice »

:lol: thanks
The best fitness belt and
body massager is from goodprice.tv
User avatar
Stoker
Site Admin
Site Admin
Posts: 3536
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: Smilies Pages

Post by Stoker »

This attachment has been updated and fixed.
Board rules! No PM support
Locked