Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vBstory - an Interactive Story for vB (1.0 Final) Details »»
vBstory - an Interactive Story for vB (1.0 Final)
Version: 1.00, by Ninth Dimension Ninth Dimension is offline
Developer Last Online: Jun 2016 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-28-2002 Last Update: Never Installs: 36
 
No support by the author.

.

This script is pretty much dead - but if you wanted to see the concept live on, visit http://unknowntales.net/



----------------
Author
----------------

VBstory (1.0 Final)
by Daniel Hollands of Ninth Dimension.
http://ninthdimension.biz/

I do custom vB scripts as well as web design and development using PHP and MySQL.
If you would like some more information on the work I do, please visit the URL above.

----------------
About
----------------

This hack allows you to add an Interactive Story to your forum.

Once a user has chosen a story arranged into genres, they will be presented with
a chapter to read. After reading this chapter they will be presented with two
paths to follow, both of which will present a new chapter, and a further two
paths.

Eventually the user will be given the ability to add their own chapters to the
database, which will be done via a form presented on the site.

Hopefully this will encourage your users to be more active on your site, thus
giving you a higher hit rate.

----------------
Install
----------------

PLEASE MAKE A BACKUP OF ANY FILES EDITED AND YOUR DATABASE BEFORE
INSTALLING THIS HACK. If you loose all your data as a result of installing this
hack, it's your fault, not mine.

1, Upload the vbstory.php file to your forum root directory.
2, Upload the vbstory_admin.php file to your admin directory.
3, Upload the two images to your images directory.
4, Run the three SQL queries in the sql.txt file (don't just run this file, read it).
5, Add the templates listed in the templates.txt file to your site.
6, Make the file changes listed in the files.txt file. (Only one is required).
7, Using the new menu items in your admin panel (you might need to refresh it
after adding the templates) add at least one genre, and as many stories as you
want.
8, Link to vbstory.php (some examples will be provided in the final release.
9, Post a link to your vBstory in the vBstory thread on vB.org.
10, !GOLDEN RULE! Enjoy.
11, (Optional) If you want your Super Mods to have access to the admin scripts,
just upload the vbstory_admin.php file to your mod directory and complete the first
file edit instruction on the index.php file in your mod directory.

----------------
Upgrade
----------------

If you are running vBstory beta 0.5 or later you will not need to run the SQL
queries again. However if you want a fresh install, you will need to remove the
three vbs_ tables from your database.

IMPORTANT - You will need to replace ALL your vbstory templates with the new ones contained
within this archive. EVERY template has been changed.

----------------
To Do
----------------

I've not really got any more plans for this version of vBstory. I will be making a
more advanced version of vBstory for my own use, but I've not yet decided if I'm
going to release it yet.

----------------
Support
----------------

So far as I can tell, this version of vBstory is fully bug free. After a little while,
provided no errors are reported, I'll be releasing this as a final.

If you have any problems running or using this hack, please post a message in
the vBstory thread at vB.org. If you receive a serious error, I'll try to provide
support via IM (AIM, ICQ, MSN or Yahoo).

----------------
Demo
----------------

No demo at the moment, will be back soon.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 01-12-2003, 09:03 PM
rrnolan rrnolan is offline
 
Join Date: Mar 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much for sharing this with everyone...
Reply With Quote
  #83  
Old 01-25-2003, 01:28 AM
WarChild WarChild is offline
 
Join Date: May 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am getting this error when trying to run the db query:
Error
SQL-query : [Edit]

CREATE TABLE `vbs_stories` (
`storyid` int(11) NOT NULL auto_increment,
`genreid` int(11) NOT NULL default \\\'0\\\',
`title` varchar(100) NOT NULL default \\\'\\\',
`name` varchar(100) NOT NULL default \\\'\\\',
`info` text NOT NULL,
`display` tinyint(4) NOT NULL default \\\'0\\\',
PRIMARY KEY (`storyid`)
) TYPE=MyISAM;

MySQL said:

You have an error in your SQL syntax near '\\\'0\\\',
`title` varchar(100) NOT NULL default \\\'\\\',
`name` varchar(' at line 3

CREATE TABLE `vbs_chapters` (
`id` bigint(20) NOT NULL auto_increment,
`chapterid` int(11) NOT NULL default \'0\',
`storyid` int(11) NOT NULL default \'0\',
`title` varchar(100) NOT NULL default \'\',
`body` text NOT NULL,
`path1` varchar(100) NOT NULL default \'\',
`path2` varchar(100) NOT NULL default \'\',
`userid` int(11) NOT NULL default \'0\',
`dateline` int(10) NOT NULL default \'0\',
`display` tinyint(4) NOT NULL default \'0\',
PRIMARY KEY (`id`)
) TYPE=MyISAM;

MySQL said:

You have an error in your SQL syntax near '\'0\',
`storyid` int(11) NOT NULL default \'0\',
`title` varchar(100) NOT ' at line 3

CREATE TABLE `vbs_genres` (
`genreid` int(11) NOT NULL auto_increment,
`title` varchar(100) NOT NULL default \'\',
`display` tinyint(4) NOT NULL default \'0\',
PRIMARY KEY (`genreid`)
) TYPE=MyISAM;

MySQL said:

You have an error in your SQL syntax near '\'\',
`display` tinyint(4) NOT NULL default \'0\',
PRIMARY KEY (`genreid`' at line 3

Im running vb 2.2.9 anyone help here??
Reply With Quote
  #84  
Old 01-25-2003, 08:37 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the looks of it you are getting problems because somehow the required SQL queries are getting messed up as you run them, what program are you using to run the queries?

I'll list the 3 queries needed below for you, my recomendation is that you run each one sepratly using phpMyAdmin.

[sql]CREATE TABLE `vbs_chapters` (
`id` bigint(20) NOT NULL auto_increment,
`chapterid` int(11) NOT NULL default '0',
`storyid` int(11) NOT NULL default '0',
`title` varchar(100) NOT NULL default '',
`body` text NOT NULL,
`path1` varchar(100) NOT NULL default '',
`path2` varchar(100) NOT NULL default '',
`userid` int(11) NOT NULL default '0',
`dateline` int(10) NOT NULL default '0',
`display` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`id`)
) TYPE=MyISAM;[/sql]

[sql]CREATE TABLE `vbs_genres` (
`genreid` int(11) NOT NULL auto_increment,
`title` varchar(100) NOT NULL default '',
`display` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`genreid`)
) TYPE=MyISAM;[/sql]

[sql]CREATE TABLE `vbs_stories` (
`storyid` int(11) NOT NULL auto_increment,
`genreid` int(11) NOT NULL default '0',
`title` varchar(100) NOT NULL default '',
`name` varchar(100) NOT NULL default '',
`info` text NOT NULL,
`display` tinyint(4) NOT NULL default '0',
PRIMARY KEY (`storyid`)
) TYPE=MyISAM;[/sql]
Reply With Quote
  #85  
Old 04-02-2003, 04:52 PM
midnightz midnightz is offline
 
Join Date: Jan 2003
Location: Inside the Velvet Tunnel
Posts: 159
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is cool - I am going to create a text adventure games for VB while I try to get permission to translate zork 1 2 3

hehe - nice

midnightz
Reply With Quote
  #86  
Old 04-02-2003, 05:33 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that sounds like a cool hack, how much have you done so far?
Reply With Quote
  #87  
Old 04-17-2003, 01:22 AM
Leah's Avatar
Leah Leah is offline
 
Join Date: Aug 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
I just installed it for my forum and it looks great!

A question: Is it a way to change it, so that one has to be logged in to read the stories?
Reply With Quote
  #88  
Old 04-17-2003, 01:31 AM
Leah's Avatar
Leah Leah is offline
 
Join Date: Aug 2002
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind, I think I got it now.

I added:

Quote:
if ($bbuserinfo[userid]==0) {
show_nopermission();
}
After

Quote:
require("./global.php");
in vbstory.php

I hope that someone will tell me if I messed up.
Reply With Quote
  #89  
Old 04-17-2003, 10:11 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Kie, what you have done is just right to stop non-members from seeing the stories, i left it open on purpose myself so that anyone could read them, but it's your site, you do what you need to

I'm glad you like the hack
Reply With Quote
  #90  
Old 05-01-2003, 08:30 PM
Holidazed's Avatar
Holidazed Holidazed is offline
 
Join Date: May 2002
Location: Van Nuys, CA
Posts: 713
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bitbender=, I followed your instructions and I get the following error:

Warning: Cannot add header information - headers already sent by (output started at /xxx/xxx/xxx/xxx/forumdisplay.php:1) in /xxx/xxx/xxx/xxx/forumdisplay.php on line 29

But that line in my forumdisplay.php looks like this.

Line 25: // ==========================
Line 26: // VBStory Hack Insert Start
Line 27: // ==========================
Line 28: if ($forumid=='4') {
Line 29: header("Location: ./vbstory.php");
Line 30: exit;
Line 31: }
Line 32: // ==========================
Line 33: // VBStory Hack Insert End
Line 34: // ==========================

And yes, I did create the forum and its ID is "4"

Help
Reply With Quote
  #91  
Old 05-02-2003, 12:59 AM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bitg, the code bitbender posed is a simple redirect designed to bypass the forum and go directly to the interactive story. Problem is that in order for it to work it needs to be the first thing sent to the browser, at this moment in time all I can think of is that ether you need to move this code to the top of the phpinclude template, or you have some mods that it's not compatabul with (due to conflecting information being sent).

Ether way however, as i did not write that add on, i can't help you, sorry.
Reply With Quote
Reply


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 01:32 AM.


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.08773 seconds
  • Memory Usage 2,318KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete