1 (edited by Kushi 2012-06-25 12:58)

Topic: [Theme release]Urban

:: Information
Theme Urban, ver. 1.3
Again - theme is using a lot of CSS3. It should work properly on Chrome, Firefox and probably newest IE. Dunno about Safari. It's also compatible with IE6/7 ( without CSS3 effects ).

:: Authors
It was made by me, basing on Oxygen theme. I've used Iconic icon set ( under CC license ). Header is using Open-sans font.

:: License
http://i.creativecommons.org/l/by-sa/3.0/88x31.png
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

:: Instalation
1)Extract /styles/Urban to your /styles folder.
2)Extract files from /include/user/ to your /include/user/ folder! It's necessary for theme to work properly! It provides this features:

  • urban_1.php
    http://i.minus.com/ibvCvfb8MYcHXj.jpg
    Displaying avatar.

  • urban_2.php
    http://i.minus.com/ibjwVomdryudmD.jpg
    Change the way of displaying Quick reply header.

  • urban_3.php
    It displays options such as New posts, Active posts, etc. only on index page

3)If you're using pun_bbcode extension you may also upload /extensions/pun_bbcode/css/Urban to your /extensions/pun_bbcode/css/ folder.

:: Screenshoots and features
http://i.minus.com/jKt152zi4CpTG.jpg
Index
http://i.minus.com/jCRZo4mAFK2PB.jpg
Viewforum
http://i.minus.com/jbsWISlRFSj8wE.jpg
Viewtopic
http://i.minus.com/j4voWJPmAo1kM.jpg
Profile ( note: Google Map is mine extentions, it's not provided by a theme )
http://i.minus.com/jR9eraFpulhfy.jpg
Administration

:: Demo
http://kushithemes.t15.org/
login: Urban
password: demo

:: Download
https://dl.dropbox.com/u/82283017/punbb/9-av-download.png

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

2

Re: [Theme release]Urban

Good Theme,Thank you

台湾属于中国(Taiwan belongs to China!!!)

Re: [Theme release]Urban

Great work- I really like it.

4 (edited by KANekT 2011-12-06 07:02)

Re: [Theme release]Urban

For correct work I had to edit the files:

urban_2.php

<?php if (FORUM_PAGE == 'viewtopic') { ?>
<div class="main-head"><h2 class="hn"><span class="item-info"><?php $lang_topic['Quick post'] ?></span></div>
<?php } //if it is viewtopic, we display header

urban_3.php

<?php if (FORUM_PAGE == 'index') {
?>
    <div id="brd-visit" class="gen-content">
        <!-- forum_visit -->
    </div>
<?php
} //if it is index, we display header links e.g. "new posts"

5 (edited by ethan42411 2011-12-06 10:49)

Re: [Theme release]Urban

KANekT wrote:

For correct work I had to edit the files...

Thinks.

urban_1.php should be edited too.

<?php
if($forum_user['avatar']['type'] == 1)
{
    echo('<a href="'.$base_url.'/profile.php?id='.$forum_user['id'].'"><img src="'.$base_url.'/'.$forum_config['o_avatars_dir'].'/'.$forum_user['id'].'.gif" id="topavatar"/></a>');
}
else if($forum_user['avatar']['type'] == 2)
{
    echo('<a href="'.$base_url.'/profile.php?id='.$forum_user['id'].'"><img src="'.$base_url.'/'.$forum_config['o_avatars_dir'].'/'.$forum_user['id'].'.jpg" id="topavatar"/></a>');
}
else if($forum_user['avatar']['type'] == 3)
{
    echo('<a href="'.$base_url.'/profile.php?id='.$forum_user['id'].'"><img src="'.$base_url.'/'.$forum_config['o_avatars_dir'].'/'.$forum_user['id'].'.png" id="topavatar"/></a>');
}
?>
Taiwan is a country.
I am sorry for my English.

6

Re: [Theme release]Urban

Well, perhaps it was problem with shorttags, but I don't understand how that line

<div class="main-head"><h2 class="hn"><span class="item-info"><?php $lang_topic['Quick post'] ?></span></div>

works, if there isn't echo to display variable. I've reuploaded the file, if you're using it already this are the changes to include files.
urban_1.php

<?php if($forum_user['avatar']['type'] == 1){ ?>
<a href="<?php echo($base_url); ?>/profile.php?id=<?php echo($forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($forum_user['id']) ?>.gif" id="topavatar"/></a>
<?php } else if($forum_user['avatar']['type'] == 2) { ?>
<a href="<?php echo($base_url); ?>/profile.php?id=<?php echo($forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($forum_user['id']) ?>.jpg" id="topavatar"/></a>
<?php } else if($forum_user['avatar']['type'] == 3) { ?>
<a href="<?php echo($base_url); ?>/profile.php?id=<?php echo($forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($forum_user['id']) ?>.png" id="topavatar"/></a>
<?php } ?>

urban_2.php

<?php if (FORUM_PAGE == 'viewtopic') { ?>
<div class="main-head"><h2 class="hn"><span class="item-info"><?php echo($lang_topic['Quick post']); ?></span></div>
<?php } //if it is viewtopic, we display header ?>

urban_3.php

<?php if (FORUM_PAGE == 'index') {
?>
    <div id="brd-visit" class="gen-content">
        <!-- forum_visit -->
    </div>
<?php
} //if it is index, we display header links e.g. "new posts" ?>
If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: [Theme release]Urban

We have named constants for avatar type.

$forum_user['avatar']['type'] == 2

- its wrong

8

Re: [Theme release]Urban

I'm sorry, I'm still new, so I can hardly understand many things. I've just checked functions.php and made something like this, is it all right?

<?php
    switch ($forum_user['avatar']['type'])
    {
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';
            break;

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';
            break;

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';
            break;

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            break;
        default:
            $noavatar = TRUE;
            break;
    }
?>
<? if($noavatar != TRUE) { ?>
<a href="<?php echo($base_url); ?>/profile.php?id=<?php echo($forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="topavatar"/></a>
<? } ?>
If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: [Theme release]Urban

Its much better.

Dont use short-tags.

<? if($noavatar != TRUE) { ?>

10

Re: [Theme release]Urban

Sorry it's just my bad habit.
So, this is the correct ( i hope ) version of urban_1.php

<?php
    switch ($forum_user['avatar']['type'])
    {
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';
            break;

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';
            break;

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';
            break;

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            break;
        default:
            $noavatar = TRUE;
            break;
    }
?>
<?php if($noavatar != TRUE) { ?>
<a href="<?php echo($base_url); ?>/profile.php?id=<?php echo($forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="topavatar"/></a>
<?php } ?>

Pack has been reuploaded.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

11

Re: [Theme release]Urban

Not Work!

Fixed:

<?php
    switch ($forum_user['avatar'])
    {
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';
            break;

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';
            break;

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';
            break;

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            break;
        default:
            $noavatar = TRUE;
            break;
    }
?>
<?php if(!isset($noavatar)) { ?>
<a href="<?php echo forum_link($forum_url['user'],$forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="topavatar"/></a>
<?php }

12

Re: [Theme release]Urban

Are You sure? Last php tag isn't closed.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

13

Re: [Theme release]Urban

Kushi wrote:

Are You sure? Last php tag isn't closed.

Yes. PHP tag in PunBB isn't closed, if last line not in Html.

Re: [Theme release]Urban

I can't make it works sad
Can any one edit my files?

<?php
    switch ($forum_user['avatar'])
    {
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';
            break;

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';
            break;

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';
            break;

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            break;
        default:
            $noavatar = TRUE;
            break;
    }
?>
<?php if(!isset($noavatar)) { ?>
<a href="<?php echo forum_link($forum_url['user'],$forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="topavatar"/></a>
<?php }
<?php if (FORUM_PAGE == 'viewtopic') { ?>
<div class="main-head"><h2 class="hn"><span class="item-info"><?php $lang_topic['Quick post'] ?></span></div>
<?php } //if it is viewtopic, we display header
<?php if (FORUM_PAGE == 'index') {
?>
    <div id="brd-visit" class="gen-content">
        <!-- forum_visit -->
    </div>
<?php
} //if it is index, we display header links e.g. "new posts"

15

Re: [Theme release]Urban

Could You possibly bring your forum address or explain what exactly doesn't work?

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

16 (edited by czesio1488 2011-12-22 19:06)

Re: [Theme release]Urban

sure

http://hbplanet.xaa.pl/

and to what file can i add stat4u ??

Re: [Theme release]Urban

I have next problem:
How can i add stat4u to footer?

I want place it here:
http://img256.imageshack.us/img256/9247/24802589.png

Re: [Theme release]Urban

use google analitycs

Re: [Theme release]Urban

i dont understand what u mean "use google analictycs"
just say how can i fix problem with quick reaply and where can i past code with stat4u (to what file and what line)

20

Re: [Theme release]Urban

He probably thinks using this extension;
Google Analytics would be cleaner and more professional....

Extension Directory
Over 1.8 Million URLs checked in September 2012 with URL Checker extension.
Is your website being spammed? Send me the URL (entire post). Or post at http://url-checker.org

21 (edited by czesio1488 2011-12-23 15:59)

Re: [Theme release]Urban

why my pun_bbcode don't shows images??
i just need manifest.xml file with this version of extension

22

Re: [Theme release]Urban

Your forum doesn't work for me.

why my pun_bbcode don't shows images??

There were plenty of topics about that.

If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.

Re: [Theme release]Urban

KeyDog wrote:

He probably thinks using this extension;
Google Analytics would be cleaner and more professional....

yep!

Re: [Theme release]Urban

Hi, I would like to ask how did you make the profile logo next to the "logged in as, Urban" so that user can click on it to view the profile?

25

Re: [Theme release]Urban

I've added

<!-- forum_include "urban_1.php" -->

to main.tpl and then uploaded urban_1.php to include/user/
Then

<?php
    switch ($forum_user['avatar'])
    {
        case FORUM_AVATAR_GIF:
            $avatar_filename = $forum_user['id'].'.gif';
            break;

        case FORUM_AVATAR_JPG:
            $avatar_filename = $forum_user['id'].'.jpg';
            break;

        case FORUM_AVATAR_PNG:
            $avatar_filename = $forum_user['id'].'.png';
            break;

        case FORUM_AVATAR_NONE:
            $noavatar = TRUE;
            break;
        default:
            $noavatar = TRUE;
            break;
    }
?>
<?php if(!isset($noavatar)) { ?>
<a href="<?php echo forum_link($forum_url['user'],$forum_user['id']); ?>"><img src="<?php echo($base_url); ?>/<?php echo($forum_config['o_avatars_dir']); ?>/<?php echo($avatar_filename); ?>" id="topavatar"/></a>
<?php }
If any of my dropbox link fails with 404 error, change dl.dropbox.com/u/56038890/punbb/*.zip in address to 82283017.

Currently working on rPlus - responsive theme for developers to create their own themes basing on this one.