3.1 & 3.2 Extensions Database 3.1 / 3.2Pretty Topic

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Pretty Topic

Post by Sniper_E »

Solidjeuh wrote: Dec 12th, '18, 21:27Why is root@ns:/var/www/mysite.com/public_html/ext/dmzx/prettytopic/language/es# cat common.php in there?
kamaleon wrote: Dec 12th, '18, 22:29 Because I am showing you the contents of the file common.php
That line does not belong in that file. That's why Solidjeuh asked. <?php is the first line of a language file. Remove that root@ line.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

kamaleon
Users
Users
Status: Offline
User theme: Dark
Posts: 50
Joined: Jul 26th, '15, 08:56
    Windows 8.1 Chrome

Re: Pretty Topic

Post by kamaleon »

That line is NOT in the file.

cat is a linux command to show the contents of a file. All the cat common.php is NOT in the file.

Here is an explation of cat command in linux: https://www.tecmint.com/13-basic-cat-co ... -in-linux/

IF it were in the file, it would give an error most probably and phpBB would not load.

Any other ideas how to fix this?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Pretty Topic

Post by Sniper_E »

Why you are having problems is bean me.

Disable the pretty topic extension in acp. Delete the data for that extension. Delete the ext/dmzx/prettytopic/ folder from your server.

Download the latest version of prettytopic and Upload it to your server in the ext/dmzx/ folder.
On the server rename the ext/dmzx/prettytopic/language/en/ -TO- ext/dmzx/prettytopic/language/es/
Then from your local copy... copy the prettytopic/language/en/ folder back over to your server files.

Do EXACTLY THAT and then Enable pretty topic extension in acp. Report back any problems you see.

DO ABOVE TEST FIRST BEFORE EDITING ANYTHING
If all looks fine then edit the ext/dmzx/prettytopic/language/es/common.php language file and save.
And try to edit your server files with a free text program like Notepad++
Just in case you editing files with a linux command is the problem. Something else to look for.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

kamaleon
Users
Users
Status: Offline
User theme: Dark
Posts: 50
Joined: Jul 26th, '15, 08:56
    Windows 8.1 Chrome

Re: Pretty Topic

Post by kamaleon »

Still not working.

I picked the file this time from this forum and it has already all the languages in it.

Still, nothing is getting translated into Spanish.

I just edit the en version and it changes on my Spanish board.

Anyways, I will just do that, translate the en version to Spanish :)

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

kamaleon
Users
Users
Status: Offline
User theme: Dark
Posts: 50
Joined: Jul 26th, '15, 08:56
    Windows 8.1 Chrome

Re: Pretty Topic

Post by kamaleon »

Image

I just changed the en version to Announcement2 and it changes...

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

manigopal
Users
Users
Status: Offline
User theme: Dark
Posts: 1
Joined: Dec 30th, '18, 06:47
    Windows 10 Firefox

Re: Pretty Topic

Post by manigopal »

How to add the topic prefix manually other than


Change topic type to:
Normal Sticky Announce Global

say for eg : games,apps,general etc ?

if this ext is not kinda ..share the exact ext for achieving my need

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1160
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Pretty Topic

Post by Sniper_E »

You can change the names of all of them just like kamaleon did. I think it should be in the extension's language file.
kamaleon wrote: Dec 14th, '18, 17:31 Image

I just changed the en version to Announcement2 and it changes...

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

BBBenj
Users
Users
Status: Offline
User theme: Dark
Posts: 48
Joined: Mar 10th, '17, 09:59
    Windows 10 Opera

Re: Pretty Topic

Post by BBBenj »

Thanks a lot!

I works perfectly in phpBB 3.3.5.

I still have a question. I use the style "element" which offers possibility to add some colours here and there. Is it possible to modify the code in order change the button colours to colours corresponding to the style, please?

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

umi
Users
Users
Status: Offline
User theme: Dark
Posts: 89
Joined: Aug 5th, '19, 12:18
    Windows 7 Firefox

Re: Pretty Topic

Post by umi »

Not working on phpBB 3.3.9:

Code: Select all

Fatal error: Uncaught Twig\Error\LoaderError: Looks like you try to load a template outside configured directories (../theme/prettytopic.css) in "@dmzx_prettytopic/event/overall_header_head_append.html" at line 1.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5116
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Pretty Topic

Post by martin »

Try this.

3.3.9 calls for the css file using twig almost all extensions will need an update (Mine wont as i used twig for a while now)
Pretty_Topic_v1.0.1.zip
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Image

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/src/Template.php on line 359: Array to string conversion
Array

umi
Users
Users
Status: Offline
User theme: Dark
Posts: 89
Joined: Aug 5th, '19, 12:18
    Windows 7 Firefox

Re: Pretty Topic

Post by umi »

martin wrote: Dec 7th, '22, 00:13 Try this.

3.3.9 calls for the css file using twig almost all extensions will need an update (Mine wont as i used twig for a while now) Pretty_Topic_v1.0.1.zip
Working perfect martin!!

Thanks :beers: :beers: :beers: :beers:
Last edited by umi on Dec 7th, '22, 10:34, edited 1 time in total.