Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
[AJAX] Drop Down Message Display / Selector Details »
[AJAX] Drop Down Message Display / Selector
Mod Version: 1.0.1, by harmor19 (Contributor) harmor19 is offline
Developer Last Online: Aug 2019 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (1 vote - 4.00 average) Installs: 19
Released: 26 Aug 2006 Last Update: 27 Aug 2006 Downloads: 75
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
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  
Old 26 Aug 2006, 05:17
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Use [latestthreads_2] to populate the results

Last edited by harmor19; 27 Aug 2006 at 21:41.
Reply With Quote
  #3  
Old 26 Aug 2006, 06:22
therocks therocks is offline
 
Join Date: Mar 2006
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????
Reply With Quote
  #4  
Old 26 Aug 2006, 06:27
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
Originally Posted by therocks
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. I'll try and improve upon this hack in the next release though.
Reply With Quote
  #5  
Old 26 Aug 2006, 06:29
therocks therocks is offline
 
Join Date: Mar 2006
Originally Posted by harmor19
No. I'll try and improve upon this hack in the next release though.
thanks
Reply With Quote
  #6  
Old 26 Aug 2006, 06:54
Kirk Y's Avatar
Kirk Y Kirk Y is offline
 
Join Date: Apr 2005
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.
Reply With Quote
  #7  
Old 26 Aug 2006, 07:02
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
Originally Posted by acidburn0520
Interesting idea. What would be the ideal use for this?
I guess if you had a clan site you could list the users in each clan.
Reply With Quote
  #8  
Old 26 Aug 2006, 08:06
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
I've updated my hack. I hope you like it.
Reply With Quote
  #9  
Old 26 Aug 2006, 08:13
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
Originally Posted by therocks
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????
You can do this on version 1.0.1 now.

If you need help coding the query I can assist you.

Last edited by harmor19; 26 Aug 2006 at 08:58.
Reply With Quote
  #10  
Old 26 Aug 2006, 08:32
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
I am using the first post to post examples. What other examples would you like to see posted?
Reply With Quote
  #11  
Old 26 Aug 2006, 10:43
DPSR's Avatar
DPSR DPSR is offline
 
Join Date: Aug 2006
Thanks buddy for the hack, i think i can make a good use of it

*installed
Reply With Quote
  #12  
Old 26 Aug 2006, 11:09
apdcanari apdcanari is offline
 
Join Date: May 2005
Location: Belgique
Real name: CÚdric
The last 5 threads with replys ?

CÚdric
Reply With Quote
  #13  
Old 26 Aug 2006, 11:10
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
Originally Posted by apdcanari
The last 5 threads with replys ?

CÚdric
Do you want all the replies or the just the first post from each new thread?
I hope it's the latter.
Reply With Quote
  #14  
Old 26 Aug 2006, 13:37
SnickersTK SnickersTK is offline
 
Join Date: Apr 2005
Real name: Casper
This hack adds a drop down menu underneath your navbar.
When someone selects a value it'll load a table with the contents you put in it (without reloading the page).
Screenshot of how this would look with one of your hack examples, please?
Reply With Quote
  #15  
Old 26 Aug 2006, 15:16
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Real name: Andrew Harmor
Originally Posted by SnickersTK
Screenshot of how this would look with one of your hack examples, please?
Why? Read the block and your question will be answered
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:12.

Layout Options | Width: Wide Color: