Advertisement:

Author Topic: [poem] Tag [/poem]  (Read 35539 times)

kurotenshi

  • Guest
[poem] Tag [/poem]
« on: March 21, 2005, 05:16:45 PM »
Becouse I work much whit music and arts. I write lots of lyrics or poems. Then I think, if some onewrite them too in boards? Ok. Now I made [poem] tag. So it can use whit lyric or poems or what ever we want :)
I hope that someone need it ;D

[edit] Noe this link shows updated [poem] tag[/edit]
Preview: http://hob-art.dy.fi/smftest/index.php?topic=3 Site down.

Code:

Find in Subs.php this (should found in line 923):
Code: [Select]
'~\[pre\](.+?)\[/pre\]~i' => isset($disabled['pre']) ? '$1' : '<pre>$1</pre>',
Add after that:
Code: [Select]
code]// Poem tag
'~\[poem title=(.{1,80}?)\](?:<br />)?~i' => isset($disabled['poem']) ? '<div>' : '<div style="font-family: Times New Roman, Serif; font-style: Italic; font-size: large; text-decoration: underline; padding: 3px;">$1</div><pre style="font-family: Times New Roman; font-style: Italic; font-size: small;">',
'~\[poem\](?:<br />)?~i' => isset($disabled['poem']) ? '<div>' : '<pre style="font-family: Times New Roman; font-style: Italic; font-size: small;">',
'~\[/poem\](?:<br />)?~i' => isset($disabled['poem']) ? '</pre>' : '</div>',
// Poem tag end
Code: [Select]

Find in Post.template.php this (should found in line 650):
'list' => array('code' => 'list', 'before' => '
    \n
    • ', 'after' => '
    \n
    \n
', 'description' => $txt[261]),
Code: [Select]

Add after that:
'poem' => array('code' => 'poem', 'before' => '[poem]', 'after' => '[/poem]', 'description' => '[poem]'),
Code: [Select]

[color=red]NOTE: If your board uses multiple themes, you should add that Post.template.php code in EVERY Post.template.php files![/color]

[edit]
Few typos removed. I try to made this little more advance. So then could add also title that poem or song :) like [poem=title]
[/edit]

[edit]
Script was updated little. Now you can use title too. So poem tag look now [poem title=poem name] Poem or lyric [/poem]
[/edit]

[edit]Site is down[/edit]
« Last Edit: June 22, 2006, 09:16:09 AM by Infrequentia »

Offline A.M.A

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,133
  • Gender: Male
  • ..
Re: [poem] Tag [/poem]
« Reply #1 on: March 21, 2005, 07:16:03 PM »
useful tip .. thanks for sharing it.
Really sorry .. real life is demanding my full attention .. will be back soon hopefully :)

kurotenshi

  • Guest
Re: [poem] Tag [/poem]
« Reply #2 on: March 21, 2005, 09:02:29 PM »
Ok. I was updated this scrip little. Look changes in first post. Theres too instroductions to add this in your board :)
Now this tag is more usefull :)

Offline CuTe_MaN

  • Jr. Member
  • **
  • Posts: 106
  • Gender: Male
  • www.samasyria.net
Re: [poem] Tag [/poem]
« Reply #3 on: June 01, 2006, 07:23:15 PM »
Nice tip

but i tried to implement it in my forum

but i couldnt find the required code

I am using SMF 1.1 RC2

please if u can help in giving me the solution


thx

CuTe_MaN

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,831
  • My posts are my own
    • BlushyFace | A spoopy and creppy site
Re: [poem] Tag [/poem]
« Reply #4 on: June 01, 2006, 07:30:58 PM »
Your site doesnt work.

kurotenshi

  • Guest
Re: [poem] Tag [/poem]
« Reply #5 on: June 22, 2006, 09:17:49 AM »
Nice tip

but i tried to implement it in my forum

but i couldnt find the required code

I am using SMF 1.1 RC2

please if u can help in giving me the solution


thx

CuTe_MaN

This was done for 1.0.* versions. Sorry.

Offline Valiantheart

  • Semi-Newbie
  • *
  • Posts: 71
Re: [poem] Tag [/poem]
« Reply #6 on: October 18, 2006, 12:12:58 AM »
I tried to modify this for a simple [spoiler]tag[/spoiler]

This is what I added to Subs.php

Code: [Select]
// Spoiler tag
'~\[spoiler title=(.{1,80}?)\](?:<br />)?~i' => isset($disabled['spoiler']) ? '<div>' : '<div style="font-family: Times New Roman, Serif; color: #727272; font-size: large; text-decoration: underline; padding: 3px;">$1</div><pre style="font-family: Times New Roman; color: #FAFAFA; font-size: small;">',
'~\[spoiler\](?:<br />)?~i' => isset($disabled['spoiler']) ? '<div>' : '<pre style="font-family: Times New Roman; color: #FAFAFA; font-size: small;">',
'~\[/spoiler\](?:<br />)?~i' => isset($disabled['spoiler']) ? '</pre>' : '</div>',
// Spoiler tag end


How do I change the BBC button for this? All I get now is the word "Spoiler" spanned over two of the BBC button background.
« Last Edit: October 18, 2006, 12:15:05 AM by Valiantheart »

Offline kamili34

  • Jr. Member
  • **
  • Posts: 232
  • Gender: Male
  • noob
    • pilarki.org
Re: [poem] Tag [/poem]
« Reply #7 on: July 02, 2007, 01:27:21 AM »
I'm sad becouse it doesn't work on smf 1.1.3  :'(
« Last Edit: July 03, 2007, 02:30:59 PM by kamili34 »

Offline speak121

  • Jr. Member
  • **
  • Posts: 165
Re: [poem] Tag [/poem]
« Reply #8 on: July 05, 2007, 04:40:16 PM »
alguien sabe como convertir este mod para el smf 1.1.2?

Offline speak121

  • Jr. Member
  • **
  • Posts: 165
Re: [poem] Tag [/poem]
« Reply #9 on: July 06, 2007, 09:17:44 AM »
ok, i have all the modifications for 1.1.2 but i need to know how put the name who is writting the message.

Anyone help me?

Offline speak121

  • Jr. Member
  • **
  • Posts: 165
Re: [poem] Tag [/poem]
« Reply #10 on: July 08, 2007, 08:48:24 PM »
ok, is done, tomorrow i post it, today is too late.. :p

Example:

« Last Edit: July 08, 2007, 08:59:30 PM by speak121 »

Offline speak121

  • Jr. Member
  • **
  • Posts: 165
Re: [poem] Tag [/poem]
« Reply #11 on: July 09, 2007, 06:18:05 PM »
i need a person who have a test site of smf 1.1.2 and wants to probe the mod.

it's my first mod and i dont know if it works correctly.

Thx!

Offline speak121

  • Jr. Member
  • **
  • Posts: 165
Re: [poem] Tag [/poem]
« Reply #12 on: July 10, 2007, 11:28:49 AM »
Español:
En esta página podéis ver su funcionamiento y bajaroslo:
http://pruebas121.awardspace.com/index.php?topic=2

Cualquier problema ponerlo aquí para que entre todos podamos resolverlo.

Gracias!


English:
You can find this mod at:
http://pruebas121.awardspace.com/index.php?topic=2

Any problem please report in this board.

Thx!

Offline Harro

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,122
  • Gender: Male
  • I'm watching you
Re: [poem] Tag [/poem]
« Reply #13 on: July 28, 2007, 12:06:04 PM »
Did you manage to do it?
I can set up a test board to give it a try if you want.

Offline speak121

  • Jr. Member
  • **
  • Posts: 165
Re: [poem] Tag [/poem]
« Reply #14 on: July 28, 2007, 12:54:34 PM »
Thx Harro,

but I did it and is installed on the test forum.

You can view and download it if you want :D.