Welcome to the RaGEZONE - MMORPG development forums.

[Tut] Fixing Rank / Point Update.

This is a discussion on [Tut] Fixing Rank / Point Update. within the OGame Tutorials forums, part of the OGame category; Difficulty 1/1000000 to be honest, Simple tutorial, simple effect. I've seen alot of requests on how to change the rank ...

Results 1 to 7 of 7
  1. #1
    Ima Xplicit Gamer
    Rank
    Member +
    Join Date
    Feb 2007
    Location
    London - England
    Posts
    1,083
    Liked
    0

    [Tut] Fixing Rank / Point Update.

    Click
    Difficulty 1/1000000 to be honest,
    Simple tutorial, simple effect.
    I've seen alot of requests on how to change the rank / point update on http://forum.ragezone.com/f419/share...1/#post3251690 those files so I started to play around with the files and noticed how this could be fixed.

    Okay, firstly go to the main folder. (where all the files are; eg about.php, config.php, contact.php etc etc.)
    Then open up the folder called Templates
    Then again open up the folder called Opengame (which is located inside the template folder you just opened)

    Now's the time to play around,
    If you want it so that anyone can update them you can make two simple new additions to the navigation.

    Todo this look for the left_menu.tpl file and open it in notepad.
    Then use your EYES and find a suitable place you want it.
    For this example I will place it under the Search link.
    Incase you still dont get it...:
    PHP Code:
    <tr><td><div align="center"><font color="#FFFFFF"><a href="search.php" accesskey="b" target="{mf}">{Search}</a></font></div></td></tr
    Thats the search link.
    I could make this all hard and explain what each part means, but that will be boring for me AND you.
    So lets cut to the chase.

    Copy the search link in the php quote above ^^^^^
    Then after the </tr> at the end of the quote, press enter so it does a new line.
    Then just paste the copied search link under it and change it.
    For example:

    PHP Code:
    <tr><td><div align="center"><font color="#FFFFFF"><a href="search.php" accesskey="b" target="{mf}">{Search}</a></font></div></td></tr>      //My original link to the search page
    <tr><td><div align="center"><font color="#FFFFFF"><a href="pointupdate.php" accesskey="Z" target="{mf}">{Update Points}</a></font></div></td></tr
    I can add as many pages as I want using this method, its quick and its easy!
    All you have to do is change "pointupdate.php" to the page you want; the caption "{Update Points}" to whatever you want again.
    You also have the option of not using the
    PHP Code:
    accesskey="Z" 
    line as it is not needed; merley a shortcut!
    Now; save the template!

    If I wanted it to be so admin only can update the points / rank, in the OpenGame folder (where the templates (.tpl) are located) I open the admin folder and again edit the left_menu.tpl file using the example above.
    And again save.

    If this hasnt been explained well i'm sorry i'm so damn tired ;]

  2. #2
    Lord of ragezone
    Rank
    Member +
    Join Date
    Sep 2007
    Location
    127.0.0
    Posts
    634
    Liked
    4

    Re: [TUT] Fixing Rank / Point Update.

    when i click on any of them i get page not found?>

  3. #3
    I wanna be a ROSE GM!!
    Rank
    Member +
    Join Date
    Sep 2006
    Location
    England
    Posts
    978
    Liked
    0

    Re: [TUT] Fixing Rank / Point Update.

    mad the page should be in ur directry called Rankupdate.php..

  4. #4
    Ima Xplicit Gamer
    Rank
    Member +
    Join Date
    Feb 2007
    Location
    London - England
    Posts
    1,083
    Liked
    0

    Re: [TUT] Fixing Rank / Point Update.

    Anyone found this useful...?
    *Kinda spam post, but I'm just curious to see the feedback ;]*

  5. #5
    Infraction Banned
    Rank
    Member +
    Join Date
    Nov 2006
    Location
    Canada
    Posts
    1,087
    Liked
    1

    Re: [TUT] Fixing Rank / Point Update.

    works mate

  6. #6
    Member
    Rank
    Member
    Join Date
    Apr 2007
    Posts
    80
    Liked
    0

    Re: [TUT] Fixing Rank / Point Update.

    Kind of handy for the people that don't know how to setup a cronjob :happy:
    I've deliberately left it out because if you got like 2000 members or so and everyone starts clicking on it at the samen time your database isn't going to like that .

    I've just set-up a cronjob that runs everyother minute.

  7. #7
    Ima Xplicit Gamer
    Rank
    Member +
    Join Date
    Feb 2007
    Location
    London - England
    Posts
    1,083
    Liked
    0

    Re: [TUT] Fixing Rank / Point Update.

    Quote Originally Posted by jimmy87 View Post
    Kind of handy for the people that don't know how to setup a cronjob :happy:
    I've deliberately left it out because if you got like 2000 members or so and everyone starts clicking on it at the samen time your database isn't going to like that .

    I've just set-up a cronjob that runs everyother minute.
    Yah, like you said handy for those that dont :winky:
    Like I said tho' you can just keep it for the admins use xD

    Thread closed as these files are now hardly used.
    Last edited by :.:Bob1:.:; 23-06-08 at 06:56 PM.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •