Previous Thread
Next Thread
Print Thread
Rating: 5
Page 6 of 12 1 2 4 5 6 7 8 11 12
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
I can't even begin to install this mod. I bring up instarcade.php and get this:

Warning: ob_start(): output handler 'ob_gzhandler' cannot be used twice in /home/laondal/public_html/foros/ubbt.inc.php on line 141

Fatal error: Cannot redeclare class mailer in /home/laondal/public_html/foros/ubbt.inc.php on line 223

I've fixed the first warning by disabling zlib compression, but hte one with the fatal error, I have no idea what to do.

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmm weird error.. I am gonna be updating this soon with version 1.7. The mailer error is fixed and is discussed somwhere in this thread... the ob_start is not part of this mod as far as I know but I will check..

Joined: May 2004
Posts: 43
User
User
Offline
Joined: May 2004
Posts: 43
One thing I would like to see is the ability to uninstall games.. or is that there already! I had to change over one game, as the screen was too small, and the hi-score isn't updating on the main screen.

Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]SG said:
I've just installed this for v6.5, but when I click Admin Settings, I get this error:

[]Fatal error: Cannot redeclare class mailer in /home/winnie/public_html/ubbthreads/ubbt.inc.php on line 223[/]

Anyone care to shed light on this? [/]

How does this get fixed? I get this error on instarcade.php, but this is the only reference to this error in the whole thread other than mine.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
just comment out the mailer = new mailer line

Sponsored Links
Joined: Jun 2002
Posts: 670
Code Monkey
Code Monkey
Offline
Joined: Jun 2002
Posts: 670
[]scroungr said:
just comment out the mailer = new mailer line [/]

If I comment out that line if ubbt.inc.php, won't that cause a problem with my ability to send emails to the members? What would the consequences of that be?

Joined: May 2001
Posts: 550
Code Monkey
Code Monkey
Offline
Joined: May 2001
Posts: 550
I think you should just comment it out in the affected script, not in the ubbt.inc.php .

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
exactly Anno.. do it in arcade.php NOT ubbt.inc.php!

Joined: Jun 2004
Posts: 2
Lurker
Lurker
Offline
Joined: Jun 2004
Posts: 2
to download your extra games?

Any help is appreciated!

Joined: Oct 2002
Posts: 24
Newbie
Newbie
Offline
Joined: Oct 2002
Posts: 24
I wanted there to be a trophy icon next to the nick of any user who had a high score in the arcade. I made these changes:

showflat.php

Find:
[]
// ------------------------------------------------
// Keep the current thread number for page linking
$pagelinker = $current;
[/]

Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]

Find this:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username = "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />$Username";
}
}
[/]

Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?

$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";

while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}

if ($trophyalt){
$Username .= "<a href="{$config['phpurl']}/arcade/arcade.php?do=newchallenge&userid=$usernum"><img border="0" src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" /></a>";
}
[/]

showthreaded.php

Find this:
[]
$jumpbox = $html -> jump_box($Cat,$groupquery,$Board);
[/]

Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]

Find:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username .= "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />";
}
}
[/]

Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?

$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";

while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}

if ($trophyalt){
$Username .= "<img src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" />";
}
[/]

Sponsored Links
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
[]camilla1971 said:
to download your extra games?

Any help is appreciated! [/]

any game that is converted using the v3arcade way works. Any game created using the ibproarcade doesn't so basically visit www.v3arcade.com

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
[]Ythan said:
I wanted there to be a trophy icon next to the nick of any user who had a high score in the arcade. I made these changes:

showflat.php

Find:
[]
// ------------------------------------------------
// Keep the current thread number for page linking
$pagelinker = $current;
[/]

Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]

Find this:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username = "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />$Username";
}
}
[/]

Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?

$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";

while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}

if ($trophyalt){
$Username .= "<a href="{$config['phpurl']}/arcade/arcade.php?do=newchallenge&userid=$usernum"><img border="0" src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" /></a>";
}
[/]

showthreaded.php

Find this:
[]
$jumpbox = $html -> jump_box($Cat,$groupquery,$Board);
[/]

Under this add:
[]
// ---------------------------------
// Get the top scores for the arcade
$query = "
SELECT title,
SUBSTRING(MAX(CONCAT(LPAD(score,6,'0'),userid)), 7) AS userid,
0.00 + LEFT(MAX(CONCAT(LPAD(score,6,'0'),userid)), 6) AS score
FROM w3t_gamesessions, w3t_games
WHERE (w3t_gamesessions.gamename = w3t_games.shortname)
GROUP BY gamename;
";
$sth = $dbh -> do_query($query,__LINE__,__FILE__);
while (list($title,$userid,$score) = $dbh -> fetch_array($sth)) {
$topscores[$title] = $userid;
}
$dbh -> finish_sth($sth);
[/]

Find:
[]
// ---------------------
// Is it their birthday?
if ($showbday) {
if (preg_match("/^$month\/$day\//",$bday)) {
$Username .= "<img src="{$config['images']}/birthday.gif" alt="{$ubbt_lang['HAPPYBDAY']}" title="{$ubbt_lang['HAPPYBDAY']}" />";
}
}
[/]

Under this add:
[]
// ----------------------------------------
// Do they have a high score in the arcade?

$temparray = array_keys($topscores, $usernum);
asort($temparray);
$trophyalt = "";

while(list($key,$game) = each($temparray)) {
if ($trophyalt){
$trophyalt .= ", ";
}
$trophyalt .= "$game";
}

if ($trophyalt){
$Username .= "<img src="{$config['phpurl']}/arcade/images/trophy.gif" alt="Arcade Champion: $trophyalt" title="Arcade Champion: $trophyalt" />";
}
[/] [/]

good stuff

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
welp cut all queries down from around 400 to 42 also changed a few things.. still beta testing it though but heres a link for those wishing to see

Link to CT Arcade 1.7

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Looking sharp scroungr.

FYI, there's a typo in the welcome area:

[]
your mouthe is.!
[/]


Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Thanx Zack

Joined: Oct 2002
Posts: 24
Newbie
Newbie
Offline
Joined: Oct 2002
Posts: 24
Wow! Looks completely awesome. I can't wait to try it out!

-Y

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Also made it so now in order to play you have to have X number of posts in my case I set it to one

Joined: Oct 2002
Posts: 24
Newbie
Newbie
Offline
Joined: Oct 2002
Posts: 24
Any developments on the new version? I can hardly stand the suspense!

-Y

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Hey Scroungr I didnt see anything in the instructions about what to put in the ubbt_unregisterednav.tmpl and ubbt_registerednav.tmpl files to make the Link appear in the Title Bar. I know its pretty basic and I am sure I will get it figured before you get the chance to reply but at 4 am on no sleep I am a little slow

Last edited by ChAoS; 10/21/2004 4:49 AM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
something like

·
<a href = "$phpurl/arcade/arcade.php" $target>ARCADE</a> would probably be ok ChAos depending on your site

Nope still working on da Brackets...

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
When I upload mods and hacks like this do I need to do it in ASCII like the instructions for UBBTHreads (Unix) or will Binary work?

Joined: Sep 2003
Posts: 803
Coder
Coder
Offline
Joined: Sep 2003
Posts: 803
I use smart ftp pro and set it to auto. It has never failed me yet.

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Since you are familiar with my Host's funky permission settings do you have any suggestions on how I can add the Flash Games manually? It wont let me edit them with teh current settings of 755 and 644.As soon as I make the directories writeable by anyone other than the owner I get the 500 Error.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yeah
1) tell your host that his server is set up STRANNGEEE.. AND you NEED ability to set directories to 777
2) If he wont change it so that you can set directories to 777 without getting a 500 error I would probably look for another host...
3) when I upload 1.7 you won't be able to use it at all because it needs to write to several tables at once hence the following will only work for this version

in your control panel or phpMyAdmin

do the following SQL for each game


INSERT INTO `w3t_games` VALUES ('<shortname>', '', '<title>', '<description>', '<swf>', '<height>', '<width>', '<gif>', 29, '', '')";

shortname is the internal name of the game for scoring
title is what ya wanna call the game
description is the description of the game
gif is the name of the shortname.gif file
swf is the name of the shortname.swf file
height and width should be determined by hunt and peck..

234234 #278777 10/22/2004 12:54 AM
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Here is the reply from my host after I sent him a link to the UBBThreads Permissions/Install page. Since you are the expert maybe you can explain why this setup isn't working for me and I will send him here. This Thread may need to be moved to another section

Michael:

It makes no sense that your board would require that other website users (e.g., other clans on our webserver) be allowed write access to your files. When your scripts are executed, they are executed as _your_ user, not as someone else, so they have full access as long as you enable read/write/execute permissions for the _owner_.

You should never need or want to give other clans on the webserver access to your files, for security reasons. You should also be careful not to give global read access to any files that you do not want to be readable by other clans (for instance, configuration files that might have passwords in them).

In other words, your board will work just fine with 755 access to the directories and 700 access to all the scripts (php, cgi, and pl). Their install guide would appear to have been made for much less-secure (and improperly set up) systems, or single-user systems, where other rules might apply.

Here would be my recommendations.

* Any time it tells you to make a directory "777", make it "755", unilaterally.
* Any time it tells you to make a file or directory "666", make it "644", unilaterally.
* Additionally, chmod all files with a php, cgi, or pl extention to "700". If it uses cfg files, you should probably do it to those as well.

Those will work, and they will be much better in terms of security than what the install guide tells you.

-John

Last edited by ChAoS; 10/22/2004 12:57 AM.
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
INSERT INTO `w3t_games` VALUES ('counterstrike', '', 'Counter-Strike', 'A Mini-Me sized version of our favorite server game', 'counterstrike', '500', '375', 'counterstrike', 29, '', '')";

Produces

Script: /usr/www/efs/ubbthreads/admin/dodbcommand.php
Line#: 107
SQL Error: You have an error in your SQL syntax near '"; ' at line 1
SQL Error #: 1064
Query: INSERT INTO `w3t_games` VALUES ('counterstrike', '', 'Counter-Strike', 'A Mini-Me sized version of our favorite server game', 'counterstrike', '500>', '375', 'counterstrike', 29, '', '')";

What did I miss?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
try this

INSERT INTO `w3t_games` VALUES ('counterstrike', 7, 'Counter-Strike', 'A Mini-Me sized version of our favorite server game', 'counterstrike.swf', '500', '375', 'counterstrike.gif', 29,,)";

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
I went ahead and used PHPMyAdmin's insert function-how cool is that tool? I had never used it before much until now. Boy was I missing out.

On a side note- Is there a way to make certain games available only to certain groups? Say subscription members? Or maybe a section available only to members who are 18 and older if ya know what I mean.

I would still like to have several games available to the general populace but I would like a bonus game roster available to my subscription members.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
not uintil the next version 1.7 will have all that and possibly more

Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
Well quit yakking here and go finish 1.7 scroungr!

Your fans await the release.

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Did you have any input on that last post about my permissions issue?
Another thing Im a little peeved about is that they are unwilling to allow shell access or create a crontask for me so all my subscription features will not work.

Last edited by ChAoS; 10/22/2004 7:34 PM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yeah
1) tell your host that his server is set up STRANNGEEE.. AND you NEED ability to set directories to 777
2) If he wont change it so that you can set directories to 777 without getting a 500 error I would probably look for another host...
3) when I upload 1.7 you won't be able to use it at all because it needs to write to several tables at once hence the following will only work for this version


yeah thats a CS server right? That they have the game and the forums on the same server? That might be why they are anal about security. Yeah on my current server I can get shell if I want but I rarely find the need to do it since it has a front end.. It uses CPANEL.. does that server your on have a customer panel like ENSIM? PLESK? CPANEL? WEBMIN?

Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
It has some sort of control panel but I am not sure what the make of it is. As for the CS server I don't think its on the same machine as the webserver as they have seperate IP addy's

*edit*
emeraldforestseattle.nuclearfallout.net (Web Server) tracert looks like its in L.A.

efs.nuclearfallout.net (CS Server) Thats at the Westin Hotel in Seattle at InterNap

Last edited by ChAoS; 10/22/2004 8:44 PM.
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
so then As I said they shouldn;t have had any issue allowing a 777 directory on the server.. if they knew how to protect it.. When your time for renewwal comes up I would look for a better host offering what ya want for what ya can afford...

Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
I had told Zarzal that I would post a link to all 5 Yeti games (no #6 on mine yet) and their "random" files necessary to get them working properly.

Here you go

That's the 5 I have, they should all function and save games.

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
insert and its works perfect. Thanks. Strange games

landyphil #278789 10/23/2004 2:55 PM
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
Random/configurable welcome messages


234234 #278790 10/23/2004 4:12 PM
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
I sent my host this

Do any of your other clients allow subscription and topic notifications from their Forums? How do they perform this without a cronjob?

and he replied,

Michael:

Many forums packages have it built-in. When someone replies to the post, the forum checks to see if anyone needs to be notified of it, and sends out the email if necessary, for instance.

I've never had anyone else ask for a crontab before.

John

am I correct in understanding that UBBThreads needs a Cronjob to do these functions?

Sorry if I have strayed a bit off the Arcade topic

barbiro #278791 10/23/2004 8:43 PM
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
I would ask someone who allows subcriptions to verify but yes as far as I know it requires a cronjob.. I would start looking for a better host for my forums.. the CS server well that I would keep with them if they are the ones with your CS host.

234234 #278792 10/23/2004 10:08 PM
Joined: Nov 2002
Posts: 554
Code Monkey
Code Monkey
Offline
Joined: Nov 2002
Posts: 554
ChAoS
King of the Forest
Arcade XP: 0 Scores
vs
OdDmor
Perma-n00b
Arcade XP: 24 Scores

what does this mean? I noticed it says the same thing no matter who I challenge,including you when you were on my board a minute ago,yours said 24 and mine was 0

Page 6 of 12 1 2 4 5 6 7 8 11 12

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)