This is indeed the neatest Trivia script I used on my Eggdrop bot.
However, I am having some difficulty setting up the bogus HTML script.
Ok, the trivia script is running well, however when I visit my html page
http://somehost.com/~user/trivia
It shows in this format:
Trivia Statistics for %c on %n
# Play 24/7 Trivia with %b
# Our Trivia Database Contains %q Standard Questions & %k Kaos Questions.
# Player Scores last updated %f%m/%d/%Y at %I:%M %p%i
Which means its my end-problem, but I am not sure where or what I am doing wrong.
I uploaded the HTML files to "../public_html/trivia" and moved t.2.html.tcl to "../eggdrop/scripts":
Here is my .config file:
Code: Select all
## Turn this page maker on or off ##
set thtm(html) "1" ;# make html pages ?? (0=no | 1=yes)
## Set the directory where the updated html pages go!! ##
set thtm(output) "/home/u/user/eggdrop/scripts/" ;# route from the eggdrop exe folder
## Set the IRC Network ##
set thtm(network) "OFTC" ;# irc network the bot is running on #
## Make an html index page, with links to all the other stats pages ?? ##
set thtm(shoin) "" ;# make an updated index page ?? (0=no | 1=yes) #
set thtm(index) "1" ;# name the output index page this ("" = index.html) #
# Note: Requires Template File: index.html #
#### Active Stats Pages: Recent top players for today, this week, this month, & ever ####
### if you are manually uploading these pages to a web server, set ###
### this to make an updated top players ever page once or twice a day. ###
# update active page stats this often. (pages only made if stats change:) #
# 1= make active pages once a day (at midnight) #
# 2= make active pages twice a day (noon & midnight) #
# 3+ = make updated active pages every "x" minutes (any number 3 or more) #
set thtm(activ) "1"
# show a top players ever page ?? (0=no ever.html page) #
set thtm(shoev) "20" ;# number of players to show for top players ever #
# Note: Requires Template File: ever.html #
# show a top players this month page ?? (0=no tmonth.html page) #
set thtm(shotmo) "50" ;# number of players to show for top players this month #
# Note: Requires Template File: active.html #
# show a top players this week page ?? (0=no tweek.html page) #
set thtm(shotwe) "50" ;# number of players to show for top players this week #
# Note: Requires Template File: active.html #
# show a top players today page ?? (0=no today.html page) #
set thtm(shotda) "50" ;# number of players to show for top players today #
# Note: All today stats disabled if thtm(activ) above is set to "1" or "2" #
# Note: Requires Template File: active.html #
#### History Stats Pages: stats for last 7 days, last 4 weeks and last 4 months ####
### these pages are updated just after midnight as required. ###
# show a top players monthly history page ?? (0=no month.html page) #
set thtm(shomo) "4" ;# show monthly history page ?? (0=no | 1+ = number of months to show) #
set thtm(musrs) "30" ;# number of players to show for each month #
# Note: Requires Template File: history.html #
# show a top players weekly history page ?? (0=no week.html page) #
set thtm(showe) "4" ;# show weekly history page ?? (0=no | 1+ = number of weeks to show) #
set thtm(wusrs) "30" ;# number of players to show for each week #
# Note: Requires Template File: history.html #
# show a top players daily history page ?? (0=no day.html page) #
set thtm(shoda) "7" ;# show daily history page ?? (0=no | 1+ = number of days to show) #
set thtm(dusrs) "30" ;# number of players to show for each day #
# Note: Requires Template File: history.html #
#### Extended Stats Pages: stats for any number of past days, weeks and months ####
### Make a more complet stats page, one day, week or month per html page. ###
### Can keep and link any number of extended history pages! ###
### Example: thtm(xda) "30" (keep 30 daily history pages) ###
### Example: thtm(xwe) "52 50" (keep 52 weekly pages, each with 50 players) ###
### Example: thtm(xmo) "12 *" (keep 12 monthly pages, and show all players) ###
# show extended daily history pages ?? (0=no extended daily pages) #
set thtm(xda) "30 *"
# Note: Requires Template File: xhistory.html #
# show extended weekly history pages ?? (0=no extended weekly pages) #
set thtm(xwe) "52 *"
# Note: Requires Template File: xhistory.html #
# show extended monthly history pages ?? (0=no extended monthly pages) #
set thtm(xmo) "12 *"
# Note: Requires Template File: xhistory.html #
##########################################################################
#### BogusHTML Advanced Settings #### BogusHTML Advanced Settings ####
##########################################################################
#### Advanced Settings (for all stats tables on all pages) ####
# minimum points to show in all stats # 0=all with any points # 1+= all with x+ points #
set thtm(shomin) "0"
# maximum number of players to show on any 'show all players' stats
# must be a number 10 or more. examples: 50, 30, 75 etc.
set thtm(shomax) "20"
# apply classes to the column heads <th> tags ?? #
# will use the classes: th1 th2 th3 ...etc.
# 0 = no
# 1 or more = number of col heads to assign classes to (ex. 2 = first 2 col heads)
set thtm(stych) "0"
# apply classes to the stats data <td> tags ?? #
# will use the classes: td1 td2 td3 ...etc.
set thtm(stytd) "1"
############################################################################
#### !! END SETTINGS !! #### !! END SETTINGS !! #### !! END SETTINGS !! ####
############################################################################
#### !! END SETTINGS !! #### !! END SETTINGS !! #### !! END SETTINGS !! ####
############################################################################
I would certainly appreciate if someone could take time out to help me. Thank you.