![]() |
|
Mod Options |
![]() |
|||||||||||||||
[AJAX] Drop Down Message Display / Selector
![]() Developer Last Online: Aug 2019 ![]() ![]() ![]() This modification is in the archives.
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:
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 Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Thread Display For Nonregistered Users (Limit Characters, Display Message) 2.0.5 | Gio~Logist | vBulletin 3.5 Add-ons | 109 | 17 Jul 2007 02:35 |
[AJAX] Drop Down Message Display / Selector | harmor19 | vBulletin 3.5 Add-ons | 34 | 14 Nov 2005 06:11 |
Comments |
#2
|
||||||||||||
|
||||||||||||
Examples of what you can do with the plugin are listed below.
Add the code to the hook "ajax_drop_menu_start" Example 1 You can have the latest 5 threads from a specific forum
When you create a new message you can now use [latestthreads] to populate the lastest 5 threads posted in forumid 5. Example 2 This will display the top five users with the highest post count
When you create a new message you can now use [topusers] to populate the results Example 3 This will display the latest 5 threads in every forum the user can access
Use [latestthreads_2] to populate the results No members have liked this post.
Last edited by harmor19; 27 Aug 2006 at 21:41. |
#3
|
|||
|
|||
great mod!! ... would there be a way to pull 5 or 10 of the latest threads from a specific forum into one of those boxes????
No members have liked this post.
|
#4
|
|||
|
|||
Originally Posted by therocks
No. I'll try and improve upon this hack in the next release though.
No members have liked this post.
|
#5
|
|||
|
|||
Originally Posted by harmor19
thanks
![]() No members have liked this post.
|
#6
|
||||
|
||||
Interesting idea. What would be the ideal use for this?
__________________
Former vBulletin.org Staff Member Please feel free to re-use any of the code in any of my projects submitted to vB.org, so long as original attribution is retained. ![]() No members have liked this post.
|
#7
|
|||
|
|||
Originally Posted by acidburn0520
I guess if you had a clan site you could list the users in each clan.
No members have liked this post.
|
#8
|
|||
|
|||
I've updated my hack. I hope you like it.
No members have liked this post.
|
#9
|
|||
|
|||
Originally Posted by therocks
You can do this on version 1.0.1 now.
If you need help coding the query I can assist you. No members have liked this post.
Last edited by harmor19; 26 Aug 2006 at 08:58. |
#10
|
|||
|
|||
I am using the first post to post examples. What other examples would you like to see posted?
No members have liked this post.
|
#11
|
||||
|
||||
Thanks buddy for the hack, i think i can make a good use of it
![]() *installed No members have liked this post.
|
#12
|
|||
|
|||
The last 5 threads with replys ?
Cédric ![]() No members have liked this post.
|
#13
|
|||
|
|||
Originally Posted by apdcanari
Do you want all the replies or the just the first post from each new thread?
I hope it's the latter. No members have liked this post.
|
#14
|
|||
|
|||
No members have liked this post.
|
#15
|
|||
|
|||
Originally Posted by SnickersTK
Why? Read the block and your question will be answered
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 04:12.