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)

redlabour 09-18-2006 03:38 PM

Watch this Suggestions :

English

German

CypherSTL 09-18-2006 06:05 PM

Very nice.

Is is possible to do this same thing only with Catagories, instead of threads?

Mr. Boo 09-19-2006 05:17 PM

Is there any way of linking the prefixs so that once clicked itl reload the forum with just topics corresponding with that prefix?

Its a great hack btw, thanks alot :D

yellowbird 09-19-2006 05:21 PM

Quote:

Originally Posted by Mr. Boo
Is there any way of linking the prefixs so that once clicked itl reload the forum with just topics corresponding with that prefix?

Its a great hack btw, thanks alot :D

I asked the same thing, see this post:

https://vborg.vbsupport.ru/showpost....7&postcount=50

Works well on my forum.

yellowbird 09-20-2006 01:17 PM

I'm using version 3.6. I thought all everything was okay but now I've noticed that if I use the Advanced Thread Edit page to change the title of the thread, the title gets updated inside the thread view page itself but not on the forum index. Any idea where I can look?

Edit: is anyone else having the same problem as I am? Otherwise I'll try just re-editing the editthread template.

Nathan2006 09-20-2006 01:24 PM

Thank you Mystics

Working great! :)

Install

yellowbird 09-20-2006 05:24 PM

Quote:

Originally Posted by yellowbird
I'm using version 3.6. I thought all everything was okay but now I've noticed that if I use the Advanced Thread Edit page to change the title of the thread, the title gets updated inside the thread view page itself but not on the forum index. Any idea where I can look?

Edit: is anyone else having the same problem as I am? Otherwise I'll try just re-editing the editthread template.

Nevermind, apparently that's the default behaviour. Anyone know of a plug-in, mod, or hack for this?

GNDI 09-20-2006 07:59 PM

Quote:

Originally Posted by yellowbird
Nevermind, apparently that's the default behaviour. Anyone know of a plug-in, mod, or hack for this?

wrong place to ask for this, however onless you choose the "edit thread" from the thread tool drop down menu, you want be able to edit the title beyound the post edit time specified in the "message posting and editingoptions" in you admincp

Masters 09-20-2006 11:40 PM

Man, I installed this mod and it really messed up my forums.
I followed step by step the .php and template modifications.

Maybe an old mod was interfearing.,,

But now I cant use any links in the edit box. Meaning everything is ee for editing font, sizes, bold, italic, ect... cant click on it.

The mod also moved the descriptions (views, thread poster, replys) one column over. I reverted forumdisplay and fixed that. I still cant fix the edit option though.

gavinzac 09-21-2006 07:37 AM

Quote:

Originally Posted by Mr. Boo
Is there any way of linking the prefixs so that once clicked itl reload the forum with just topics corresponding with that prefix?

Its a great hack btw, thanks alot :D

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

jack-d 09-21-2006 02:02 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

hey orphan,

any chance that you got the sticky problem fixed.i have the same problem and it is a pain....

Farcaster 09-22-2006 02:00 PM

How does this hack integrate with a RSS bot poster? Can bots be setup to use prefixes? If a forum requires a prefix and the bot cannot be configured with one, does the post still get entered?

blankoboy 09-30-2006 02:13 PM

Hey Mystics,

Great mod! Have you had any experience with GARS (thevbgeek.com)? Any chance of getting this mod to play nice with GARS?

Would be more than happy to pay for a GARS license for you to get it working. ;)

dieselpowered 10-02-2006 09:48 PM

Looks great...thanks!

Mevo 10-03-2006 03:34 AM

Long time for install but realy good one ;)

firstrebel 10-04-2006 02:23 PM

Won't install in 3.6.2

vbulletin_textedit.js

Code to replace not found

class_dm_threadpost.php

Code to replace not found.

Bob

paul41598 10-05-2006 07:56 PM

n/m ;)

firstrebel 10-06-2006 12:04 PM

Anyone got this working with 3.6.2?

Bob

PIKenPIK 10-06-2006 06:52 PM

Quote:

Originally Posted by firstrebel
Anyone got this working with 3.6.2?

Bob

Yes .... perfect :cool:

Only prob that i had was that all my prefixes of vBull 3.07 were gone after updating to 3.6.2 ...

Online today for a few hrs ... no user comments yet .. all seems 100% :laugh:

ImportPassion 10-06-2006 07:41 PM

too bad this hack isn't supported. :(

I am trying to figure out how to add prefixes as an admin. anyone know?

LaCN 10-06-2006 09:33 PM

Quote:

Originally Posted by ACIKillJoy
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.

This is what we're looking for too :)


Also,
Colored prefixes
AND
Images as prefixes :cool:

firstrebel 10-07-2006 06:35 AM

Quote:

Short overview of the needed modifications
==========================================

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')


It is your decision if you need the above functions or if you decide do use the product without file modifications!
You don't have to do the file modifications as the product will work even though without them!
Of these options only one file can be modified in vB 3.6.2 and that is /includes/functions_online.php. The file /showthread.php has two instances of the code to change but the installation instructions do not clarify if both need to be changed. None of the others have the code that needs modification. I hope this will be updated soon to take account of the changes from 3.6.1 to 3.6.2

Bob

AyeCapn 10-11-2006 03:41 AM

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:

Grazu 10-12-2006 10:20 AM

Hi all,
does this hack works with latest vbb 3.6.2?
Thanks to Mystics! Great job that exactly fits my needs.

Janet Jackson 10-16-2006 02:16 AM

Quote:

Originally Posted by Grazu
does this hack works with latest vbb 3.6.2?

Yes, it does.

Thanks for this great add-on !

tako 10-16-2006 08:36 AM

When I narrow search results with prefix on search.php, prefix drowdown has no effect on the results. Is it 3.6.2 issue? or just me? Or anyone has experienced same problem and have any solution?

Hexemer 10-16-2006 08:45 AM

Quote:

Originally Posted by Benj
how hard would it be to make a "newest threads with prefix" block for vbadvanced?

Yes, that would be also interesting for me

thedvs 10-19-2006 09:40 PM

i just have 1 question, if i upgrade to 3.6.2 from 3.6.0 will i lose all the prefixes in place from months of posts etc??

freevisio 10-22-2006 12:57 AM

I have made step-by-step the installation, but I have this problem, please, look the attach image and helpme. I use the 3.6.2, clean installation.:cross-eyed:

Angry_Games 10-23-2006 12:21 AM

thank you for the update!

hitmanuk2k 10-25-2006 06:54 PM

I'd also like to see a Recent Threads prefix hack for vBadvaced so that they show the prefix. Surely someone can do this? I have tried but couldn't get it to work.

blankoboy 10-27-2006 10:48 AM

Quick question:

Is it possible to have a different set of prefixes for each forum? For example:

Quote:

Forum1 (prefix1, prefix2, prefix3, prefix4, prefix5)

Forum2 (prefix6, prefix7, prefix8, prefix9, prefix10)
etc......

Or is this the only option:


Quote:

Forum1 (prefix1, prefix2, prefix3, prefix4, prefix5, prefix6, prefix7, prefix8, prefix9, prefix10)

Forum2 (prefix1, prefix2, prefix3, prefix4, prefix5, prefix6, prefix7, prefix8, prefix9, prefix10)
Is there anyone who has this installed that can confirm this?? Thanks.

Hexemer 10-28-2006 01:35 PM

Quote:

Originally Posted by hitmanuk2k
I'd also like to see a Recent Threads prefix hack for vBadvaced so that they show the prefix. Surely someone can do this? I have tried but couldn't get it to work.

Cam someone help us? :o

nix 10-30-2006 06:13 PM

Quote:

Originally Posted by blankoboy
Quick question:

Is it possible to have a different set of prefixes for each forum? For example:


etc......

Or is this the only option:




Is there anyone who has this installed that can confirm this?? Thanks.

Yea you can do that.

LaCN 10-31-2006 06:54 AM

I would like to see the option that threadprefixes are only usuable by moderators or specific member-groups.

Say for example there's a request-forum.
Somoene posts a request.
And then teh mod can set/update a prefix to it saying something like "accepted".
(instead of the current situation: a member can set that prefix already by himself :p which ain't the right way)

Also, it would be very nice to be able to use images instead of text.
:eek: it just hit me: Can I set those prefix-HTML-markup to:
<img src="images/prefixes/{1}.gif" border=0 title="{1}" /> ?

But IF that would work, u couldnt' use text prefixes (in other forums) next to it :o

Eq4bits 10-31-2006 07:21 PM

Installed this a couple of weeks or so ago, no probs with forum until then.
Started getting this error message anytime any member tries to access their subscription list from their usercp:
Code:

Database error in vBulletin 3.6.2:

Invalid SQL:

                        SELECT
                                IF(votenum >= 1, votenum, 0) AS votenum,
                                IF(votenum >= 1 AND votenum > 0, votetotal / votenum, 0) AS voteavg,
                                post.pagetext AS preview, thread.threadid, IF(thread.threadprefix <> '', CONCAT('', thread.threadprefix, ' - ', thread.title), thread.title) AS title AS threadtitle, forumid, pollid, open, replycount, postusername,
                                thread.lastpost, thread.lastposter, thread.lastpostid, postuserid, thread.dateline, views, thread.iconid AS threadiconid, notes, thread.visible, thread.attach
                                , threadread.readtime AS threadread
                                , thread.threadprefix
                        FROM *****_thread AS thread
                        LEFT JOIN *****_post AS post ON(post.postid = thread.firstpostid)
                        LEFT JOIN *****_threadread AS threadread ON (threadread.threadid = thread.threadid AND threadread.userid = 5)
                       
                       
                        WHERE thread.threadid IN (2937,2834,2913,3003,2977,3000,2828,2986,3005,2983,2955,2992,2954,2969,2935,3002,2909,2854,2994,2974)
                               
                        ORDER BY thread.lastpost DESC;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS threadtitle, forumid, pollid, open, replycount, postusername,
                                thread.last' at line 4
Error Number : 1064
Date        : Tuesday, October 31st 2006 @ 07:48:27 AM
Script      : http://www.*********.net/forums/subscription.php?do=viewsubscription
Referrer    : http://www.*********.net/forums/usercp.php
IP Address  : *****************
Username    : *****************
Classname    : vb_database

So after asking elsewhere in the vb.org forums I've tracked it down to the thread prefix modification to subscription.php particularly a 'double AS phrase',
mine looks like:
Code:

$previewfield thread.threadid, IF(thread.threadprefix <> '', CONCAT('" . $vbulletin->options['prefixmarkup_start'] . "', thread.threadprefix, '" . $vbulletin->options['prefixmarkup_end'] . "', thread.title), thread.title) AS title AS threadtitle, forumid, pollid, open, replycount, postusername,
                                $lastpost_info, postuserid, thread.dateline, views, thread.iconid AS threadiconid, notes, thread.visible, thread.attach
                                " . ($vbulletin->options['threadmarking'] ? ", threadread.readtime AS threadread" : '') . "
                                $hook_query_fields

and a 'clean' vb3.6.2 subscription.php looks like:
Code:

$previewfield thread.threadid, thread.title AS threadtitle, forumid, pollid, open, replycount, postusername,
                                $lastpost_info, postuserid, thread.dateline, views, thread.iconid AS threadiconid, notes, thread.visible, thread.attach
                                " . ($vbulletin->options['threadmarking'] ? ", threadread.readtime AS threadread" : '') . "
                                $hook_query_fields

so what can I do to 'fix' this so members can actually view their subscription list but we can also have the thread prefix?

MrD 11-02-2006 12:15 PM

Hi,
Quote:

Originally Posted by tako
When I narrow search results with prefix on search.php, prefix drowdown has no effect on the results. Is it 3.6.2 issue? or just me? Or anyone has experienced same problem and have any solution?

i think it?s a Problem of vb 3.6.2, i have the same Problem.

Eq4bits 11-02-2006 01:28 PM

Fixed mine by changing
Code:

$previewfield thread.threadid, IF(thread.threadprefix <> '', CONCAT('" . $vbulletin->options['prefixmarkup_start'] . "', thread.threadprefix, '" . $vbulletin->options['prefixmarkup_end'] . "', thread.title), thread.title) AS title AS threadtitle, forumid, pollid, open, replycount, postusername,
                                $lastpost_info, postuserid, thread.dateline, views, thread.iconid AS threadiconid, notes, thread.visible, thread.attach
                                " . ($vbulletin->options['threadmarking'] ? ", threadread.readtime AS threadread" : '') . "
                                $hook_query_fields

to
Code:

$previewfield thread.threadid, IF(thread.threadprefix <> '', CONCAT('" . $vbulletin->options['prefixmarkup_start'] . "', thread.threadprefix, '" . $vbulletin->options['prefixmarkup_end'] . "', thread.title), thread.title) AS threadtitle, forumid, pollid, open, replycount, postusername,
                                $lastpost_info, postuserid, thread.dateline, views, thread.iconid AS threadiconid, notes, thread.visible, thread.attach
                                " . ($vbulletin->options['threadmarking'] ? ", threadread.readtime AS threadread" : '') . "
                                $hook_query_fields

(just took out the 'AS title' before the 'AS threadtitle')

not sure it that was all that was affecting subscriptions or not, there was also a problem with instant email notifications not being received but was only tackling one problem at a time. waiting to hear back from members as to whether that also cleared up with the above fix.

LaCN 11-04-2006 07:17 PM

For peeps, who don't want the prefixes to be set by members, but only by moderators:
revert or not edit the template newthread, so u won't find the dropdownlist there ;)

For those who only want images as prefixes, go to:
vBulletin Options / Help Thread Prefixes v1.6.1
And edit the Prefix HTML Markup (within forums) to:
<img src="images/prefixes/{1}.gif" title="" />

Unfortunately I tried to use {1} two times (as title="{1}") with no luck :(

But with images as prefixes, u can make ur prefix any color u want.
(type a word in a image-program, give it a color, save it as gif, and u're done ;)
or just make a cute pic for it :cool:

stabmyback 11-05-2006 01:55 PM

HMM, is it just me or does the display options dont work??

[_] Have Prefixes in alphabetical order
(Prefix Number will be ignored)

[o]Ascending [o]Descending

when i submit the form it resets >_<


All times are GMT. The time now is 07:38 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.01835 seconds
  • Memory Usage 1,850KB
  • 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
  • (5)bbcode_code_printable
  • (16)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