Back to vBulletin 3.6 Add-ons

[AJAX] Drop Down Message Display / Selector
Mod Version: 1.0.1, by harmor19

This modification is in the archives.
vB Version: 3.6.0 Rating: (1 vote - 4.00 average) Installs: 21
Released: 26 Aug 2006 Last Update: 27 Aug 2006 Downloads: 90
Not Supported DB Changes Uses Plugins Template Edits Additional Files  

File Edits: 0
Template Edits: 2
Difficulty: Easy

Description
This hack adds a drop down menu underneath your navbar.
When someone selects an option it'll load a table with the contents you put in it (without reloading the page).

You can use HTML when you add a new message.

I have added a new hook for the use of replacing text.
I have hardcoded two replacements.

[username] - This will display the username of the user browsing
[userid] - This will display the userid of the user browsing.

F.A.Q.
Q: How can I add my own replacements?
A: Add a new plugin under the hook "ajax_drop_menu_start".
In the Plugin PHP code use this format: $cm['text'] = str_replace("find", "replace", $cm['text']);

Example:
PHP Code:
$cm['text'] = str_replace("[username]"$vbulletin->userinfo['username'], $cm['text']); 
Q: Can I use the hook for other things besides replacing text?
A: Yes. You can use it for almost anything. If you'd like to query the database for the lastest 5 threads and display them in the drop down menu you can.

On the demo you'll see a drop down menu with the text "Select Message".
http://xenweb.net/forums/index.php

Download

This modification is archived, downloads are still allowed.

File Type: %1$s [AJAX] Drop Down Message Display Selector.zip (35.1 KB, 171 downloads)

Similar Mods

Thread Display For Nonregistered Users (Limit Characters, Display Message) 2.0.5 vBulletin 3.5 Add-ons
[AJAX] Drop Down Message Display / Selector vBulletin 3.5 Add-ons

vblts.ru supports vBulletin®, 2022-2025