Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Quote Functionality in Social Discussions Details »»
Quote Functionality in Social Discussions
Version: 1.00, by MrEyes MrEyes is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: Social Group and Album Enhancements - Version: 3.8.x Rating:
Released: 02-02-2009 Last Update: 02-02-2009 Installs: 85
Uses Plugins Template Edits
Re-useable Code Translations  
No support by the author.

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.

Download Now

File Type: zip product-socialgroup_message_quote.zip (2.4 KB, 280 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 03-11-2009, 02:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No it isn't!!!! Seriously, you can do it, I know you can! You know the uncached template names, right? And, you know the name of the page (whatever.php) that they aren't cached on. So, look at the top of the whatever.php page and find out what THIS_SCRIPT is and put that in where it says 'whatever'. Then add the template names in where it says 'this_template' and 'that_template'.
Reply With Quote
  #23  
Old 03-11-2009, 03:01 PM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
No it isn't!!!! Seriously, you can do it, I know you can! You know the uncached template names, right? And, you know the name of the page (whatever.php) that they aren't cached on. So, look at the top of the whatever.php page and find out what THIS_SCRIPT is and put that in where it says 'whatever'. Then add the template names in where it says 'this_template' and 'that_template'.
OK!!!!!

but i don't understand 2 things ...

1) how i can find out what this_script is ...
2) what plugin i must use?

this is the page:
http://www.fniv.it/board/groups/test...e-firefox.html
Reply With Quote
  #24  
Old 03-11-2009, 03:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. THIS_SCRIPT is defined at the top of the php page. Look for a line like this (this is from a page I am working on, not the page you need to look at):
PHP Code:
define('THIS_SCRIPT''messagelist'); 
2. There is a location called "cache_templates" that you would use.
Reply With Quote
  #25  
Old 03-12-2009, 10:07 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) OK, but i don't know what page i'm working on ...
2) i've tried to find out this location in the 'plug-in manager' ... correct?

edit: i've tried to put this code into the cache_templates plug-in (mass pm users for social groups, where there are many uncached templates)

PHP Code:
if(THIS_SCRIPT == 'mass_pm_social_group_members'

$globaltemplates array_merge($globaltemplates, array( 
'editor_clientscript'
'editor_css''editor_jsoptions_font''editor_jsoptions_size''editor_toolbar_on''socialgroups_masspm')); 

and the top and at the end of the plug-in but nothing changes ...

ps this is the hook (cache_templates) at 'mass pm plug-in' ...

PHP Code:
if ($vbulletin->options['mass_pm_social_group_members'])
{
    
$globaltemplates[] = 'socialgroups_group';

Reply With Quote
  #26  
Old 03-12-2009, 02:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1) The page you are 'working on' is the one in the browser url. For this modification and the uncached template "bbcode_quote" which shows up when viewing the Discussion, the url is www.yoursite.com/group.php?etc.... So, I look at the top of group.php and see this line:
PHP Code:
define('THIS_SCRIPT''group'); 
So, if I were to write a plugin to cache the "bbcode_quote" template on the group.php page, I would write:
PHP Code:
if(THIS_SCRIPT == 'group'

$globaltemplates array_merge($globaltemplates, array( 
'bbcode_quote')); 

Reply With Quote
  #27  
Old 03-13-2009, 10:42 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, last question Lynne, i've SEO installed so i don't know what page i'm browsering ... any tip to recognize the page?

thx
Reply With Quote
  #28  
Old 03-13-2009, 02:04 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KURTZ View Post
OK, last question Lynne, i've SEO installed so i don't know what page i'm browsering ... any tip to recognize the page?

thx
Ummmmmm, I don't really know. If you know the main template (if you have template names turned on, it should be at the top of the page in the page souce), then you can probably guess the name. There are only so many pages in vB. I guess you could take a guess at the page and enter THIS_SCRIPT from your guess and see if it works.
Reply With Quote
  #29  
Old 03-15-2009, 10:08 PM
wtb wtb is offline
 
Join Date: Oct 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed! If also using "Social Group Discussions Like Postbit" I notice that the code you reference above for pasting doesn't exist. Is it still going to work before we activate it.
Reply With Quote
  #30  
Old 03-15-2009, 11:19 PM
MrEyes MrEyes is offline
 
Join Date: Nov 2004
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wtb View Post
Installed! If also using "Social Group Discussions Like Postbit" I notice that the code you reference above for pasting doesn't exist. Is it still going to work before we activate it.
If you have a look at the postbit template page:

https://vborg.vbsupport.ru/showthread.php?t=204056

There is a bit in there about what you need to edit if you use this mod as well.
Reply With Quote
  #31  
Old 03-16-2009, 12:13 AM
wtb wtb is offline
 
Join Date: Oct 2008
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I did that change. I just wanted to make sure that I didn't also have to do the one listed above. Kind of a "what comes first" kind of thing. Thank you!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:43 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.06833 seconds
  • Memory Usage 2,347KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (5)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete