No account yet?
 
Pragmatic Utopia
Welcome, Guest
Please or Register.    Lost Password?
Preferred PUArcade Web Host:
Re:Games not played (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Games not played
#7891
jcarnley (User)
I'm not web design expert but I am a thinker
Player
Posts: 72
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Keystone Christian Church Location: Export, PA Birthdate: 1974-12-07
Games not played 1 Month 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.
 
Report to moderator   Logged Logged  
 
In His Service
  The administrator has disabled public write access.
#7907
adonis (User)
Newb Sauce
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
Re:Games not played 1 Month 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">&nbsp;<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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7913
pragma (Admin)
Admin
Posts: 1913
graph
User Online Now Click here to see the profile of this user
Gender: Male Pragmatic Utopia PUArcade
Re:Games not played 1 Month ago Karma: 82  
Cool idea, thanks for posting guys
 
Report to moderator   Logged Logged  
 
Please do not send support requests via PM.
  The administrator has disabled public write access.
#7927
Vanama (User)
Geek
Posts: 250
graphgraph
User Offline Click here to see the profile of this user
Zábava-online.cz
Re:Games not played 1 Month ago Karma: 17  
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>";
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/17 17:23 By Vanama.
  The administrator has disabled public write access.
#7928
Vanama (User)
Geek
Posts: 250
graphgraph
User Offline Click here to see the profile of this user
Zábava-online.cz
Re:Games not played 1 Month ago Karma: 17  
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!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7976
xjc (User)
Player
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
Re:Games not played 4 Weeks ago Karma: 0  
has this been tested in the svn 346? I added it but it doesn't work at all.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#7987
Vanama (User)
Geek
Posts: 250
graphgraph
User Offline Click here to see the profile of this user
Zábava-online.cz
Re:Games not played 4 Weeks ago Karma: 17  
I have installed SVN 338, but very modified.

What did it? Something, nothing or blank screen?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8003
xjc (User)
Player
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
Re:Games not played 3 Weeks, 6 Days ago Karma: 0  
it displays the menu and the footer and that's it.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#8024
xjc (User)
Player
Posts: 74
graphgraph
User Offline Click here to see the profile of this user
Re:Games not played 3 Weeks, 5 Days 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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

My Amazon.com Wish List