Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

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
  #12  
Old 04-17-2007, 02:55 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Milad ,

u have no idea how much i was looking for this one . Thanks for making it .

but i have problem with it :

when i tried to change prefix i get this error :
Quote:
" You tried to set an invalid prefix (for certain forum) to a thread. "
and in other sections that have more than 2 Prefixs , prefix doesnt shows up at all in moderation ...


Thanks in advance

any idea ??

Thanks
Reply With Quote
  #13  
Old 04-21-2007, 12:23 PM
Mecho's Avatar
Mecho Mecho is offline
 
Join Date: Aug 2006
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any support ??
Reply With Quote
  #14  
Old 04-21-2007, 10:19 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Milad

Just what I needed.

Just a problem I found if you created a prefix like this:
<Problem>
It will not show up in the list it will only show up blank space of the selector

Thanks for any help

Install
Reply With Quote
  #15  
Old 04-23-2007, 05:48 AM
cklimas cklimas is offline
 
Join Date: Jun 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nathan2006 View Post
Just a problem I found if you created a prefix like this:
<Problem>
It will not show up in the list it will only show up blank space of the selector
This seems to be a problem with vBulletin. Text like this <text> will be interpreted as pseudo html tag. Try this [text] to avoid any problems.
Reply With Quote
  #16  
Old 04-24-2007, 05:09 PM
Milad's Avatar
Milad Milad is offline
 
Join Date: Apr 2005
Location: Syro
Posts: 663
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cklimas View Post
Even though it works, I receive this error msg:

Code:
Could not find phrase 'inline_prefix_changed'.
try to overwrite the product.

Quote:
Originally Posted by Mecho View Post
Hi Milad ,

u have no idea how much i was looking for this one . Thanks for making it .

but i have problem with it :

when i tried to change prefix i get this error :


and in other sections that have more than 2 Prefixs , prefix doesnt shows up at all in moderation ...


Thanks in advance

any idea ??

Thanks
You have to change prefix forum by forum, don't try to apply a prefix in a forum to a thread in another forum.

Quote:
Originally Posted by Nathan2006 View Post
Thank you Milad

Just what I needed.

Just a problem I found if you created a prefix like this:
<Problem>
It will not show up in the list it will only show up blank space of the selector

Thanks for any help

Install
I'll try to solve that for you.
Reply With Quote
  #17  
Old 04-24-2007, 05:21 PM
nexialys
Guest
 
Posts: n/a
Default

a little gift from myself... the French / Fran?ais phrases

Milad, just add this to your distribution, i will delete the file afterward
Reply With Quote
  #18  
Old 04-24-2007, 07:52 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
You have to change prefix forum by forum, don't try to apply a prefix in a forum to a thread in another forum.
!! of course i did like that ! but no work for me !
Reply With Quote
  #19  
Old 04-25-2007, 08:55 PM
Nathan2006's Avatar
Nathan2006 Nathan2006 is offline
 
Join Date: Feb 2006
Location: UK
Posts: 862
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Milad View Post
I'll try to solve that for you.

Thanks
Reply With Quote
  #20  
Old 05-02-2007, 12:31 PM
cklimas cklimas is offline
 
Join Date: Jun 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Milad,

it is not possible to unassign selected threads. Could you add this?

Regards
Chris
Reply With Quote
  #21  
Old 05-21-2007, 08:16 PM
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Location: Vineland, NJ
Posts: 6,693
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not forward compatible - if a prefix is similar to one of the default admin dropdown values it will not work..

for example, if you or the staff creates a prefix called "close", "open", etc .. it will conflict with existing values

hence, this modification may have a negative affect on new options that jelsoft may add (in the future) to the admin moderation dropdown menu

a fix would be to prepend 'p_' to each prefix value (forumdisplay_start)
PHP Code:
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]);
        }
    }
    
    
insert_to_template('FORUMDISPLAY''<optgroup label=\"____________________\">'$vbulletin->templatecache['forumdisplay_inlineprefix'], 'before');
    
    
$prefix_array explode("\r\n"trim($foruminfo['threadprefix']));
    
    foreach (
$prefix_array as $key => $value)
    {
        
$inlineprefix .= "\t\t\t\t\t<option value=\"p_" urlencode($value) . "\">$value</option>\r\n";
        
//DEVDEBUG("prefix = ". $value);
    
}
    unset(
$prefix_array);

and remove 'p_' in inlinemod_action_switch before any action is taken

I changed inlinemod_action_switch to:
PHP Code:
if  ($foruminfo['allowprefix'])
{    
    
$prefix_array explode("\r\n"trim($foruminfo['threadprefix']));
    
    
$newprefix urldecode($_POST['do']);
    
// remove 'p_' 
    
$newprefix str_replace('p_'''$newprefix);
    
    if (
in_array($newprefix$prefix_array))
    {
        
/**
        * $newprefix exists in database so let's go ahead and use it
        * $newprefix exists so let's change $_POST action
        * Check threadids exist
        */
        
        
$handled_do true;
        
$_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']);
    }
    
// we're finished with $prefix_array
    
unset($prefix_array);

Reply With Quote
Reply

Thread Tools

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 11:51 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.04651 seconds
  • Memory Usage 2,337KB
  • 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
  • (1)bbcode_code
  • (2)bbcode_php
  • (7)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
  • (3)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
  • (10)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