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)

DarrinM 01-11-2005 09:37 AM

vB version 3.0.5

Hi there, hope someone can help

I am trying to install this hack to vB 3.0.5 and have found that <td class="smallfont">&nbsp;</td>
does not exist in FORUMDISPLAY template

there are some 14 instances of td class="smallfont and 7 of &nbsp;</td>

Everything seems to be working except there is no option to display a category drop down box to select from when creating a new thread, oh and I cant see anywhere to set options for a moderator when viewing a board. The backend to the hack seems to be working as when editing an existing thread it does ask for a category to be selected before accepting the edit

Could someone provide some assistance if possible please as this hack would be very useful for me

Kind Regards

Darrin

Ordovicium 01-11-2005 09:41 PM

@DarrinM:

Search for:
Code:

<td colspan="2" align="$stylevar[right]"><input type="submit" class="button" value="$vbphrase[show_threads]" /></td>
and replace it with:
Code:

<if condition="$show['threadcategories']">
                        <td class="smallfont">&nbsp;</td>
                        <td class="smallfont">&nbsp;</td>
                </tr>
                <tr>
                        <td class="smallfont">$vbphrase[threadcategory]:</td>
                        <td>$threadcategories</td>
                        </if>

                        <td class="smallfont">&nbsp;</td>
                        <td><input type="submit" class="button" value="$vbphrase[show_threads]" style="width:100px" /></td>


DarrinM 01-11-2005 10:13 PM

Thankyou for the assistance, however I am still not getting any category drop down box when posting a new thread, I have checked the updates to newthread template and all seem fine !

Darrin

cinq 01-12-2005 12:05 AM

This hack works fine in 3.0.5 :)
Thanks Mystics :)

Slave 01-13-2005 05:58 AM

Lovely Hack .. Installed and fully working ..

A suggestion, but only if you have the time :)

I've seen people ask for the chance to put images as Categories .. as well as being able to give different Categories different colours .. wouldn't all this (and more) be possible if you allowed vBcode to work when you fill in the Categories boxes?

To be honest I'm not sure how difficult this would be .. but it's worth more investigation I would think :)

Slave 01-13-2005 06:16 AM

Taking that further ..

I've just found this ..

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

Which is a hack to allow vB code in Titles .. I'm sure the same sort of thing could be done for Categories ..

I'll have a look myself to see if I can hack this into the Categories hack but it might be beyond me .. others are more than welcome to have a go. If you succeed can you let us know how to do it so everyone knows .. :)

Mystics 01-15-2005 03:26 PM

@Slave

The problem is to show these images / colorful categories within the drop down list...

btw: I updated the instructions for vBulletin 3.0.5.

Slave 01-16-2005 07:55 AM

Do you need to show them in the dropdown lists? .. it's not like the people picking the categories will really mind as it would the mods and admins deciding what colour/image to use ..

An example is a forsale/wanted type forum .. as a mod for that forum I might want forsale to be in green and wanted in red .. both would have images next to them .. but the people picking the categories wouldn't need to see that when they are picking them ..

Dennis Olson 02-15-2005 10:17 PM

Will this hack work in 3.0.3 as-is? Or do I have to change something?

cinq 02-15-2005 11:29 PM

Works as is.


All times are GMT. The time now is 04:02 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.01390 seconds
  • Memory Usage 1,739KB
  • 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
  • (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