Jump to content

Help with reviews module


d_s_f@hotmail.co.uk

Recommended Posts

Hi guys

I am new to PHP so please go easy on me  :D

 

Im using php nuke 7.9 and have updated the reviews module with one i found online (attached).

This all works fine but i would like to know how to change and add drop down menus within this page (if that makes any sense)

currently i have a drop down menu for users to choose a rating and i would like to make it have 4 separate rating boxes

if it is possible i would like to make it add these 4 ratings then devide them into 1 master rating

 

E.G. I have 4 rating boxes

Gameplay [ ]

Graphics  [ ]

Replayability [ ]

Multiplayer [ ]

 

then it adds these scores to give me an overall rating which is shown on the review select screen

 

also i would like to know how to ass a dropdown menu that users can select a console from (x-box, ps3 ect) and it add this to the title when they submit there review

 

after reading through the code for this module i found this part which is where i think i need to start editing please let me know if this is correct

   echo "<b>"._YOURSCORE.":</b><br>
    <select name=\"score\">
    <option name=\"null\" value=\"null\">Choose</option>
    <option name=\"score\" value=\"10\">10</option>
    <option name=\"score\" value=\"9\">9</option>
    <option name=\"score\" value=\"8\">8</option>
    <option name=\"score\" value=\"7\">7</option>
    <option name=\"score\" value=\"6\">6</option>
    <option name=\"score\" value=\"5\">5</option>
    <option name=\"score\" value=\"4\">4</option>
    <option name=\"score\" value=\"3\">3</option>
    <option name=\"score\" value=\"2\">2</option>
    <option name=\"score\" value=\"1\">1</option>
    </select><br>

    "._SELECTSCORE."<br><br>

 

thanks in advance

Damien

 

 

 

[attachment deleted by admin]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.