Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Change prefixes with AJAX Details »»
Change prefixes with AJAX
Version: 1.1, by pipin pipin is offline
Developer Last Online: Jul 2022 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 3.7.4 Rating:
Released: 10-01-2008 Last Update: 12-29-2008 Installs: 22
Uses Plugins Template Edits
Re-useable Code Code Changes  
No support by the author.

This hack allows you to change the prefix of a thread through AJAX. The prefix is shown in a separate column.

At the moment there is no product version of this hack, if someone has ideas or wants to build such a solution with this hack, just pm me.

Thanks to TiKu the original coder of this hack.


Release history:

Version 1.1 (12/30/08)
- template edits corrected
- prefix no more in a seperate column on searches
- workaround a newly introduced bug in Internet Explorer

-
vbulletin_ajax_threadlist.zip deleted (Jelsoft terms and copyright)

Version 1.01 (10/02/08)

- first version on vb.org
- template edits corrected



How to install:


1. file edit and upload

edit /clientscript/vbulletin_ajax_threadlist.js according to change_vbulletin_ajax_threadslist.txt and upload vbulletin_ajax_threadlist.js to the directory clientscript.

2. creating plugin

create a plugin with this data:

Product: vBulletin

Hook: ajax_complete

Title: AJAX for Prefixes

Plugin PHP Code: the code in plugin_code.txt


3. change templates

change the templates as written in template_edits_english.txt


Q&A:

Can this be done without a separate column for the prefixes?

At the moment there is no solution for this

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
xorex

Comments
  #12  
Old 11-01-2008, 01:25 AM
TiKu's Avatar
TiKu TiKu is offline
 
Join Date: Sep 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the drop-down menu (combobox) the text versions of the prefixes are displayed. Once a prefix has been selected, the image is displayed.
Reply With Quote
  #13  
Old 11-01-2008, 07:52 AM
soulface's Avatar
soulface soulface is offline
 
Join Date: Sep 2005
Location: Dhaka, BD
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice addon. this should be default in vbulletin.
Reply With Quote
  #14  
Old 11-01-2008, 12:35 PM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will later look into the problem with 3.7.3 cause 3.7.4 is almost around the corner.
Reply With Quote
  #15  
Old 11-04-2008, 06:55 PM
TiKu's Avatar
TiKu TiKu is offline
 
Join Date: Sep 2006
Posts: 97
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There seems to be a problem with the Internet Explorer 7. In the js file, we're doing this (line 180):
Code:
this.selectobj.innerHTML = this.availableprefixes;
"this.availableprefixes" contains the prefixes formatted like this:
Code:
<option value="f135_0" class="" >New -</option>
<option value="f135_1" class="" >Done -</option>
<option value="f135_2" class="" >Discuss -</option>
<option value="f135_3" class="" >Nothing -</option>
"this.selectobj" is an (empty) <select /> tag. So line 180 should add the available prefixes to the combo box, which later is inserted into the document (line 184).

This works fine if you're using Firefox. It works fine if you're using Internet Explorer 6. It used to work fine if you were using Internet Explorer 7. But some time ago, it stopped working and IE7 is showing a blank combo box now. The reason is, that the js code for some reason produces broken HTML code, which can be seen in the attachment. There's something missing before the first prefix: <OPTION class="" value="f135_0">
It isn't missing in Firefox. Does anybody have a clue what IE7 is doing here? I'm running out of ideas. I bet this is a new IE7 bug that has been introduced on one of the recent Microsoft patch days.
Reply With Quote
  #16  
Old 12-30-2008, 03:07 PM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

New Version:

Version 1.1 (12/30/08)
- template edits corrected
- prefix no more in a seperate column on searches
- workaround a newly introduced bug in Internet Explorer

-
vbulletin_ajax_threadlist.zip deleted (Jelsoft terms and copyright)


Works with vB 3.7.4

Next version will be a product/plugin
Reply With Quote
  #17  
Old 12-30-2008, 03:41 PM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just updated the change_vbulletin_ajax_threadslist.txt there was an error in it.
Reply With Quote
  #18  
Old 03-23-2009, 04:53 PM
GaiLoan GaiLoan is offline
 
Join Date: Dec 2007
Location: California,US
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by pipin View Post
New Version:




Works with vB 3.7.4

Next version will be a product/plugin
[/COLOR]
thanks, so when the product/plugin version will release ?
Reply With Quote
  #19  
Old 03-23-2009, 05:32 PM
pipin's Avatar
pipin pipin is offline
 
Join Date: Jan 2005
Posts: 164
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by GaiLoan View Post
thanks, so when the product/plugin version will release ?
Don't know too much work right now.
Reply With Quote
  #20  
Old 04-27-2009, 06:13 PM
robbiefritz robbiefritz is offline
 
Join Date: Oct 2008
Location: Eastern US
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

interesting
Reply With Quote
  #21  
Old 02-27-2016, 02:26 PM
Elixar's Avatar
Elixar Elixar is offline
 
Join Date: Jan 2014
Posts: 579
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way to get this on vB 4.2?
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05156 seconds
  • Memory Usage 2,312KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete