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

proxx 01-31-2006 02:39 AM

I installed, it seems like everything works.

I just have question.

When I click on 'new thread' button, I would like to change the word 'Prefix:' to some other word.

How can I do this?

PIKenPIK 01-31-2006 07:24 AM

Quote:

Originally Posted by proxx
I installed, it seems like everything works.

I just have question.

When I click on 'new thread' button, I would like to change the word 'Prefix:' to some other word.

How can I do this?

Change it in your phrases through ACP ...

Killahbyte 01-31-2006 06:13 PM

I have a bug. The install went fine. But it seems when there is a sticky in the forum the whole sticky thread is shifted over...

KB

Mystics 01-31-2006 06:14 PM

Quote:

Originally Posted by Killahbyte
I have a bug. The install went fine. But it seems when there is a sticky in the forum the whole sticky thread is shifted over...

Re-do the threadbit / SHOWTHREAD template modifications.

Killahbyte 01-31-2006 06:21 PM

1) Find this code:
Code:

<td class="alt1" id="td_title_$thread[realthreadid]" title="$thread[preview]">

1) Add above:
Code:

<if condition="$show['threadprefix'] == 2">
                <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
        </if>

Should be:

1) Find This code:
Code:

<if condition="$show['sticky']">
        <td class="stuck" id="td_title_$thread[realthreadid]" title="$thread[preview]">
<else />

1) Add Above:
Code:

<if condition="$show['threadprefix'] == 2">
                <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
        </if>

That fixed it for me...

KB

Killahbyte 01-31-2006 06:23 PM

/me now clicks install

Thank you

KB

Andreas 01-31-2006 06:24 PM

There are a few minor issues with this Hack, as it does not get fully disabled when you disable the product:
  • includes/functions_databuild.php
    PHP Code:

    $forumdm->set('lastthreadprefix'$lastthread['threadprefix'], truefalse); 

    This causes an error when the product is disabled, as the DM won't accept the prefix then.
  • On WOL Threads do show up with their prefix
  • Moderators do get eMails with thread prefixes

proxx 01-31-2006 10:12 PM

Quote:

Originally Posted by PIKenPIK
Change it in your phrases through ACP ...

Quote:


Quote:
Originally Posted by proxx
I installed, it seems like everything works.

I just have question.

When I click on 'new thread' button, I would like to change the word 'Prefix:' to some other word.

How can I do this?
Quote:

Change it in your phrases through ACP ...

I tried to search for Prefix: ..but i cannot find it. Could you please tell me which phrase contains the 'Prefix:' ?

UBRF 02-01-2006 02:21 PM

Quick question,

I would like the prefix to show in the forumdisplay...when I click the option in the settings it adds an unwanted prefix to display for older threads (non-prefix) when they are bumped. (ex. if the old thread w/o prefix is WTB: Car...when I click the option it is displayed, depending on last used prefix, on forumdisplay as FS: WTB: Car)

This is for my classifieds section...

Strat 02-02-2006 02:18 AM

Problem : installed it, followed instructions, install went 100% perfectly fine (no errors), but unfortunately, I can't see the prefix column to the left of the title bar. It's just not there.

I don't get any errors afterwards either, plug-in is active, I even reinstalled, but still no go. This is what I get. Ideas?

Here's a pic :

http://img.photobucket.com/albums/v1...991/prefix.jpg

EDIT ; when I try to create a thread, it asks me to pick a prefix, but the column isn't there. Thought it could possibly be in black, so I reverted to the default skin. No change.

2nd EDIT : nevermind. Fixed it myself.

SCRIPT3R 02-02-2006 08:24 PM

does this have any effect on pre-existing threads where the search is involved? also, are there any potential errors when merging an old non-prefixed thread with a new thread that has been pre-fixed? i wouldn't think so, but just wanted to verify.

Kmaster 02-04-2006 09:24 AM

is it possible have itself difference colour for prefix?
for example: in forum 6, has 5 prefixs for selection. I want prefix-1 in red colour, prefix-2 in blue, and so on.

hope can add above features. very nice hack.

VaaKo 02-04-2006 07:15 PM

can't you make this hack to be product integrated instead of editing the php files?

Mystics 02-04-2006 11:19 PM

Quote:

Originally Posted by Don Corleone
can't you make this hack to be product integrated instead of editing the php files?

Feel free to try it....but let me guess, you have never actually looked at the file modifications and existing hooks in vBulletin?

VaaKo 02-05-2006 09:40 AM

Quote:

Originally Posted by Mystics
Feel free to try it....but let me guess, you have never actually looked at the file modifications and existing hooks in vBulletin?

feel free to try what?

and I didn't really understood your question

Mystics 02-05-2006 09:44 AM

Quote:

Originally Posted by Don Corleone
feel free to try what?

To do what your are asking me....it it just not possible to remove the few file modifications because there are no plugin hooks to use! Don't you think I would have tried!?

Kmaster 02-05-2006 02:48 PM

Quote:

Originally Posted by Kmaster
is it possible have itself difference colour for prefix?
for example: in forum 6, has 5 prefixs for selection. I want prefix-1 in red colour, prefix-2 in blue, and so on.

hope can add above features. very nice hack.

an idea how can add this feature?

Thanks in advance.

pipin 02-06-2006 01:45 PM

When i use it with the Prevent Doublepost Hack from Xenon (https://vborg.vbsupport.ru/showthread.php?t=96602) i get the following error:

Quote:

Field lastthreadprefix is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php (Zeile 485)
It works, but the Error Message above is shown.

diades 02-07-2006 12:57 PM

Has anyone tried this with v3.5.3 as yet? Are there any problems associated?

Mystics 02-07-2006 02:08 PM

Quote:

Originally Posted by diades
Has anyone tried this with v3.5.3 as yet? Are there any problems associated?

Works fine.

Smiry Kin's 02-07-2006 02:52 PM

does this owrk in 3.5.3? also is there away to only allow admins/mods to use this?

thanks

dsotmoon 02-07-2006 04:52 PM

installed this last night, works great, something i'd like to see in the future is the prefix that you add in the adminCP that can be added to the top or bottom of forum prefixes would be to make those mod/admin viewable/usable only and also make it an option for mod/admin to be able not to use prefixes even for forums that require them

having said that, this ads a whole new funtionality to my automotive forums, thank you

diades 02-07-2006 08:17 PM

Quote:

Originally Posted by Mystics
Works fine.

Hi Mike

Thanks for the reply, I was just checking avenues of false hope as I have 'just' installed this and, whilst it is operational, it has caused me headaches with the quick editor (not functional) especially and the editors in general (formatting buttons not operational). Plus, showthread has three error messages that now come up (on Exlporer) and one on new reply (vb_text edotor is not defined).
I have been right through several times looking for the culprit to no avail so far.

Revpolar 02-07-2006 08:36 PM

Quote:

Originally Posted by diades
Hi Mike

Thanks for the reply, I was just checking avenues of false hope as I have 'just' installed this and, whilst it is operational, it has caused me headaches with the quick editor (not functional) especially and the editors in general (formatting buttons not operational). Plus, showthread has three error messages that now come up (on Exlporer) and one on new reply (vb_text edotor is not defined).
I have been right through several times looking for the culprit to no avail so far.

The thing I like about it is no more need for subforums.

DrewM 02-08-2006 09:05 PM

I'm getting the fowling error:
Code:

Fatal error: Call to undefined function: verify_thread_prefix() in /home/rdsx667/public_html/forum/includes/class_dm_threadpost.php(1494) : eval()'d code on line 1

DrewM 02-08-2006 10:31 PM

please help!

Lucas 02-09-2006 06:43 PM

So the mode is working without problems on vB 3.5.3?

Mystics 02-09-2006 06:49 PM

Quote:

Originally Posted by Larrysw
I'm getting the fowling error:
Code:

Fatal error: Call to undefined function: verify_thread_prefix() in /home/rdsx667/public_html/forum/includes/class_dm_threadpost.php(1494) : eval()'d code on line 1

And what are you doing when you get this error???

@diades
Maybe you have other modifications installed which create a conflict with the prefix plugin. The plugin itself works fine on many sites without such errors.

You should re-do your modifications in the *.js files and your templates.

DrewM 02-09-2006 06:50 PM

After you hit post new thread.

pipin 02-10-2006 08:59 AM

Quote:

Originally Posted by pipin
When i use it with the Prevent Doublepost Hack from Xenon (https://vborg.vbsupport.ru/showthread.php?t=96602) i get the following error:

Quote:

Field lastthreadprefix is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php (Zeile 485)
It works, but the Error Message above is shown.

any hint about this, Mystics?


All times are GMT. The time now is 11:23 PM.

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.01639 seconds
  • Memory Usage 1,862KB
  • 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
  • (6)bbcode_code_printable
  • (5)bbcode_php_printable
  • (24)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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