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

Reply
 
Thread Tools
Change Threads Prefix Inline Details »»
Change Threads Prefix Inline
Version: 1.1.0, by Milad Milad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 04-15-2007 Last Update: 09-12-2007 Installs: 74
Uses Plugins Template Edits
 
No support by the author.

Brought to you by Syrian Medical Society & Milado

Introduction & Description:
It was difficult to change a thread prefix, thread by thread, the editing process of first post to change the prefix is inappropriate and it takes a long time.
This product allows you to set a prefix to multiple threads inline, using the moderation drop-down menu in forum display page (see the screen shoot). you will save your time and effort.

Installation:
One step! Import the product file product-threadprefix_changeinline.xml and you're done.

Of course, it depends on the product Thread Prefixes 1.6.1 which must be installed.

You may also upload the language file for your language if it's attached below.

How to use?
It works exactly like closing, opening, sticking or unsticking multiple threads inline.

Change log:
- 1.0.0 released on April, 16 2007
- 1.1.0 released on September, 13 2007 (Added the default prefixes and fixed some bugs)

Thanks to COBRAws for his Spanish translation (attached).
Thanks to nexialys for his French translation (attached).

Click install to receive support & updates.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 07-25-2007, 10:01 AM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, I imported the product. What else can you do with it?

I am running 3.7pl1 but this is patched to 3.7PL1 from 3.62. Can this have anything to do with why this problem is caused?

WarDoGG; what version are you running? Are you running a patched upgrade like me?
Reply With Quote
  #33  
Old 07-25-2007, 12:24 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
I'll release new version.
any news ??
Reply With Quote
  #34  
Old 08-14-2007, 08:24 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any news on the ETA of the new version? I really like this hack, but the current version doesn't work for me.
Reply With Quote
  #35  
Old 08-18-2007, 04:43 PM
Adam21 Adam21 is offline
 
Join Date: Apr 2005
Location: In The Network!
Posts: 299
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed in my vb368 without no problems,thanks!
Reply With Quote
  #36  
Old 09-05-2007, 12:17 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, but you changed the code in order to be able to do so.
Quote:
Originally Posted by Adam21
Here's what i use.In your FORUMDISPLAY template:
Add this code:
Code:
<!-- Fixed Threadprefix Inline -->
<if condition="$show['threadprefix']">
</form>
<td class="smallfont">
<form action="forumdisplay.php" method="get">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="f" value="$forumid" />
<input type="hidden" name="page" value="$pagenumber" />
<input type="hidden" name="pp" value="$perpage" />
<input type="hidden" name="sort" value="lastpost" $sort[lastpost] />
<input type="hidden" name="order" value="desc" $order[desc] />
<input type="hidden" name="daysprune" value="-1" $daysprunesel[all] />
<strong>Filter by prefix:</strong> $threadprefixes
<input type="submit" class="button" value="Show" /></form></td></if>
<!-- /Fixed Threadprefix Inline -->
AFTER this code:
Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
	<td class="thead"><phrase 1="$limitlower" 2="$limitupper" 3="$totalthreads">$vbphrase[showing_threads_x_to_y_of_z]</phrase></td>
	
</tr>
<tr valign="top">
	<td class="alt1">
	
		<table cellpadding="3" cellspacing="0" border="0" align="center">
		<tr>
and BEFORE this code

Code:
			</select></td>
			<td><select name="order">
				<option value="asc" $order[asc]>$vbphrase[ascending]</option>
				<option value="desc" $order[desc]>$vbphrase[descending]</option>
			</select></td>
Good luck!
I tried to do this, but the code Adam says I should place it after does not exist in my FORUMDISPLAY.

Any idea's on this?
Reply With Quote
  #37  
Old 09-06-2007, 10:49 AM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I'm really sorry.

I have much works than you can imagine.

I'll post a new version within two days.
Reply With Quote
  #38  
Old 09-09-2007, 08:51 AM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

to support global prefixes:

PHP Code:
[OPEN]
pluginForum Display Inline Prefix
 
[REPLACE ALL]
 
 if (
$foruminfo['allowprefix'])
{
    if (!
function_exists(insert_to_template))
    {
        function 
insert_to_template($templatename$remark$location$position 'after')
        {
            global 
$vbulletin;
            
            if (
$position == 'after')
            {
                
$location $remark $location;
            }
            else if (
$position == 'before')
            {
                
$location $location $remark;
            }
            
            
$vbulletin->templatecache[$templatename] = str_replace($remark$location$vbulletin->templatecache[$templatename]);
        }
    }
    
    if (
$foruminfo['threadprefix']) $threadprefixes_inline explode("\r\n"trim($foruminfo['threadprefix']));
    else 
$threadprefixes_inline = array();
                
    if (
$vbulletin->options['showdefaultprefixes'] AND $vbulletin->options['defaultprefixes']) {
            
$defaultprefixes_inline explode("\r\n"trim($vbulletin->options['defaultprefixes']));
            switch(
$vbulletin->options['showdefaultprefixes'])
            {
                case 
1:
                    if (empty(
$threadprefixes_inline)) $threadprefixes_inline $defaultprefixes_inline;
                    break;
                case 
2:
                    
$threadprefixes_inline array_merge($defaultprefixes_inline$threadprefixes_inline);
                    break;
                case 
3:                
                    
$threadprefixes_inline array_merge($threadprefixes_inline$defaultprefixes_inline);
                    break;
            }
            unset(
$defaultprefixes_inline);
    }

    if(!empty(
$threadprefixes_inline )){
        
insert_to_template('FORUMDISPLAY''<optgroup label=\"____________________\">'$vbulletin->templatecache['forumdisplay_inlineprefix'], 'before');
        
$threadprefixes_inline = &array_unique($threadprefixes_inline);             
        foreach(
$threadprefixes_inline as $prefix_inline) {
            if(!empty(
$prefix_inline)) {
                
$inlineprefix .= "\t\t\t\t\t<option value=\"" urlencode($prefix_inline) . "\">" unhtmlspecialchars($prefix_inline) . "</option>\r\n";
            }
        }
    }
    unset(
$threadprefixes_inline);
}

[
OPEN]
pluginInline Mod Action Switch 

[
REPLACE ALL]
if  (
$foruminfo['allowprefix'])
{
    if (
$foruminfo['threadprefix']) $threadprefixes_inline explode("\r\n"trim($foruminfo['threadprefix']));
    else 
$threadprefixes_inline = array();
                
    if (
$vbulletin->options['showdefaultprefixes'] AND $vbulletin->options['defaultprefixes']) {
            
$defaultprefixes_inline explode("\r\n"trim($vbulletin->options['defaultprefixes']));
            switch(
$vbulletin->options['showdefaultprefixes'])
            {
                case 
1:
                    if (empty(
$threadprefixes_inline)) $threadprefixes_inline $defaultprefixes_inline;
                    break;
                case 
2:
                    
$threadprefixes_inline array_merge($defaultprefixes_inline$threadprefixes_inline);
                    break;
                case 
3:                
                    
$threadprefixes_inline array_merge($threadprefixes_inline$defaultprefixes_inline);
                    break;
            }
            unset(
$defaultprefixes_inline);
    } 
    
    
$prefix_array $threadprefixes_inline;
    if (
in_array(urldecode($_POST['do']), $prefix_array))
    {
        
$handled_do true;
        
$newprefix urldecode($_POST['do']);
        
$_POST['do'] = 'changeprefix';
        
        if (empty(
$vbulletin->GPC['tlist']))
        {
            eval(
standard_error(fetch_error('you_did_not_select_any_valid_threads')));
        }
        
        if (
count($vbulletin->GPC['tlist']) > $threadlimit)
        {
            eval(
standard_error(fetch_error('you_are_limited_to_working_with_x_threads'$threadlimit)));
        }
        
        
$threadids implode(','$vbulletin->GPC['tlist']);
        unset(
$prefix_array);
    }

Reply With Quote
  #39  
Old 09-09-2007, 02:01 PM
Alfa1's Avatar
Alfa1 Alfa1 is offline
 
Join Date: Dec 2005
Location: Netherlands
Posts: 3,537
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does your global prefixes code exactly do?
Does it allow to make a number of prefixes global, while letting other prefixes remain local?

I would really appreciate the code for allowing prefixes to be applied to categories, but not global.
Reply With Quote
  #40  
Old 09-10-2007, 04:38 AM
bjhuang bjhuang is offline
 
Join Date: Jul 2006
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thread prefix supports global prefixes. you can choose how to apply to single forum. but this mod doesn't recognize them.
Reply With Quote
  #41  
Old 09-13-2007, 04:22 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

- 1.1.0 released on September, 13 2007 (Added the default prefixes and fixed some bugs).
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 07:27 PM.


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.08905 seconds
  • Memory Usage 2,368KB
  • Queries Executed 25 (?)
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
  • (3)bbcode_code
  • (1)bbcode_php
  • (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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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