vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - SocialForums 1.4 (https://vborg.vbsupport.ru/showthread.php?t=174878)

ripperr 11-24-2008 07:14 PM

Thank ya for this addon all worked fine.
edit: ive solved my problem, so just thank you, its a great addon :)

ReCom 11-24-2008 10:15 PM

Also, the mod seems to mess with the message count and last activity timestamp on social groups listing when both social group messages and social forum are available. Since you give an option to either turn off the group messages or leave them on, you should at least take in consideration cases when a social group has both group messages and forum posts. Message count should be sum of messages and posts and last activity timestamp should take the last message or the last post.

SocialForum 1.4.6
vBulletin 3.7.4 PL1
PHP 5.2.6
MySQL 5.0.51a-community

flOid 11-27-2008 09:03 AM

As promised, I'm now publishing a tool to convert the social forums of this mod to the new social group discussions feature in vB 3.8.

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

ReCom 11-27-2008 09:40 AM

Quote:

Originally Posted by flOid (Post 1673905)
As promised, I'm now publishing a tool to convert the social forums of this mod to the new social group discussions feature in vB 3.8.

Hey thanks! I was worrying about upgrading to 3.8.x because of SocialForum. Now I can be relieved to plan the upgrade when 3.8 gold is out.

p/s: maybe you could put the tool up as a mod on its own? there's a setting in vb.org mod thread where you can relate your tool back with SocialForum.

flOid 11-27-2008 10:13 AM

Quote:

Originally Posted by ReCom (Post 1673920)
Hey thanks! I was worrying about upgrading to 3.8.x because of SocialForum. Now I can be relieved to plan the upgrade when 3.8 gold is out.

p/s: maybe you could put the tool up as a mod on its own? there's a setting in vb.org mod thread where you can relate your tool back with SocialForum.

I was considering this, but since this is not really a vB mod, but just a converter script working completely independently from vB, I wasn't sure if it would be appropriate to publish it as a mod of it's own...

I guess i should contact a moderator to clarify this.

ReCom 11-27-2008 12:12 PM

Quote:

Originally Posted by ReCom (Post 1672277)
Also, the mod seems to mess with the message count and last activity timestamp on social groups listing when both social group messages and social forum are available. Since you give an option to either turn off the group messages or leave them on, you should at least take in consideration cases when a social group has both group messages and forum posts. Message count should be sum of messages and posts and last activity timestamp should take the last message or the last post.

SocialForum 1.4.6
vBulletin 3.7.4 PL1
PHP 5.2.6
MySQL 5.0.51a-community

In reference of my bug report above, I'm tired of waiting so I've fixed it myself. For those forum admins who have both social group messages and social forums (i.e those who didn't disable group messages when installing socialforums), and are bothered with this mod messing the post counts and last post timestamps, here is how to fix it:

Open plugin SocialForums (group_prepareinfo).

Find the following codes:
PHP Code:

            $group['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $getlastpostinfo['lastpost'], true);
            
$group['lastposttime'] = vbdate($vbulletin->options['timeformat'], $getlastpostinfo['lastpost']);

             
$group['lastposterid'] = "";
             
$group['lastposter'] = ""

Wrap it in an IF block, resulting in:
PHP Code:

        if ($getlastpostinfo['lastpost'] > $group['lastpost'])
        {
            
$group['lastpostdate'] = vbdate($vbulletin->options['dateformat'], $getlastpostinfo['lastpost'], true);
            
$group['lastposttime'] = vbdate($vbulletin->options['timeformat'], $getlastpostinfo['lastpost']);

             
$group['lastposterid'] = "";
             
$group['lastposter'] = "";
        } 

Next find
PHP Code:

            $group['visible'] = $getlastpostinfo['threads'] + $getlastpostinfo['replies']; 

Change it to
PHP Code:

            $group['visible'] += $getlastpostinfo['threads'] + $getlastpostinfo['replies']; 

I sincerely hope for this mod creator to include this fix in the next version.

btw, these two lines in the plugin irritate me:
PHP Code:

         $group['lastposterid'] = "";
             
$group['lastposter'] = ""

Is it too hard to find out the username of the last poster? My next post in this thread will be a fix for the two lines, if the next version doesn't fix it or it's taking too much time.

powerful_rogue 11-28-2008 01:25 PM

Hi,

Before I look at upgrading to 3.8, does 3.8 have the feature of allowing members to create a forum for their group like this mod allows?

killa seven 11-29-2008 11:33 AM

I've uploaded all of the files to there right spot, but when i go to upload the product...it says intall includes/socialforumfunctions.php first, can someone help me?

flOid 12-03-2008 01:05 PM

Quote:

Originally Posted by ReCom (Post 1673920)
p/s: maybe you could put the tool up as a mod on its own? there's a setting in vb.org mod thread where you can relate your tool back with SocialForum.

Done now. See https://vborg.vbsupport.ru/showthread.php?t=197898

Would be nice if thise who already used this script would mark this mod as installed now.

powerful_rogue 12-03-2008 06:30 PM

Quote:

Originally Posted by powerful_rogue (Post 1674539)
Hi,

Before I look at upgrading to 3.8, does 3.8 have the feature of allowing members to create a forum for their group like this mod allows?

bump


All times are GMT. The time now is 02:09 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.01939 seconds
  • Memory Usage 1,763KB
  • 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
  • (5)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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