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)

dope15gd 07-03-2007 04:11 PM

I love this mod, but it has issues with the vS-Interactive Profiles mod. When both are enabled and I post it says it is a duplicate post and takes me to the first post. there is no actual double posting, but it thinks so for some reason. I think it might even just be something supermods/admins experience, which makes it more odd.

edit// turns out it was the hack that prevented bumping of old threads

edit// problem is back so I have no clue what it is. All i know is that disabling this solves it :(

Wheezy 07-04-2007 03:17 AM

Im still having trouble with the installation of this...

I can upload the folder to my website via FTP, and I can also import the .xml file via the AdminCP. But Im not able to follow the provided link for the rest of the installation steps.

Terrasoft 07-04-2007 04:05 AM

<a href="http://www.yourdomain.com/forum/admincp/prefixinstall.php" target="_blank">http://www.yourdomain.com/forum/admi...fixinstall.php</a>

The prefixinstall.php SHOULDVE be in your admincp folder. If its not, that is why you can't follow the link.

Or change the "your domain" to your site and if you use /forums instead of /forum, watch out for that too. Its probably easier to just goto your admincp and then replace index with prefixinstall.php

monkeyfight 07-04-2007 10:13 PM

Not a quick one to install, but works perfectly for what I need! Thanks :)

Dutchytje 07-08-2007 09:10 AM

Love this hack!! :cool:

Also no problems with installing it on VB 3.6.7 PL1 :up:

Wheezy 07-08-2007 08:13 PM

Quote:

Originally Posted by Terrasoft
The prefixinstall.php SHOULDVE be in your admincp folder. If its not, that is why you can't follow the link.

I have two things in my admincp folder - prefixinstall and prefixinstall_text but they are both showing up as image files... is this right?

Also, I tried editing the /forum vs /forums in the link and that didnt work either.

dbirosel 07-11-2007 04:50 PM

Vb.org has the prefix dropdowns under the announcements for easy navigation. How do i do that?

edenx 07-15-2007 12:15 PM

Is this mod working fine?

Alfa1 07-15-2007 04:24 PM

Quote:

Originally Posted by dbirosel (Post 1288459)
Vb.org has the prefix dropdowns under the announcements for easy navigation. How do i do that?

Yes, that feature is very nice. I'd like this too.

Quote:

Originally Posted by edenx (Post 1291745)
Is this mod working fine?

It seems to be working fine on vb.org, but it seems to have problems with other add-ons/hacks. This may be the fix for it.

dbirosel 07-15-2007 08:06 PM

Quote:

Originally Posted by Alfa1 (Post 1291948)
Yes, that feature is very nice. I'd like this too.


It seems to be working fine on vb.org, but it seems to have problems with other add-ons/hacks. This may be the fix for it.

https://vborg.vbsupport.ru/showthread.php?t=152343

edenx 07-15-2007 09:14 PM

Does this mod works with RSS poster robots from vB? How can I set a default prefix por RSS posted topics?

Anyone! Help!

edenx 07-15-2007 10:55 PM

Question about installing...

wich are the needed templates modifications? where can I see them?

cclaerhout 07-16-2007 09:18 PM

Can users who has installed this hack can check if they have also that bug :

Open the thread->go to thread tools->click on "edit thread"->change the title or the icon->save

Message error dispays then warning to choose a prefix. Does the same problem happen for you ?


Edit : well... the mistake was coming from me :D Sorry. Thanks for this great hack !

ppmfic 07-17-2007 05:47 AM

I have a problem about the shift of forum table. The blank column was added (Pink arrow) and the header shifted to the left. (Red arrows) The picture below was compared with your sample pic.

I don't know what's wrong I have done. Please help me.
All other functions are great and no problem.

patrickb 07-19-2007 08:07 AM

I just found a bug in the mod

If the option "Thread Prefix Required" is set to yes, the automatic creation of threads for User Post Reports and User Infractions wont work.

This is due to the fact that there must be a prefix specified and the vBulletin methods don't specify one when creating the thread.

Alfa1 07-21-2007 03:22 PM

step 4 (template edits):
Quote:

3) Find this code:
Code:

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

This code is not in my Template editpost.

Please help.

0tolerance 07-22-2007 11:11 AM

yes i found that problem in mine, but i over came that. just search for
Quote:

<td><input type="text" class="bginput" name="title"
and then look for the </td> at the end to know the codes ended.

i have a problem.
because i have a couple hundred posts that do not have a prefix.. is there some way i can easily assign them a prefix.. (note: they will all be named the same prefix, depending on what forum they came from... so all from depression forum will be auto named depression prefix)

Andreas 07-22-2007 11:13 AM

Quote:

Originally Posted by patrickb (Post 1295446)
I just found a bug in the mod

If the option "Thread Prefix Required" is set to yes, the automatic creation of threads for User Post Reports and User Infractions wont work.

This is due to the fact that there must be a prefix specified and the vBulletin methods don't specify one when creating the thread.

There are settings for that :)

For those who use TMS: An XML file with all template modifications for this hack is attached.
Thanks to Ren? Kunze for providing it.

0tolerance 07-22-2007 11:54 AM

any ideas on how i can do that?

IsMaR 07-23-2007 11:08 AM

is there any way from preventing moderators from editing prefixes and just have it set by supermod or admin?

pollon 07-23-2007 11:50 AM

Quote:

Originally Posted by IsMaR (Post 1299091)
is there any way from preventing moderators from editing prefixes and just have it set by supermod or admin?

Do you mean setting/editing/deleting prefixes from a forum ???

If so you have to do a very easy template modification:

in FORUMDISPLAY find:

Code:

<if condition="$foruminfo['allowprefix']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="manageprefix" />$vbphrase[manage_threadprefix]</label></div>
</if>

Replace with:

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$foruminfo['allowprefix']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="manageprefix" />$vbphrase[manage_threadprefix]</label></div>
</if></if>

You must change X, Y, Z with the number of usergroups allowed to edit prefixes. In this way Moderators can't see the link to edit prefixes in "Forum tools".
It worked on my forum :D

IsMaR 07-23-2007 01:00 PM

Quote:

Originally Posted by pollon (Post 1299120)
Do you mean setting/editing/deleting prefixes from a forum ???

If so you have to do a very easy template modification:

in FORUMDISPLAY find:

Code:

<if condition="$foruminfo['allowprefix']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="manageprefix" />$vbphrase[manage_threadprefix]</label></div>
</if>

Replace with:

Code:

<if condition="is_member_of($bbuserinfo, X, Y, Z)"><if condition="$foruminfo['allowprefix']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="manageprefix" />$vbphrase[manage_threadprefix]</label></div>
</if></if>

You must change X, Y, Z with the number of usergroups allowed to edit prefixes. In this way Moderators can't see the link to edit prefixes in "Forum tools".
It worked on my forum :D

oh wow nice... thanks

NFLfbJunkie 07-25-2007 03:29 AM

Quote:

Originally Posted by dbirosel (Post 1231441)
how do i remove the Prefix Category from the New Posts?

Thread Title - Prefix

This has been asked a few times and want to know if there is a solution. This is my last thing to do to get this MOD functioning on my board. Does it have something to do with the "Prefix Markup (within threads and emails)" option in the AdminCP? The following two examples are suggested:

Examples:
{1}&nbsp;-&nbsp; results to Prefix - Title.
[{1}]&nbsp; results to [Prefix] Title</SPAN>.

What would produce Title [Prefix]? I have played with different combinations and can not seem to figure this out. I would like to do away with the prefix from the thread title altogether, but Title [Prefix] looks better than the above two options.

patrickb 07-25-2007 06:03 AM

Is it possible to add an option to the user's profile so that by default, the threads are automatically filtered?

I am trying to use this mod for a multi lingual site, and I would have each thread tagged per language. So whenever the user browses the site, he would see the threads that correspond to his language, if he chooses to.

Is this possible?

NFLfbJunkie 07-25-2007 04:02 PM

Something I noticed while playing around with this MOD on this site is when you filter for a MOD by a prefix and end up on say page 2 of the filtered threads, and then select another thread prefix, it takes you to page 2 of that thread prefix's thread and not page 1. Is there a fix to this?

kira 07-25-2007 04:37 PM

Quote:

Originally Posted by Junkie (Post 1300800)
What would produce Title [Prefix]? I have played with different combinations and can not seem to figure this out. I would like to do away with the prefix from the thread title altogether, but Title [Prefix] looks better than the above two options.

Hi Junkie. :) Can you clarify -- where exactly do you want Title [Prefix] to show this way? On the threads list in forumdisplay? Or within the thread itself? Or both?

Generally speaking, you'd need to find this code:

Code:

<if condition="$show['threadprefix'] == 1">
                <if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if>
            </if>

And move it after the thread title code. For example, in threadbit template (which affects how the thread title displays on forumdisplay), the thread title and prefix code section originally should look something like this:

Code:

$thread[movedprefix]
$thread[typeprefix]
<if condition="$show['threadprefix'] == 1">
                <if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if>
            </if>
$thread[moderatedprefix]
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a>

To move the thread prefix (but not the "moved" or "moderated" prefixes) display after the thread title, you'd want the above section to look like this:

Code:

$thread[movedprefix]
$thread[typeprefix]
$thread[moderatedprefix]
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]$thread[highlight]" id="thread_title_$thread[realthreadid]"<if condition="$show['gotonewpost']"> style="font-weight:bold"</if>>$thread[threadtitle]</a> <if condition="$show['threadprefix'] == 1">
                <if condition="$thread['threadprefix']">$prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if>
            </if>

If you let me know exactly where you want this change, I can give you more detailed instructions. Hope this makes sense!

NFLfbJunkie 07-25-2007 07:10 PM

I would like to totally remove the prefix [Football] (while still having the thread prefix active for the forum the thread is in) and just have the title of the thread (within the thread itself). Also, would you know how I could change the size of the thread title so it stands out a little more? I really appreciate all of your coding help.

kira 07-25-2007 08:54 PM

Quote:

Originally Posted by Junkie (Post 1301503)
I would like to totally remove the prefix [Football] (while still having the thread prefix active for the forum the thread is in) and just have the title of the thread (within the thread itself).

Oh, that's no problem then! You'll laugh at how easy this is when I show you. :)

1. In your admincp, go down to Plugins & Products, and click on Plugin Manager.

2. When the plugin manager opens, look in the section called Product : Thread Prefixes and disable the following two options (by unchecking their checkboxes):

Prefix: Display Prefix in Front of Title (Post)

Prefix: Display Prefix in Front of Title (Thread)


3. Scroll down and click the Save Active Status button.

Voila! Prefixes gone in the thread. :) Let me know if this works for you.

Quote:

Also, would you know how I could change the size of the thread title so it stands out a little more? I really appreciate all of your coding help.
My pleasure, Junkie. There's a simple template mod by raiderlax called Title of Thread (Standing Out in Middle) here that does what you're looking for. Very easy, just adding a couple of lines to the SHOWTHREAD template. Don't forget to click "installed" on his template mod to let him know it was helpful. :)

Alfa1 07-25-2007 10:42 PM

Is it possible to make a product of this hack?

The reason that I ask is that since there are a lot of template edits, a lot can go wrong with both installing and uninstalling.

I really like this hack and the possibilities it gives. vb versions like 3.6.6 that make you loose all template edits with upgrading will likely come more often, now that Jelsoft works on various official add-ons.

NFLfbJunkie 07-26-2007 12:11 AM

Kira, I never thought about shutting off the products. Thanks. As for your suggestion to consider Raiderlax'd MOD, I would really like to change the font size of the thread title of the first post with all other posts being their normal size. I don't even know if this is possible.

flindersredclaw 07-26-2007 01:02 PM

Great addon, though I do wish it was a little less complicated to make all the file edits. Great just the same if you follow the instructions to the T. Thanks

duditas 07-27-2007 02:07 PM

It doesn't work in Version 3.6.7 I can't install it :(

GNDI 07-27-2007 04:27 PM

Or in 3.6.8 for that matter, If you have installed Thread prefix, make sure you have uninstalled it 100% before upgrading from 3.6.6 or earlier to 3.6.7 or newer

SBlueman 07-28-2007 05:32 PM

I installed this and am getting this error when trying to go into the Forum Settings section:

Quote:

Parse error: parse error, unexpected $ in /homepages/21/d144609245/htdocs/www.gridironfans.com/forums/includes/functions_databuild.php on line 1784
Problem is? That line is the end of the file....can anyone help?

NM....got some help offline.

trainer 07-28-2007 10:29 PM

does this work with version 3.6.8 ?

duditas 07-29-2007 04:57 AM

Quote:

Originally Posted by GNDI (Post 1303210)
Or in 3.6.8 for that matter, If you have installed Thread prefix, make sure you have uninstalled it 100% before upgrading from 3.6.6 or earlier to 3.6.7 or newer

No GNDI, it's a 3.6.7 clean version. Now I've installed vbulletin 3.6.8 and I can't install this addon either :(

It said:

1. Edit the file: showthread.php
----
1) Find this code: thread.title



But this code doesn't exist or I can't find it :(

F.S.A 07-29-2007 08:24 AM

Quote:

Originally Posted by SBlueman (Post 1304047)
I installed this and am getting this error when trying to go into the Forum Settings section:



Problem is? That line is the end of the file....can anyone help?

NM....got some help offline.

You should UNinstall it since it's not working on 3.6.7 nor 3.6.8.
Revert all your templates and re-upload the original PHP and Javascript files to make your forum works properly.

Let's hope that a NEW version of this Addon be released soon :)

GNDI 07-29-2007 09:45 AM

Quote:

Originally Posted by trainer (Post 1304249)
does this work with version 3.6.8 ?

Try reading this post only to posts above yours

Pottsy 07-29-2007 03:42 PM

This works for me fine with 3.6.8. No uninstalls or anything when upgrading all the way from 3.6.4 or so.

I have not modified any of the php or js files, and it's no problem.

I did get some errors in the past that were fixed by doing this.

SBlueman 07-29-2007 08:45 PM

Quote:

Originally Posted by kira (Post 1301608)

1. In your admincp, go down to Plugins & Products, and click on Plugin Manager.

2. When the plugin manager opens, look in the section called Product : Thread Prefixes and disable the following two options (by unchecking their checkboxes):

Prefix: Display Prefix in Front of Title (Post)

Prefix: Display Prefix in Front of Title (Thread)


3. Scroll down and click the Save Active Status button.

Voila! Prefixes gone in the thread. :) Let me know if this works for you.

I did this on my site:
https://vborg.vbsupport.ru/

And the prefixes are still showing:
https://vborg.vbsupport.ru/

Any suggestions?


All times are GMT. The time now is 09:14 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.01818 seconds
  • Memory Usage 1,852KB
  • 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
  • (8)bbcode_code_printable
  • (18)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