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)

jluerken 09-05-2007 05:11 AM

Its really time that this hack becomes standard.
It should find its way to the next Jelsoft Release and become a default part of a vBulletin installation

Alfa1 09-05-2007 12:12 PM

Without a doubt.

xandizitxu 09-09-2007 12:11 AM

How to addapt the scroll to my style, is using vbulletin default style.

Stefano Virgill 09-14-2007 09:37 AM

Hi guys,
I don't know what the hell I did... When I firstly installed, it was ok, I remember. Now, after more then 1 month, I don't know why, in my Forum Tools there is not the function t add prefixes.
I would like to add prefixes to this area, but in the Tool there isn't.

Can you help me?

Thanks

Steve

pollon 09-14-2007 10:00 AM

Ciao Stefano

Sembra che nel template non ci sia la stringa per quel link. Ti riporto le modifiche del template da fare per aggiungere quel link tra gli admin tools.

in FORUMDISPLAY

trova:

Code:

<if condition="$show['post_new_announcement']">
<div><label for="fa_pan"><input type="radio" name="do" id="fa_pan" value="postannouncement" />$vbphrase[post_new_announcement]</label></div>
</if>

sotto aggiungi:

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>

poi trova:

Code:

<if condition="$show['post_new_announcement']">
    <option value="postannouncement">$vbphrase[post_new_announcement]</option>
</if>

sotto aggiungi:

Code:

<if condition="$foruminfo['allowprefix']">
    <option value="manageprefix">$vbphrase[manage_threadprefix]</option>
</if>

Se non risolvi in questo modo allora non so quale possa essere il problema.
Bye bye

Stefano Virgill 09-15-2007 01:21 AM

It works!
Thank you very much pollon!

Regards

Steve

Alfa1 09-23-2007 01:17 PM

In the display options drop down for prefixes, there is no option to display threads without a prefix. Having this option can be very handy for applying prefixes to forums. Can you please add this?

When searching the total forum for threads with a certain prefix, the search engines does not allow for a search on thread prefix only.
When searching for a term + thread prefix, then the outcome is just for the term and includes threads with other or no thread prefixes.

Bluehemp123 09-25-2007 07:05 PM

Will this every be fixed? I really really really need something just like this, but I already messed up my board a few times trying to install it and I despise doing file edits. Anybody?

mrghostno1 09-27-2007 02:06 AM

Quote:

Version-History

1.6.1 (2006-08-29 - 11:30 pm CET)
Er... a year later ain't too much, could you please do an update? :( This mod is really needed

70age 09-30-2007 07:17 AM

I want all priefuxes show on the "forumdisplay"
Could anybody tell me what shoud I do?

ragtek 10-03-2007 07:04 AM

It would be nice if this would be possible:

prefixes by usergrouppermissions

like: usergroup admin get prefix admin
no other groups see it then admin
so i can make a thread, set the prefix admin and finish
now all the groups, who have permissions to this prefix can see the thread

Bluehemp123 10-04-2007 03:16 AM

I just wish this would work on 3.6.8 :(

SBlueman 10-04-2007 03:22 AM

Thread prefixes are working fine for me on 3.6.8

Bluehemp123 10-04-2007 03:27 AM

Did you have to modify anything? I followed the instructions sep by step and it would not work. :(

SBlueman 10-04-2007 04:02 AM

No...I just know of all the modifications on my site that has to be the most complex to install and can be easily messed up if something is done wrong.

QiK 10-04-2007 06:17 AM

I'm trying to install this plug-in and I believe I've made the correct edits (I've checked it twice). But it still doesn't work. There is no "Manage Thread Prefixes" when I click on "Forum Tools"; there is no option to choose a prefix when I try to create a new thread (although prefixes were defined in the admincp and prefixes are enabled for each forum). Any idea where to look for the error?

ragtek 10-11-2007 09:26 AM

1. is it possible to specify for every prefix a color?
2. i'd like to put the "filter form" https://vborg.vbsupport.ru/attachmen...6&d=1154712437 under the navbar
could somebody help pls?

ragtek 10-11-2007 10:10 AM

I solved it:

changed the templateedit to:
Code:

<if condition="$show['threadprefix'] == 2">
                <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']=='Suche'">$prefixmarkup[0]<span style="color:red;">$thread[threadprefix]</span>$prefixmarkup[1]<else />
                $prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
</if>


projectpilot 10-14-2007 05:49 AM

Quote:

Originally Posted by ragtek (Post 1357475)
I solved it:

changed the templateedit to:
Code:

<if condition="$show['threadprefix'] == 2">
                <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']=='Suche'">$prefixmarkup[0]<span style="color:red;">$thread[threadprefix]</span>$prefixmarkup[1]<else />
                $prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
</if>



What template is it? what is the name?
If it is a file edit, what is the name of the file?

eLkRi 10-21-2007 12:26 PM

sorry for my english but i am spanish

i have a problem during installation.

i complete step 3 where i edit the files:

1. Files that need to be edited:
- /showthread.php (Display prefix in 'Similar Threads')
- /clientscript/vbulletin_textedit.js (JavaScript error message if no prefix was selected)
- /includes/class_dm_threadpost.php (Prefix within emails to moderators)
- /includes/functions_databuild.php (Update prefix in column 'Last Post' for mod functions)
- /includes/functions_online.php (Display prefix in 'Who's online')

buy in step 4, where i edit the template files, the first

1. Edit the Template: editpost
1) Find this code:

$vboptions[postminchars]

but i dont found this line in my editpost.

Y have a vbulletin 3.6.8 and the theme y default and y dont make other modificains in the vbulletin, this is first modification.

Can you help me?

Thanks!!

projectpilot 10-25-2007 02:37 AM

Quote:

Originally Posted by ragtek (Post 1357475)
I solved it:

changed the templateedit to:
Code:

<if condition="$show['threadprefix'] == 2">
                <td class="alt1" align="$prefixalign" nowrap="nowrap"><if condition="$thread['threadprefix']=='Suche'">$prefixmarkup[0]<span style="color:red;">$thread[threadprefix]</span>$prefixmarkup[1]<else />
                $prefixmarkup[0]$thread[threadprefix]$prefixmarkup[1]</if></td>
</if>



I found the template. The edit you mentioned does not work.

JohnBee 10-31-2007 07:26 AM

I have been using this MOD for many versions now. The latest is 3.6.8 PL1

Unfortunately, it does not seem to work. There is no option to mange prefix's under the forum tools drop down and... no prefixes in the newthread function.

... update

I found an area in SHOWTHREAD that is easy to miss with certain themes(styles)
For anyone missing the "Manage Thread Prefixes" under the Forum Tools drop down menu, carefully look over the following template edit. In my own case, it was placed in the wrong location thus causing it to appear as not working.

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>

To confirm the obvious, this MOD works(tested) with 3.6.8 PL1

sinucello 10-31-2007 11:11 AM

Hi,

thanks for this great add-on, it`s really useful. As the search-query performance on my board is decreasing, I`d like to switch to mysql fulltext search. Would this cause any trouble with the prefix-extension?

Thank you - all the best,
Sacha

MaroWeb 11-01-2007 08:16 PM

Quote:

Originally Posted by AyeCapn (Post 1094460)
I probably shouldn't have tried to install this so late at night...

Any thoughts on which template I screwed up to cause this to happen?

EDIT: it was the threadbit template... works like a charm now :cool:


I have the same problem, how can I solve it?
thx ;)

TJFweb 11-09-2007 06:07 AM

Hi,

Can someone please tell me if it's possible to have multiple thread prefixes?

Additionally, would it be possible to give users a text area within which they can specify their own prefix as well as selecting one from a drop down menu?

I want to give two drop down prefix options and 2 text area prefix options (actually one would be a 'suffix' option).

Please see my post here: https://vborg.vbsupport.ru/showthread.php?p=1378901

gwerzal 11-12-2007 02:57 PM

does this work for version 3.6.8

I am trying to install in but cant find the code i am meant to replace.

Can anybody help me here please.

Grazu 11-14-2007 07:20 PM

Works just fine in vB 3.6.8 Patch Level 2.
Thanks!

Eq4bits 11-15-2007 11:59 AM

I'm still trying to get the $thread[threadprefix] to show up in the body of 'notify' emails.
this is what I have in Phrase>Email Body Text>notify
Code:

Dear $touser[username],

$bbuserinfo[username] has just replied to a thread you have subscribed to entitled -  $thread[threadprefix] $threadinfo[title] - in the $foruminfo[title_clean] forum of $vboptions[bbtitle].

This thread is located at:
$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]&goto=newpost

Here is the message that has just been posted:
***************
$pagetext
***************


There may also be other replies, but you will not receive any more notifications until you visit the forum again.

All the best,
$vboptions[bbtitle]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unsubscription information:

To unsubscribe from this thread, please visit this page:
$vboptions[bburl]/subscription.php?do=removesubscription&type=thread&subscriptionid=$touser[subscribethreadid]&auth=$touser[auth]

To unsubscribe from ALL threads, please visit this page:
$vboptions[bburl]/subscription.php?do=viewsubscription&folderid=all

But even after I save it after adding the prefix phrase (see the bold and red) it still doesn't show up on the email notifications that go out, nor if I go back in to 'edit' again it's even though it's showing up in the 'edit' area at the bottom it's not showing up in the top section that displays what the email looks like.

I'm also having the same problem with the Phrase>Email Body Text>newthreadsub

XanTrax 11-17-2007 03:24 AM

to all whom had the Sticky Threads problem i have the following fix

not the best but it works

Edit Template: threadbit

Search for

<if condition="$thread['sticky'] == 1">

Replace with

<if condition="$thread['sticky'] == 1 AND $show['threadprefix'] == 2"><td>&nbsp;</td>

tspore 11-17-2007 11:27 PM

Really a very nice hack.
I have it running on 3.6.8 and it seems to be fine.

But I have 1 question - How can I set VB to search for just the prefix. For example, if I had a car forum, I would want to setup prefixes for Ford, Chevy, and Dodge. How could I setup a search to be for all Dodge cars?

Thank you to all, Great hack.

tspore 11-18-2007 04:36 AM

Ok well I was looking at the search feature, and basically I think I can make it work, but I need to know how to include multiple forums.
mydomain.com/forum/forumdisplay.php?f=35&daysprune=-1&threadprefix=Astronomy/Long%20Exposure
f=35 is the forum. How can I do something like - 35 and forum 20 ?

Thanks!!!

shaynehammy 11-20-2007 06:37 PM

Is there a way to choose graphics rather than words? Like somethingawful.com??

Luerssen 11-24-2007 07:52 PM

thanks

mykkal 11-26-2007 05:14 AM

Is there a way to designate pre-fixes that can be used by moderators and admins only?

Just curious. If anyone knows how to modify that please let me know. I really could use this. There are some pre-fixes I want any user to use. And then there are pre-fixes that I want only my admins and moderators to have access too.

mykkal 11-26-2007 08:29 AM

Does anyone know if this works with 3.6.8 (p2)? I'm getting an error that is telling me to:

"Please select an appropriate thread prefix from the drop down list beside the subject field."

I don't have a subject field? We have a title field instead.

Also when I try to run the install i'm unable too. All i see is a blank page. http://www.mymodeltalk.com/jobs/admi...fixinstall.php

Please someone help me here. I really do need the use of those thread tags.

mykkal 11-26-2007 09:37 AM

Just wondering if anyone else is having this problem. With i try to run the preinstall.php file from the browser i cannot. i'm running it right. All files are uploaded. i'm just getting a blank page.

I'm prompted to login and I do. Then I get a blank page. All other *.php files seem to work fine. When i view the source of the "blank" page generated I see nothing there.
However, if I view the file contents i can see the installation script is there. Can someone help me here? I have no idea what to do...

Alien 11-27-2007 10:13 PM

Quote:

Originally Posted by shaynehammy (Post 1386427)
Is there a way to choose graphics rather than words?

I'd like to know this as well.

IsMaR 11-27-2007 10:34 PM

glad to see this feature as part of vb3.7

sinucello 11-28-2007 05:35 AM

Hi,

transfer shouldn`t be too hard. I just checked the products code and only 6 fields are added to 3 different tables:

Code:

$db->query_write("ALTER TABLE " . TABLE_PREFIX . "thread ADD threadprefix varchar(100)");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD threadprefix MEDIUMTEXT NOT NULL");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD lastthreadprefix varchar(100) NOT NULL AFTER lastthread");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD allowprefix SMALLINT(5) NOT NULL DEFAULT '1'");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "forum ADD prefixrequired SMALLINT(5) NOT NULL DEFAULT '1'");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "tachyforumpost ADD lastthreadprefix varchar(100) NOT NULL AFTER lastthread");

I`m not that good at coding but I`d try to make a transfer script if nobody else would do it. I`d also donate some money if someone offers to code it.

all the best,
Sacha

neopet001 11-28-2007 06:06 AM

Hello, when i first installed, I didn't modify all the templates. Now I switch to an other template and find it very difficult to modify the new template to be compatible with "Thread Prefix".

Is there any stand-alone guide to modify the templates ?
If I use the php install file there will be some mistaken as codes in this php file have some odd characters like "/" .
Thanks anybody that help :)


All times are GMT. The time now is 02:25 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.01778 seconds
  • Memory Usage 1,836KB
  • 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
  • (10)bbcode_code_printable
  • (5)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