PDA

View Full Version : vBstory - an Interactive Story for vB (1.0 Final)


Ninth Dimension
08-28-2002, 10:00 PM
.

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.

Ninth Dimension
08-29-2002, 02:16 PM
<font size="4">F.A.Q. for vBstory</font>

Q: where does Suggest a Story get mailed to?
A: when someone submits a story it get's added directly to the database but not displayed. You need to go into the Admin CP and select to display the story if you like it.

Q: Which versons of vB will this work with.
A: It should work with all versons from it's development verson (vB v2.2.6) right up to the current (vB v2.3.0) and beyond (i've not yet had a mess about with vB 3, so i've no idea about that, but in theory, yes).

[D]Vincent
08-29-2002, 04:49 PM
So what all was added onto in this version?

Ninth Dimension
08-29-2002, 04:52 PM
The only thing new in this verson is that the path that was chosen is displayed on the add chapter form.

It's 100% stable and working as I like it at the moment so I've decided to remove it from the beta forum.

Erwin
08-29-2002, 05:34 PM
Great to hear that is alpha! :) Shall upgrade when I find the time...

xxxsaint
08-29-2002, 06:13 PM
A neat little tweak for your online.php maybe ?
------------------------------
case 'vbstory':
$userinfo[where] = "Reading an <a href='vbstory.php'> interactive story </a>";
break;
-------------------------------

i like it , it's awesome ty and this helps have another way to direct people to it :D

Ninth Dimension
08-29-2002, 06:28 PM
That's a good idea, I personally left the link out of the line because I was worried that some ppl might be running it in another dir that the forum dir (like me) but then if I think about it, anyone that can run it in another dir without problems should easily be able to edit the link.

If I add any new features i'll change the info in the online.php file :D

NexDog
08-30-2002, 12:17 AM
Yea, will install this in the afternoon. Thanks for getting it out of Beta!

NexDog
08-30-2002, 10:44 AM
* NexDog clicks install :)

http://www.hostnexus.com/forum/vbstory.php

Which template is that typo in?

Please choose a grenre from the list below:

NexDog
08-30-2002, 11:47 AM
Ummm, where does Suggest a Story get mailed to? Haven't received anything at the forum admin address.

Ryangel
08-30-2002, 12:05 PM
mmm I'll install this real soon :) :thumbsup:

Goldknight
08-30-2002, 02:36 PM
Originally posted by NexDog
Ummm, where does Suggest a Story get mailed to? Haven't received anything at the forum admin address.

Go to AdminCP -> Add story or Edit story, you will find that story there cuz it insert into database and wait for you to "approve" it.

Ninth Dimension
08-30-2002, 03:37 PM
NexDog - Goldknight is correct, when someone submits a story it get's added directly to the database but not displayed.

You need to go into the Admin CP and select to display the story if you like it.

I'll admit that at the moment the admin options need a tiny bit of work, as well as maybe having some type of email sent to the admin when a story is added to the database.

I'll see what I can do getting that released in the next few days (as well as fixing the typo).

Ninth Dimension
08-30-2002, 05:41 PM
I guess this is not as popular as I once thought it might have been :(

kira
08-30-2002, 08:40 PM
Hey Daniel! I'm still playing around and testing the hack with a few of my users, but they're loving it like crazy. And thanks for adding that chapter title to the add-chapter template! That's the second time ever that someone's taken a suggestion of mine and used it in a new release, woohoo! :)

Before I update, which templates need to be changed since your last beta version? (I'd rather not start from scratch since I did so much tweaking, but if necessary I will.)

Thanks a million for this ultra-faboo add-on!

Ninth Dimension
08-30-2002, 10:16 PM
I'm glad that you like it, i've spent a lot of time working on it *G*.

I *think* the only template that has changed since the one you installed is vbstory_editform.

What types of changes have you made?

NexDog
08-30-2002, 11:12 PM
Okay, I see the stories in AdminCP->Edit Story. But nothing in Add Story, so how do I add the stories?

NexDog
08-30-2002, 11:14 PM
Oh, I see. Edit Story --> Edit --> Display. :)

Sweet.

NexDog
08-30-2002, 11:30 PM
BTW, that little addition to online.php is not helping out when Who's Online is viewed. How do I sort that out. Need it for John's arcade too.

trilOByte
08-30-2002, 11:55 PM
Just wondering what this does to the database size? I mean, start with 1 chapter, then 2 options, each option has 2 options and so on. Over 20 chapters, doesnt this result in something like 520,000 chapters to complete all the options?

Ninth Dimension
08-31-2002, 12:20 AM
NexDog, I have no idea, it works fine on my 2.2.6 board, are you running a diffrent verson?

trilOByte - I will admit that it can take up quite a bit of database space, but if you think about it most of the chapters are not going to be huge or anything, and if you are running a forum anyway then it's lickly that you are going to have enough space anyway.

But if you are worried about it, just edit the $max_chapters variable in the vbstory.php file to a lower number.

I would love to offer some type of soloution, i.e. reducing the space it takes, but I don't think there is one, it's just a case that if the story is popular enough to fill up your database, then you must have a popular site in which advertising, etc... money coming in should be fantastic :)

NexDog
08-31-2002, 04:44 AM
Daniel,

Seem to have a few problems. The admin cp keeps logging me out whenever I try and edit/view stories.

Also, the first chapter and the 2 paths are not showing up in the adminCP but when I add the story, it shows. I do need to be able see the story first. :)

Also which template is this in:
Please choose a grenre from the list below:

TIA

NexDog
08-31-2002, 12:18 PM
case 'vbstory.php':
$userinfo[activity] = 'vbstory';
break;


No joy on 2.2.6 on php 4.0.6. Same code for John's tetris hack worked though. This code also doesn't work if you insert John's arcade so trying to kill 2 birds here....:(

Ninth Dimension
08-31-2002, 12:30 PM
As I said before, the admin CP section of this is not yet perfect - it works, but is not perfect. I'll work on that when I get some spare time.

However, regarding your two other problems, I really can't help you i'm sorry to say, everyone else I know that has edited the online.php file have had success with it.

As for you being logged out of the admin CP, the admin part of the hack does not make any changes to being logged in or out, it uses the normal vB security features, so I can't help you there, sorry :(

NexDog
08-31-2002, 02:43 PM
Sure, no problem, I'll work it out. :)

As for the adminCP, I can live with adding the stories, viewing the chapter in the forum and then seeing if it stays or goes.

Our forum is always quiet on the weekend with 4-5 concurrent users but I'm sure the hack will be truly appreciated. Awesome work dude, keep it up. :)

Ryangel
09-02-2002, 08:53 AM
installed :thumbsup: ;)

Ninth Dimension
09-02-2002, 08:58 AM
Cool, do you have a like that I can look at?

Ninth Dimension
09-02-2002, 08:59 AM
wow, I just seen your sig, thank you :D

:banana: :banana: :banana: :banana: :banana: :banana: :banana:
It's Peanut Butter Jelly Time

Ninth Dimension
09-02-2002, 09:17 AM
I've started a story on my site, check it out so far :)

http://gamevine.co.uk/vbstory.php?s=&storyid=3&chapterid=6&do=showall

Ninth Dimension
09-07-2002, 01:33 PM
Just to let you know that I will be working on a next verson for vBstory, but i've got some other projects that I need to finish first. I'll also be adding some forum home bits (such as most active story, latest story, etc...) It will be cool :)

BTW, does anyone have any suggestions for vBstory? anything you would like to see added?

Ryangel
09-07-2002, 05:15 PM
Originally posted by Ninth Dimension
Just to let you know that I will be working on a next verson for vBstory, but i've got some other projects that I need to finish first. I'll also be adding some forum home bits (such as most active story, latest story, etc...) It will be cool :)

BTW, does anyone have any suggestions for vBstory? anything you would like to see added?

mmm, I'm personally very interested in the forumhome bits.

Some suggestions :

- Think was talked about before. Other users cannot enter a story when a user is currently entering a story. Since some users are really writers and can write to one hours worth.

- bits such as "links to New chapters since your last visit" would be really good as well :)

Thats about all to this wonderful hack.


oh and my vbstory link: http://sgstudents.com/forum/vbstory.php

Ninth Dimension
09-07-2002, 05:30 PM
Both the ideas you have suggested are good, however i'm not too sure how to do them. The first would be a total pain to do, unless I set it up so that a user can mark it as "being worked on" - the only problem with this is that the user might never come back... I guess this could be done, but i'd need some external help.

As for the second, I might be able to do this, but i'm thinking it would be very resouce intensive......

What I am going to add is the ability for you to bookmark a chapter, allowing you to access it again from the forumhome and vbstory welcome page.

I'm also going to set it up so that admins get an email when a story is suggested, and when a new chapter is added (although I don't know how to access admins emails yet, i'll working something out.

although at this stage i'd like to point out this won't be for a couple of weeks, i've got some more important projects to work on first (after all, I need to earn a living :))

NexDog
09-07-2002, 09:35 PM
The admin ideas are a must. :)

Definitely need an email or PM whenever a Story is Suggested. Email notifications to people subscribed to the story would be nice. Also, need to see the actual chapter in the adminCP as well as the stuff that we already see. ;)

Ryangel
09-08-2002, 12:10 AM
Originally posted by Ninth Dimension
Both the ideas you have suggested are good, however i'm not too sure how to do them. The first would be a total pain to do, unless I set it up so that a user can mark it as "being worked on" - the only problem with this is that the user might never come back... I guess this could be done, but i'd need some external help.

As for the second, I might be able to do this, but i'm thinking it would be very resouce intensive......

What I am going to add is the ability for you to bookmark a chapter, allowing you to access it again from the forumhome and vbstory welcome page.

I'm also going to set it up so that admins get an email when a story is suggested, and when a new chapter is added (although I don't know how to access admins emails yet, i'll working something out.

although at this stage i'd like to point out this won't be for a couple of weeks, i've got some more important projects to work on first (after all, I need to earn a living :))

The bookmark would be cool :)
As for the furst suggestion, What my users are doing now is they key in some sort of placeholder to ensure that that chapter is theirs first. *lol*

Ninth Dimension
09-08-2002, 12:14 AM
Thats a good idea, going in, typing something like "Bugger off, this is my chapter" and then editing it later once they have finished - very good idea - maybe I can use something like that as a feature - I really need to spend some more time thinking about how it's going to work.

NexDog
09-12-2002, 11:15 AM
I fixed the online.php. Your install instructions is missing some vital code. All pages require 2 entries in online.php: [where] and [activity].

Your's is missing the [where] function:

case 'vbstory':
$userinfo[where] = "Reading an Interactive <a href='vbstory.php?s=$session[sessionhash]'>Story</a>";
break;

Added it for John's arcade hack and the toplist hack and it works nicely. :)

Ninth Dimension
09-12-2002, 03:50 PM
eeeerrrrmmmm, I don't know which file you have got, but the zip file on the first post does have both of the file edits needed for online.php, here:+-------------------------------------------------------------------------------------------------+
| In admin/index.php, find this code: |
+-------------------------------------------------------------------------------------------------+
// ***
makenavoption("New Posts","../mod/moderate.php?action=posts","<br>");
makenavoption("New Attachments","../mod/moderate.php?action=attachments");
makenavselect("Moderation","<hr>");
// *************************************************
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Add under: |
+-------------------------------------------------------------------------------------------------+
// *************************************************
// vBstory by Daniel Hollands - http://ofdan.net/
makenavoption("Add Genre","vbstory_admin.php?what=genre&action=add","|");
makenavoption("Edit Genre","vbstory_admin.php?what=genre&action=edit","<br>");
makenavoption("Add Story","vbstory_admin.php?what=story&action=add","|");
makenavoption("Edit Story","vbstory_admin.php?what=story&action=edit","<br>");
makenavselect("vBstory Options","<hr>");
// /vBstory by Daniel Hollands - http://ofdan.net/
// *************************************************
+-------------------------------------------------------------------------------------------------+

+
+++
+

+-------------------------------------------------------------------------------------------------+
| In online.php, find this code: (Optional) |
+-------------------------------------------------------------------------------------------------+
case 'printthread.php':
$userinfo[activity] = 'printthread';
$blowup = explode('=', $token1);
$threadid = intval($blowup[1]);
$threadids .= ",$threadid";
$userinfo[threadid] = $threadid;
break;
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Add under: |
+-------------------------------------------------------------------------------------------------+
case 'vbstory.php':
$userinfo[activity] = 'vbstory';
break;
+-------------------------------------------------------------------------------------------------+

+
+++
+

+-------------------------------------------------------------------------------------------------+
| In online.php, find this code: (Optional) |
+-------------------------------------------------------------------------------------------------+
case 'calendar':
$userinfo[where] = "Viewing <a href='calendar.php?s=$session[sessionhash]'>Calendar</a>";
break;
+-------------------------------------------------------------------------------------------------+

+-------------------------------------------------------------------------------------------------+
| Add under: |
+-------------------------------------------------------------------------------------------------+
case 'vbstory':
$userinfo[where] = "Reading an interactive story";
break;
+-------------------------------------------------------------------------------------------------+But thank you anyway :D

amsch
09-20-2002, 03:16 PM
Ok, I am a bit lost. I have my story but nothing is showing up??
http://20ishparents.com/boards/vbstory.php?s=

amsch
09-20-2002, 03:18 PM
Like where the members can add to the story ect.
Otherwise it was a great install.

Ninth Dimension
09-20-2002, 03:32 PM
Have you added all the templates? That is the only thing I think the problem could be.

amsch
09-20-2002, 03:57 PM
Ok, double checked and got it working now.

Ninth Dimension
09-20-2002, 06:20 PM
So it was the templates then?

Ghostsuit
09-22-2002, 05:11 PM
Ehh why does it say My Hacks: vBstory 2.0 in you sig but the one on the front page is only version 1.0 am I missing something?

Anyway nice hack might install it tomorrow when I upgrade my boards.

Ninth Dimension
09-22-2002, 05:36 PM
nope, you are not missing anything, i'm just being a twat LOL. i'll change my sig :)

NexDog
09-23-2002, 04:17 AM
LOL. :D

Sorry about that, I must be blind.

azork
09-29-2002, 12:32 PM
It's a good hack, congrats!

I wouldlike to add one suggetsion to teh above ones: give the abilty to nominate a mod for vbstories. And of course a pm to admin and mods to warn them ;)

azork
09-29-2002, 12:39 PM
When you try to delete a chapter, the reset button doesn't work for me.

Ninth Dimension
09-29-2002, 01:39 PM
Originally posted by azork
It's a good hack, congrats!Thank you :laugh:

When you say nominate a mod for the story, do you mean a modorator to look after the stories, etc... or what?

and what do you mean the reset button??? I'm not sure what you mean by that.

Chris M
09-29-2002, 03:02 PM
Could I suggest an Automatic Template Installer?:)

For people with multiple template sets, like me, it is a hastle to have to add them all:(

Satan

Ninth Dimension
09-29-2002, 03:11 PM
I would love to include some type of installer, but I have no idea how do go about making one. Anyone know??? I did use vBHackMaker once before, but it don't work propperly :(

azork
09-29-2002, 05:21 PM
Originally posted by Ninth Dimension


When you say nominate a mod for the story, do you mean a modorator to look after the stories, etc... or what?

and what do you mean the reset button??? I'm not sure what you mean by that.



Yes, the moderator would have the ability to edit the story and delete bad chapters.

reset: i have some problems to edit chapters. when i want to do it, i can change the text, but i can't delete the chapter hitself. there is a reset option on the edit page, but it has no effect.

Ninth Dimension
09-29-2002, 05:43 PM
I've not added the ability for chapters to be deleted, this should be in a future release. As for the reset button, this is there to reset the forums if you make any changes - just a standard reset button, nothing special.

and mods should already have full access to edit stories, etc... anyway.

azork
09-29-2002, 06:28 PM
Originally posted by Ninth Dimension
I've not added the ability for chapters to be deleted, this should be in a future release. As for the reset button, this is there to reset the forums if you make any changes - just a standard reset button, nothing special.

and mods should already have full access to edit stories, etc... anyway.

ok, thx.

The ability for chapters to be deleted is an important option ofr your hack i guess, because some users would post some craps in order to destroy the story. This is the only way to protect you against it.

Btw my members already love your hack

Ninth Dimension
09-30-2002, 12:18 AM
Originally posted by azork
Btw my members already love your hack I'm glad to hear it, do you have a URL I can take a look at??

As for the deleting thing, i'll get that in the next release, when i've got enough time to write it that is.

croft
09-30-2002, 03:06 AM
Is there any way to get a hack like this to end up under a category like a regular forum ?

Right now i have a button on my top menu thats all. It would be neat to be able to add it with the rest of the forums in some way.

http://www.dabforum.com

azork
09-30-2002, 09:51 AM
Originally posted by Ninth Dimension
I'm glad to hear it, do you have a URL I can take a look at??

As for the deleting thing, i'll get that in the next release, when i've got enough time to write it that is.

www.pk-hq.com

Actually, the story page is still hidden to the public, because of the deleting thing, and i want to have a few stories before publishing it. But all of my mods have seen it and they really like it ;)

Ninth Dimension
09-30-2002, 11:14 AM
Croft, I was thinking the same thing not too long ago myself, and it's something that I would like to include as an addon or something, i'll have to look into it.

Azork, well i'm glad you mods like it. I'll start working on an upgrade soon so you can open it to the public.

Vile
10-13-2002, 01:10 AM
Hi, great hack.

I followed all the instructions, and did everythinb, but when I try to add a genre via Admin CP, I get the following error:

"One or more of the required fields is missing, please try again."

Any ideas?

TIA.

Ninth Dimension
10-13-2002, 01:58 AM
Are you sure that you are adding all the information needed? not forgetting anything??? I really can't think why you would be getting this error unless you was missing something, but I could be mistaken.

Maybe the next time it happens, you can send me a screenshot of the page just before you hit the submit button or something?

If you get any more problems, please contact me again and i'll send you my MSN:IM address.

Vile
10-13-2002, 02:07 AM
Originally posted by Ninth Dimension
Are you sure that you are adding all the information needed? not forgetting anything??? I really can't think why you would be getting this error unless you was missing something, but I could be mistaken.

Maybe the next time it happens, you can send me a screenshot of the page just before you hit the submit button or something?

If you get any more problems, please contact me again and i'll send you my MSN:IM address.

Yea, I did everything, but I'll do it all over again, excluding the queries, (ran all 3 too) just in case, and let you know.

Thanks for your help :)

Ninth Dimension
10-13-2002, 02:12 AM
to be honest with you re-installing it is not going to help, if there is a problem it will be within the admin php file and no where else.

It's too late now, but tomorrow we can have a chat on MSN or something and see what we can do about fixing it for you, ok?

Vile
10-13-2002, 02:21 AM
Originally posted by Ninth Dimension
to be honest with you re-installing it is not going to help, if there is a problem it will be within the admin php file and no where else.

It's too late now, but tomorrow we can have a chat on MSN or something and see what we can do about fixing it for you, ok?


Sounds good, I'll PM you :)
Thanks for the help.

bitbender
10-13-2002, 02:31 AM
Originally posted by croft
Is there any way to get a hack like this to end up under a category like a regular forum ?

Right now i have a button on my top menu thats all. It would be neat to be able to add it with the rest of the forums in some way.

http://www.dabforum.com

Hello:

This is what I did (i got it from someone else :) We use it for photopost, but it should work fine here also.)

1) Create a forum, and make a note of the forumid created.

2) In forumdisplay.php, find:


// end forumjump redirects

add this right after:
(Be SURE to change the ??? with the forumid number you noted above.)

// ==========================
// VBStory Hack Insert Start
// ==========================
if ($forumid=='???') {
header("Location: ./vbstory.php");
exit;
}
// ==========================
// VBStory Hack Insert End
// ==========================


And.. the customary screen shot:
https://vborg.vbsupport.ru/external/2002/10/1.gif

hth ... cheers ...

Hey ND, How ya Doing ! :)

croft
10-13-2002, 02:47 AM
Man thats HOT stuff. It worked =) Thank you SO MUCH bitbender =)

Ninth Dimension
10-13-2002, 10:19 AM
That looks cool, nice tip for anyone wanting to link to the story, i personally would not use this myself, but then that just me LOL :)

MacKenzie
10-31-2002, 05:18 PM
Just found this add-on.... It's another 'must-have' for my forums. There are a number of members on the forums who love creative writing and roleplaying... this will kill them with joy (oooh, savour that body count... mwah ha ha, er, wait, did I just say that outloud?)

MacKenzie
The Asylum:Gathering Of Souls Staff

Ninth Dimension
10-31-2002, 05:34 PM
I'm glad that you like it, i'm planning an upgrade for it at some point soon, i just need to find the time to do it :)

EDIT: out of interest, can you send me a link once it's up please? thanx

Ninth Dimension
11-14-2002, 12:13 AM
Hi guys and gals, can anyone that is running this hack please come and post a url to it please? I'm working on some upgrades for it, but b4 i do i want to see it running on a few of your sites.

cheers all

Jitway
11-14-2002, 10:37 PM
Just installed it yesterday and all works well. :cool: . Here is the url www.jitway.com/forums/vbstory.php

Natch
12-05-2002, 01:38 PM
I've just installed it - but I haven't added any stories in yet ...

http://www.mobileforces.org/forums/vbstory.php

But I can see this is gonna be amazing for Clan Match Reports, Game Reports and Game-related Fiction - could be AWESOME!

Thanks for the hack - very much appreciated!

Ninth Dimension
12-05-2002, 02:49 PM
It looks good, fit your site well :)

I don't know if you are interested or not, but as you run a games site, you might want to have a look at this: http://savepoint.co.uk/webmaster.php - it's something I set up a few days ago and will put the content from my site onto yours :)

take a look :)

Crazy Pete
12-06-2002, 05:53 PM
Just wanted to let you know that I installed it as well, I'm liking it so far, but some of my users have asked if it were possible to just maybe add a sentence or two at a time instead of an entire paragraph. Some of them are lazy and don't like writing that much. :)

Anyway, here's the link:

http://www.expectedmiracles.com/forums/vbstory.php

Thanks for a great hack!

Ninth Dimension
12-06-2002, 06:10 PM
I don't see any reason why they can't post just one or two lines, unless you are looking for something that will fit onto one page?

Just because you have the ability to post paragraphs, you don't need to use it :)

azork
12-06-2002, 10:59 PM
what about the new version?

Brahm
01-01-2003, 05:53 PM
That was probably the most templates I ever manually created, but it was well worth it. I followed your 8 easy steps, and it went without a hitch. Thanks Daniel!

No stories yet, but here's my link:

http://www.ashkins.net/forum/vbstory.php

Ninth Dimension
01-02-2003, 09:51 AM
Azork - I know that Ive been promacing a new verson for a long time now, but i've just rediscovered the joys of MMORPG games and have been doing nothing more than playing them all the time (LOL). Soon (maybe) I promice, soon. :)

Brahm - Looking good.

Moyses
01-10-2003, 05:47 PM
Thanks! Very cool hack ^__^

i'll install this hack...

http://foros.angzone.com/vbstory.php

LangTuDaTinh
01-10-2003, 10:17 PM
great hack....would u please improve so users can place comment below those stories content? this would be great...thanks

Ninth Dimension
01-12-2003, 07:32 AM
Looking good Moyses (as always, it can be hard getting the story populated, but once it is, it looks after itself :))

- LangTuDaTinh (long name - hehe) that's a very good idea - although personally i would make comments on a seperate page (but a seperate comments section for each chapter - provided I ever get arround to updating the script :()

azork
01-12-2003, 08:24 PM
I understand that pretty well Ninth Dimension ;) I think that i can delete chapters in the database.

btw the interactive story is public now on my forum. you can see them as a sub-forum of "Community"

www.pk-hq.com

rrnolan
01-12-2003, 09:03 PM
Thank you so much for sharing this with everyone...

WarChild
01-25-2003, 01:28 AM
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??

Ninth Dimension
01-25-2003, 08:37 AM
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.

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;

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;

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;

midnightz
04-02-2003, 04:52 PM
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

Ninth Dimension
04-02-2003, 05:33 PM
that sounds like a cool hack, how much have you done so far?

Leah
04-17-2003, 01:22 AM
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?

Leah
04-17-2003, 01:31 AM
Nevermind, I think I got it now. :)

I added:

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

After

require("./global.php");

in vbstory.php

I hope that someone will tell me if I messed up.

Ninth Dimension
04-17-2003, 10:11 AM
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 :)

Holidazed
05-01-2003, 08:30 PM
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

Ninth Dimension
05-02-2003, 12:59 AM
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.

gmarik
05-24-2003, 07:33 AM
If this will work on 2.3, I'll become a fan of it and will develop an add-on with your help, if you'll be interested.

Ninth Dimension
05-24-2003, 10:43 AM
Hi all, i've been out of a development mood for a while so i've not been about to answer any questions (sorry).

Anyway, I can't see why it would not work with 2.3.0, it's seperate from the rest of the forum, needs very little actual "hacking" and providing that themain system variables havent been changed, i can't see a problem.

Small Update, i'm working this weekend on an more advanced verson of vBstory for my own use, but if you show me enough love I might think about releasing it :)

Alien
05-25-2003, 07:32 PM
Yes this works flawlessly on vB 2.3.0 as best as I can tell. I'm hoping to open the new site in June and would really love the more advanced version you spoke about anyway I can get it!

Oh and BTW, I love you. :D

-Jason

gmarik
06-09-2003, 05:25 PM
I have a wish:

Lets take I have a book, 20 000 symbols. I want it to be displayed by chapters and about 900 symbols in every page. With a dropdown panel with the generated pages.


preg_match_all("/.{900,}?\. /s", $string, $out, PREG_PATTERN_ORDER);
list($out) = $out;

print_r($out);

Ninth Dimension
06-09-2003, 05:32 PM
sorry, but i'm a little confused as to what you want me to do.

gmarik
06-10-2003, 08:51 AM
Here is a demo:
http://www.oshoworld.com/onlinebooks/BookXMLMain.asp?BookName=darshan+diaries/believing%20the%20impossible%20before%20breakfast. txt

It cuts the with XML, but whe doen't need it. We just take certain proportions from te DB. Now it's more clear? :o)

Ninth Dimension
06-10-2003, 09:35 AM
Oh, i think i see, you are after some type of system that you can use to display an xml book on the internet, with preformed chapters, etc...

I can't help you with that, this is an interactive story that is designed to let forum members add new chapters, it's not the type of thing you are ater, and to be honest with you, i don't think i'd be able to code what you need anyway, sorry.

gmarik
06-10-2003, 09:39 AM
Dimension, it does not has to XML, it's just the demo.
It's very close to what you have. It would be an add-on for e-librarys. You know your code far more better than I, so it would take 4 times less time than for me.

An option where admins add text and it is displayed in 900 symbols text chunks. Please say you'll think about it?!

Ninth Dimension
06-27-2003, 02:13 PM
gmarik, I'm sorry mate but i still don't fully understand what you want/need. This plus the fact that apart from an minor update to fix some minor bugs, i'm not going to be making any more changes to the script (i like the way it runs at the moment).

but please, by all means, if you, or someone else here wants to edit the hack, be my guest, i'd love to see any changes that other people make :)

Alien
06-27-2003, 09:03 PM
05-24-03 at 07:43 AM Ninth Dimension said this in Post #92 (https://vborg.vbsupport.ru/showthread.php?postid=399303#post399303)
Small Update, i'm working this weekend on an more advanced verson of vBstory for my own use, but if you show me enough love I might think about releasing it :)


Are we any closer to an update on this? :D

Ninth Dimension
06-27-2003, 09:15 PM
nope, not yet :) I've not had any time i'm sorry to say. but as soon as something happens, you will be the first to know :)

Alien
06-28-2003, 04:39 AM
Okay good 'nuff! :) I can't wait!

Ninth Dimension
06-30-2003, 01:46 PM
LOL this is funny, here I am, the author of this hack, and i have to come back to vB.org to download a copy of the hack so I can put it on my latest forum. hehehehe.

BTW, if I make any changes to this install to improve it in anyway, i'll post them here for you all.

While i'm on the subject, has anyone out there in hack land made any changes to the script? if so please feel free to share them, i'd love to see what you have done with it.

lioncool1589
07-28-2003, 02:50 AM
i just added this vbstory to my site
www.clan-ice.com/vbstory.php
but i get this error when i click suggest a story
how can i fix it this plz help

Warning: Invalid argument supplied for foreach() in /home/clan-ic/public_html/vbstory.php on line 85

lioncool1589
07-28-2003, 03:08 AM
i fixed problems i forgot add story genre

Ninth Dimension
07-28-2003, 09:38 AM
Today at 05:08 AM lioncool1589 said this in Post #105 (https://vborg.vbsupport.ru/showthread.php?postid=421140#post421140)
i fixed problems i forgot add story genre lol :) I'm glad you got it working :)

mariannet
01-13-2004, 10:36 AM
I just love this idea and are really looking forward to letting all "my kids" write their heart out. Only problem is that I get an "One or more of the required fields is empty, please press the back button and try again." when adding a chapter. I have seen someone else had this problem but he never returned to say what he did to fix this?

Ohh... and by the way, this is a Danish site, therefor the "funny" lingo :)
I haven't started translating the templates yet, so it can't be that :)

C.Birch
01-25-2004, 09:52 PM
will there be a vb3 port of this?

pmay68
04-09-2004, 09:32 PM
I would also love to hae this but is not compatable with vb3.. What would it take to get it to work on VB3... Please, my users really enjoyed this hack but I no longer can use since I upgraded...

Bro_Joey_Gowdy
04-15-2004, 01:01 PM
I would also love to hae this but is not compatable with vb3.. What would it take to get it to work on VB3... Please, my users really enjoyed this hack but I no longer can use since I upgraded...
Ive made a request for vb3 story here :
https://vborg.vbsupport.ru/showthread.php?t=63908

Acido
04-16-2004, 10:00 PM
Ive made a request for vb3 story here :
https://vborg.vbsupport.ru/showthread.php?t=63908
Yes please ! Millions of users are waiting this excelent hack !!!!!

Wential
09-20-2004, 09:37 PM
Looking forward to this, it is much desired.

Poethik
12-11-2005, 12:34 PM
<a href="http://www.rapchoice.com/forums/vbstory.php?s=&menu=34" target="_blank">http://www.rapchoice.com/forums/vbstory.php?s=&menu=34</a>

Ninth Dimension
08-04-2006, 04:37 PM
I don't know if anyone here is interested or not, but the latest version of this project is now online at http://unknowntales.net/

Now before you all go getting excited about a vB3 release or anything like that, you should know that this is an independently scripted revamp of the entire concept. It's not available for download or use on any other sites - it's my own site for my own purpose.

So why am I telling you? Well - why not, some of you enjoyed the concept of the interactive story site, so I figured I'd let you know that it lives on.

I don't have any plans for any more public releases of the script at this point, nor do I see anything like this happening in the future, but I am thinking about offering a remotely hosted story service that webmasters might be interested in signing up for - it's just an idea right now, but more may come of it soon.

I don't mind that the version of vBstory listed on this site remains active and available for download; however I do request that no further versions of the script be made.

Anyway, if you're interested, check out http://unknowntales.net/ and let me know what you think :)

RvG2
07-27-2007, 12:39 PM
is this working in vb3.6.7? :)