Warning: The author of this contribution does not provide support for it anymore.

Quote Post Back Link (QPBL)

Code completion tip - Quote Post Back Link (QPBL)

Code completion tip

by kdn » Wed Aug 30, 2017 5:30 pm

1) bbcode.php:

Instead of:

Code: Select all

//-- BEGIN Quote Post Back Link
		//-- Add
		global $qpbl;
		if (!isset($this->qpbl) || $this->qpbl instanceof quote_post_back_link === false)
		{
			global $cache, $config, $db, $user, $phpEx;
				require "{$phpbb_root_path}includes/mods/quote_post_back_link/quote_post_back_link.{$phpEx}";
			$this->qpbl = new quote_post_back_link($cache, $config, $db, $user, $phpEx, $this);
		}
		//-- END Quote Post Back Link
Insert:

Code: Select all

//-- BEGIN Quote Post Back Link
		//-- Add
		global $qpbl;
		if (!isset($this->qpbl) || $this->qpbl instanceof quote_post_back_link === false)
		{
			global $cache, $config, $db, $user, $phpEx;
				if (!class_exists('quote_post_back_link'))
            {
            require "{$phpbb_root_path}includes/mods/quote_post_back_link/quote_post_back_link.{$phpEx}";
            }
			$this->qpbl = new quote_post_back_link($cache, $config, $db, $user, $phpEx, $this);
		}
		//-- END Quote Post Back Link
, otherwise we get an error: cannot redeclare class - Quote Post Back Link

2) bbcode.html:

Instead of:

Code: Select all

<!-- MOD: Quote Post Back Link -->
<!-- BEGIN quote_username_post_open --><blockquote><div><cite>{USERNAME} {L_WROTE} {L_IN} <a href="{QPBL_POST}" title="{QPBL_TITLE}">{QPBL_TITLE}</a>:</cite><!-- END quote_username_post_open -->
<!-- BEGIN quote_post_open --><blockquote><div><cite><a href="{QPBL_POST}" title="{QPBL_TITLE}">{QPBL_TITLE}</a>:</cite><!-- END quote_post_open -->
<!-- /MOD: Quote Post Back Link -->
Insert:

Code: Select all

<!-- MOD: Quote Post Back Link -->
<!-- BEGIN quote_username_post_open --><blockquote><div class="quotetitle"><cite>{USERNAME} {L_WROTE} {L_IN} <a href="{QPBL_POST}" title="{QPBL_TITLE}">{QPBL_TITLE}</a>:</br></div><div class="quotecontent"></cite><!-- END quote_username_post_open -->
<!-- BEGIN quote_post_open --><blockquote><div><cite><a href="{QPBL_POST}" title="{QPBL_TITLE}">{QPBL_TITLE}</a>:</div><div class="quotecontent"></cite><!-- END quote_post_open -->
<!-- /MOD: Quote Post Back Link -->
- the view of the quote block is more pleasant.
kdn
Registered User
Posts: 62
Joined: Thu Oct 19, 2006 3:29 am
Location: Moscow, Russia
Contact:

Re: Code completion tip

by JimA » Fri Sep 01, 2017 7:09 pm

Hi, thanks for wanting to share your efforts!

Keep in mind though that with the End of Support for phpBB 3.0.x, no more MOD support is being provided so we'd prefer that there are no more new posts in the MOD Support area. ;)
Jim Mossing Holsteyn - Former Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
User avatar
JimA
Former Team Member
Posts: 7833
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact: