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 - View all your social group messages (https://vborg.vbsupport.ru/showthread.php?t=205163)

Lynne 02-11-2009 10:00 PM

View all your social group messages
 
1 Attachment(s)
A page to display all the messages in all the groups a user has joined.

I have found on my forums, that it is hard to keep up with new messages in your social groups. You have to go to each individual group and see if there is anything new. So, I created this page to list all the messages in your social groups in date descending order.

[s]You will need to create two new templates and upload one file.[/s] edit: The two templates and the phrases for this modification are now included in a product.

The users may either view All My Groups and see the messages from all their groups in the list, or they may select one of the groups they belong to and see just the messages in that group. I used the option vboptions > Message Searching Options > Maximum Search Results to Return to set maximum results shown.

Version History:
1.0 2009-02-12:
- initial release by Lynne at vbulletin.org

1.2 2009-03-12:
- fully phrased, templates now in product to import.
- added option to view only messages from single group
- used vboptions > Message Searching Options > Maximum Search Results to Return to set maximum results shown
- cached all bbcode templates
- AFTER INSTALL OF PRODUCT, YOU WILL HAVE TO REVERT THE TWO TEMPLATES (socialgroups_messagelist and socialgroups_messagelistbits) IF YOU HAD INSTALLED THIS PREVIOUSLY (or else you will still be using the original templates)


Please mark INSTALL if you find this useful.

pein87 02-12-2009 08:38 PM

How many quieries does it add for this?

Lynne 02-12-2009 08:44 PM

Add? Since it's a totally new page, you don't get added queries to the page. But, it currently has the potential of one small query per message to get the Discussion Name. If you don't want the Discussion name listed, you may comment out the following code in messagelist.php:
PHP Code:

        if (!$message['discussiontitle'])
        {
        
$title $vbulletin->db->query_first("
            SELECT groupmessage.title as discussiontitle
            FROM " 
TABLE_PREFIX "groupmessage as groupmessage
            JOIN " 
TABLE_PREFIX "discussion AS discussion 
        ON (discussion.firstpostid = groupmessage.gmid)
            WHERE groupmessage.discussionid = " 
$message['discussionid'] ."
            LIMIT 1
            "
);
            
$message['discussiontitle']=$title['discussiontitle'];
        } 

And then take out these lines in 'socialgroups_messagelistbits':
HTML Code:

                <div>
                    <span><phrase 1="group.php?$session[sessionurl]gmid=$message[gmid]#gmessage$message[gmid]" 2="$message[discussiontitle]">$vbphrase[discussion_x]</phrase></span>
                </div>


pein87 02-12-2009 08:49 PM

Thanks mate your leading the social group revoloution. Installed.

redlabour 02-12-2009 09:24 PM

Very nice idea! :)

rn-nr.com 02-13-2009 06:25 AM

thanks a lot

starman? 02-13-2009 09:01 AM

This sounds exactly like what I need, however the instructions in the download zip are unclear for me.

You say we have to create 2 templates but your txt file says only 1 as far as I can see. Maybe I'm missing it. However my greater concern is; How do you actually go about creating a template. I haven't the first idea. Where do I upload the template to? Please give me a little help. Thanks.

Lynne 02-13-2009 01:51 PM

The text file has instructions to create a template called "socialgroups_messagelist" and a template called "socialgroups_messagelistbit". So, two templates.

To create a template, go to your Style Manager, find the style you want this to be used in (could be multiple styles which means you may have to create them in a couple places depending on how you have your styles set up) and select Add New Template from the dropdown.

miyuki 02-13-2009 02:12 PM

To get all message is good, but I think it would be better to get all new unread messages. Would it be possible to change it that way ?

By the way, thanks for this work :D

Lynne 02-13-2009 02:26 PM

Sorry, I doubt I'll be adding that. The problem on our forum was that users would read the forum, select Mark As Read and then never know if they had social group messages. So, I made this list for them to be able to see all the messages.


All times are GMT. The time now is 03:09 PM.

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.01130 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_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