Archive > 0.4.x Custom/Unofficial Modules

Guides Module

(1/5) > >>

Diablo:
Would anyone have a updated guides module for .4.1 bebot. I have old version but seems once you change access lvl it no longer shows txt files. Thanks

Sabkor:
I had just thought about doing this last night, so since someone else wanted it, I did it today ;)

I changed the way it works a bit though:
1) Now, if you want to modify the main menu, you don't have to modify the .PHP file or restart the bot. The main menu is stored in the guides folder in a file called guide.lst.
2) All guides are now stored in a folder under the main BeBot folder called guides. (for example: C:\BeBot\guides)
3) Guides are called up by the filename, not a number. So, !guide blah would read in blah.txt from the guides folder and show it to the user. For security, only a-z and 0-9 are allowed in the filename (preventing people from directory hopping to grab other text files on your system).
4) The !guide view <blah> command is shortened to !guide <blah>.

As always, let me know if there are problems.

22-Aug-2007: Fixed security problem noted by guild-mates.

Diablo:
Thanks a bunch. One question is the guides.lst made by the php file or where does it come from ?

Sabkor:
You can create it however you like (you can add your own links, etc to it). If you want just the default that was in there from before, copy and paste the menu lines from the old .php file that you have into that file and remove the $content .= "  and ";   portions of the lines. (If you want, you can PM me the old guides.php file you are using here, and I can send you back the guides.lst file that you will need)

Diablo:
Ok got the .lst file made and it works but when click on the links it says guide not found. The txt files i have are named guideagility.txt If i do guide guideagility it brings it up ok just wont find file if using the link in guides.

Navigation

[0] Message Index

[#] Next page

Go to full version