Announcement

Collapse
No announcement yet.

Urgent Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • wslxveg
    replied
    K Done. Can anyone help?

    Leave a comment:


  • Scott MacVicar
    replied
    Can you please go to http://www.vbulletin.com/members/forums.php and add your current email to the priority support form. You'll need the customer number and password you recieved when purchasing vBulletin to access that page.

    Leave a comment:


  • JamesT
    started a topic Urgent Problem

    Urgent Problem

    I am running a league and i have decided to intergrate it with vBulletin. If anyone signs up for the forum they are registered for the league, but thats not the problem. The problem i am having is with the report function. I have tryed many things to make it work but none of it is working. I tryed making a custom template with the html code for the form i wasnt sure if i could use php in the template. The file im running gets the templates needed from vBulletin and displays them.

    Code:
    <?
    
    $templatesused = "wwpreport";
      include("global.php");
      eval("dooutput(\"".gettemplate("wwpreport")."\");");
    
    
    
      ?>
    It displays the wwpreport custom template. This is the html inside the wwpreport template:

    Code:
    <div align="left"><br>
    
    
    
    <center><p>
    Only winners should report games. You are logged in to WSL as $bbuserinfo[username]</p>
    
    
    
    
    
      
    <form name="report" method="post" action="addreport.php">
              <table border="0" cellspacing="0" cellpadding="5">
                <tr> 
                  <td colspan="4"> 
                    <p>
                  </td>
                </tr>
                <tr> 
                  <td> 
                    <p>Loser:</p>
                  </td>
                  <td>
    
    <select name="losername" size="10">
    
    
    
                      <option value="" selected>Select Opponent</option>
    <option>
    
    <!--Get List of Usernames-->
    
    </option>
                   
    </select>
    
                  </td>
                  <td> 
                    <p>Gamestyle:</p>
                  </td>
                  <td> 
                    <select name="game" size="10">
                      <option value="Roping" selected>Roping</option>
                      <option value="BnG">BnG</option>
                      <option value="Team17">Team17</option>
                      <option value="Shopping">Shopping</option>
                      <option value="Pro/Elite">Pro/Elite</option>
                      <option value="Misc">Other</option>
                    </select>              </td>
                </tr>
                <tr>
                  <td colspan="4"> 
                    <p>Number of games: 
                      <select name="gamenum">
                        <option value="1" selected>1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                      </select>
                    </p>
                  </td>
                </tr>
                <tr> 
                  <td colspan="4"> 
                    <center>
                      <input type="hidden" name="validated" value="No">
                   
                      <input type="hidden" name="username" value="$bbuserinfo[username]">
                      <input type="hidden" name="winnername" value="$bbuserinfo[username]">
    
                      
                      <input value="Report" type="button">
                      <input type="reset" value="Clear">
                    </center>
                  </td>
                </tr>
              </table>
            </form></center>
    
    	 
    	  <br>
    	  <br />
    
     
    
     $footer
    </body>
    </html>
    That all displays fine but i need to insert my php code to get list of usernames and to process the form. I tryed inserting the code in both wwpreport template and the file wwp.php but neither of it works. I was wondering if anyone could help me sort it out.

    MSN = [email protected]

    Thanks,

    J
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X