Talk Arcades: Forum for Arcade Webmasters    

  Talk Arcades > Arcades > Scripts & Software > phpArcadeScript

Welcome to Talk Arcades, the premier forum for arcade webmasters.

You are currently viewing our boards as a guest. By joining our community you will be able to make posts, communicate privately with other arcade webmasters and participate in our Live Marketplace. Registration is easy, so please join us today!

Reply
 
LinkBack Thread Tools Display Modes
Old 06-17-2008, 09:03 AM   #1 (permalink)
Ryan1212
Preferred Member
 
Join Date: Aug 2007
Posts: 160
Ryan1212 is on a distinguished road
Send a message via AIM to Ryan1212 Send a message via MSN to Ryan1212


Default can anyone mod this mod for me?

This mod was made by rod from the phparcadescript forums a few weeks ago and I'd like to see if i can get it configured in a different way...no response on that thread for 2 weeks now so i figured i'd post it here and see if anyone can either use this mod or help me out by editing it up a bit since its a free one.

Its a mod that displays all the games in abc order on one page. I would basically like to see this mod changed up a bit to list the games by abc order under their category, most popular, newest, etc, with a drop down menu or something to change between the different variations of the page. I can pay if it is required.

Quote:
Here is a similar mod I had put together

See the demo here . . .

http://www.bigdogarcade.com/index.php?action=gamelist

Code:
<div class="fullcell"> <div class="fullcelltop"><span style="position: relative; top: 6px; left: 10px;">Gamelist at <?=$site_title;?></span></div> <div class="fullcellmiddle">&nbsp;<br></div> <div class="fullcellmiddle"> <?php if(empty($_SESSION['game_list'])){ $gamelistcontent = "<span style=\"float: left; width: 30px;\">&nbsp;</span> <span style=\"float: left; width: 130px;\">"; $c = 0; $old_start = ''; $query = "SELECT * from games WHERE gamestatus = 1 ORDER BY gametitle ASC"; $result = mysql_query($query) or die(mysql_error()); $totalcount = mysql_num_rows($result); $break1 = $totalcount / 4; $break1 = round($break1); $break1 = $break1 + 3; $break2 = $break1 * 2; $break3 = $break1 * 3; while($row = mysql_fetch_assoc($result)) { $gametitle = $row['gametitle']; $gametitle2 = $row['gametitle']; $gameid = $row['gameid']; $title = make_friendly($gametitle); if ($rewrite ==0) $gamelink = $base_url."index.php?action=playgame&gameid=".$gameid; else $gamelink = $base_url.$sedir."/".$gameid."/".$title; if (strlen($gametitle2)> 17) $gametitle2 = substr($gametitle2,0,17).""; $gameurl = "<a href=\"$gamelink\" title=\"Click to play $gametitle\">$gametitle2</a>"; $l = strtoupper(substr($gametitle,0,1)); if($l != $old_start) { if($c) { if($c & 1) { $gamelistcontent = $gamelistcontent."<span class=\"defaultText\">&nbsp;</span><br>"; $c++; } $gamelistcontent = $gamelistcontent."<br>"; } $gamelistcontent = $gamelistcontent."<span class=\"defaultText\">&nbsp;&nbsp;&nbsp;<b>$l</b></span><br>"; $old_start = $l; } if($c & 1) { $gamelistcontent = $gamelistcontent."<span class=\"defaultText\">$gameurl</span><br>"; } else { $gamelistcontent = $gamelistcontent."<span class=\"defaultText\">$gameurl</span><br>"; } $c++; if ($c == $break1 || $c == $break2 || $c == $break3) $gamelistcontent = $gamelistcontent."</span><span style=\"float: left; width: 130px;\">"; } $gamelistcontent = $gamelistcontent."</span>"; $gamelistcontent = $gamelistcontent."<span style=\"float: left; width: 10px;\">&nbsp;</span>"; $_SESSION['game_list'] = $gamelistcontent; } ?> <?=$_SESSION['game_list'];?> </div> <div class="fullcellmiddle">&nbsp;</div> <div class="fullcellbottom"></div> </div>
Hope it's useful to someone

Rod
BigDogAdmin
Ryan1212 is offline  
Digg this Post!
Reply With Quote
Old 06-17-2008, 12:39 PM   #2 (permalink)
brendgard
Gamer FX Staff
Senior Member
 
brendgard's Avatar
 
Join Date: Oct 2006
Posts: 680
brendgard is on a distinguished road


Default

It looks like chaging it to be ordered by newest or most popular would be as easy as changing the SQL quiry to oder by whatever it is you wanted it ordered by. If you want it broken up into categories and each section labled accordingly, it would require abit more coding. It can be done, but it would take a bit of time. Not having a newer PHPAS codebase to work on I'm not sure how long.
__________________
http://gamersgo.com A list of arcade related sites, add yours.
http://auntiefondy.com Lists, add your site.
http://kbsplace.com
brendgard is offline  
Digg this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 01:14 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6
© TalkArcades.com
Forum - Register - Calendar - Memberlist - FAQ - Search