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)

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.


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