vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Thread Category / Prefix Hack (https://vborg.vbsupport.ru/showthread.php?t=61494)

draven 02-19-2004 05:54 PM

Quote:

Originally Posted by []\[]emesis
If installed correctly, you will need to go to the admin cp and turn it on for the forum you want the catogory hack to appear.

It's already turned on. It's still only admins that can see it.

Mystics 02-22-2004 11:46 AM

Quote:

Originally Posted by draven
The link dosn't appear in Forum-Tools.

In this case your moderators are also not able to see the other Forum-Tools Links like 'Mass Prune', 'Add Moderator' and so on....because I just have put the 'Manage Categories' Link below these other options without verifying any permissions.

But it's also possible you haven't edited the FORUMDISPLAY template correct...the part should look like this:
Code:

<if condition="$show['addmoderator']">
<div><label for="fa_amd"><input type="radio" name="do" id="fa_amd" value="addmoderator" />$vbphrase[add_moderator]</label></div>
</if>
<if condition="$foruminfo['allowcategories']">
<div><label for="fa_cat"><input type="radio" name="do" id="fa_cat" value="showcategory" />$vbphrase[manage_threadcategory]</label></div>
</if>

....maybe you have mixed up the if conditions.

You can send me an admin acc if I should check it in your forum.

draven 02-22-2004 02:21 PM

Thanks. I somehow got the code above instead of under, so it works now.

FleaBag 02-23-2004 06:42 AM

This is one seriously sweet-ass hack. I've been up all night, so I'll install it when I wake tonight LOL. :D Thank you.

Mystics 02-23-2004 05:49 PM

New version released:

v1.3
  • Bugfix: Don't display a category in a thread if categories are not allowed in the forum
  • Bugfix: Critical bug in threadcategory.php related to the option 'Update existing threads with changed categories' fixed
Please upload the new threadcategory.php as soon as possible!


Martyjp 02-28-2004 07:09 PM

Great hack :)

Took ages to install as I have 7 main template sets, the ctrl and V keys are now worn out, was well worth it though :)

Chris M 02-28-2004 11:25 PM

This looks to be a stunning hack :)

Great job Mystics :)

I will test this out on my offline boards, but sadly I don't really have any use for this on my own boards - However: I shall click install, and install it sometime next week anyway, just for the hell of it :)

Satan

Aceman 03-04-2004 03:58 PM

I have a problem. I installed this hack.. which I love btw.. however I'm getting a display error on in the forums area.. when I staffer/user deletes a thread the deleted information is showing up all funny. (see attachement)

Anyone know how to fix this? or where to look? I know it's got something to do with table span.. etc.. I think I just need to add a cell to account for the category cell and it should be fine..

Aceman

UPDATE: I have fixed the visual problem. This is how I did it.

EDIT TEMPLATE: threadbit_deleted

Code:

<tr>
        <td class="alt1"><img src="$stylevar[imgdir_statusicon]/thread$thread[statusicon].gif" alt="" /></td>
       
        <if condition="$show['threadicons']">
                <td class="alt2"><if condition="$show['threadicon']"><img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" /><else />&nbsp;</if></td>
        </if>
<!-- Accounting for Category Hack -->
        <if condition="$show['threadcategories'] == 2">
                <td class="alt1Active" align="$categoryalign" nowrap="nowrap"><if condition="$thread['category']">$categorymarkup[0]$thread[category]$categorymarkup[1]</if></td>
        </if>
<!-- Accounting for Category Hack END -->
        <td class="alt1">
               
                <div>
                        <if condition="$show['viewthread']"><span style="float:$stylevar[right]" class="smallfont"><a href="showthread.php?$session[sessionurl]t=$thread[threadid]">$vbphrase[view]</a></span></if>               
                        $thread[typeprefix]
                        <if condition="$show['threadtitle']"><em>$thread[threadtitle]</em></if>
                </div>
       
                <div class="smallfont">
                        <if condition="$show['managethread']"><span style="float:$stylevar[right]"><a href="postings.php?$session[sessionurl]do=editthread&amp;t=$thread[threadid]">$vbphrase[manage]</a></span></if>
                        <if condition="$show['guestuser']">
                                $thread[postusername]
                        <else />
                                <span style="cursor:pointer" onclick="window.open('member.php?$session[sessionurl]u=$thread[postuserid]')">$thread[postusername]</span>
                        </if>
                </div>
        </td>
       
        <td class="alt2" colspan="3" align="center">
                <div class="smallfont"><phrase 1="member.php?$session[sessionurl]u=$thread[del_userid]" 2="$thread[del_username]">$vbphrase[thread_deleted_by_x]</phrase></div>
                <if condition="$show['deletereason']">
                        <div class="smallfont">$vbphrase[reason]: <em>$thread[del_reason]</em></div>
                </if>
        </td>
</tr>

Adding this to the template fixed my problem.

trilOByte 03-05-2004 09:02 PM

Excellent Mystics, By far the most complex hack (with reagards to the sheer number of file/template edits) I've ever installed I think, but aside from one minor mistake, which I spotted myself - it went like a dream - that's got to be thanks to your outstanding instructions.

[high]* trilOByte clicks install.
[/high]

I'm just dreading doing it over when vB3 goes gold. :D :D

trilOByte 03-05-2004 09:06 PM

One question, is it possible to specify different colours on a "per category" basis, rather than for all of them?


All times are GMT. The time now is 10:53 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.01095 seconds
  • Memory Usage 1,753KB
  • 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
  • (2)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