View Full Version : Mini Mods - "Meet our Team" in Forumhome
vbFreelancers
01-19-2008, 10:00 PM
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
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
You can choose any usergroup you want to show
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:
Show/Hide the blocks
How many members to show in the block
Choose to show Avatar or user's Image
If you choose Image you can setup the max width
What interface to use for the block (Table or Fieldset)
If it's table to use border or not
Show header for the block or not
Text to use for header
Show online/offline status (Yes/No)
Show last activity (Yes/No)
Text for Last Activity (eg Last seen)3.- Installation
Installation is pretty easy:
Upload all files and directories including at "vbulletin" directory to the directory where vBulletin is installed.
Check at your AdminCP->vBulletin Options->Plugin/Hook System that Plugin system is enabled.
From your AdminCP->Plugin System->Manage Products choose Add/Import Product and import the product: product_siteteam.xml
Set the various options at: Meet Our Team Options. If you can't see the menu on the left, press F54.- Upgrade from versions 1.0.0 & 1.0.1
Revome the code that you've added at index.php
Remove the variable $siteteam from FORUMHOME template
Follow the steps for a new installationThat'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
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
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
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
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
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
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
Error after importing product:
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
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
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
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:
$phrasegroups = array(
'vbfengine',
'style'
);
to:
$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
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!
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
That also exists in siteteam_admin.php.
If anyone wants to manually edit their siteteam_admin.php:
Change:
$phrasegroups = array(
'vbfengine',
'style'
);
to:
$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
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
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
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.
Cornie
01-25-2008, 10:16 AM
In the zip file is missing vbF_Functions.php.
vbFreelancers
01-25-2008, 10:22 AM
In the zip file is missing vbF_Functions.php.
You don't need this file anymore. I wrote it in the 1st post. All code has been moved to product-siteteam.xml
I just added an admin file.
Marina
Hornstar
01-25-2008, 10:27 AM
Thanks, looks like this has now improved alot.
Cornie
01-25-2008, 10:28 AM
:D I had still the old code in index.php. Now is all ok
Cornie
01-25-2008, 10:31 AM
I have still the user groups "donors" and "children", as also still get I into the list
vBVision
01-25-2008, 11:16 AM
What must I do to show admins, moderators and supermoderator?
Cornie
01-25-2008, 11:37 AM
What must I do to show admins, moderators and supermoderator?
All three user groups mark
vBVision
01-25-2008, 11:53 AM
Oh, thanks! And how to change the place of the bar in my forumhome? Now it is shown on the bottom of my page, below the forum statistics. What must I do?
vbFreelancers
01-25-2008, 01:46 PM
Oh, thanks! And how to change the place of the bar in my forumhome? Now it is shown on the bottom of my page, below the forum statistics. What must I do?
That's the only place that I was able to add it. That's the bad point of hook instead modifying the template. For some reason, I wasn't able to add it at the top, something that was possible with other of our mods.
vBVision
01-25-2008, 04:40 PM
But can't I replace the place by means of template editing, as in the previews version?
lasto
01-25-2008, 09:24 PM
i dont like hooks because they move stuff which looks out of place.Is there nothing we can edit to be able to call the box in where we would like it.
ALso this hack is even better now u allowed to select which usergroup we can use.Thanks
lasto
01-25-2008, 09:31 PM
why do i get this error
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
belai123
01-26-2008, 12:48 PM
This interferes with the Just Joined Mod
vbFreelancers
01-26-2008, 01:52 PM
This interferes with the Just Joined Mod
Fixed (Just Join). There was a variable confusion. You don't need to do anything. I changed the other mod.
lasto
01-26-2008, 05:15 PM
still dont answer why i get the error above so i cant use the hack.If i turn it off the error goes so it is obviously interfering with something on my board and i have a bad suspicion it is cybs advanced Stats.
Is there no way to fix it ?
vbFreelancers
01-26-2008, 06:05 PM
why do i get this error
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /includes/functions.php(1259) : eval()'d code on line 5
I don't think that it comes from my mod.
lasto
01-26-2008, 06:12 PM
it deffo does.As stated above if i unactivate the plugin the error goes away.Also no errors before hack active and errors only appears once hack is hactive.
Also have u not noticed how many errors there is :
There is 7 because on the admin options page i told it to display 7 users.Now if i tell it to display 2 users then the errors appear only twice.
vbFreelancers
01-26-2008, 06:34 PM
it deffo does.As stated above if i unactivate the plugin the error goes away.Also no errors before hack active and errors only appears once hack is hactive.
Also have u not noticed how many errors there is :
There is 7 because on the admin options page i told it to display 7 users.Now if i tell it to display 2 users then the errors appear only twice.
Most probably you misunderstood my meaning. By saying that it dosen't seems to come frome my mod, means that in conjuction with vB. Maybe it confuses with another mod, that's possible. Instead to deactivate it, have you tried to deactivated the other mods? Only and only in this case you can say for sure that it comes from my mod.
In second hand, as I don't know if you did new install or upgraded the old installation. If it's the 2nd, have you follown my instructions for removing the old code?
JAuthement
01-26-2008, 07:52 PM
Nice mod for a small site but for a larger site with multiple Admins, Super Mods, Mods ... etc. not all can be shown on the FORUMHOME ... IMO ... it would be a better mod if it was it's own page .
lasto
01-26-2008, 08:23 PM
i installed from fresh - no upgrade.Like i said i think this hack is interfering with another hack which i have running on my board.
Cornie
01-27-2008, 05:47 AM
i installed from fresh - no upgrade.Like i said i think this hack is interfering with another hack which i have running on my board.
turn all Hacks on out and then single again and examine thereby which chop for the disturbance is responsible
lasto
01-27-2008, 06:17 AM
I know for sure which hack it is - cybs advanced stats but id rather turn this hack off than that one as that has a lot more uses.
Brandon Sheley
01-28-2008, 12:15 AM
Added on version 1.1.0
Can you please add the usergroup numbers instead of the setup you have now.
Say I want to show groups 2,6,15
With the current system, this isn't possible.
thanks
also the "image width" doesn't hold the images at "80" pix :(
ptwiggens
02-20-2008, 01:59 AM
Okay... I installed this and it worked for a couple hours... and then I started getting these errors:
"Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /index.php(539) : eval()'d code on line 13"
"Unable to add cookies, header already sent."
Now... I know you've said you don't think it is from your mod... so I tested it out.
I disabled ALL mods except for yours... and the error remained. As soon as I disabled yours it went away.
So... its DEFINITELY your mod. Now the question is... how do we fix this?
Namaless
02-23-2008, 03:54 PM
Into your loop $team get musername style with:
$team['username'] = fetch_musername($team);
Use this before to fetch template bits ;)
Another fix:
Template Cache
for use template cache create new plugin, select SiteTeam Product, set name of plugin example "SiteTeam - Cache Templates", select "cache_templates" hook and into codebox insert:
$globaltemplates = array_merge($globaltemplates, array('postbit_onlinestatus', 'siteteam_main', 'siteteam_teambits'));
This use now 100% all features of vb 3.7 ^_^
Thanks :)
"Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /index.php(539) : eval()'d code on line 13"
"Unable to add cookies, header already sent."
I'm having the same problem too.
I disabled the other mods and when I came to this one it fixed everything. So, it surely is this mod causing this problem.
I'll wait for a fix before re-enabling this mod.
It's too bad too because it's pretty cool, I just wish I had thought about logging out to test it sooner :(
Brandon Sheley
02-29-2008, 03:56 AM
I guess this should say "Un" Supported :(
a real bummer, I'd like to use it.
SwollenCranium
03-05-2008, 04:19 PM
I'm having the same problem too.
It's too bad too because it's pretty cool, I just wish I had thought about logging out to test it sooner :(
Agreed.
I get a near identical error.
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /index.php(539) : eval()'d code on line 245
Uninstalling NOW.
NeuroLancer
03-06-2008, 03:41 AM
I had array_merge() errors in another mod by vbfreelancers, the just Join Us mod.
I found this thread (https://vborg.vbsupport.ru/showthread.php?t=125302) about how to deal with the array merge errors. I was able to fix mine, but I cheated and removed the code: $vbphrase = array_merge($vbphrase, $tmp); from the plugin.
Haven't looked back since, might be worth a try for this mod also.
cypher1973
03-09-2008, 05:35 PM
im using the vbulletin basic skin and i see in the screenshot that you have yours just above the whos online box can you please tell me how to do that >??
many thanks
andy
OrionsMom
03-10-2008, 01:19 AM
Is there a way to use this with vbAdvanced CMPS? I would like this on my homepage instead of or along with the forum home.
powerful_rogue
03-12-2008, 07:00 PM
im using the vbulletin basic skin and i see in the screenshot that you have yours just above the whos online box can you please tell me how to do that >??
many thanks
andy
Ditto,
I think this would look so much better above the who's online box rather then stuck at the bottom of the forum. It currently looks out of place.
Tom_S
03-22-2008, 06:41 PM
Did anyone get an answer on how to relocate this to where you want it instead of at the bottom of forumhome? I would like it to be under the stats.
dancue
03-28-2008, 03:11 AM
Agreed.
I get a near identical error.
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /index.php(539) : eval()'d code on line 245
Uninstalling NOW.
Alright people. I've figured out what the issue is.
The Problem:
Unfortunately, the mod was made for php4, not php5. Those of you running php5 on your servers will receive this error.
Solution:
Go into Plug-in Manager and edit the Show Meet our team at forum home page plug-in.
Change this:
$tmp = unserialize($user["phrasegroup_siteteam"]);
to this:
$tmp[] = unserialize($user["phrasegroup_siteteam"]);
No more errors for those of you running php5. Worked for me.
Thanks again to Abe1 who helped me figure this out!!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.