No account yet?
 

Subscriptions

ImageWhen you sign up as a premium subscriber, you get more than access to a host of fantastic features. You become a member of a flourishing community that continuously improves the very projects that run your website. Why not sign up today?

Subscriber Benefits

  • Subscriber only addons and plugins!
  • Latest beta code and SVN builds!
  • Access new versions before anyone else!
  • Premium Priority Support!
  • User Manuals for our components!
Read On!
Pragmatic Utopia
Welcome, Guest
Please Login or Register.    Lost Password?
Games not played (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Games not played
#7891
jcarnley (User)
I'm not web design expert but I am a thinker
Gamer
Posts: 81
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 5 Months, 3 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.
 
Logged Logged  
 
In His Service
  The administrator has disabled public write access.


#7907
adonis (User)
User
Posts: 36
graphgraph
User Online Now Click here to see the profile of this user
Re:Games not played 5 Months, 3 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">&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.
 
Logged Logged  
  The administrator has disabled public write access.
#7913
pragma (Admin)
Moderator
Posts: 2544
graph
User Online Now Click here to see the profile of this user
Gender: Male Pragmatic Utopia PUArcade
Re:Games not played 5 Months, 3 Weeks ago Karma: 89  
Cool idea, thanks for posting guys
 
Logged Logged  
 
Please DO NOT send support requests via PM or email.
No, I do not want to log into your website to fix your problem for you.

Instead, please post a question in the forums so everyone can benefit.
  The administrator has disabled public write access.
#7927
Vanama (User)
Geek
Posts: 274
graphgraph
User Offline Click here to see the profile of this user
Zábava-online.cz
Re:Games not played 5 Months, 3 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>";
 
Logged Logged  
 
Last Edit: 2008/07/17 17:23 By Vanama.
 
  The administrator has disabled public write access.
#7928
Vanama (User)
Geek
Posts: 274
graphgraph
User Offline Click here to see the profile of this user
Zábava-online.cz
Re:Games not played 5 Months, 3 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!
 
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 5 Months, 2 Weeks ago Karma: 0  
has this been tested in the svn 346? I added it but it doesn't work at all.
 
Logged Logged  
  The administrator has disabled public write access.
#7987
Vanama (User)
Geek
Posts: 274
graphgraph
User Offline Click here to see the profile of this user
Zábava-online.cz
Re:Games not played 5 Months, 2 Weeks ago Karma: 18  
I have installed SVN 338, but very modified.

What did it? Something, nothing or blank screen?
 
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 5 Months, 2 Weeks ago Karma: 0  
it displays the menu and the footer and that's it.
 
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 5 Months, 2 Weeks 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
 
Logged Logged  
  The administrator has disabled public write access.
#8540
jcarnley (User)
I'm not web design expert but I am a thinker
Gamer
Posts: 81
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Keystone Christian Church Location: Export, PA Birthdate: 1974-12-07
Re:Games not played 4 Months, 1 Week 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.
 
Logged Logged  
 
In His Service
  The administrator has disabled public write access.
#10691
adonis (User)
User
Posts: 36
graphgraph
User Online Now Click here to see the profile of this user
Re:Games not played 1 Month, 3 Weeks ago Karma: 0  
Up,
Have you found a solution for this request please,
Thansk in advance
 
Logged Logged  
  The administrator has disabled public write access.
#11297
adonis (User)
User
Posts: 36
graphgraph
User Online Now Click here to see the profile of this user
Re:Games not played 3 Weeks, 1 Day ago Karma: 0  
Hi,
Nobody is interested by this function.
Thanks in advance for your help
 
Logged Logged  
  The administrator has disabled public write access.
#11585
Tinker (User)
Gamer
Posts: 140
graphgraph
User Online Now Click here to see the profile of this user
Re:Games not played 1 Week ago Karma: 12  
This code works in the newest SVN: (watch when pasting as board tends to fuss up the code)


in com_puarcade/cls.puarcade.php
find:
Code:

 } elseif ($fid == 9997) {


before it add:
Code:

}elseif ($fid == 9990) {
    //This folder shows games not yet played by player
   $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; 



find:
Code:

//If we are in newest or popular games folders, check each games permissions
            if ($fid == 9997 || $fid == 9998) {


replace with:
Code:

//If we are in newest or popular games folders, check each games permissions
            if ($fid == 9997 || $fid == 9998 || $fid == 9990) {



in com_puarcade/includes/core/class.puarcade.php

find:
[code/*
This means we are looking in the Popular Games folder.
*/[/code]

before add:
Code:

/* * This means we are looking at Games not played by Player. */ 
} 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); 



in com_puarcade/puarcade.html.php
find:
Code:

if (($fid != 9998) && ($fid != 9997)) {


replace with:
Code:

if (($fid != 9998) && ($fid != 9997) && ($fid != 9990)) {


find:
Code:

 } elseif($fid == 9997) {
                $pageheading = PUA_POPULAR_GAMES;



add after:
Code:

} elseif($fid == 9990) {
                $pageheading = "Games You Haven't Played Yet";



optionally (I've just made a menu link instead)
find:
Code:

<div class="pua_header_box">
            <img src="<?php echo $imagepath; ?>smallfolder.png" alt="" />
            <a href="<?php echo sefRelToAbs("index.php?option=com_puarcade&amp;Itemid=".$Itemid);?>">
            <?php echo PUA_ALL; ?></a>
        </div>


after add:
Code:

<div class="pua_header_box">
            <img src="<?php echo $imagepath; ?>smallfolder.png" alt="" />
            <a href="<?php echo sefRelToAbs("index.php?option=com_puarcade&amp;Itemid=".$Itemid."&amp;fid=9990");?>">
            <?php echo "Game not yet Played"; ?></a>
        </div>

 
Logged Logged  
 
Last Edit: 2008/12/31 05:53 By Tinker. Reason: note on pasting code
  The administrator has disabled public write access.
#11601
adroussel (User)
Modder
Posts: 339
graphgraph
User Offline Click here to see the profile of this user
Re:Games not played 6 Days, 3 Hours ago Karma: 6  
great!

This should be added to the svn core
Some of my users asked for this cool feature!
thanks
 
Logged Logged  
  The administrator has disabled public write access.
Go to top

My Amazon.com Wish List