vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Honorable Member (https://vborg.vbsupport.ru/showthread.php?t=106188)

Zachariah 01-23-2006 10:00 PM

Honorable Member
 
Honorable Member 1.0 - (day / week /month / year)

Cerdits: Vb 3.0x Ver
Rigel Kentaurus (http://www.cemzoo.com)

Redesign:
Zachariah (http://www.gzhq.net)

################################################## ####################

This hack lets you "elect" @ random a Honorable Member.

The member is someone randomly picked from all the users in
your forum that met a certain criteria.

By default it appers in top of the forumhome. It is a nice way for members
of the forum to get to know each other.

DEMO - CMPS Block: Honorable Member

################################################## ####################
There is 2 Options to this Hack:
- Forumhome and/or CMPS
- CMPS (only)
- Do not install both XML files.

================================================== =====
1 Query added to page load.

File edit: 1-2
Upload: 1-2 file
Add: 1-2 templates
Plugins: 0-2

Tested on:
- vBulletin 3.5.3
- vBadvanced CMPS v2.0.0 (vB 3.5)
- PhotoPost vBGallery v1.0.1 (vB 3.5) - add-ons soon
================================================== =====


Shows: (At the moment)
- Member Name
- Avatar
- Post Count w/ link to show all posts
- Reputation Count
- Age
- Most active forum w/ link (forum the member posts in the most)

Options: (At the moment)

- Minimum posts that the user must have
- The user must had logged in the forum in the last x days
- The user must had posted in the forum in the last x days
- Minimum reputation the user must have
- If a user is elected he cannot be elected again in this number of days
- Your private or hidden forums so they are not shown in the "favorite forum"

To Do's:
- BBCodes
- Smiles
- Photopost vBGallery (links to Images and posts)
- Photopost other 3 products (links)
- VBPortal Block
- VBA Links (links ot submited)
- Any others?

Zachariah 01-24-2006 01:06 PM

I am very busy @ the moment.
I will pop in and out of this hack @ odd times w/ Add-Ons and support.

Responce Time: 1-2 days

:rambo:


FAQ:

Q: Why don't the member's info update on the hack after selected ?
A: All the info is cached when the selection process is done. Updates to the member will not update untill they are selected again.

* How to move location of the FORUMHOME
* Place the block where you want on the FORUMHOME

Add-ons:
Soon

####################################

There is 2 Options to this Hack:
- Forumhome and/or CMPS
- CMPS (only)
- Do not install both XML files.

Template options:

forumhome_honorable
adv_portal_honorable

- $mday[userid] - User ID
- $mday[username] - Username
- $mday[usertitle] - Usergroup name
- $mday[birthday] - Date of B-Day
- $mday[age] - Age
- $mday[reputation] - User reputation
- $mday[posts] - Post count
- $mday[forumid] - Fav. forum ID
- $mday[forumname] - Fav. forum name
- $mday[fieldX] - X = profile Field # you wish to show up
- $mday[icq] , $mday[yahoo], $mday[aim], $mday[scype] - IM data
- $mday[styleid] - Style ID
- Many more (I'll list them later)

Everything about the person in tables:
- user
- userfield
- usertextfield

$mday[fieldname]

The Chief 01-24-2006 01:15 PM

this looks really cool, ill take a look at this later on :D

Zachariah 01-24-2006 01:42 PM

How to move location of the FORUMHOME.

To make it a hackless install (no template edits) this places a template on a unique "anchor" within the FORUMHOME template.

Code:

$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_honorable'),$vbulletin->templatecache['FORUMHOME']);

This says SEARCH for $navbar in template FORUMHOME and place template "forumhome_honorable" after.

Edit Plugin: Honorable Member: Forumhome

Find:
Code:

$search_text = '$navbar';
Change $navbar to where you wish to place the hack.

Anchor spots: (this will place in FORUMHOME)
$header - Above the Navbar
$navbar - Below the Navbar
<!-- what's going on box --> - Above what's going on box.
<!-- end what's going on box --> - Below what's going on box.

Many others explore :squareeyed: :D
(text / comment that is different than anything else in the template.)

Zachariah 01-24-2006 02:25 PM

Place the block where you want

You will want to edit the forumhome template and place the block where you want vs. use an anchor:

Edit plugin: Honorable Member: Forumhome
Replace:
Code:

$search_text = '$navbar';
$vbulletin->templatecache['FORUMHOME'] = str_replace($search_text,
$search_text.fetch_template('forumhome_honorable'),$vbulletin->templatecache['FORUMHOME']);

with

Code:

eval('$honorable = "' . fetch_template('forumhome_honorable') . '";');
Edit FORUMHOME: Place in location of choice.
Code:

$honorable

Snake 01-24-2006 04:04 PM

Thank you for releasing a great hack such as this one! :D

cdoyle 01-24-2006 09:31 PM

thank you!!

I've been waiting for this, can't wait to install it.

jilly 01-24-2006 10:52 PM

I think for starters, it would be easier if you broke the install details up completely, one set for if it is used without CMPS, and one set for if it is with CMPS. It's hard for me to pick out the differences.

Also, need to know about the other files - I assume we are uploading them into the proper directories, but you may just want to add that in as a step..

Going to try and install now and see how it goes :)

Zachariah 01-24-2006 11:05 PM

Quote:

Originally Posted by jilly
I think for starters, it would be easier if you broke the install details up completely, one set for if it is used without CMPS, and one set for if it is with CMPS. It's hard for me to pick out the differences.

Also, need to know about the other files - I assume we are uploading them into the proper directories, but you may just want to add that in as a step..

Going to try and install now and see how it goes :)

Ya it's a mess :D
- Was burning some midnight oil.
- I'll break it up. (day or so)
- It's like the directions for for putting your kids new bike together @ the moment. :tired:

Mastar 01-25-2006 12:10 AM

I got it on the first try but I had to check my edits and read the installations instructions many times... LOL! Agreed Instructions needs refining but great job.


All times are GMT. The time now is 09:43 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.01278 seconds
  • Memory Usage 1,750KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)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