Games not played (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: Games not played
|
|
|
|
Games not played 4 Months, 2 Weeks ago
|
Karma: 3
|
|
I don't know if anyone has ever thought about this but having a folder which would show you all the games in which you have not set a high score. It would be enable players to quickly find any cames they haven't played in order to increase their ranking. I know when you are close to having played all the games on a site it is hard to find the couple you have not played.
|
|
|
|
|
|
|
In His Service
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 4 Months, 2 Weeks ago
|
Karma: 0
|
Hi,
I have this option on my old site with joomlaflashgames.
you will find below the code:
| Code: |
function opengames() {
global $database, $my;
echo"<font size='3'><b>Liste des jeux auxquels vous n'avez pas encore sauvegardé de score</b></font><br><br>";
//$database->setQuery( "SELECT * FROM #__joomlaflashgames WHERE id NOT IN ( SELECT gid FROM jos_joomlaflashgames_scores WHERE uname='$my->id' ) and scoring_structure <>'0' and published='1' order by title" )
$database->setQuery( "SELECT * FROM #__joomlaflashgames WHERE id NOT IN ( SELECT gid FROM #__joomlaflashgames_scores WHERE uname='$my->id' ) and scoring_structure <>'0' and published='1' order by title" );
$wtscores = $database->loadObjectList();
foreach ($wtscores as $wtscore) {
?>
<table>
<tbody><tr>
<td align="left" width="52">
<a href="index.php?option=com_joomlaflashgames&task=view&id=<?php echo $wtscore->id; ?>">
<img src="components/com_joomlaflashgames/games/<?php echo $wtscore->imagefile; ?>" border="0" height="50" width="50"></a></td>
<td align="left"> <a href="index.php?option=com_joomlaflashgames&task=view&id=<?php echo $wtscore->id; ?>"><?php echo $wtscore->title; ?></a></td>
</tr>
</table>
|
and i have a link ( index.php?option=com_joomlaflashgames&task=opengames ) in "user menu" to see this function.
I hope it will be help you. 
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 4 Months, 2 Weeks ago
|
Karma: 89
|
|
Cool idea, thanks for posting guys
|
|
|
|
|
|
|
Please DO NOT send support requests via PM or email. Instead, please post a question in the forums so everyone can benefit. Yes, this means you. No, your problem is not an exception.
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 4 Months, 2 Weeks ago
|
Karma: 18
|
Good Idea.
I was modify upper code for PuArcade and I post it for You  .
To function WriteGamesTable in cls.puarcade.php file add:
| Code: |
}elseif ($fid == 9990) {
$query = "SELECT id,numplayed,description,imagename,published,gamename,title,reverse_score,scoring,window,height,width,contentratingid,folderid FROM #__puarcade_games WHERE id NOT IN ( SELECT gameid FROM #__puarcade WHERE userid='$my->id' ) and scoring <> '0' and published='1' order by title ASC ".$limit;
|
To function ShowGames in puarcade.html.php file add:
| Code: |
elseif($fid == 9990){
$pageheading = "Games without Your scores";
}
|
To function processShowGameSelections in class.puarcade.php file add:
| Code: |
} elseif ($fid == 9990){
if ($showpathway==1){
echo "<div align=\"left\"><a href=\"".sefRelToAbs('index.php?option=com_puarcade&Itemid='.$Itemid)."\"> ";
echo stripslashes($title)." </a><img src=\"images/M_images/arrow.png\"/>";
echo "<a href=\"".sefRelToAbs('index.php?option=com_puarcade&fid=9990&Itemid='.$Itemid)."\">Games without Your scores</a>";
echo "<br/><br/></div>";
}
$query = "SELECT count(*) from #__puarcade_games WHERE id NOT IN ( SELECT gameid FROM #__puarcade WHERE userid='$my->id' ) and scoring <> '0' and published='1'";
$database->setQuery( $query );
$count = $database->loadRow();
include_once( "includes/pageNavigation.php" );
$pageNav = new mosPageNav( $count[0], $limitstart, $limit );
puarcade_html::WriteSpecialFolderLinks($Itemid);
puarcade_html::ShowGames($Itemid,$pageNav,$flat,$fid);
|
and link for this You can add where You wish
| Code: |
echo "<a href=".sefRelToAbs("index.php?option=com_puarcade&Itemid=".$Itemid."&fid=9990").">Show Games where You have not Your scores</a>";
|
|
|
|
|
|
|
|
Last Edit: 2008/07/17 17:23 By Vanama.
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 4 Months, 2 Weeks ago
|
Karma: 18
|
|
Ups. Pagination not work. If I click for next page it show PuArcade folders. On the next pages "fid" is missing. I was try all, but I have not fixed this. Please help!
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
xjc (User)
Player
Posts: 74
|
|
Re:Games not played 4 Months, 1 Week ago
|
Karma: 0
|
|
has this been tested in the svn 346? I added it but it doesn't work at all.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 4 Months, 1 Week ago
|
Karma: 18
|
|
I have installed SVN 338, but very modified.
What did it? Something, nothing or blank screen?
|
|
|
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
xjc (User)
Player
Posts: 74
|
|
Re:Games not played 4 Months, 1 Week ago
|
Karma: 0
|
|
it displays the menu and the footer and that's it.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
xjc (User)
Player
Posts: 74
|
|
Re:Games not played 4 Months, 1 Week ago
|
Karma: 0
|
so if I do a search for FID9997; I see roughly the same code that you're using, if I duplicate this function exactly but change the fid number to say 9995 and change the db query string, it doesn't work? Does the popular link have additional code that is needed for it to function?
If I change the db query string for 9997 it works great as an "unpopular games" link but I'd rather duplicate it not replace it.
I so wish I knew php coding well 
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 3 Months ago
|
Karma: 3
|
|
Thanks for these ideas. When I get some time I'll try to make this a CB tab. I think that is the best place to put personalized info for my site and probably others. Thanks again for the code I could have never figured out.
|
|
|
|
|
|
|
In His Service
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Games not played 2 Weeks, 1 Day ago
|
Karma: 0
|
|
Up,
Have you found a solution for this request please,
Thansk in advance
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|