vbTrends – An Enhanced Statistics Box on Forum Home

Keywords: Statistics, New members, joins, trends, Forum Home, threads, posts

[ATTACH]69[/ATTACH]

ATTENTION:
If you download the latest version go into your usergroups and set the ‘can view trends’ permission. SAVE the usergroup even if you haven’t changed the setting or things may not work. There is an odd permissions bug I haven’t figured out yet.

Also note that overwrite will not work. Please uninstall the previous version before installing the new one.

Description:
Enhances the « YourBBS » Statistics box on the forum home to show trends of posts, threads and new users vs. the overall history of the board. Also allows you to display more than one « newest member ».

Version 2.0.0:

1. Calculations exposed and modifiable in admincp.
2. Added ability to delay updates of stats to every x minutes in admincp.
3. Added a style setting for positive and negative trends.
4. Added custom hooks for all aspects of vbTrends, and moved code into said hooks.
5. Changed template to still show total threads when trend is negative and ‘positive trends only’ is enabled.
6. Usergroup permission to view trends.

Note: You cannot cause an error by messing up the calculations in the admincp. If the calculation you provide contains errors the stat in question will show as N/A.

This is a major rewrite, so I’ve set the hack to beta for now.

vbTrends – An Enhanced Statistics Box on Forum Home – vBulletin.org Forum

Brian McFadden – Sorry Love Daddy

words from a father that have to explain his kids that he loves them even after a divorce

It seems like only yesterday

I held you in my arms and said

You will never need to fear the dark

But unforeseen misery has come

Between your Mommy and me

And we can love you more, now we are apart


Daddy, he’s got to go away

‘Coz there’s just no other way

To live this through

Someday, you’ll learn to understand

This wasn’t what I planned, for me and you

Sorry, love, Daddy


Everyday is filled with pain

But never feel that you’re to blame

Sometimes life breaks in mysterious ways

I can’t make it up to you

Believe me I am trying to

No matter what you’ll always be my babies


Daddy, he’s got to go away

‘Coz there’s just no other way

To live this through

Someday, you’ll learn to understand

This wasn’t what I planned, for me and you

Sorry, love, Daddy


I’m sorry, love, daddy

Link Icon in Posts

Each time a user is posting a link in a post, if you want the link to be identified as is, a good Web2.0 technique is to identify the link with an icon.

The problem is that vBulletin do not put a class to the bbcode which generate the links in posts… we provide a solution here…

nex_linkicon_in_posts.jpg

… You can go to >> Google or not!

This will work in posts, but also in private messages…

note: 17/06/09, updated to 1.0.1, modifyed the HowTo.txt — read and redo what it say, to avoid applying the tag to IMG tags… thanks to [user]xOBKx[/user]
note: 10/22/09: updated the link in HowTo.txt so the addon will not add an icon on local links *(the ones on your site), thanks to [user]Taragon[/user] for the idea
note: dec. 5th, 2009: updated the css detail to avoid a typo that cause html validator to hate me!
note: dec. 8th, 2009: now version 1.5, have a local/external detector that will change the icon… you can still modify the whole css and icons if you like.

vB3 Server Status via Admin CP

vB Server Status 1.0 for vBulletin 3 RC 2

A powerful script that shows you server information without any need to login via Telnet or SSH.
This is for a Red Hat linux server and is most useful for dedicated server admins.

Features



1) Integrated into vB Admin CP – uses Admin CP cp.css style
2) View recent Telnet or SSH logins
3) View current kernel version
4) View current linux version
5) View number of current Apache processes running
6) View number of current MySQL processes running
7) View Hard Disk Partition names and sizes
8) View your current TOP information (including server loads, top processes)
9) View your current Netstat information
8) View your current Apache processes in detail (with % CPU/ memory/ PID)
9) View MySQL database detailed information
10) View PHP detailed information

Installation



1) Upload « serverinfo.php » to your /admincp folder.

2) Edit your /admin/index.php file:

Finish!

Once this is installed, you can just click on the « vB Server Status » link in your Admin CP on the left column underneath your « vBulletin Options » to access this.

vB3 Server Status via Admin CP – vBulletin.org Forum

Remove mass-prune posts option in ModCP

This is a simple hack that I have in my private forums.

I do not want my 70+ moderators mass-pruning posts, so all I did was to do this:

In modcp/index.php –

Find:

PHP Code:
if (can_moderate(0, ‘canmassprune’))
{
$canmass = true;
construct_nav_option($vbphrase, ‘thread.php?do=prune’);
}
Change to:

PHP Code:
if (can_moderate(0, ‘canmassprune’))
{
$canmass = true;
}
Simple.

Remove mass-prune posts option in ModCP – vBulletin.org Forum

Total Number of Users Online Now on Every Page

Again, all credit goes to Chen for the original hack.

I’ve merely modified it, so that two extra queries are saved on forumhome – there’s no point running the queries again since index.php has already calculated it.

This hack modifies 1 php file and 2 templates. It’s easy.

Using my method, you save yourself 2 queries on forumhome. We use this at vB.org too.

Instructions in the HTML file zipped below.

Total Number of Users Online Now on Every Page – vBulletin.org Forum

Contact Us Email Feedback Form (with IP address & status of sender)

Contact Us Email Feedback Form (with IP address) Version 2.3



Reason:



This hack allows members and guests to email you the administrator using an online email form. This way, you keep your email address hidden from spambots that crawl sites for email addresses.

When members use the form, their name and email address gets automatically inserted. Guests will have to fill out the name and email boxes. If they are not filled, the email will not be sent. Users get to choose from a list of subjects, or they can enter their own email subject if they choose « Other ».

If the member who emails you is Unregistered or Not Logged In, the email will tell you that the Sender is Unregistered or Not Logged In.

If the member who emails you is Registered, then the username and email address of the member on file will be sent to you as well – this way, even if a registered member tries to pretend to be another member or put in a fake address, you will know who the member is.

The email sent to you will have the IP address and if available, the Host Name of the sender, with a link to click that will automatically search the database for members sharing that same IP – good for tracking down people sending you abusive emails using the form.

Example of an email from a Registered Member:


******* Delete this section before replying ********

IP address of sender: 123.123.12.12
Host name: test.hostname.com
Click below to search for members with same IP:
http://www.yourforums.com/forums/adm…=123.123.12.12

Registered Member – Username: Erwin
Email on file: admin@myforums.com

******* Delete this section before replying ********

Hi,

Test message here…

– Erwin

Email from a Unregistered User or Member who is Not Logged In:


******* Delete this section before replying ********

IP address of sender: 123.123.12.12
Host name: test.hostname.com
Click below to search for members with same IP:
http://www.yourforums.com/forums/adm…=123.123.12.12

Not Logged In or Unregistered User

******* Delete this section before replying ********

Hi,

Test message here…

– Erwin

The form is web-based, and the feedback is emailed to you, without ever revealing your admin email address if you want to keep that private.

Screenshot:


Installation:



Easy. There are no file changes, 3 new templates to make, and 2 files to upload.

Create the 3 templates based on the txt files – name the templates after the file names, and copy the content of the txt files into the templates.

contact
contact_error
contact_sent

Then upload the following files into your forums directory.

contact.php

Last thing you need to do is to place this link anywhere on your site, or in your contact link field in your vB Admin Options. I have placed mine in the footer template (change it to your forums URL).

Contact Us

And you’re done!

Enjoy!

Version 2.0



Added the option for users to choose from a list of subjects. Also fixed a minor title bug. If the option « Other » is chosen, but no title filled out in the optional text box, a blank field error message will be shown.

To upgrade from Version 1.2 – just copy the new « contact.php » and « send.php » over the old files, and replace the « contact » template with the new one.

Feel free to add more email subject titles by modifying the « contact » template.

Version 2.1



Added – IP address and if available, the Host Name of sender in the email sent to you, with a link to search the database for members with the same IP address in the email (in case of people sending you abusive emails using the form)!

Version 2.2



Added – if the sender is a Registered Member the email will contain the username and email on file, regardless of what the sender puts in the fields. If the sender is Not Logged In or Unregistered, the email will let you know.

Version 2.3



Tidied the code up, removed the need for send.php.

Upgrading



– to upgrade from version 1.2 – upload the new contact.php and send.php files, and replace the « contact » template with the new one.

– to upgrade from version 2.0 – upload the new send.php

– to upgrade from version 2.1 – upload the new send.php

– to upgrade from version 2.2 – upload the new contact.php, delete send.php (not needed), replace « contact » template with contact.txt

Contact Us Email Feedback Form (with IP address & status of sender) – vBulletin.org Forum

Member’s Age in Postbit & Getinfo Profile (automatically calculated from birthday)

Member’s Age in Postbit & Getinfo Profile – by Dr. Erwin Loh



I requested this a while back. Since no one has released a hack like this, I worked out how to do it.

NOTE: This hack automatically shows the age of the person calculated from the birthday entered (it’s not a separate input). If there is no birthdate or birthyear, the age doesn’t show up automatically.

1) Postbit hack



This hack basically places the member’s age underneath his join date (or wherever you want) in the postbit, like this:

Registered: July 2000
Age: 18
Location: USA
Posts: 102

If the member has not entered his birth-year, then the age will NOT show up at all, like this:

Registered: July 2000
Location: USA
Posts: 102

This hack requires 1 file edit (functions.php), and 1 template edit (postbit).

2) Getinfo Profile hack



This adds the member’s age in their profile.

I’ve added this to the installation text file. It’s a matter of editing members.php and the getinfo template.

Member’s Age in Postbit & Getinfo Profile (automatically calculated from birthday) – vBulletin.org Forum

Custom User Title Editor with vBCode & Smilie Panel, Admin CP, Store/ Points 3.0

MAJOR UPDATE!!!

Custom User Title Editor with vBCode OR HTML with Admin CP Integration 3.0
Also with Lesane Store Hack Add-On AND Shinra Points Hack Integration!


You can now allow your members to use vBCode OR HTML via their User Control Panel to add text effects, color, even smilies, to their Custom User Title.
The latest version, 3.0, even has a built-in vBcode and Smilie Panel for your members! There is even a preview panel at the bottom of the Editor!

Features:



NEW! 1) Built-in Editor with vBCode and Smilie Panel!
NEW! 2) Preview Panel at the bottom of the Editor!
NEW! 3) Lesane Store Hack OR Shinra Points Hack Integration!
4) Use vBCode in Custom User Profile.
5) Use HTML in Custom User Profile (can be disabled).
6) Admin Control Panel Integration.
7) Block vBCode from being used in your Custom User Profile Censored Words field.
8) Set Maximum Number of Smilies allowed.
9) Stop users from trying to use HTML tags even with vBCode enabled.
10) Option to only allow Staff, or even just Admins to use this.

Update:



Version 1.1 – Block vBCode from being used in your Custom User Profile Censored Words field.
Version 1.2 – Fixed up a bug that parsed HTML out for members.
Added option to set maximum number of smilies allowed.
Version 1.3 – Fixed up bug that allowed users to use HTML tags in custom user title.
Version 2.0 – Admin Control Panel Integration
Version 2.2 – Minor bug fix as members were not having words censored if vBCode disabled, or staff only
Version 2.3 – Fixed a Staff Only bug
Version 2.4 – Fixed it up so you can use either HTML or vBCode (not both)
Version 3.0 – Major Upgrade – Added vBCode and Smilie Panel Editor, added Store Hack/ Points Hack Integration

Installation:



5 files in ZIP

Install_CustomTitleEditor.php – A PHP file you run to install the new Admin CP settings (only for new installs)
NewInstallation.txt – For new installations
Upgrade.txt – To upgrade from previous versions of this hack
LesaneStoreHack.txt – To integrate into Lesane Store Hack – do this AFTER you install the hack.
ShinraPointsHack.txt – To integrate into Shinra Points Hack – do this AFTER you install the hack.

Enjoy!

Click the Install link at the bottom of this thread to receive updates.

Custom User Title Editor with vBCode & Smilie Panel, Admin CP, Store/ Points 3.0 – vBulletin.org Forum

Restrict Admin CP vB Options to only allow other Admins to ban email or IP addresses

Restrict Admin CP vBulletin Options – by Erwin


(Only allow other Admins to ban emails or IP addresses)

As you know, the vBulletin Options section of your Admin CP is very important. From there, you can close or open your forums, change the forum name, and basically control the site. You really do not want anyone else mucking around in it, except for yourself.

On the other hand, you may want to let your other Admins have access to the Banning Section, so that they can ban email domains and IP addresses. You don’t want to have to do this all by yourself.

This hack will modify the options.php file in a way that only YOU as the original admin can edit and change all the vBulletin options. However, other admins will NOT be able to see or edit any options EXCEPT that they can only ban emails or IP addresses when they go to the vBulletin Options page.

You only have to make 3 changes to the admin/options.php file.

Enjoy!

Restrict Admin CP vB Options to only allow other Admins to ban email or IP addresses – vBulletin.org Forum