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)

Majik? 04-25-2004 07:46 PM

Quote:

Originally Posted by bmckain
Not Found
The requested URL /forums/threadcategory.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/1.3.29 Server at www.lwg3d.org Port 80

Any ideas on what I did wrong?

You dind't upload the "threadcategory.php" file or put it in a sub-folder when it should be in the forum root.

bmckain 04-25-2004 08:05 PM

Quote:

Originally Posted by Majik?
You dind't upload the "threadcategory.php" file or put it in a sub-folder when it should be in the forum root.

Opps, (blush), that's too easy... ;) Thanks

bmckain 04-25-2004 09:39 PM

Well, that worked like a charm!

After getting a feel for how this works, it's led to another request.

Would it be or is it possible to have the search ognore all other parameters other than "catagory"? It would be really nice to allow members to just choose a cataegory and have the search engine list all threads under that particular category independant of author, title, etc.

djohn 05-18-2004 02:47 PM

I repeat my question again, Mystics, sorry about nagging. That thing just bugs me the whole time. I've liturally spent hours trying to find where can decrease the width of the dropdown menu in any forum. The screenshot is there: https://vborg.vbsupport.ru/attachmen...chmentid=18043

Notice how the All Categories dropdown menu is a little bit narrower than the others? Where can I adjust it? The closes i've come is the bit in FORUMDISPLAY template:
Code:

<td class="smallfont">$vbphrase[threadcategory]:</td>
                        <td>$threadcategories</td>

I guess the $threadcategories is what i am looking for, but where can i adjust the width of the dropdown menu?

I've tried everything, even crazy stuff like
Code:

                        <td>$threadcategories</td>

                        <td><select name="threadcategories" style="width:125px">

<option>$threadcategories</option>

                        </select></td>

still doesn't work. It seems to me that since $threadcategories array is dynamic, it cannot be used with <option> and <select> tags. If so, then whe??where does the script know, how wide is the dropdown menu going to be?

Many thanks for the hack, waiting for a reply.

bmckain 05-24-2004 02:01 PM

Quote:

Originally Posted by Mystics
Thread Category / Prefix Hack

Please click Install if you have installed it :)

Call me silly, but I couldn't find the "Install" link to click on.

Okiewan 05-27-2004 05:25 AM

top of each page, right hand side...

Fantastic work! Well done.

Mystics 06-05-2004 09:03 PM

Quote:

Originally Posted by djohn
I repeat my question again, Mystics, sorry about nagging. That thing just bugs me the whole time. I've liturally spent hours trying to find where can decrease the width of the dropdown menu in any forum. The screenshot is there: https://vborg.vbsupport.ru/attachmen...chmentid=18043

Notice how the All Categories dropdown menu is a little bit narrower than the others? Where can I adjust it?

You can call the function with an argument for the width.

includes/functions.php:
Code:

function fetch_thread_categories($foruminfo, $selcat = '', $empty = 1, $showall = '', $categoryarray = array(), $selectwidth = '')
So you may change forumdisplay.php:
Code:

$threadcategories = fetch_thread_categories($foruminfo, urldecode($_REQUEST['threadcategory']), 0, $vbphrase['all_categories']);
to:
Code:

$threadcategories = fetch_thread_categories($foruminfo, urldecode($_REQUEST['threadcategory']), 0, $vbphrase['all_categories'], array(), '125px');
Quote:

then whe??where does the script know, how wide is the dropdown menu going to be?
The menu is as wide as the longest entry needs place.

djohn 06-10-2004 01:12 PM

Thank you, that worked like a charm!

Ming Keong 06-12-2004 05:08 PM

Thank you. This is a great hack!

marc_t 06-14-2004 02:46 PM

Hi Mystics,

that seems to be a very great hack. Is it working with 3.0.1 aswell?

marc


All times are GMT. The time now is 02:18 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.01260 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
  • (5)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)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