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)

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.


All times are GMT. The time now is 07:01 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.01940 seconds
  • Memory Usage 1,756KB
  • 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
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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