vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBstory - an Interactive Story for vB (1.0 Final) (https://vborg.vbsupport.ru/showthread.php?t=42899)

Ninth Dimension 08-28-2002 10:00 PM

vBstory - an Interactive Story for vB (1.0 Final)
 
.

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

[high]* NexDog clicks install :)
[/high]

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

Which template is that typo in?
Quote:

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

Quote:

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:
Quote:

Please choose a grenre from the list below:
TIA

NexDog 08-31-2002 12:18 PM

Code:

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=...d=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

Quote:

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

Quote:

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:
Code:

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:
Quote:

+-------------------------------------------------------------------------------------------------+
| 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.


All times are GMT. The time now is 05:02 AM.

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.01447 seconds
  • Memory Usage 1,848KB
  • 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
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete