vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Social Group and Album Enhancements - Quote Functionality in Social Discussions (https://vborg.vbsupport.ru/showthread.php?t=204052)

MrEyes 02-02-2009 10:00 PM

Quote Functionality in Social Discussions
 
1 Attachment(s)
Quote Functionality in Social Discussions v1.0


As the title suggests this modification allows you to add message quote functionality to vBulletins Social Group discussions.

The installation of this product is made up of the following and does not require any file changes:
  • One product import.
  • One manual template modification.
  • One configuration change.
Once installed an additional SQL query is made, however this only occurs when somebody clicks the quote button.

Installation : Product Import

The installation of this modification is fairly simple, for those that do not have experience of doing this here are the full steps:
  1. Download the attached zip file and extract to folder on your computer.
  2. Goto your Admin CP page (ACP).
  3. Open the "Plugins & Products" section.
  4. Click "Manage Products".
  5. On the page that opens scroll to the bottom and click "Add/Import Product".
  6. In the "EITHER upload the XML file from your computer" browse to the product XML file that you extracted in the first step (product-socialgroup_message_quote.xml)
  7. Click "Import"
  8. Sit back and watch vBulletin do its magic.
Installation : Template Modification
  1. Goto your Admin CP page (ACP).
  2. Open the "Styles & Templates" section.
  3. Click "Style Manager".
  4. In the page that opens find the style(s) you want to edit and select "Edit Templates" from the drop down.
  5. In the "Social Groups Templates" section find the "socialgroups_message" template and open it.
  6. Find the following line in the template:

    Code:

    <ul class="list_no_decoration controls">
  7. Immediately after this paste the following:

    Code:

    <li class="smallfont"><a href="group.php?do=message&amp;discussionid=$message[discussionid]&amp;gmq=$message[gmid]">$vbphrase[quote]</a></li>
  8. You should end up with something that looks like this:

    Code:

    <ul class="list_no_decoration controls">
    <li class="smallfont"><a href="group.php?do=message&amp;discussionid=$message[discussionid]&amp;gmq=$message[gmid]">$vbphrase[quote]</a></li>
    <if condition="$message['edit']">

  9. Save the template changes.
Installation : Configuration Change

This modification has no custom configuration options. However it will only be functional if you have enabled quote bbcode for social groups. To do this follow the steps below:
  • Goto your Admin CP page (ACP).
  • Open the "vBulletin Options" section.
  • Click "vBulletin Options".
  • In the page that opens find the "Social Group Options" section and click "Edit Settings".
  • Scroll down to the "Allowed BB Code Tags in Social Group Messages" section
  • Enable "Allow Quote BB Code" by checking the box
  • Scroll to the bottom and click "Save"
If you do not follow these steps when a user attempts to quote a message they will be shown an error stating that quote BBCode is not allowed

Other Information

In this version only simple quoting is supported, therefore it is not currently possible to multiquote.

This is one of the mods in my "Why isn't this stuff in the default social group system" series, for the others see these mods:And finally...

You know the deal if you install and use the mod please mark it as installed, if you really like it nominate it for mod of the month.

MrEyes 02-03-2009 10:22 AM

Reserved

redlabour 02-03-2009 02:02 PM

I hope there will be a possibility to turn this into "Without any Templateedits" in future Releases - anyway - nice Idea.

MrEyes 02-03-2009 03:12 PM

Quote:

Originally Posted by redlabour (Post 1733066)
I hope there will be a possibility to turn this into "Without any Templateedits" in future Releases - anyway - nice Idea.

Unfortunately not possible as the vBulletin default code does not have any template hooks where this needs to go.

Coders Shack 02-03-2009 03:21 PM

Quote:

Originally Posted by MrEyes (Post 1733133)
Unfortunately not possible as the vBulletin default code does not have any template hooks where this needs to go.

anything is possible :)

I usually do text replacements on the actual template, and always provide the ability for the admin to put in a hook (in case their template has been drastically changed)

pein87 02-03-2009 04:38 PM

I`ll test it for ya on a live site and provide feed back soon.

farplane dragon 02-03-2009 05:27 PM

Works perfectly! Thanks for adding what should have been a standard feature

Keesa 02-03-2009 06:47 PM

PERFECT. You have made our forum extremely happy.

Mark.B 02-03-2009 08:27 PM

As has been said, I'm amazed this wasn't a standard feature. great addon, well written, works perfectly.

TandyServices 02-03-2009 09:38 PM

Works great thanks alot..


All times are GMT. The time now is 06:30 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02584 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete