Version: 1.0.1, by harmor19
Developer Last Online: May 2023
Category: Mini Mods -
Version: 3.6.0
Rating:
Released: 08-25-2006
Last Update: 08-26-2006
Installs: 21
DB Changes Uses Plugins Template Edits
Additional Files
No support by the author.
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']);
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". View The Demo
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
i went into my plugin manager and added a plugin under ajax_drop_menu_start. i used the code from one of your examples to show the last 5 threads from a specific forum as the plugin PHP code and made sure that the plugin is set to active.. for the execution order i put 1, it was at 5 by default..
is that all you need to do to add something into the dropdown menu or am i missing something??
I can barely see it.
You don't need to [you] tag. It already has [username] which does the same thing.
Not sure what you're talking about... I just copied and pasted the code from your example.. changing only the forumid to pull the new threads from... nothing's showing up in the dropdown menu... just the "Select Message".. so is this the only step you need to take to make a new drop down menu selection or am I missing something?
this is the code from the screenshot:
PHP Code:
$getthreads = $db->query_read("SELECT * FROM thread WHERE forumid='23' ORDER BY threadid DESC LIMIT 10"); while($lt = $db->fetch_array($getthreads)) { $latestthreads .= "Title: <a href='showthread.php?t=$lt[threadid]'>".$lt['title']."</a> | Posted By: <a href='member.php?u=$lt[postuserid]'>".$lt['lastposter']."</a><br />";
Not sure what you're talking about... I just copied and pasted the code from your example.. changing only the forumid to pull the new threads from... nothing's showing up in the dropdown menu... just the "Select Message".. so is this the only step you need to take to make a new drop down menu selection or am I missing something?
You posted up a screen shot where it looks like you were trying to use the the [you] tag.
Go to Admin CP --> Custom Messages --> [Add] or [Modify]
In the text area use [latestthreads]