vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Thread Prefixes (https://vborg.vbsupport.ru/showthread.php?t=123033)

rnmcd 08-22-2006 04:22 PM

Mystics, can Admins force users to choose a prefix? So they don't leave it blank?

Ascor 08-22-2006 11:50 PM

yes this is a option you can set, and different for each forum if you wish
look at the image in post one :)

Dennis Olson 08-25-2006 05:47 PM

I really, REALLY need the EDIT to work on prefixes. Any ETA on that?

Milad 08-27-2006 02:26 PM

I face a problem

I cann't change the prefix of any thread, when a user posts a thread I can never change the prefix, all of my attemts had failed.

Any help?

Thanks in advance.

thedvs 08-29-2006 01:13 AM

I have the same problem, if i try to edit a thread to a different prefix, it wont change if you try via full edit

but it will change if you do thread tools > edit thread

id really prefer it if you can do it via full edit, as posters can get confused...

yellowbird 08-29-2006 08:42 PM

Just saw the update. Is this version bug-free as far as we know then?

Mystics 08-29-2006 08:44 PM

Just look at the version history ;)

yellowbird 08-29-2006 08:50 PM

Great. Thanks mystics. Could you help me with my other problem? I'd like to click on the prefix name and have it show only those prefixes.

thedvs 08-29-2006 09:55 PM

@Mystics yer brilliant dude.
all working now :) many thanks.

Mystics 08-29-2006 11:02 PM

Quote:

Originally Posted by yellowbird
Great. Thanks mystics. Could you help me with my other problem? I'd like to click on the prefix name and have it show only those prefixes.

Just edit the threadbit template and replace:
Code:

$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]
with:
Code:

<a href="$sorturl&amp;threadprefix=$thread[threadprefix]">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</a>

bada_bing 08-30-2006 03:25 AM

Couple questions..

Will this work on vb 3.5.3 ?
Can you choose to only display thread prefix option in certain forums only?

BlueEyesOnly 08-30-2006 08:14 AM

danke f?rs update ;)
(thanks for update)

Mystics 08-30-2006 09:04 AM

Quote:

Originally Posted by bada_bing
Will this work on vb 3.5.3 ?
Can you choose to only display thread prefix option in certain forums only?

Look in my profile for a version for vB 3.5.X.

Dennis Olson 08-30-2006 03:56 PM

Thanks for the fix!

Did you get this one too?

https://vborg.vbsupport.ru/showpost....6&postcount=40

Mystics 08-30-2006 04:01 PM

I'm not able to reproduce this....are you sure you have made all modifications?

marlita 08-30-2006 04:52 PM

I have the event-forum hack and I'm trying to get the prefix to show up when someone adds an event. Could someone please help with this?

Thanks.

Dennis Olson 08-30-2006 06:16 PM

Quote:

Originally Posted by Mystics
I'm not able to reproduce this....are you sure you have made all modifications?

Yes. I've also used previous incarnations of this mod, so I know pretty much what to expect. Note that this issue ONLY occurs in a forum that requires prefixes, and ONLY when people first start using prefixes (so many of the prefix values are still blank). Once there are several pages of threads with prefixes present, this issue no longer manifests itself.

wordup 08-31-2006 02:23 AM

I finally got some time to install 3.6 and this hack was the first I installed. Awesome hack!!! I love it!!! But I'm still having the same problem when I had this hack installed on 3.5.4 (https://vborg.vbsupport.ru/showthrea...=99925&page=23)

http://img165.imageshack.us/img165/6...titled3kl1.png

Is there a way to center "Testing" Prefix?

There is another prefix that is longer than Testing, that's why there is space. thanks in advance!

Hades-1 08-31-2006 02:44 PM

i hope you can tell me what i missed so i dont have to do this all over again but......

once i do the "new thread" template edit my title box goes away on all new posts, you cant insert a title at all, not to mentionthere is no prefix box either.

i can revert the template and get the title box back

whats going on?

yellowbird 08-31-2006 05:45 PM

Quote:

Originally Posted by Mystics
Just edit the threadbit template and replace:
Code:

$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]
with:
Code:

<a href="$sorturl&amp;threadprefix=$thread[threadprefix]">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</a>

That's awesome, works like a charm! Thanks!

jack-d 08-31-2006 05:50 PM

Mystics,

This seems like a great hack but one question.

To make it easier on everyone and since you already modified the code, would it not be easier to include the line numbers of the code that need to be replaced.

showthread.php has 1924 lines of code and it can be a little taxing to say the least when looking for a single line of code, coupled with the fact that it would insure that the right code was modified which in turn would cut down on the amount of replies like,:smoke: "it does not work" or :smoke: "i can't find it" etc. etc.

Keep up the excellent hacks.

jackd

showthread.php - line 1810
clientscript/vbulletin_textedit.js - lines 1730,1731,1732
includes/class_dm_threadpost.php - line 398
includes/functions_databuild.php - line 146
includes/functions_online.php - line 1624

jack-d 08-31-2006 09:24 PM

A liitle help lease before I screw something up.

In the editpost template step 3 it states find this code-

<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>

and add above, this code -

<if condition="$show['threadprefix']">
<td>$threadprefixes&nbsp;</td>
</if>



Exactly where above does this code get added. The first thing above is the <tr> tag so I do not see it going there. Above that is another similar section of code... Is that to be replaced.

tr>
<if condition="$show['threadprefix']">
<td class="smallfont">$vbphrase[threadprefix]:</td>
</if>
<td class="smallfont" colspan="<if condition="$show['threadprefix']">2<else />3</if>">$vbphrase[title]:</td>
</tr>
<tr>
<td><input type="text" class="bginput" name="title" value="$title" size="50" maxlength="85" tabindex="1" title="$vbphrase[optional]" /></td>



I hope this makes sense but exactly where would this new line of code be added.

Any help would be appreciated.

jackd

Mystics 08-31-2006 09:57 PM

Quote:

Originally Posted by Dennis Olson
Yes. I've also used previous incarnations of this mod, so I know pretty much what to expect. Note that this issue ONLY occurs in a forum that requires prefixes, and ONLY when people first start using prefixes (so many of the prefix values are still blank). Once there are several pages of threads with prefixes present, this issue no longer manifests itself.

Still can't reproduce it...have you already defined prefixes in these forums? How is it possible the latest thread has no prefix when prefixed are required for this forum?

Mystics 08-31-2006 10:06 PM

Quote:

Originally Posted by wordup
Is there a way to center "Testing" Prefix?

Hm, you can change the alignment of thread prefixes in your vBulletin settings.

Quote:

Originally Posted by Hades-1
i hope you can tell me what i missed so i dont have to do this all over again but......

once i do the "new thread" template edit my title box goes away on all new posts, you cant insert a title at all, not to mentionthere is no prefix box either.

i can revert the template and get the title box back

whats going on?

Re-do the modifications properly.

Quote:

Originally Posted by jack-d
Exactly where above does this code get added.

:confused: ??? Exactly above the line you have to find.

jack-d 09-01-2006 12:01 AM

Quote:

:confused: ??? Exactly above the line you have to find.
well i have built quite a few css pages and never inserted any code between a
<tr> and <td> tag...

this is the reason for my question....

Mystics 09-01-2006 12:12 AM

Quote:

Originally Posted by jack-d
well i have built quite a few css pages and never inserted any code between a
<tr> and <td> tag...

Yeah? What about just another row!?
Code:

                        <if condition="$show['threadprefix']">
                        <td>$threadprefixes&nbsp;</td>
                        </if>

This is the code you have to insert..you don't see the <if> in the output...only the new row...

So in the end it's just:
Code:

<tr>
<td></td>
<td></td>

I don't see any reason why you couldn't do this...

Roverturbo 09-01-2006 03:41 AM

I have a question about the "Show Prefix in 'Last Post' column" feature.

In order to see prefixes tagged to topic titles in index.php you need the above option on but with this option on it passes the prefix over to the next newly created thread title. (As described in the option field)

So if userA makes a thread with a [Information] prefix and then userB comes along and makes a new thread without a prefix the [Information] prefix gets tagged to this new thread even though the new thread may not be information.

I suppose this could be bypassed by forcing members to use prefixes but that is not suitable for my forum.

Is there anyway to have the prefix shown in the last post column on index.php but not get tagged to the next new thread created if it as no prefix?

P.S Good work, Easy to install and works great.

Mystics 09-01-2006 12:27 PM

Quote:

Originally Posted by Roverturbo
I have a question about the "Show Prefix in 'Last Post' column" feature.

In order to see prefixes tagged to topic titles in index.php you need the above option on but with this option on it passes the prefix over to the next newly created thread title. (As described in the option field)

So if userA makes a thread with a [Information] prefix and then userB comes along and makes a new thread without a prefix the [Information] prefix gets tagged to this new thread even though the new thread may not be information.

I suppose this could be bypassed by forcing members to use prefixes but that is not suitable for my forum.

Is there anyway to have the prefix shown in the last post column on index.php but not get tagged to the next new thread created if it as no prefix?

I tried everything but I'm unable to reproduce this...the information in the last post column is always correct in my tests. Please post all details about this forum (prefixes in forum defined, prefixes globally defined, prefix required, userb made a new thread or just a reply to an old thread etc.) and a step-by-step instruction to reproduce this. And be sure to make all file modifications as well.

ogden2k 09-01-2006 08:08 PM

Excellent addition, just what I was looking for. I hope this is carried on to future versions of vB.

Roverturbo 09-02-2006 03:49 AM

Quote:

Originally Posted by Mystics
I tried everything but I'm unable to reproduce this...the information in the last post column is always correct in my tests. Please post all details about this forum (prefixes in forum defined, prefixes globally defined, prefix required, userb made a new thread or just a reply to an old thread etc.) and a step-by-step instruction to reproduce this. And be sure to make all file modifications as well.

http://img240.imageshack.us/img240/3...1111du5dm3.jpg

The Goodbye thread was created without the [Information] prefix, But because the last prefix used in the forum was [Information] its being attached to it.

If you read the desciption of the "show prefix in last post column" option in the admincp it says:

Quote:

If you enable this option the last used prefix will be shown in the Last Post column of each forum. This applies to Forum Home (index.php) and Forum Display (forumdisplay.php).
The bold part is exactly what its doing, It showing the last used prefix even if its not apart of the last thread made.

The mods installed fine, Im 100% positive.

EDIT:

Just so you know, I can not replicate the problem on demand, Its appears to just start happening after a certain period of time.

Turning the option on and off seems to fix it for a short while then it starts happening again.

orphan 09-02-2006 09:16 AM

Hi
Great hack! Installed and works great

Its just one thing, it seems to temper with my stickys
Anyway of fixing that ?

Cheers

gavinzac 09-04-2006 12:36 PM

I've released an Add-On for this modification:
Thread Prefixes Quick Filter :)

Mystics 09-04-2006 05:54 PM

Quote:

Originally Posted by orphan
Hi
Great hack! Installed and works great

Its just one thing, it seems to temper with my stickys
Anyway of fixing that ?

Cheers

Check your template modifications again.

jack-d 09-05-2006 04:07 PM

Quote:

Originally Posted by orphan
Hi
Great hack! Installed and works great

Its just one thing, it seems to temper with my stickys
Anyway of fixing that ?

Cheers


ihave the same problem with stickys showing up in the prefix box.
i am using the seperatre sticky hack, would this have something to do with the conflict.

i did check my template mods twice and they are exactly as specified.

jackd

Hornstar 09-14-2006 09:17 AM

I got a question/request

Can you make some prefixes staff only applied.

As I want to make a prefix that only a staff member can apply once they have looked at the thread, so they will edit the thread and apply the staff only prefix.

Is this currently possible, if not could I request this?

Thanks.

ACIKillJoy 09-15-2006 05:42 AM

Quote:

Originally Posted by hornstar1337
I got a question/request

Can you make some prefixes staff only applied.

As I want to make a prefix that only a staff member can apply once they have looked at the thread, so they will edit the thread and apply the staff only prefix.

Is this currently possible, if not could I request this?

Thanks.


Having the ability for only the mods and admins to be able to apply these would be supurb. And is almost a necesity for my forums. This is a great mod... but would be a supurb one if it had an admin/mod only prefix setting.

redlabour 09-15-2006 06:48 AM

Feature Request:

I have a Forum where we post Daily News with only 2 Prefixes (Politics and Theologics).

After a few Days we move them to their Standardcategorys where are other Prefixes more detailed are used.

Is it possible to add a Prefixselection in the "Move Thread" Dialog in future Versions of this Hack ?

Thx ....

tazB.ca 09-16-2006 06:59 PM

/includes/class_dm_threadpost.php (Prefix within emails to moderators)

that file edit some how disabled my editor buttons

tazB.ca 09-16-2006 07:05 PM

This Is However A Very Nyce Hack

SpankMe 09-17-2006 12:16 AM

Anyone tried this mod with 3.6.1 yet? The search by prefix doesn't work after upgrading to 3.6.1. To test I replaced search.php with the 3.6.0 version and it worked again.


All times are GMT. The time now is 10:22 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.02854 seconds
  • Memory Usage 1,840KB
  • 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
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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