View Full Version : misc.php


King Kovifor
27th November 2006, 03:18 AM
I never knew that misc.php could do some of the things it does... It can do the following things (as of 3.6.2!):
attachments (http://www.vbulletin-fans.com/misc.php?do=attachments)
- Redirects to profile.php (http://www.vbulletin-fans.com/profile.php?do=editattachments)
- Previously (I assume) a way to manage attachments!
buddy list (http://www.vbulletin-fans.com/misc.php?do=buddylist)
- Displays your buddy list.
who posted (http://www.vbulletin-fans.com/misc.php?do=whoposted)
- Displays who posted in a certain thread.
- REQUIRES: threadid
- Does permission checks
show attachments (http://www.vbulletin-fans.com/misc.php?do=showattachments)
- Shows attachments from a certain thread.
- REQUIRES: threadid
show avatars (http://www.betlik.com/misc.php?do=showavatars) (off-site link to a site w/ avatar galleries.)
- Displays a list of avatars in the site's avatars galleries.
- Displays how many posts are required to use the avatar.
- Checks & Displays all avatars selectable by the viewers usergroup.
BBCode (http://www.vbulletin-fans.com/misc.php?do=bbcode)
- List of BBCode
- Checks site's options on default BBCode
get smilies (http://www.vbulletin-fans.com/misc.php?do=getsmilies)
- Smilie List
debug_page (http://www.vbulletin-fans.com/misc.php?do=debug_page)
- Checks permissions (will show smilies!)
show smilies (http://www.vbulletin-fans.com/misc.php?do=showsmilies)
- Smilie List


That's a lot of uses. I'm not sure how useful some of them are, but I think it's neat that misc.php can do so much. And it's easy to add others through the misc_start hook location.

Chroder
29th November 2006, 10:10 PM
It can also show custom templates :D

King Kovifor
29th November 2006, 10:48 PM
Is that what ?do=page did?

Chroder
1st December 2006, 06:24 AM
Still does.

misc.php?do=page&template=mytpl

Will make vB show the custom_mytpl template (note the custom_ prefix). In the template you have access to $header and $footer and $navbar etc. so it's a very easy way to add custom pages to your forum.

Robert
1st December 2006, 10:51 AM
It can also show custom templates :D
The Chroder, the font of all programming knowledge. ;)

Onimua
3rd December 2006, 12:02 PM
misc.php is pretty nifty; there's a couple of things I want to do with it for one of my sites. :D

King Kovifor
8th December 2006, 02:34 AM
I've thought of adding so much functionality to it...

ganz77
11th December 2006, 12:47 PM
I thought of it too.

King Kovifor
15th December 2006, 01:02 AM
Going to create a quick one to create an external feed url.

Disjunto
19th December 2006, 01:56 AM
Still does.

misc.php?do=page&template=mytpl

Will make vB show the custom_mytpl template (note the custom_ prefix). In the template you have access to $header and $footer and $navbar etc. so it's a very easy way to add custom pages to your forum.
awesome, never knew that :P