Version: 1.00, by MrEyes
Developer Last Online: May 2017
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:
Download the attached zip file and extract to folder on your computer.
Goto your Admin CP page (ACP).
Open the "Plugins & Products" section.
Click "Manage Products".
On the page that opens scroll to the bottom and click "Add/Import Product".
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)
Click "Import"
Sit back and watch vBulletin do its magic.
Installation : Template Modification
Goto your Admin CP page (ACP).
Open the "Styles & Templates" section.
Click "Style Manager".
In the page that opens find the style(s) you want to edit and select "Edit Templates" from the drop down.
In the "Social Groups Templates" section find the "socialgroups_message" template and open it.
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:
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'.
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?
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.
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:
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.
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.
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.
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!