vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Mini Mods - "Meet our Team" in Forumhome (https://vborg.vbsupport.ru/showthread.php?t=168320)

vbFreelancers 01-19-2008 10:00 PM

"Meet our Team" in Forumhome
 
Removed by the Author
due to luck of free time to support it.
------------------------------------------------------------


Meet our Team in Forumhome
by vbFrerlancers


New features in version 1.1.0
  1. Now you can choose to show user's Avatar or Image. If you choose Image and there is no one, then user's Avatar is displaying
  2. You can choose any usergroup you want to show
  3. Code moved to hook system, so you don't need any file or templates modifications.
I developed this mini-mod for our site, but I thought that maybe some of you, need something like this, so I added some attractive options to fit to your special needs.

1.- What it does

Very simple things comparing with our other mods. This shows your site's team in forum home. It's a good way to introduce yourselves to your visitors and members.

2.- Options


I believe that I added lots of configurable options (have more in my mind), but everything is depending on it's popularity. The default options are:
  1. Show/Hide the blocks
  2. How many members to show in the block
  3. Choose to show Avatar or user's Image
  4. If you choose Image you can setup the max width
  5. What interface to use for the block (Table or Fieldset)
  6. If it's table to use border or not
  7. Show header for the block or not
  8. Text to use for header
  9. Show online/offline status (Yes/No)
  10. Show last activity (Yes/No)
  11. Text for Last Activity (eg Last seen)
3.- Installation


Installation is pretty easy:
  1. Upload all files and directories including at "vbulletin" directory to the directory where vBulletin is installed.
  2. Check at your AdminCP->vBulletin Options->Plugin/Hook System that Plugin system is enabled.
  3. From your AdminCP->Plugin System->Manage Products choose Add/Import Product and import the product: product_siteteam.xml
  4. Set the various options at: Meet Our Team Options. If you can't see the menu on the left, press F5
4.- Upgrade from versions 1.0.0 & 1.0.1
  1. Revome the code that you've added at index.php
  2. Remove the variable $siteteam from FORUMHOME template
  3. Follow the steps for a new installation
That's all. Hope to enjoy it:)

Marina

bokmade 01-21-2008 01:12 AM

Fantastice ..

Install ..

ShawneyJ 01-21-2008 01:47 AM

sweet hack, would like to see a link you can click on that shows the team leaders else where than just on forum home,

eg: in nava "meet our staff" CLICK and new page opens.

anyway nice job :)

Hornstar 01-21-2008 04:42 AM

Awesome! i really like this one. this will be really useful for one of my sites, to make it look more professional and personal at the same time. Thanks.

Brandon Sheley 01-21-2008 04:54 AM

oooOo,, this couldn't of came at a better time for me! :D
I'll be installing this in the next few days

thanks

one question, on the "what usergroups to show"

what does both of them mean ?
I'd like to set this via usergroup like 4,5,6
I'm building a team that isn't a mod or admin
I can just edit the plugin for now, but maybe in the future we can add more usergroups then just the mods

cheers

vBVision 01-21-2008 07:55 AM

Well, but how to add super moderators here?;)

vbFreelancers 01-21-2008 08:11 AM

Quote:

Originally Posted by Philosopher (Post 1425711)
Well, but how to add super moderators here?;)

I'll fix it. I forgot that there are also super moderators:rolleyes:

Magnumutz 01-21-2008 09:50 AM

It's a nice mod but... i'd better not have this on the forumhome...

vbFreelancers 01-21-2008 09:57 AM

Quote:

Originally Posted by Magnumutz (Post 1425731)
It's a nice mod but... i'd better not have this on the forumhome...

You can add it anywhere you like (just to be a vB page).

MR.BOSS 01-21-2008 10:58 AM

nice mod, could it be other than mods or admins, like other usergroup?
or can you costomize to be used like for the best posters in the forums? or you choose which member to be displayed?

thanks

Magnumutz 01-21-2008 11:57 AM

Quote:

Originally Posted by vbFreelancers (Post 1425738)
You can add it anywhere you like (just to be a vB page).

Yeah, i know... it's a template mod as well.
I'm still thinking where it would fit best and with which modifications :)

lazydesis 01-21-2008 01:12 PM

hey nice hack .. can this be done without file edits?

in today's world of templates .. its kind of scary to do file edits .. especially with so many new versions of vb with bug fixes coming out every couple of days

AtaPulja 01-21-2008 02:26 PM

Hi!

I get error;

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1243) : eval()'d code on line 11

Help..

vbFreelancers 01-21-2008 02:41 PM

Quote:

Originally Posted by AtaPulja (Post 1425875)
Hi!

I get error;

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1243) : eval()'d code on line 11


Help..

This error dosen't comes from my mod, but from a vb's file. Seeing the message I think that it can't add (use) a template. Maybe there is an error in the template.

lasto 01-21-2008 03:28 PM

how picking say 5 random members from a set usergroup per day or week or is this taking it to far :)

MR.BOSS 01-21-2008 03:40 PM

Exactly lasto,

i wish it could be other than mods or admins, like other usergroup?
or can you costomize to be used like for the best posters in the forums? or you choose which member to be displayed?

thanks

lasto 01-21-2008 04:48 PM

an even better one would be to say pick the last 5 users from a specific usergroup.
So say u have a Donators usergroup it would show the last five people who have donated.All based on usergroup ID

MR.BOSS 01-21-2008 05:39 PM

yes, I think the best one will be is to choose the members manually.. by the name or something..

thanks

ssvp 01-21-2008 11:21 PM

I had to uninstall it.. My online.php would fail when viewing who's online. Don't get me wrong it worked fine on the forumhome as it's supposed to.. But killed my online.php on this particular 3.7 forum. It works fine on my other 3.7.. Just a clash of products probably..

Now we just need someone to write a Meet the Staff Page for VB that pulls profile or avatar pick and BIO from Admin/Mod/Smod into custom page..:)

ragtek 01-23-2008 09:41 AM

why your making the fileedit?
under all done is a hook!! ( => forumhome_complete )

Brandon Sheley 01-23-2008 11:47 AM

Can you check my reply ? :(
I'd like to select what groups I want to show as the "team"
Can you add this in the next version ?

Thanks

vbFreelancers 01-25-2008 05:58 AM

Quote:

Originally Posted by Loco.M (Post 1427302)
Can you check my reply ? :(
I'd like to select what groups I want to show as the "team"
Can you add this in the next version ?

Thanks

Added on version 1.1.0

R-D 01-25-2008 08:14 AM

Error after importing product:

Quote:

Database error in vBulletin 3.6.8:

Invalid SQL:

SELECT language.phrasegroup_vbfengine AS phrasegroup_siteteam
FROM user AS user
LEFT JOIN language AS language
ON (language.languageid = IF(user.languageid = 0, 1, user.languageid))
WHERE user.userid = 4;

MySQL Error : Unknown column 'language.phrasegroup_vbfengine' in 'field list'
Error Number : 1054
Date : Friday, January 25th 2008 @ 11:06:32 AM
Script : *edited*
Referrer :
IP Address : *edited*
Username : *edited*
Classname : vB_Database

Magnumutz 01-25-2008 08:31 AM

Weeeeeeeeell... this is a 3.7 hack... not a 3.6.

vbFreelancers 01-25-2008 08:48 AM

Quote:

Originally Posted by R-D (Post 1428557)
Error after importing product:

My apologies. Working on another mod, I mistyped a word. Please import attached file.
** ZIP UPDATED **

vbFreelancers 01-25-2008 08:49 AM

Quote:

Originally Posted by Magnumutz (Post 1428560)
Weeeeeeeeell... this is a 3.7 hack... not a 3.6.

Works fine in both versions.

Cornie 01-25-2008 09:10 AM

I have Database error by Usergroups

R-D 01-25-2008 09:19 AM

Quote:

Originally Posted by vbFreelancers (Post 1428564)
My apologies. Working on another mod, I mistyped a word. Please import attached file.
** ZIP UPDATED **

That also exists in siteteam_admin.php.

If anyone wants to manually edit their siteteam_admin.php:
Change:
Code:

$phrasegroups = array(
  'vbfengine',
        'style'
);

to:
Code:

$phrasegroups = array(
  'siteteam',
        'style'
);

That eliminates the Usergroups database error.

MR.BOSS 01-25-2008 09:22 AM

please can you reply,, would it be possible to choose which member to be on the list.

thanks

Cornie 01-25-2008 09:32 AM

Quote:

Originally Posted by R-D (Post 1428575)
That eliminates the Usergroups database error.

Thanks :)

MR.BOSS 01-25-2008 09:34 AM

how can i show the members, i went to the vb options there is no option saying which usergroup to show, please help

here is a screen shot!

R-D 01-25-2008 09:43 AM

Quote:

Originally Posted by MR.BOSS (Post 1428585)
how can i show the members, i went to the vb options there is no option saying which usergroup to show, please help

here is a screen shot!

There's an option menu in the left menubar for the hack, under the vB options, called Meet Our Team. You might need to refresh the page first and then click "Meet Our Team" to show the options and the usergroups link.

Cornie 01-25-2008 09:52 AM

I cannot change the groups of users. The administrators always participate

MR.BOSS 01-25-2008 09:57 AM

thanks R-D, but im getting database error whenever i click usergroups

Cornie 01-25-2008 10:00 AM

edit their siteteam_admin.php




Quote:

Originally Posted by R-D (Post 1428575)
That also exists in siteteam_admin.php.

If anyone wants to manually edit their siteteam_admin.php:
Change:
Code:

$phrasegroups = array(
  'vbfengine',
        'style'
);

to:
Code:

$phrasegroups = array(
  'siteteam',
        'style'
);

That eliminates the Usergroups database error.


MR.BOSS 01-25-2008 10:05 AM

thanks, ok now when i choose which usergroup i want to display, i want to choose some members of that particular group, can i do that?

thanks mate

Cornie 01-25-2008 10:12 AM

I have a problem with the group attitudes. It indicates also the administrators

vbFreelancers 01-25-2008 10:12 AM

Quote:

Originally Posted by MR.BOSS (Post 1428585)
how can i show the members, i went to the vb options there is no option saying which usergroup to show, please help

here is a screen shot!

At admin's menu, below Options, there is a second menu option to choose Usergroups.

vbFreelancers 01-25-2008 10:13 AM

Quote:

Originally Posted by Cornie (Post 1428599)
I have a problem with the group attitudes. It indicates also the administrators

That's strange. I tested it many times. Even now in our site, admins our out, and it dosen't display them.

vbFreelancers 01-25-2008 10:15 AM

Quote:

Originally Posted by MR.BOSS (Post 1428595)
thanks, ok now when i choose which usergroup i want to display, i want to choose some members of that particular group, can i do that?


thanks mate

No, you can choose only usergroups and not specific members. As I wrote in another post (maybe in the thread for vB 3.6.x), is you want to treate with a special way some of your valueable users, is better to assign them in a special group. Not becuase this way you'll be able to show them with my mod, but in the future you can use this special group in other mods too.


All times are GMT. The time now is 01:25 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.01334 seconds
  • Memory Usage 1,827KB
  • 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
  • (4)bbcode_code_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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