Smilies Pages
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
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
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Smilies Pages
Board rules! No PM support
Re: Smilies Pages
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.
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Smilies Pages
Yes, find this in the smilies.php:
Add before:
'This will give a login box for users not logged in.
Code: Select all
$user->setup('common');
Code: Select all
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
Board rules! No PM support
Re: Smilies Pages
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.
- Stoker
- Site Admin
- Posts: 3540
- Joined: 12 May 2008, 23:26
- BBCodes: 239
- Favourite BBCode: Anipro
- Favourite MOD: PrettyPhoto
- Location: Denmark
- Contact:
Re: Smilies Pages
Sure, just change this part of the overall_header edit: to:
Code: Select all
<a href="{U_SMILIESPAGE}" title="{L_SMSMILIES}">{L_SMSMILIES}</a>
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
Re: Smilies Pages
Thank you very much stoker.
Re: Smilies Pages
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
My translation to German
Open language/de/common.php
Find
Add BEFORE
Save language files as UTF8 without a BOM.
Demo: http://www.chalong.de/smilies.php
Posted at
Open language/de/common.php
Find
Code: Select all
?>
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',
));
Demo: http://www.chalong.de/smilies.php
Posted at