Need some Help with a script of mine! not working and i dont know why. menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Flesh0209's Avatar Member
    Reputation
    3
    Join Date
    Jul 2009
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some Help with a script of mine! not working and i dont know why.

    I can't seem to get it to work. I did everything right.


    First the error I get:


    Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\AC Web Ultimate Repack\Server\htdocs\avs\index.php:13) in C:\AC Web Ultimate Repack\Server\htdocs\avs\index.php on line 42
    Login:

    Reward_points field does not exist in the "Logon Database" its automatic added to the database, This page will go back in 5 seconds




    And I did all of this:


    Readme

    Here you will find instructions on how to set up your copy of AVS.
    Installation

    1. Put the folder containing AVS into your website.

    2. In your web site's MySQL database, execute these queries:
    CREATE TABLE `realms` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(32) default NULL, `sqlhost` varchar(32) default NULL, `sqluser` varchar(32) default NULL, `sqlpass` varchar(32) default NULL, `chardb` varchar(32) default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; CREATE TABLE `votemodules` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(32) default NULL, `image` varchar(12 default NULL, `url` varchar(12 default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; CREATE TABLE `voterewards` ( `id` int(10) unsigned NOT NULL auto_increment, `realm` tinyint(3) unsigned default NULL, `name` varchar(32) default NULL, `description` text, `itemid` int(10) unsigned default NULL, `points` tinyint(3) unsigned default NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; CREATE TABLE `votes` ( `ip` varchar(16) default NULL, `account` varchar(16) default NULL, `module` tinyint(3) unsigned default NULL, `time` int(11) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1;


    3. If you also have AAPDRDS installed, it uses the same "realms" table.
    4. Add a column named "reward_points" of type "int" to the accounts table in your logon database.
    5. In the realms table, enter the name and MySQL information for each realm of your server.
    6. In the votemodules table, enter name, vote, and image urls for each topsite your server is on.
    7. In the voterewards table, enter the information of each reward you want to offer. The realm is the id of the realm in the realms table. The itemid is the id of the item to be sent via mail. The points are the amount of points required to purchase the item.
    8. Leave the votes table as-is.
    9. Proceed to edit the configuration information located at the top of the index.php file.

    Vote Pop-up

    The file "popup.php" contains a customizeable vote pop-up that will appear every page visit if the user has not voted in 12 hours. You can edit any HTML between the PHP tags. Place a "<?php include("path/to/popup.php"); ?>" somewhere on every page you wish the popup to appear.



    Can someone look it over and make sure it's right and in database please.


    The vote page link:

    Login:


    And the .PhP file

    =======================================




    <?php
    if(!isset($_COOKIE['vote_time']))
    {
    ?>
    <!-- Start Vote Pop-up -->

    <div id="votepopup" style="padding:2px; border:#000000 solid 1px; height:150px; width:200px; top:100px; left:100px; position:absolute; background:#FFFFFF;">
    This is your customizeable vote reminder box,
    letting you know that you are able to vote again.<br>
    <a href="http://www.xtremetop100.com/in.php?site=1132285116">Vote!</a>
    </div>

    <!-- End Vote Pop-up-->
    <?php
    }
    ?>
    <?php

    //Configuration


    //Logon Database information.
    define("LOGON_HOST","127.0.0.1");//Logon database host
    define("LOGON_USER","root");//Logon database username
    define("LOGON_PASS","ascent");//Logon database password
    define("LOGON_DB","mysql");//Logon database
    define("ENCRYPT_PASSWORDS",false); // !!! - Not yet supported

    //Local webserver's MySQL information.
    define("MYSQL_HOST","127.0.0.1");//avs database host
    define("MYSQL_USER","root");//avs database username
    define("MYSQL_PASS","ascent");//avs database password
    define("MYSQL_DB","mysql");//avs database

    //In game mail settings
    define("MAIL_SUBJECT","Thanks For Voting!");
    define("MAIL_BODY","Thank you for voting for our server. Here is your reward!");

    // Misc
    define("RPPV",1); // Reward points per vote. Must be a whole number.

    session_start();
    // force login to view.
    if(!$_SESSION['vcp']['authenticated'] && $_GET['act'] != "vote")
    {
    include("pages/login.php");
    new Login();
    die;
    }
    switch($_GET['act'])
    {
    default:
    include("pages/overview.php");
    new Overview();
    break;
    case "rewards":
    include("pages/rewards.php");
    new Rewards();
    break;
    case "spend":
    include("pages/spend.php");
    new Spend();
    break;
    case "vote":
    include("pages/vote.php");
    new Vote();
    break;
    }
    ?>
    <script type="text/javascript">
    alert("hi");
    <a href="http://wowblitz2.ath.cx">WoW Blitz</a>


    Core:Arcemu
    Core Revision: $Id: arcemu-world.conf rev.2208
    Database: mysql 5.1
    Database Revision:
    Repack you used (if any): Arcemu 3.1.X



    Thank you for all the help!! +Rep for help !!
    Last edited by Flesh0209; 08-07-2009 at 10:40 PM.

    Need some Help with a script of mine! not working and i dont know why.
  2. #2
    Saridormi's Avatar Contributor
    Reputation
    306
    Join Date
    Mar 2007
    Posts
    556
    Thanks G/R
    19/16
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By the sounds of it you're using a repack, if so, I'd go compile your own server instead of just downloading a repack.

    But the error is right there:

    "
    Reward_points field does not exist in the "Logon Database" its automatic added to the database, This page will go back in 5 seconds"

    There's your problem, you need to add a field named 'Reward_points'.

    At least, that's what I gathered from what you've told me.

    Try that, see if it works.


  3. #3
    Flesh0209's Avatar Member
    Reputation
    3
    Join Date
    Jul 2009
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok cool even if it dont work + rep for atleast looking into it real appreciated!!

  4. #4
    Flesh0209's Avatar Member
    Reputation
    3
    Join Date
    Jul 2009
    Posts
    62
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried it and it still not working if anyone else could look into it would be great thank you!

Similar Threads

  1. Need some help with unlocked LUA scripting (UnitBuff)
    By ownedpandas in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 10-13-2016, 10:55 AM
  2. [trinitu] I need some help with 1 scripts
    By Sinisteru in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 07-19-2011, 11:14 AM
  3. [Lua Script] Need some help with my lua script
    By riizu in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 07-13-2010, 01:40 AM
  4. Need some help with LUA script
    By SupernovaHH in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-22-2009, 07:25 AM
  5. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
All times are GMT -5. The time now is 11:10 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search