Thread Closed 
 
Thread Rating:
  • 4 Votes - 3.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
onArcade 2.4 released
10-15-2011, 09:18 PM
Post: #11
RE: onArcade 2.4 released
Thanks, was waiting for it for the long time now.

Thanks.

Love Games Car Games Bike Games Y8
Find all posts by this user
10-15-2011, 09:23 PM
Post: #12
RE: onArcade 2.4 released
Version 2.4 is great.
But I have 2 questions:
1. Can I updated from 2.3.2 to 2.4 by adding or replacing the necessary code for functions, similar to the update from 2.2 to 2.3?
I Do not see the manual updating from 2.3.2 to 2.4.
2. Is it possible to make php templates again, because for me are easier to edit?
New templates are very awkward to me, I want the old php templates.
Find all posts by this user
10-15-2011, 11:26 PM
Post: #13
RE: onArcade 2.4 released
(10-15-2011 09:23 PM)strindheim Wrote:  Version 2.4 is great.
But I have 2 questions:
1. Can I updated from 2.3.2 to 2.4 by adding or replacing the necessary code for functions, similar to the update from 2.2 to 2.3?
I Do not see the manual updating from 2.3.2 to 2.4.
2. Is it possible to make php templates again, because for me are easier to edit?
New templates are very awkward to me, I want the old php templates.
Hi,
Same question, is this possible?
Find all posts by this user
10-16-2011, 10:13 AM
Post: #14
RE: onArcade 2.4 released
Awesome Hans Smile

! How can I update it with a custom template ? Could you make some tutorial please ?

Cheers,

Zuma Game |Iphone games | Hot Girl
Robot Unicorn Attack Game | Video Online
Visit this user's website Find all posts by this user
10-16-2011, 11:43 AM
Post: #15
RE: onArcade 2.4 released
Hello Hans,

As expected you've done a great job, in general and especially with the category browsing by title, played, rating and time added.

I'd wish to implement only that on my site http://www.watergamesonline.com . If you could guide me through I would be very grateful.

Thanks

Free Online Mahjong
Find all posts by this user
10-16-2011, 12:30 PM
Post: #16
RE: onArcade 2.4 released
god job Hans

and nice feature

العاب - العاب بنات - يوتيوب - مزيكا
Visit this user's website Find all posts by this user
10-16-2011, 05:55 PM
Post: #17
RE: onArcade 2.4 released
(10-15-2011 09:23 PM)strindheim Wrote:  Version 2.4 is great.
But I have 2 questions:
1. Can I updated from 2.3.2 to 2.4 by adding or replacing the necessary code for functions, similar to the update from 2.2 to 2.3?
I Do not see the manual updating from 2.3.2 to 2.4.
2. Is it possible to make php templates again, because for me are easier to edit?
New templates are very awkward to me, I want the old php templates.

1. Sorry, this is not possible. I will be releasing template upgrading instructions like this, but making these replacements in rest of the code would be just too big work.

2. Yes, this is possible. Templates upgraded from 2.3 will be like this (when I release upgrading instructions). If you want to use PHP template then you basically have to delete templates/onarcade/file.php and instead place file.template.php that contains 2.3 style PHP template code in that directory.
Visit this user's website Find all posts by this user
10-16-2011, 05:56 PM
Post: #18
RE: onArcade 2.4 released
(10-16-2011 10:13 AM)x8smile Wrote:  Awesome Hans Smile

! How can I update it with a custom template ? Could you make some tutorial please ?

Cheers,
Yes, I will be releasing instructions for this soon.
Visit this user's website Find all posts by this user
10-16-2011, 06:07 PM
Post: #19
RE: onArcade 2.4 released
(10-16-2011 11:43 AM)ananda729 Wrote:  Hello Hans,

As expected you've done a great job, in general and especially with the category browsing by title, played, rating and time added.

I'd wish to implement only that on my site http://www.watergamesonline.com . If you could guide me through I would be very grateful.

Thanks

For this in browse.php after
PHP Code:
$page get_page(); // page number 
add
PHP Code:
// games order
$order = isset($_POST['order']) ? $_POST['order'] :
            (isset(
$_GET['order']) ? $_GET['order'] : '');
switch (
$order) {
    case 
'rating':
        
$order_sql 'rating DESC, totalvotes DESC';
        break;
    case 
'played':
        
$order_sql 'timesplayed DESC, fileid DESC';
        break;
    case 
'added':
        
$order_sql 'dateadded DESC';
        break;
    default:
        
$order_sql 'title ASC';
        
$order 'title';

then change
PHP Code:
ORDER BY title 
to
PHP Code:
". $order_sql ." 
then in that file all categoryurl() function and as last attribute add $order, e.g.
change
PHP Code:
categoryurl($txt['category_id'], $txt['category_title'], 1
to
PHP Code:
categoryurl($txt['category_id'], $txt['category_title'], 1$order
(and do this for all, otherwise pagination won't work)
then in .htaccess change
Code:
RewriteRule ^category/([0-9]+)/.+/([0-9]+)\.html$ browse.php?c=$1&p=$2 [L]
to
Code:
RewriteRule ^category/([0-9]+)/(.+?)/([a-zA-Z]+)?/?([0-9]+)\.html$ browse.php?c=$1&p=$4&name=$2&order=$3 [L]
then in includes/functions.php change
PHP Code:
function categoryurl($category_id$category_title$page 1) {
    global 
$settings;

    if (
$settings['sefriendly'] == 1) {
        
$replace = array(' ''\''':''('')''&''ä''ö''ü''õ');
        
$replacement = array('_''''-''8''9''and''a''o''y''o');
        
$category_title str_replace($replace$replacement$category_title);

        return 
$settings['siteurl'] .'/'$settings['categoryurl'] .'/'$category_id .'/'$category_title .'/'$page .'.html';
    } else {
        return 
$settings['siteurl'] .'/browse.php?c='$category_id .'&p='$page;
    }

to
PHP Code:
function categoryurl($category_id$category_title$page 1$order 'title') {
    global 
$settings;

    if (
$settings['sefriendly'] == 1) {
        
$replace = array(' ''\''':''('')''&''ä''ö''ü''õ');
        
$replacement = array('_''''-''8''9''and''a''o''y''o');
        
$category_title str_replace($replace$replacement$category_title);

        if (
$order !== 'title') {
            return 
$settings['siteurl'] .'/'$settings['categoryurl'] .'/'$category_id .'/'$category_title .'/'$order .'/'$page .'.html';
        }
        return 
$settings['siteurl'] .'/'$settings['categoryurl'] .'/'$category_id .'/'$category_title .'/'$page .'.html';
    } else {
        return 
$settings['siteurl'] .'/browse.php?c='$category_id .'&p='$page .'&order='$order;
    }

then place ordering selection on your template:
Code:
<form name="order" action="" method="post">
          <p>
            Order by
            <select name="order">
              <option value="title">Title</option>
              <option value="rating" {($order == 'rating' ? 'selected="selected"':'')}>Rating</option>
              <option value="played" {($order == 'played' ? 'selected="selected"':'')}>Played</option>
              <option value="added" {($order == 'added' ? 'selected="selected"':'')}>Time added</option>
            </select>
            <input type="submit" value="{$lang['go']}" />
          </p>
        </form>
That should be it.
Visit this user's website Find all posts by this user
10-18-2011, 02:21 AM
Post: #20
RE: onArcade 2.4 released
Thanks you Hans

العاب ترفية - الموجز- العاب بنات - العاب طبخ
dress up games
Visit this user's website Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)