smilies album animated gifs

Support für Extensions für phpBB 3.1.x von Entwickler OXPUS
Antworten
Theriddler
Beiträge: 3
Registriert: So 24. Jul 2016, 20:39

smilies album animated gifs

Beitrag von Theriddler »

Hello Oxpus,

my members love your extension "smilies album" so they can add their own smilies and in catagory but there is a problem when you post the bbcode

i've tested the extension and found out that .png or .jpg files doesn't show the image when you post them with the bbcode.

the gif picture posted is not animated anymore.
when i go to the smiley album itself the image is animated, clicking on it ,it's also animated.

[sam]1[/sam]

in source view i see:

Code: Alles auswählen

<img alt="1" src="http://forum-url.com/sam/?mode=smilie&sam_id=1">
is it possible to change that into:

Code: Alles auswählen

<img alt="1" src="http://forum-url.com/ext/oxpus/sam//includes/uploads/smilie_0f86c8cf56e6d9022eda6fea1a1a385a.gif">


Best regards.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: smilies album animated gifs

Beitrag von oxpus »

Animated Smilies are not provided.
But Smilies generally should be shown in Bbcodes...
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Theriddler
Beiträge: 3
Registriert: So 24. Jul 2016, 20:39

Re: smilies album animated gifs

Beitrag von Theriddler »

Thanks for reply,

i tryed to change within controller/main.php:

Code: Alles auswählen

'BBCODE'		=> '[sam]' . $row['id'] . '[/sam]',
too:

Code: Alles auswählen

'BBCODE'		=> '[sam]' . $ext_path_web . 'includes/uploads/' . $row['filename'] . '[/sam]',
unfortunately didn't work :(
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: smilies album animated gifs

Beitrag von oxpus »

But the Smilies are visible in the album?
Please check the folder permissions on ext folder and refresh the forum cache.
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Theriddler
Beiträge: 3
Registriert: So 24. Jul 2016, 20:39

Re: smilies album animated gifs

Beitrag von Theriddler »

oxpus hat geschrieben:But the Smilies are visible in the album?
Please check the folder permissions on ext folder and refresh the forum cache.
Yes smileys are visible in the album, and animated.

But not animated anymore when you post them with the [sam] bbcode.

Later i saw in your migration file (release_2_0_0.php) the html output as the same as what i saw in source with firebug

Code: Alles auswählen

$this->db->sql_query('INSERT INTO ' . $this->table_prefix . 'bbcodes ' . $this->db->sql_build_array('INSERT', array(
					'bbcode_tag'			=> 'sam',
					'bbcode_id'				=> (int) $bbcode_id,
					'bbcode_helpline'		=> '',
					'display_on_posting'	=> 1,
					'bbcode_match'			=> '[sam]{NUMBER}[/sam]',
					'bbcode_tpl'			=> '<a href="' . $url . '"><img src="' . $url . '?mode=smilie&sam_id={NUMBER}" alt="{NUMBER}" /></a>',
					'first_pass_match'		=> '!\[sam\]([0-9]+)\[/sam\]!i',
					'first_pass_replace'	=> '[sam:$uid]${1}[/sam:$uid]',
					'second_pass_match'		=> '!\[sam:$uid\]([0-9]+)\[/sam:$uid\]!s',
					'second_pass_replace'	=> '<a href="' . $url . '"><img src="' . $url . '?mode=smilie&sam_id=${1}" alt="${1}" /></a>',
				)));
so i think if the img src= contains the actual filename path like: http://forum-url.com/ext/oxpus/sam//inc ... 1a385a.gif

then the smiley will be animated also.
Benutzeravatar
oxpus
Chief handy-man
Beiträge: 2660
Registriert: Do 13. Dez 2007, 23:06
Wohnort: Irgendwo im I-Net
Kontaktdaten:

Re: smilies album animated gifs

Beitrag von oxpus »

so i think if the img src= contains the actual filename path like: http://forum-url.com/ext/oxpus/sam//inc ... 1a385a.gif
No.
The smileys alltimes will be generated for display in the album and over bbcodes.
The generated link is alltimes the same!
So at first check the forum cache and refresh it to be sure the new bbcode [SAM] is enabled before checking other possible errors.

And for the filenames of the smilies: They will be uploaded with an encrypted hash name, so the original filename doesn't exists for the forum ;)
Karsten Ude
Kein Support per Messenger, Email oder PN! Unaufgeforderte Nachrichten werden ignoriert!
No support per Messenger, Email or PM. Each unasked message will be ignored!
Antworten