3.2.x Extensions Database 3.2 / 3.3Quotes Collection

<span class="qte-attr qte_32_33-qte">3.2.x & 3.3.x</span>
Previous topicNext topic
[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: Quotes Collection

Post by Sniper_E »

Anuj Dhawan wrote: Nov 4th, '17, 07:02 Please advise how can we change the "Quote icon" with font-awesome?
Dm may check me on this...

Simple edit if you are running phpBB 3.2 on your board.
Open: styles/prosilver/template/event/overall_header_navigation_append.html
Find This may be a partial find and not the whole line

Code: Select all

<!-- IF S_QC_EXIST --><li class="small-icon icon-quotes"><a href="{U_DM_QUOTES}" title="{L_DM_QUOTES}">{L_DM_QUOTES}</a></li><!-- ENDIF -->
Replace with Replace the preceding lines with the following

Code: Select all

<!-- IF S_QC_EXIST --><li><a href="{U_DM_QUOTES}" title="{L_DM_QUOTES}"><i class="icon fa fa-quote-right"></i> {L_DM_QUOTES}</a></li><!-- ENDIF -->

These edits below will allow Quotes Collection ext icon to work in both phpbb 3.1 and 3.2 versions.
Open: event/listener.php
Find This may be a partial find and not the whole line

Code: Select all

		operator $operator = null
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

		\phpbb\files\factory $files_factory = null
Find This may be a partial find and not the whole line

Code: Select all

		$this->dm_qc_config_table 	= $dm_qc_config_table;
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

		$this->files_factory        = $files_factory;
Find This may be a partial find and not the whole line

Code: Select all

				'PHPBB_IS_32'   => ($this->files_factory !== null) ? true : false,
Add after Add these lines on a new blank line after the preceding line(s) to find

Code: Select all

				'PHPBB_IS_32'   => ($this->files_factory !== null) ? true : false,

Open: styles/prosilver/template/event/overall_header_navigation_append.html
Find This may be a partial find and not the whole line

Code: Select all

<!-- IF S_QC_EXIST --><li class="small-icon icon-quotes"><a href="{U_DM_QUOTES}" title="{L_DM_QUOTES}">{L_DM_QUOTES}</a></li><!-- ENDIF -->
Replace with Replace the preceding lines with the following

Code: Select all

<!-- IF S_QC_EXIST --><!-- IF not PHPBB_IS_32 --><li class="small-icon icon-quotes"><!-- ELSE --><li><i class="icon fa fa-quote-right"></i> <!-- ENDIF --><a href="{U_DM_QUOTES}" title="{L_DM_QUOTES}">{L_DM_QUOTES}</a></li><!-- ENDIF -->
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

Scanialady
Users
Users
Status: Offline
User theme: Dark
Posts: 310
Joined: Apr 6th, '15, 16:04
    Windows 10 Chrome

Re: Quotes Collection

Post by Scanialady »

Info:
seems there is a little syntax error on quotescollection.css

Code: Select all

.qc-noborder-radius { border-radius: none; }
This code is ignored.

"border-radius" property can not be "none" - has to be a value "em" or "px"

https://www.w3schools.com/cssref/css3_p ... radius.asp
-
If you want to get German translations for extensions: ask me.

[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: Quotes Collection

Post by Sniper_E »

I use none in mine at times and it works. Sometimes you need to use !important. And 0 can always be used.

Code: Select all

.qc-noborder-radius { border-radius: none; }
.qc-noborder-radius { border-radius: none !Important; }
.qc-noborder-radius { border-radius: 0; }
.qc-noborder-radius { border-radius: 0 !important; }
Any of these could be used and !important will over ride any previous settings. It refuses to be ignored.

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

Anuj Dhawan
Users
Users
Status: Offline
User theme: Dark
Posts: 109
Joined: Aug 31st, '15, 08:32
    Windows 10 Chrome

Re: Quotes Collection

Post by Anuj Dhawan »

Sniper_E wrote: Nov 4th, '17, 16:17
Anuj Dhawan wrote: Nov 4th, '17, 07:02 Please advise how can we change the "Quote icon" with font-awesome?
Dm may check me on this...
Thanks. Let me try.

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

seacoast
Users
Users
Status: Offline
User theme: Dark
Posts: 159
Joined: Aug 28th, '17, 17:58
    Windows 10 Firefox

Re: Quotes Collection

Post by seacoast »

Strange thing happening and I think it's permissions.
Only guests can see quotes and menu link to QC. Registered users and admins cannot.
I couldn't find anything in group permissions. Any idea?
Thanks.

Edit: Found it. Misc. permissions.

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

Scanialady
Users
Users
Status: Offline
User theme: Dark
Posts: 310
Joined: Apr 6th, '15, 16:04
    Windows 10 Chrome

Re: Quotes Collection

Post by Scanialady »

Sniper_E wrote: Nov 5th, '17, 14:54 I use none in mine at times and it works. Sometimes you need to use !important. And 0 can always be used.

Code: Select all

.qc-noborder-radius { border-radius: none; }
.qc-noborder-radius { border-radius: none !Important; }
.qc-noborder-radius { border-radius: 0; }
.qc-noborder-radius { border-radius: 0 !important; }
Any of these could be used and !important will over ride any previous settings. It refuses to be ignored.
Not in all browsers. May be in your prefered one :D

[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: Quotes Collection

Post by Sniper_E »

Did you even try to use border-radius: none !important; or border-radius: 0 !important; to see if it would work?

And clear your cache after the edit, refresh your browser. I can not help you if you want at least try. Good luck with it. :thumbup:

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

ninowebs
Users
Users
Status: Offline
User theme: Dark
Posts: 29
Joined: Jun 4th, '15, 21:44
    Windows 10 Chrome

Re: Quotes Collection

Post by ninowebs »

I have the board3 portal and i have installed extension Quotes Collection that displays its contents on the index page, as I can do to have it on the portal page

tnk

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

Voice4Vision
Users
Users
Status: Offline
User theme: Dark
Posts: 19
Joined: Dec 16th, '17, 04:34
    Windows 10 Chrome

Re: Quotes Collection

Post by Voice4Vision »

I would also like to second the request for a Board 3 Portal module so that the quotes could be displayed more appropriately.

Any and all assistance is greatly appreciated!

Thank you,
Voice4Vision

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

Potku
Users
Users
Status: Offline
User theme: Dark
Posts: 12
Joined: Aug 27th, '16, 12:57
    Windows 10 Chrome

Re: Quotes Collection

Post by Potku »

This is a very nice and communal (at least in our case as all the quotes are from our forum) EXT. :smile:

Since I don't know anything about coding, I was just thinking... How difficult would it be to:
1) remove the user name that added a quote?
2) make the author of the quote a profile link (because in our case all the quotes are from our users)?

Just thinking. :)

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

Solidjeuh
Users
Users
Status: Offline
User theme: Dark
Posts: 348
Joined: Dec 13th, '14, 01:40
    Windows 10 Firefox

Re: Quotes Collection

Post by Solidjeuh »

I removed the current navbar image, and replaced it with Font Awesome icon.. Looks better

Code: Select all

{% if S_QC_EXIST %}
	<li data-last-responsive="true">
		<a href="{{ U_DM_QUOTES }}" rel="help" title="{{ lang('DM_QUOTES') }}" role="menuitem">
			<i class="icon fa-quora  fa-fw" aria-hidden="true"></i><span>{{ lang('DM_QUOTES') }}</span>
		</a>
	</li>
{% endif %}	
Image

I'm also still interested in how we can show the quotes on all pages, or just on the board3 Portal + Index page ..
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------

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

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Quotes Collection

Post by dmzx »

Solidjeuh wrote: Jun 20th, '18, 01:39 I removed the current navbar image, and replaced it with Font Awesome icon.. Looks better

Code: Select all

{% if S_QC_EXIST %}
	<li data-last-responsive="true">
		<a href="{{ U_DM_QUOTES }}" rel="help" title="{{ lang('DM_QUOTES') }}" role="menuitem">
			<i class="icon fa-quora  fa-fw" aria-hidden="true"></i><span>{{ lang('DM_QUOTES') }}</span>
		</a>
	</li>
{% endif %}	
Image

I'm also still interested in how we can show the quotes on all pages, or just on the board3 Portal + Index page ..
Will add the code for fa icon for 3.2.x
Also update the extension with new items.

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

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6485
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Quotes Collection

Post by dmzx »

First post updated

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

Scanialady
Users
Users
Status: Offline
User theme: Dark
Posts: 310
Joined: Apr 6th, '15, 16:04
    Windows 10 Chrome

Re: Quotes Collection

Post by Scanialady »

Quotes Collection (and may be other collapsible extensions) do not work any longer after update of Collapsible Categories to 2.0.0

Which code changes are needed?

[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: 5123
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Quotes Collection

Post by martin »

I will start to update them today.
Image

Previous topicNext topic