PHP Help Please. :) menu

User Tag List

Results 1 to 5 of 5
  1. #1
    DoxramosPS's Avatar Knight
    Reputation
    26
    Join Date
    Aug 2010
    Posts
    214
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Help Please. :)

    I know this isn't really the right section, but I couldn't find anywhere to find the right section. I'm trying to fix the voting site on mangosweb and it's not working for me, right now if you click any of the links that you create it will redirect you to "http://www.yoururl/yourvotesite.com" now the yourvotesite.com isn't a bad thing however the yoururl screws things up seeing as you probably don't have the vote site hosted locally >.>. I'm positive that it's inside the php, but I cannot find out how to fix it. If anyone knows the error please let me know.



    I'm fairly sure the issue lies in this line
    Code:
    <form action=\"?p=vote\" method=\"post\" target=\"_blank\">
    <input type=\"hidden\" name=\"site\" value=\"".$key."\" />
    <tr>
    <td class=\"serverStatus1\" align=\"center\" width=\"30%\">
    <img src=\"".$value['image_url']."\" border=\"0\" alt=\"".$value['hostname']."\" />
    </td>
    but just in case I've posted the whole code below.

    [spoiler]
    <br>
    <?php builddiv_start(1, $lang['vote_system']);

    // Initiate refresh, 20 seconds default
    echo '<meta http-equiv=refresh content="20;url=?p=vote">';

    if(isset($_POST["site"]))
    {
    vote($_POST["site"]);
    }

    echo $PAGE_DESC;
    ?>

    <div class="contentdiv">
    <style type="text/css">
    div.noErrorMsg { width: 80%; height: 30px; line-height: 30px; font-size: 10pt; border: 2px solid #00ff24; background: #afffa9;}
    div.errorMsg { width: 80%; height: 30px; line-height: 30px; font-size: 10pt; border: 2px solid #e03131; background: #ff9090;}
    td.serverStatus1 { font-weight: bold; border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; }
    td.serverStatus2 { border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; }
    td.serverStatus3 { border-style: solid; border-width: 0px 1px 1px 0px; border-color: #D8BF95; background-color: #C3AD89; }
    td.rankingHeader { color: #C7C7C7; font-size: 10pt; font-family: arial,helvetica,sans-serif; font-weight: bold; background-color: #2E2D2B; border-style: solid; border-width: 1px; border-color: #5D5D5D #5D5D5D #1E1D1C #1E1D1C; padding: 3px;}
    </style>

    <?php write_metalborder_header(); ?>
    <table width="100%" cellpadding="3" cellspacing="0">
    <tbody>
    <tr>
    <td class="rankingHeader" colspan="3" align="center" nowrap="nowrap"><?php echo $lang['vote_acct_details'] ?></td>
    </tr>

    <tr>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['vote_curacct']; ?></td>
    <td class="rankingHeader" align="center" nowrap="nowrap">Vote Count</td>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['vote_points']; ?></td>
    </tr>

    <tr>
    <td class="serverStatus1" align="center" nowrap="nowrap"><?php echo $user['username']; ?></td>
    <td class="serverStatus1" align="center" nowrap="nowrap"><?php echo $user['total_votes']; ?></td>
    <td class="serverStatus1" align="left" nowrap="nowrap"><?php echo $lang['vote_balance'] ?> <?php echo $user['web_points']; ?>
    <br /><?php echo $lang['vote_acct_points_today'] ?> <?php echo $user['points_today']; ?></td>
    </tr>
    <tr>
    <td colspan="3" align="left"><br><b><center><?php echo $lang['vote_keep'] ?></center></b>
    <ul>
    <li>
    You can click each link <b>once every 12 to 24 hours</b> due to vote site limits.
    </li>
    <li>
    <span style="color: red; font-weight: bold;"><?php echo $lang['vote_hack'] ?></span><br><br>
    </li>
    </ul>
    </td>
    </tr>
    </table>
    <?php write_metalborder_footer(); ?>
    <br />
    <br />
    <center>
    <?php

    // Start Loading of vote sites
    if($vote_sites != FALSE)
    {
    write_metalborder_header();
    ?>
    <table cellpadding='3' cellspacing='0' width='100%'>
    <tbody>
    <tr>
    <td class="rankingHeader" align="center" colspan='6' nowrap="nowrap">Choose a Votesite</td>
    </tr>
    <tr>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['voting_sites'];?>&nbsp;</td>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['voted'];?>&nbsp;</td>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['resets'];?>&nbsp;</td>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['points'];?>&nbsp;</td>
    <td class="rankingHeader" align="center" nowrap="nowrap"><?php echo $lang['choose'];?>&nbsp;</td>
    </tr>
    <?php
    foreach($vote_sites as $value)
    {
    $key = $value['id'];
    $disabled ='';
    $Voted = $Voting[$key]['voted'];

    echo "
    <form action=\"?p=vote\" method=\"post\" target=\"_blank\">
    <input type=\"hidden\" name=\"site\" value=\"".$key."\" />
    <tr>
    <td class=\"serverStatus1\" align=\"center\" width=\"30%\">
    <img src=\"".$value['image_url']."\" border=\"0\" alt=\"".$value['hostname']."\" />
    </td>
    <td class=\"serverStatus1\" align=\"center\">";
    if($Voted == TRUE)
    {
    echo "<center><b style=\"color: rgb(102, 13, 2);\">".$lang["yes"]."</b></center>";
    $disabled = " disabled=\"disabled\"";
    }
    else
    {
    echo "<center><b style=\"color: rgb(35, 67, 3);\">".$lang["no"]."</b></center>";
    }
    echo " </td>
    <td class=\"serverStatus1\" align=\"center\">".$Voting[$key]['reset']."</td>
    <td class=\"serverStatus1\" align=\"center\">
    <center>".$value['points']."</center>
    </td>
    <td class=\"serverStatus1\" align=\"center\">
    <center><input type=\"submit\" name=\"submit\" target=\"_blank\" value=\"".$lang['vote']."\"".$disabled." /></center>
    </td>
    </tr>
    </form>";
    }
    ?>
    </tbody>
    </table>
    <?php
    write_metalborder_footer();
    }
    ?>
    </center>
    <?php builddiv_end() ?>
    [/spoiler]
    Mangos and Trinity Emulation
    Windows | Linux
    Under Development : morgangreen.org WoW CMS Site

    PHP Help Please. :)
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Moved this to questions and requests section.

    It's not really emu orientated question but I guess this section gets more views... If you get no reply within the next few days, try posting in the 'programming' section.

  3. #3
    DoxramosPS's Avatar Knight
    Reputation
    26
    Join Date
    Aug 2010
    Posts
    214
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Stoned, wasn't quite sure where I should put it to be honest with ya haha; I'm hoping a random PHP dev will walk into the thread and go, "Hey! I can fix that!" I'm also hoping to win the mega millions. Lets see which one happens first lol.
    Mangos and Trinity Emulation
    Windows | Linux
    Under Development : morgangreen.org WoW CMS Site

  4. #4
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is a config for the php project where it asks you to change the yoururl.com/yourvotesite to your own voting site. Look for it.
    Don't Forget To Give Rep To People Who Help You.

  5. #5
    myran2's Avatar Contributor

    Reputation
    130
    Join Date
    Dec 2008
    Posts
    475
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just in case you haven't figured it out yet, make sure you preface all of the URLs with "http://" (ie: Google).
    The http:// at the beginning lets the webserver know that you're trying to go somewhere outside of your locally hosted stuff.

Similar Threads

  1. Gold to Karazhan doesn't work,help please
    By Raijin in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 10-10-2006, 07:40 PM
  2. Bit of help please?
    By Adam0500 in forum World of Warcraft General
    Replies: 0
    Last Post: 09-16-2006, 04:19 AM
  3. Aspiring model editor requires some professional help please!
    By grampa5000 in forum World of Warcraft Model Editing
    Replies: 8
    Last Post: 09-03-2006, 11:57 PM
  4. Help Please im a newbie
    By phoenix in forum World of Warcraft General
    Replies: 3
    Last Post: 07-14-2006, 09:29 AM
  5. I Need some IE help please!
    By Shadowman2418 in forum Community Chat
    Replies: 0
    Last Post: 07-10-2006, 09:02 PM
All times are GMT -5. The time now is 10:34 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