vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Thread Prefixes (https://vborg.vbsupport.ru/showthread.php?t=99925)

monkeywarplane 01-25-2006 06:44 PM

Hey this hack is something I am very interested in, if I can request a mod - would love to have multiple "prefixes" that are mandatory for the thread to be submitted. Looking to create a forum where the columns are sortable by date, problem, category... etc. Is this possible?

I haven't installed this, so I apologize for any question that may seem obvious, but are the prefix columns sortable or they must be searched upon?

Cheers

Stuart

PIKenPIK 01-26-2006 07:15 AM

Quote:

Originally Posted by PIKenPIK
Couldn't live without this hack ... Just now I can update my forum vB 3.07 to 3.5.3 :rolleyes:

All installed and works linke a charm!

2 minor questions:

The title in threadview is now:
Prefix - NameOfTheTitle
I want to change that into:
(Prefix) NameOfTheTitle

I changed in class_dm_threadpost.php:
PHP Code:

$threadinfo['title'] = $threadinfo['threadprefix'] . ' - ' $threadinfo['title']; 

into
PHP Code:

$threadinfo['title'] = ($threadinfo['threadprefix']) . $threadinfo['title']; 

or
PHP Code:

$threadinfo['title'] = '(' $threadinfo['threadprefix'] . ')' $threadinfo['title']; 

but both ways didn't work :disappointed: Do you know a (other) way?

2nd) On the forumindex (home) the latest post is shown as an URL with the Prefix in it:
Like: Prefix - This Is The Latest Post
I would like to show there the Prefix with the link next to it:
Like: (Prefix) This Is The Latest Post

Hopefully you can give two nice answers ;)


XXX
PnP

**bump** Please :o

PIKenPIK 01-26-2006 07:18 AM

Quote:

Originally Posted by monkeywarplane
Hey this hack is something I am very interested in, if I can request a mod - would love to have multiple "prefixes" that are mandatory for the thread to be submitted. Looking to create a forum where the columns are sortable by date, problem, category... etc. Is this possible?

I haven't installed this, so I apologize for any question that may seem obvious, but are the prefix columns sortable or they must be searched upon?

Cheers

Stuart

You can make as much prefixes per forum if you need .... user can sort the (sub)forum by category (prefix). Even the search on prefix is there ...

And for all the other 3.5.3 owners .... if you really do this mod correctly step by step .... It works like a charm on my 3.5.3 :squareeyed:

Mystics 01-27-2006 03:14 PM

Quote:

Originally Posted by PIKenPIK
**bump** Please :o

Take a look at the Prefix plugins...you don't need to edit the files.

(and only the last method is correct: '(' . $threadinfo['threadprefix'] . ') ' . )

UBRF 01-27-2006 05:17 PM

installed and working great on 3.5.3

PIKenPIK 01-29-2006 08:38 AM

Quote:

Originally Posted by Mystics
Take a look at the Prefix plugins...you don't need to edit the files.

(and only the last method is correct: '(' . $threadinfo['threadprefix'] . ') ' . )

Thanks ..... i made my wanted changes :squareeyed:

Still ... dunno how to get the prefix in front of the url in the last post on forumhome ....

Maybe a little help from you?
PHP Code:

if ($vbulletin->options['prefixinlastpost'])
{
    if (
$vbulletin->userinfo['userid'] AND in_coventry($vbulletin->userinfo['userid'], true))
    {
        
$counter_select str_replace('forum.lastthread, tachyforumpost.lastthread''IF(forum.lastthreadprefix <> \'\' AND forum.allowprefix != 0, CONCAT(\'(\', forum.lastthreadprefix, \') \', forum.lastthread), forum.lastthread) AS lastthread, IF(tachyforumpost.lastthreadprefix <> \'\' AND forum.allowprefix != 0, CONCAT(\'(\', tachyforumpost.lastthreadprefix, \') \', tachyforumpost.lastthread) AS lastthread, tachyforumpost.lastthread)'$counter_select);
    }
    else
    {
        
$counter_select str_replace('lastthread,''IF(lastthreadprefix <> \'\' AND allowprefix != 0, CONCAT(\'(\', lastthreadprefix, \') \', lastthread), lastthread) AS lastthread,'$counter_select);
    }



Mystics 01-29-2006 08:47 AM

Quote:

Originally Posted by PIKenPIK
Still ... dunno how to get the prefix in front of the url in the last post on forumhome ....

The code looks ok...doesn't it work?

PIKenPIK 01-29-2006 09:06 AM

Quote:

Originally Posted by Mystics
The code looks ok...doesn't it work?

It sure works:

On the forumindex (home) the latest post is shown as an URL with the Prefix in it:
Like: Prefix - This Is The Latest Post
I would like to show there the Prefix with the link next to it:
Like: (Prefix) This Is The Latest Post

Mystics 01-29-2006 09:08 AM

Quote:

Originally Posted by PIKenPIK
It sure works:

On the forumindex (home) the latest post is shown as an URL with the Prefix in it:
Like: Prefix - This Is The Latest Post
I would like to show there the Prefix with the link next to it:
Like: (Prefix) This Is The Latest Post

You already have modified the plugin cache_ordered_forums....and with this code you should get (prefix)this is the last post. (prefix) is a link too, you can not change this without rewriting many vBulletin code.

PIKenPIK 01-29-2006 10:28 AM

Quote:

Originally Posted by Mystics
You already have modified the plugin cache_ordered_forums....and with this code you should get (prefix)this is the last post. (prefix) is a link too, you can not change this without rewriting many vBulletin code.

OK .... no more Q from me :rolleyes: Sure appreciate your given answers ... thank you!!!

XXX
PNP


All times are GMT. The time now is 01:30 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.01690 seconds
  • Memory Usage 1,763KB
  • 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_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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