Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
  #1  
Old 09-26-2002, 09:33 AM
Mone' Mone' is offline
 
Join Date: May 2002
Location: Australia
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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'
Reply With Quote
  #2  
Old 09-27-2002, 02:30 AM
Mone' Mone' is offline
 
Join Date: May 2002
Location: Australia
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
Attached Files
File Type: zip tutorial_section.zip (16.1 KB, 15 views)
Reply With Quote
  #3  
Old 09-27-2002, 05:44 AM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #4  
Old 09-27-2002, 06:28 AM
Mone' Mone' is offline
 
Join Date: May 2002
Location: Australia
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
i'll be waiting
Reply With Quote
  #5  
Old 09-27-2002, 01:27 PM
FlyingDutchman's Avatar
FlyingDutchman FlyingDutchman is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 201
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 09-27-2002, 02:21 PM
Mone' Mone' is offline
 
Join Date: May 2002
Location: Australia
Posts: 246
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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'
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:29 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11924 seconds
  • Memory Usage 2,230KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (1)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete