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)
-   -   Forum Home Enhancements - User's Social Groups on Forum Home (like forumlist, fully templated) (https://vborg.vbsupport.ru/showthread.php?t=203721)

hoopsta 03-15-2009 07:18 PM

Quote:

Originally Posted by hoopsta (Post 1767650)
good idea, but what is this eror message all about?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 246

anyone?

silly rabbit 03-18-2009 10:46 AM

Quote:

Originally Posted by hoopsta (Post 1767650)
good idea, but what is this eror message all about?

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 246


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 378

hoopsta, getting same and have seen it before . . . pretty sure it has to do with running mysqli (5.0.67) - see here, will investigate further. Edit "Plugin Manager-> forumhome code -> forumhome_start" and the one reference is around line 97!
Rabbit

hoopsta, I upgraded to patch release 3.8.1 and still no avail! I did the following, simply comment "// " the function out and added "TRUE" ? ? ? It seems to be working ok (shows *last message*) but ? ? ? (hardly ideal!) "google" returned no satisfactory solution & vBulletin com was no help at all 'cause all they could suggest is "disable the plugin"!

I am also running PHP 5.2.6

PHP Code:

// if (mysql_num_rows($result) > 0)  
if (TRUE

I also changed standard phrasing "New messages in my social groups" to " Latest messages in Your Social Groups" (function the same as original? :confused:)

hoopsta 03-18-2009 11:36 PM

yea this is to bad because I could really use this hack on my forum

qbn720 03-19-2009 04:22 AM

Installed and Nominated. Excellent add-on, I love it. Displaying them as forums is an exceptionally brilliant idea.

+ For the future versions of this hack, see if you can limit the description area for the social groups. It's only a minor disruption but it's absolutely worth it.

imedic 03-23-2009 02:34 PM

Great product. Unfortunately I get on 3.8.1 the following error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 186

It does show the table but keeps saying "You are currently not a member of a social group." even if I am member / creator of usergroups.

I will keep a close eye for this one and install it when it will work for me.

smnet 03-23-2009 03:52 PM

Quote:

Originally Posted by imedic (Post 1775049)
Great product. Unfortunately I get on 3.8.1 the following error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 186

It does show the table but keeps saying "You are currently not a member of a social group." even if I am member / creator of usergroups.

I will keep a close eye for this one and install it when it will work for me.

I am having the exact same issue almost.

Database read marking is on, i am a member of several groups and creator of several.

Nothing shows on forum home except a message which reads:-

You are currently not a member of a social group.
See what you are missing

Does anyone know why this mod doesnt work properly for me?

Edit: I've also subscribed to some new groups and still nothing shows.

Saidinou 03-23-2009 04:22 PM

Hello,

can anyone tell me if links (last post) work with vBseo?

PrincessFiona 03-24-2009 09:04 PM

perfect, thanks!

I don't suppose you could code something like this for the blogs that a member is subscribed to???? =)

Kris

Revan 03-30-2009 11:38 AM

For those with the "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 186" error, open the forumhome code plugin and change
Code:

mysql_num_rows
to
Code:

$db->num_rows
Bit silly mistake, and there's some sessionurl variable mess-ups (using $session[sessionurl] when there's no parameter after "?" instead of just using $session[sessionurl_q] and no "?"), but overall it's a good mod and I'm glad I found it :)

imedic 04-08-2009 08:12 AM

Thanks Revan. All is working now. Great mode!

wacodep 04-10-2009 12:19 PM

What are the chanced of getting this to work with the Social Forums mod (converts the lame, neutered SG 'discussions' to actual forums)?

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

cellarius 04-10-2009 02:18 PM

Quote:

Originally Posted by Saidinou (Post 1766545)
Hello and thank you for this product,


I have a problem when vBseo is enabled. All the latest post are linked as:

PHP Code:

 /forum/group.php 


I use vBSEO myself and do not experience this problem, sorry... for me, the "latest"-links work perfectly well.

Quote:

Originally Posted by McCarroll21 (Post 1766357)
I'm loving this, but I'm having a problem with getting the forum icon to show correctly. When there is a new post, the forum marker doesn't change. It shows the forum marker for one without a new post. Any ideas?


Quote:

Originally Posted by PrincessFiona (Post 1776150)
perfect, thanks!

I don't suppose you could code something like this for the blogs that a member is subscribed to???? =)

Kris

Might this
Quote:

Limitations
  • Marking of new messages only works with database, not with cookie based marking of read threads (-> AdminCP setting)
    Explanation: This mod relys on the information in the database when a discussion was last read by the actual user. If you rely on cookies for this, you can use this mod anyway, but there will be no marking if there are unread messages by changed statusicons.

be the problem?
Quote:

Originally Posted by Revan (Post 1780282)
For those with the "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in [path]/index.php(67) : eval()'d code on line 186" error, open the forumhome code plugin and change
Code:

mysql_num_rows
to
Code:

$db->num_rows
Bit silly mistake, and there's some sessionurl variable mess-ups (using $session[sessionurl] when there's no parameter after "?" instead of just using $session[sessionurl_q] and no "?"), but overall it's a good mod and I'm glad I found it :)

Thanks for the fix, will be included in an upcoming release (soon ;)). 'course you're right, that was a really stupid one :o:D Also the wrong session variable.

Quote:

Originally Posted by wacodep (Post 1788166)
What are the chanced of getting this to work with the Social Forums mod (converts the lame, neutered SG 'discussions' to actual forums)?

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

None, really. I do not use that mod and will not change this one until I know what vB4 will make of the social groups.

wacodep 04-10-2009 03:41 PM

Quote:

Originally Posted by cellarius (Post 1788220)
None, really. I do not use that mod and will not change this one until I know what vB4 will make of the social groups.

It was worth asking, right? :)

The standard 'discussion' areas for SG's are lame as hell. You can't do half the stuff in them as you can with a real forum, such as attach files to messages posted in the threads, etc.

Hopefully, JelSoft will see the err of their ways and create REAL forums for the SG's 'discussion' areas instead of the neutered ones there now (3.8.x).

wacodep 04-10-2009 03:50 PM

Quote:

Originally Posted by cellarius (Post 1788220)
None, really. I do not use that mod and will not change this one until I know what vB4 will make of the social groups.

How about if you provided a way to toggle the display of the "Last Post" and "Posts" columns? That way, it would just show the group and the member count?

cellarius 04-10-2009 04:39 PM

v 1.4
+ some bugfixes
+ option to turn teaser message off
+ option to show several buttons: to start a new discussion - see the group's members list - see the group' photos (only shown if there are any attached pictures) - unsubscribe (only if subscribed groups are shown) (Thanks to glorify)

cellarius 04-10-2009 04:43 PM

Quote:

Originally Posted by wacodep (Post 1788289)
How about if you provided a way to toggle the display of the "Last Post" and "Posts" columns? That way, it would just show the group and the member count?

Sorry: But that's why the mod is fully templated. Just edit forumhome_cel_social_groups_groupsbit to easily achieve what you want. ;)

wacodep 04-10-2009 05:43 PM

Quote:

Originally Posted by cellarius (Post 1788326)
Sorry: But that's why the mod is fully templated. Just edit forumhome_cel_social_groups_groupsbit to easily achieve what you want. ;)

I *already* did that. I was just making a suggestion.

Forget it. Thanks.

cellarius 04-10-2009 06:47 PM

Quote:

Originally Posted by wacodep (Post 1788363)
I *already* did that. I was just making a suggestion.

Forget it. Thanks.

Hey, what's the problem? I develop this mod along the lines that suit my needs. If someone suggests a idea I like, I pick it up. If I don't like it or do not see the need, I don't. See: I'm not getting exactly paid for this ;)

You made a suggestion and I declined, telling you how to achieve what you want. How am I to know what you did or did not already do? No need to get tetchy.

RadioErewan 04-10-2009 10:48 PM

1 Attachment(s)
Here you have Polish translation of this mod (unfortunately there are few hard coded phrases for admin options).

Regards

cellarius 04-11-2009 07:26 AM

Thanks for the translation!

Also: Just found a template/style-error that (for me) only showed up in Google Chrome. Version 1.4.1 fixes only this small issue.

sensimilla 04-12-2009 07:16 PM

Great job, thanks.

nick_ramsay 04-13-2009 12:14 PM

I think this is a great mod. It's completely changed how social groups are perceived by my users. I do have one request though. There's a plugin I'm using that enables BBCode in Social Group descriptions, but unfortunately that BBCode doesn't get converted in the descriptions shown on the homepage. It would be great if a future version of this mod could accommodate BBCode, even if it's not yet standard in vB social groups.

wacodep 04-13-2009 02:22 PM

Quote:

Originally Posted by cellarius (Post 1788393)
Hey, what's the problem? I develop this mod along the lines that suit my needs. If someone suggests a idea I like, I pick it up. If I don't like it or do not see the need, I don't. See: I'm not getting exactly paid for this ;)

You made a suggestion and I declined, telling you how to achieve what you want. How am I to know what you did or did not already do? No need to get tetchy.

I'm fairly certain that I said, "Forget it. Thanks."

Generally, that means there is no need to continue defending your decision, as I have accepted it.

Again, thanks for your work on this.

starman? 04-13-2009 07:33 PM

I've just updated this to include the icons. Thanks again cellarius.

I was wondering if you could tell me how to adjust the width of the columns in your plug-in, as it doesn't align with my forums and I'm a fussy aesthetic type of a guy?

cellarius 04-14-2009 07:15 AM

No need to dive into the plugin. The columns are established in the template forumhome_cel_social_groups. That's just html, you can change column widths there fairly easily.

starman? 04-14-2009 01:59 PM

Cheers and appreciated.

cellarius 04-14-2009 09:25 PM

Quote:

Originally Posted by nick_ramsay (Post 1790156)
I think this is a great mod. It's completely changed how social groups are perceived by my users. I do have one request though. There's a plugin I'm using that enables BBCode in Social Group descriptions, but unfortunately that BBCode doesn't get converted in the descriptions shown on the homepage. It would be great if a future version of this mod could accommodate BBCode, even if it's not yet standard in vB social groups.

I'll think about it, tho at the moment I'm inclined to wait until vB4 is out at least in beta before adding to this mod any features, sorry.

Revan 04-19-2009 02:38 PM

I've made the following changes to this mod in order to make it fit into my forums more cleanly, and it'd be nice if some of these changes made it into the final mod (maybe via options)?

Variable: Placement changed:
Code:

Under $forumbits in the FORUMHOME template.
Change/Reasoning:
  • Changed placement to make it snap to the bottom of the forum list, in order to make it more in line with the rest of the forum lists.

Template
forumhome_cel_social_groups:
Code:

<if condition="$show_cel_sgfh">
<if condition="($cel_groups_hasresults) OR ($vboptions[cel_sgfh_show_teaser])">
<tbody>
    <tr>
    <td class="tcat" colspan="5">
        <a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('new_social_disc');"><img id="collapseimg_new_social_disc" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_new_social_disc].gif" alt="" border="0" /></a>
        <a href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a>$vbphrase[cel_sgfh_forumhome_title]
    </td>
    </tr>
</tbody>
    <tbody id="collapseobj_new_social_disc" style="$vbcollapse[collapseobj_new_social_disc]">
        $cel_sgfh_output
    </tbody>
    <if condition="$cel_groups_limit">
<tbody>
    <tr>
    <td class="tfoot smallfont" colspan="5" align="center">
        <strong>
            <a href="$cel_groups_show_more_link_href">$vbphrase[cel_sgfh_show_more]</a>
        </strong>
    </td>
    </tr>
</tbody>
    </if>
</if>
</if>


Changes/Reasoning:
  • Removed the custom header in order to make it respect the width of the forumbits.


Template
forumhome_cel_social_groups_groupsbit:
Code:

<if condition="($cel_groups_hasresults)">
<tr>
<td class="alt2Active">
    <img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]$statusimg.gif" alt="" border="0" />
</td>
<td class="alt1">
    <if condition="$vboptions[cel_sgfh_showbuttons]">
        <div style="float: right; padding: 3px;">
            <a href="group.php?$session[sessionurl]do=message&amp;groupid=$cel_groups[groupid]"><img src="$stylevar[imgdir_button]/cel_sgfh_new_discussion.png" alt="$vbphrase[cel_sgfh_new_discussion]" border="0" /></a>
            <a href="group.php?$session[sessionurl]do=viewmembers&amp;groupid=$cel_groups[groupid]"><img src="$stylevar[imgdir_button]/cel_sgfh_members.png" alt="$vbphrase[cel_sgfh_members_button]" border="0" /></a>
            <if condition="$cel_groups_pictures"><a href="group.php?$session[sessionurl]do=grouppictures&amp;groupid=$cel_groups[groupid]"><img src="$stylevar[imgdir_button]/cel_sgfh_picture.png" alt="$vbphrase[cel_sgfh_picture]" border="0" /></a></if>
            <if condition="$vboptions[cel_sgfh_show]==subscribed"><a href="group.php?$session[sessionurl]do=unsubscribe&amp;groupid=$cel_groups[groupid]"><img src="$stylevar[imgdir_button]/cel_sgfh_unsubscribe.png" alt="$vbphrase[cel_sgfh_unsubscribe]" border="0" /></a></if>
        </div>
    </if>
    <a href="group.php?$session[sessionurl]groupid=$cel_groups[groupid]">$cel_groups[name]</a><br /><span class="smallfont">$cel_groups[description]</span>
</td>
<td class="alt2 smallfont">
    <div style="white-space: nowrap">
        $cel_sgfh_output_lastmsg
    </div>
</td>
<td class="alt1" align="center">
    $cel_groups[discussions]
</td>
<td class="alt2" align="center">
    $cel_groups[visible]
</td>
</tr>

<else />
    <tr>
        <td class="alt1" colspan="5">$cel_groups_no_result_phrase</td>
    </tr>
</if>

Changes/Reasoning:
  • Removed hard-coded .gif extension from the plugin in order to support skins using transparent PNGs as their forum_on and forum_off images.
  • Changed members to discussions (equivalent of threads).
Template forumhome_cel_social_groups_lastmsgby:
Code:

<div class="smallfont" align="$stylevar[left]">
    <div>
        <span style="white-space:nowrap">
        <a href="group.php?$session[sessionurl]do=discuss&amp;gmid=$cel_groups[lastgmid]" style="white-space:nowrap" title="$vbphrase[go_to_last_post]"><strong>$cel_groups[trimmed_lastdiscussion]</strong></a></span>
    </div>
    <div style="white-space:nowrap<if condition="is_browser('ie', 6)">; float:$stylevar[left]</if>">
        <phrase 1="member.php?$session[sessionurl]u=$cel_groups[lastposterid]" 2="$cel_groups[lastposter]">$vbphrase[by_x]</phrase>
    </div>
    <div align="$stylevar[right]" style="white-space:nowrap">
        $cel_groups[lastmsgdate] <if condition="!$show['detailedtime']"><span class="time">$cel_groups[lastmsgtime]</span></if>
        <a href="group.php?$session[sessionurl]do=discuss&amp;gmid=$cel_groups[lastgmid]#gmessage$cel_groups[lastgmid]"><img class="inlineimg" src="$stylevar[imgdir_button]/lastpost.gif" alt="$vbphrase[go_to_last_post]" border="0" /></a>
    </div>
</div>

Changes/Reasoning:
  • Fixed &gmid to &amp;gmid, because of XHTML validity.
Plugin forumhome code:
Code:

                if ($cel_groups['readtime'] AND $cel_groups['lastpost'] > $cel_groups['readtime'])
                {
                    $statusimg = "forum_new";
                }
                else
                {
                    $statusimg = "forum_old";
                }

Changes/Reasoning:
  • Removed hard-coded .gif extension from the plugin in order to support skins using transparent PNGs as their forum_on and forum_off images.

I believe these changes, especially if added as options, will be beneficial for those like me, who prefer to have the Social Groups list exactly the same way as any other forum category :)

BigDog56 04-19-2009 05:04 PM

Installed, works great! thank you!

BigDog56 04-20-2009 11:45 AM

Had to uninstall it. Seems no one's posts were showing up in any of the forums. On forum home you would see them, but when you went to the forum itself, no posts showed up from the time the mod was installed.

cellarius 04-20-2009 01:18 PM

Quote:

Originally Posted by BigDog56 (Post 1795082)
Had to uninstall it. Seems no one's posts were showing up in any of the forums. On forum home you would see them, but when you went to the forum itself, no posts showed up from the time the mod was installed.

This mod is not about forums, it's about social groups. So I'm not really sure what your problem was or is. If I am to help you on this, I will require a significantly clearer description of what the problem is and what you are doing.

If I'm guessing right: There's no function in this mod that possibly could prevent posts to social groups discussions inside the social groups system from being displayed. This mod does not mess in any way with the social groups system as is, it only qeries information from the database and displays it - and it does so only on Forumhome.

BigDog56 04-20-2009 01:47 PM

Quote:

Originally Posted by cellarius (Post 1795125)
This mod is not about forums, it's about social groups. So I'm not really sure what your problem was or is. If I am to help you on this, I will require a significantly clearer description of what the problem is and what you are doing.

If I'm guessing right: There's no function in this mod that possibly could prevent posts to social groups discussions inside the social groups system from being displayed. This mod does not mess in any way with the social groups system as is, it only qeries information from the database and displays it - and it does so only on Forumhome.

Thanks for the response. The posts that don't show are in the forum, not the posts in the social groups. Example. I create a thread in one of our forums called chit chat. On the forum home page, on the right hand side it shows the most recent post in that forum, hence the new thread. But when I click on the chit chat forum, the thread is not there. Nor are any new posts any member made. Once I disabled the mod, the posts and thread appeared. Maybe this is clashing with another modification.

cellarius 04-20-2009 02:03 PM

Yeah, probably a conflict of some sort. Though I really cannot see this mod influencing the display of threads or posts in forums :eek:

BigDog56 04-20-2009 02:06 PM

Update: I repaired and optimized all my tables and reinstalled it. Seems to be working ok. I'll let you know!

cellarius 04-20-2009 02:18 PM

Good news! :up: Hope it works out for you!

BigDog56 04-20-2009 02:22 PM

Quote:

Originally Posted by cellarius (Post 1795178)
Good news! :up: Hope it works out for you!

Thank you! And thank you for your hard work creating this mod! :up:

der_darkon 04-20-2009 03:19 PM

Great Mod, i really love it :)

Is there any way to get this into the VBa CMPS-Portal?

redlabour 04-21-2009 03:25 AM

1 Attachment(s)
Awesome Mod. Here is the german Translation (Frontend)....

@cellarius - please include the Template edit-Instruction at the next Update to the install.txt. ;)

Regards

cellarius 04-21-2009 05:19 AM

Quote:

Originally Posted by redlabour (Post 1795672)
Awesome Mod. Here is the german Translation (Frontend)....

Danke daf?r! H?tt' ich eigentlich auch schon mal machen k?nnen :o

Quote:

@cellarius - please include the Template edit-Instruction at the next Update to the install.txt. ;)
Will do.

cellarius 04-21-2009 03:31 PM

Quote:

Update to version 1.5 - What's new?

Enhanced core feature: checking for unread messages
  • Explanation: up to now, the mod only took into account the last message in a social group, meaning: if the user read the last message, but there were still unread messages in other discussions, the group was marked as read anyway. This has now been changed: As long as there are *any* unread messages in a social group, it will be marked as containing unread messages. When checking the mod takes into account the database Read Marking Limit set in vB options, i.e. after a certain number of days messages will no longer be taken into account.
  • Cost: This feature adds one additional query to forumhome (not per group listed, but overall). This means that this mod adds 2 queries alltogether.
New Options in AdminCP
  • apply custom css formatting to grouptitle
  • trim group description or disable it (will trim at spaces only, not inside words)
  • parse bbcode in group descriptions (cannot be used together with trimming as closing tags might get lost)
  • option to use a statusicon different from the forums (see instructions in AdminCP options)
  • use .png instead of .gif files for statusicons
  • show groupicon instead of statusicon (marking of new groups via grouptitle css)

Hope you like it!


All times are GMT. The time now is 12:53 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.01765 seconds
  • Memory Usage 1,881KB
  • 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
  • (9)bbcode_code_printable
  • (2)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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