vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Req: Tutorial Section Hack (https://vborg.vbsupport.ru/showthread.php?t=43950)

Mone' 09-26-2002 08:33 AM

Req: Tutorial Section Hack
 
I have seen this hack for invisionboard and i'd like to see it for vbulletin to.

here is a small description of the ib hack:
Quote:

adds a tutorial section to the forums
Features :
- Fully Searchable
- Unlimited Sections
- Unlimited Categories
- User Submission
- Admin control Panel
- User Ratings
- HTML and IBCode Integration
to view a demo of the category listing http://www.ibhelpers.com/?do=tutorials

and to view a demo of the actual tutorial http://www.ibhelpers.com/?do=view-tutorial&id=7


If someone has the time to look at the code and port it to vbb or write something similar vould be great ;)

PLease have a look at it.

Thank you

Mone'

Mone' 09-27-2002 01:30 AM

1 Attachment(s)
anyone ? :banana:
( i attached the invisionboard hack if you want to have a look at the code fo it )

or can u suggest something similar ?

thank you

Mone'

FlyingDutchman 09-27-2002 04:44 AM

I think this is easier to do when you make a specific category the tutorial 'part' and the forums in there are the tutorial categories, where 'normal' posts contain the actual tutorials...
that's not very hard to do (1 or 2 file edit, maybe add some templates)

if i have some more time i'll look further into this...

Mone' 09-27-2002 05:28 AM

thank you
i'll be waiting :)

FlyingDutchman 09-27-2002 12:27 PM

1 Attachment(s)
in forumdisplay.php, find:

PHP Code:

if ($foruminfo['allowposting']==1) {
  eval(
"\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");


REPLACE that with:

PHP Code:

if ($foruminfo['allowposting']==&& $forumid!=&& $forumid!=6) {
  eval(
"\$newthreadlink = \"".gettemplate('forumdisplay_newthreadlink')."\";");
}
else {
  eval(
"\$newthreadlink = \"".gettemplate('forumdisplay_tutoriallink')."\";");


where the forum id's of my toturial 'categories' are 5 and 6 (you can change them or add them like: && $forumid!=x where x is the forum id)

add a new template called 'forumdisplay_tutoriallink' with the following content:

PHP Code:

<a href="newthread.php?s=$session[sessionhash]&action=newthread&forumid=$foruminfo[forumid]"><img src="{imagesfolder}/newtutorial.gif" border="0" alt="Post New Tutorial"></a

finally upload the attached image to your imagesfolder...
i don't know if this is really what you want, and if you want other/more features, just ask me ;)

Mone' 09-27-2002 01:21 PM

thank you
i was more looking to have the post showing in a different way
i might look into something different maybe virtuanews will do what i need
mmore like an article tutorial sectipn that uses same db as vbulletin and template but look different.
have a look at the first 2 links for see what i mean.

thank you anyway for the code i will give it a shot

Mone'


All times are GMT. The time now is 06:53 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.01610 seconds
  • Memory Usage 1,732KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete