vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Forum Display Enhancements - Change prefixes with AJAX (https://vborg.vbsupport.ru/showthread.php?t=192478)

pipin 10-01-2008 10:00 PM

Change prefixes with AJAX
 
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

Wired1 10-02-2008 08:13 AM

I would suggest you make a plugin / product XML file instead of telling users to make the plugin themselves. This way you can link it back to this thread, not to mention limit install mistakes.

Razasharp 10-02-2008 09:56 AM

Would it be possible to change/add to this so you can change prefix with ajax whilst on the show thread page?

Sometimes a prefix can only be decided on after seeing the content of the post :)

Cheers!

pipin 10-02-2008 10:12 AM

Quote:

Originally Posted by Wired1 (Post 1635440)
I would suggest you make a plugin / product XML file instead of telling users to make the plugin themselves. This way you can link it back to this thread, not to mention limit install mistakes.

We will see, never created a product so far.

Quote:

Originally Posted by Razasharp (Post 1635472)
Would it be possible to change/add to this so you can change prefix with ajax whilst on the show thread page?

Sometimes a prefix can only be decided on after seeing the content of the post :)

Cheers!

Thats one thing i would like to have, too. But it may be much moore difficult to code. You even cant change the title in the showthread with AJAX in the vB standard.

In addition the coder of this hack is at the moment finishing his IT university studies.

GaiLoan 10-02-2008 05:11 PM

thanks,

jluerken 10-06-2008 11:34 AM

Jelsoft please add this as standard in one of the future releases.
It makes sense to control the prefixes like this!

gael11 10-07-2008 06:02 AM

Could you translate in english the template.txt's file ?

Thank you

What does that mean:

dies einfügen

vor

hinter

(kommt 2 mal vor)

jeweils

pipin 10-08-2008 02:17 PM

Quote:

Originally Posted by gael11 (Post 1639112)
Could you translate in english the template.txt's file ?

Thank you

What does that mean:

dies einf?gen

vor

hinter

(kommt 2 mal vor)

jeweils


Sorry.

Its fully translated now.

LeatherNeck 10-14-2008 10:30 PM

Quote:

Sorry.

Its fully translated now.
Danke mein Freund :up:

Alien 10-31-2008 05:39 PM

If I use images (via html code) as the thread prefixes, will the images display in the pulldown instead of the text? If not, how would I go about showing the images instead?

Or will this show the text version of the images, but still show an image there once selected?


All times are GMT. The time now is 02:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01127 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete