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=168319)

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

TCE Killa 01-20-2008 11:42 PM

Thanks man, works great, one thing though, you should add Super Moderators to it as well, not just mods and admins. Thanks alot though, marked installed.

0tolerance 01-21-2008 12:23 AM

Its an awesome mod and im thinking of adding it to my website.
As an addon to it, you should add a options menu to select which groups to show, so some people can show admin only others can show every one..
perhaps even

PinkDaisy 01-21-2008 01:41 PM

great hack!
Is there a way to have it show all of the team (admin/super mods/mods) but maybe not have it stretch the page and have the rest as a more link to open up? hope this makes sense!

vbFreelancers 01-21-2008 02:01 PM

Quote:

Originally Posted by PinkDaisy (Post 1425846)
great hack!
Is there a way to have it show all of the team (admin/super mods/mods) but maybe not have it stretch the page and have the rest as a more link to open up? hope this makes sense!

I'll fix it (actually it's just a line of code) to include super mods. As for the other. The templare dosen't uses fix width but 100% of the place that you'll put it. If you add it in a smaller place will not cover the whole width. But of course you must reduce the amount of shown users.
If you want to add them in a column rather than a row, it needs 2 trivials template modifications

AtaPulja 01-21-2008 02:21 PM

Thanks

Pitman 01-21-2008 04:19 PM

Quote:

Originally Posted by vbFreelancers
- Open your vB index file (usally index.php)
Search for:
Code:

// ### ALL DONE!
Add above:
Code:

if($vbulletin->options['siteteam_active'] == '1')
 {
  require_once('vbF_Functions.php');
  $teambits = meet_our_team();           
  eval('$siteteam = "' . fetch_template('siteteam_main') . '";');
  }


Couldn't this be used as a plugin using the forumhome_complete hook?

vbFreelancers 01-21-2008 04:34 PM

Quote:

Originally Posted by Pitman (Post 1425962)
Couldn't this be used as a plugin using the forumhome_complete hook?

Maybe in a later update. As I wrote in my post I did this mod for my own use and then thought to post it here and I added the admin section. If I see that there is a good amount of downloads I'll extend it in many ways. eg by letting admin decide to use avatar or image, or more complicated "avatar if no image exists" and many other things.

TCE Killa 01-21-2008 06:56 PM

What do I add into templates to add Super Mods to the Site Team? Thanks.

Sofia 01-21-2008 07:08 PM

Thank you, vbFreelancers. Very nice hack. :)
Maria's daughter ? I hope she is well :)


All times are GMT. The time now is 01:51 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.02088 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_quote_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