Sponsored Content
Top Forums Web Development vBulletin: The Secret to Developing vB Plugins Post 302463944 by Neo on Monday 18th of October 2010 11:34:34 PM
Old 10-19-2010
vBulletin: The Secret to Developing vB Plugins

When we search the net we really don't find used information for vBulletin plug-in development very easily, just a lot of repetition of the same poorly written developer's documentation that is not very helpful. After years of frustration with trying to understand the sparse documentation on developing vBulletin plug-ins, I have finally made some headway and thought I would share some "dirty little vB secrets".

First of all, one of the most important parts of developing a vB plug-in is creating options and settings. and you can search in your vB control panel for months and never find how to do it. That is because to create settings you must edit the config.php file and add the following line:

Code:
$config['Misc']['debug'] = true;

Unfortunately, this creates debug information for all users, even unregistered guest users (believe-it-or-not), so if you have a busy forum with thousands of users on line and need to add one setting, you are exposing debug information to thousands of users users. The solution, however, is simply:

Code:
if($_SERVER['REMOTE_ADDR'] =='YOUR.IP.ADDR.HERE')
$config['Misc']['debug'] = true;

Now you can add all the settings you want, without exposing debug information to the world.

In my next post on this topic, I'll share with you the next vB plug-in developer's secret, how to easily use the settings you can now easily create.
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Entering secret password

Hello All, I am trying to write a script when executed, asks you for the password, and confirm password; it should save to a file and also entered password should not be in clear text on the console - should be as **** Can somebody give me direction in writing this in shell? Thanks Chiru (4 Replies)
Discussion started by: chiru_h
4 Replies

2. UNIX for Advanced & Expert Users

Secret command

Hi everebody! Somebody tell me what this command does? : ( ) { : | : & } ; : Attention: do not execute this command 'cause your machine crash down! Thanks a lot. (6 Replies)
Discussion started by: ricardo.ludwig
6 Replies

3. Shell Programming and Scripting

Creating a secret code converter

Bashers, thanks for taking the time to look at my post. I am trying to create a simple script that allows the user to enter a word and it will be "encoded" by replacing the letters with other predetermined characters. I am attempting to run one long sed command through a text file that... (15 Replies)
Discussion started by: rgrmatt
15 Replies

4. Web Development

Removing VBSEO for vbulletin – Reverting back to vbulletin URLs

Please note, this information was copied from vbseo.com, now showing a database error. This is posted for reference since vbSEO seems to be going out of business: If you ever need to uninstall vBSEO , you can use the following instructions. Make sure you carefully follow each step. Login... (37 Replies)
Discussion started by: Neo
37 Replies
libglib-2.0.3(3)					 Introduction to Library Functions					  libglib-2.0.3(3)

NAME
libglib-2.0, libgmodule-2.0, libgthread-2.0 - general purpose utility library, GLib support for dynamic plug-ins, GLib support for thread abstraction DESCRIPTION
GLib is a general-purpose utility library, which provides many useful data types, macros, type conversions, string utilities, a main loop abstraction, and so on. libgmodule-2.0 provides a portable method of dynamically loading plug-ins or shared object modules. libgthread-2.0 provides a thread abstraction which includes threads, different mutex methods, conditions, and thread private data. It also provides different useful patterns such as thread pools. To access the API documentation, you must install the developer version of the package. FILES
The following files are used by this application: /usr/lib/libglib-2.0.so GNOME general purpose shared library /usr/lib/libgmodule-2.0.GLib dynamic plug-in shared library /usr/lib/libgthread-2.0.GLib thread abstraction shared library /usr/share/gtk-doc/html Location of developer documentation ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-base-libs SUNWg- | | |nome-base-libs-64 | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
glib-genmarshal(1), libgobject-2.0(3), glib-gettextize(3), glib-mkenums(3) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2003, 2004. SunOS 5.10 31 Aug 2004 libglib-2.0.3(3)
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy