PhpBB Random Jokes

Miscaleneous modifications from Stoker
regazer
BBCoder II
BBCoder II
Posts: 19
Joined: 20 Jan 2014, 07:24
Location: Deutschland - Niedersachsen
Contact:

PhpBB Random Jokes

Post by regazer »

Oh yes, I know and I did the german languan files like you see above. But as I told there was no effect with the title line "RANDOM JOKES" and the other three things. They all are also not to find within the original english language files. Sorry, but if it wouldn't be so I didn't have to ask about it. :(
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PhpBB Random Jokes

Post by Stoker »

In the instructions you are instructed to add something to language/en/common.php
This must be done to language/de/common.php also.
Board rules! No PM support
regazer
BBCoder II
BBCoder II
Posts: 19
Joined: 20 Jan 2014, 07:24
Location: Deutschland - Niedersachsen
Contact:

PhpBB Random Jokes

Post by regazer »

Oh yes, I see. Thank you very much. There really I made the mistake to add the english words instead of translating. And I always searched in the file "jokes.php" :shock: - sorry about that.

But the other three things I found hardcoded in the file "includes/acp/acp_jokes_jokes.php" :?:
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

PhpBB Random Jokes

Post by Stoker »

Open language/en/acp/common.php (also remember your own language)
Find

Code: Select all

?>
Add before

Code: Select all

// Jokes
$lang = array_merge($lang, array(
	'LOG_JOKES_UPDATED'			=> 'Joke updated',
	'LOG_JOKES_ADDED'			=> 'Joke added',
	'LOG_JOKES_REMOVED'			=> 'Joke removed',
));
Open includes/acp/acp_jokes_jokes.php
Find

Code: Select all

LOG_jokes_REMOVED
Replace with

Code: Select all

LOG_JOKES_REMOVED
Board rules! No PM support
regazer
BBCoder II
BBCoder II
Posts: 19
Joined: 20 Jan 2014, 07:24
Location: Deutschland - Niedersachsen
Contact:

PhpBB Random Jokes

Post by regazer »

Oh yes ! Thank you, Stoker ! I got it now:

There's nothing more to change in the file "acp_jokes_jokes.php" (without this one line) and nothing else in "jokes.php", but always in the language files of "common.php".

In english it should look like

Code: Select all

// Jokes
$lang = array_merge($lang, array(
	'JOKESPAGE'             => 'Jokes',
	'RANDOM_JOKE'           => 'Random Jokes',
	'LOG_JOKES_UPDATED'     => 'joke updated (%s)',
	'LOG_JOKES_ADDED'       => 'joke added (%s)',
	'LOG_JOKES_REMOVED'     => 'joke removed (%s)',
));
and in german like

Code: Select all

// Jokes
$lang = array_merge($lang, array(
	'JOKESPAGE'             => 'Witze',
	'RANDOM_JOKE'           => 'Zufallswitze',
	'LOG_JOKES_UPDATED'     => 'Witz aktualisiert (%s)',
	'LOG_JOKES_ADDED'       => 'Witz hinzugefügt (%s)',
	'LOG_JOKES_REMOVED'     => 'Witz entfernt (%s)',
));
I think now it's solved the best way. This (%s) is needed to show the additionals too.
I don't support phpBB any longer. So I'm gone here too. :D
UPSIDE
BBCoder II
BBCoder II
Posts: 15
Joined: 05 Dec 2014, 16:41
BBCodes: 10

Re: PhpBB Random Jokes

Post by UPSIDE »

Thanks bro, for modifikacions!
burn-hard
BBCoder I
BBCoder I
Posts: 1
Joined: 24 Aug 2015, 11:33
BBCodes: 20

Re: PhpBB Random Jokes

Post by burn-hard »

Hello Stoker,

i use the "random joke mod" and it runs perfect.
But i miss BBcode or Html. What can i do, to get this?

Sorry for my bad english

Best regards

burn-hard
User avatar
Stoker
Site Admin
Site Admin
Posts: 3521
Joined: 12 May 2008, 23:26
BBCodes: 239
Favourite BBCode: Anipro
Favourite MOD: PrettyPhoto
Location: Denmark
Contact:

Re: PhpBB Random Jokes

Post by Stoker »

I think there is something in the wiki about it.
Board rules! No PM support
Locked