when i click on any of them i get page not found?>
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 ...
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...:
Thats the search link.PHP Code:<tr><td><div align="center"><font color="#FFFFFF"><a href="search.php" accesskey="b" target="{mf}">{Search}</a></font></div></td></tr>
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:
I can add as many pages as I want using this method, its quick and its easy!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>
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 theline as it is not needed; merley a shortcut!PHP Code:accesskey="Z"
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 ;]
when i click on any of them i get page not found?>
mad the page should be in ur directry called Rankupdate.php..
Anyone found this useful...?
*Kinda spam post, but I'm just curious to see the feedback ;]*
works mate
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.