Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > General > Member Archives
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Admin functions Details »»
Admin functions
Version: , by Ninth Dimension Ninth Dimension is offline
Developer Last Online: Jun 2016 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 08-19-2002 Last Update: Never Installs: 0
 
No support by the author.

Hi all, i'm about to start working on the admin functions for my vBstory hack, but I don't know where to start.

OK, that is a lie, I know that I should use
PHP Code:
<?php
error_reporting
(7);
require(
"./global.php");
cpheader();

/* .... your script here ... */

cpfooter();
?>
as a basis for the file, but after that I'm stuck.

I think that the admin supports some type of non-template based options, with some special code for input tags, etc... but I don't know what these are.

Can anyone gimme a hand please?

Show Your Support

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

Comments
  #2  
Old 08-19-2002, 04:33 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not a coder myself, but what I see the other guys do is write a function for edit, delete or add and then they edit the admin/index.php with the makeeyesnode do?edit do?add etc...and when you click on them it allows you to write directly in database.
Reply With Quote
  #3  
Old 08-19-2002, 04:40 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just had a look at the code for the admin section of the vBquiz hack, and damn - it looks very confusing

I'll have to see if i can pull it apart and see what I can learn from it
Reply With Quote
  #4  
Old 08-19-2002, 04:44 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you might want to look at the glossary hack. It is less complexed.
Reply With Quote
  #5  
Old 08-19-2002, 05:06 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, i'll have a look.
Reply With Quote
  #6  
Old 08-19-2002, 06:27 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it took me a while, but I think i'm getting used to this, it's really each once you use all the functions that vB has provided.

what do you think of my form code for adding a story to the database?

PHP Code:
            // add  story
            
echo "<p><b>vBstory $ver - Add Story</b></p>";

            
doformheader("vbstory_admin","add");
            
maketableheader("Add Story - All fields are required.","",1,2);
            
makeinputcode("Story Title""title""");
            echo 
'<tr class="'.getrowbg().'"><td valign=top>';
            echo 
"Genre";
            echo 
"</td><td valign=top>";
            
// get genre list
            
echo "<select name='genreid'>";
            foreach (
$genres_global[title] as $genres_key => $genres_value) {
                echo 
"<option value='$genres_key'>$genres_value</option>";
            }
            echo 
"</select>";
            echo 
"</td></tr>";
            
makeinputcode("Character Name""name""");
            
maketextareacode("Background","info",$description,6,50);
            
makeinputcode("Display <small>1 for yes. 0 for no.</small>""display""1");
            
makehiddencode("what""story");
            
makehiddencode("post""1");
            
doformfooter("Add Story"); 
Reply With Quote
  #7  
Old 08-19-2002, 06:40 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

why do you make it only one Character? A story should have more than one Character...
Reply With Quote
  #8  
Old 08-19-2002, 06:47 PM
Ninth Dimension's Avatar
Ninth Dimension Ninth Dimension is offline
 
Join Date: Oct 2001
Location: London, England.
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

it only has one Character because the idea is that you take on the role of that person in the story.

the stories will be written as if you was telling a story to your grandchildren from a first person perspective, but in a past tense.

For example:
I sat in the park and waited for my friends.
instead of:
He sat in the park and waited for his friends.

The story can have more than one character, but you will only have control of one

I hope that makes sense?
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 10:35 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.04028 seconds
  • Memory Usage 2,281KB
  • Queries Executed 21 (?)
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_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete