26 (edited by hoang83vu 2012-01-03 22:21)

Re: [Theme release]Urban

Thanks for the help. I wonder how long it took you to figure out all the forum calls. I tried to do it without injecting the code you provided but I could not. I was able to get the avatar by calling "$forum_page['avatar_markup']" but it only showed up when clicked on "Profile". It did not show up on other pages such as Index, Search ...

Anyways, I have successfully done it using your code. I also twisted the code just a bit so that it does not require an external PHP file (Urban1.php in your case). It would work the same way. Put this block of codes in the "header.php" line 192 (within the Else. Remember to add {} to have multiple lines)

else
{
    $visit_elements['<!-- forum_welcome -->'] = '<p id="welcome"><span>'.sprintf($lang_common['Logged in as'], '<strong>'.forum_htmlencode($forum_user['username']).'</strong>').'</span></p>';
   
    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;
    }
   
    if(!isset($noavatar))
        echo '<a href="' .forum_link($forum_url['user'],$forum_user['id']). '"><img id="avatar" src="' .$base_url. '/' .$forum_config['o_avatars_dir']. '/' .$avatar_filename. '"/></a>';
}

link: vphansite.com/forum

27 (edited by Kushi 2012-01-03 22:31)

Re: [Theme release]Urban

I also twisted the code just a bit so that it does not require an external PHP file (Urban1.php in your case).

Of course it is some way but as soon as this is style for everyone, it's quite rude to force users to edit their source files. And it's not so good solution at all.
Thanks for your feedback wink. It took me a few hours to understand how does it really work and as You can see from comments it is still not fully understood tongue.

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

I have a question. My website is working fine so far, but when i view it on mobile (my iPhone). The layout changes a bit. It seems like the background is not centered at all. Its off to the left. I wonder if you can help me solve this sad

Re: [Theme release]Urban

Kushi wrote:

I also twisted the code just a bit so that it does not require an external PHP file (Urban1.php in your case).

Of course it is some way but as soon as this is style for everyone, it's quite rude to force users to edit their source files. And it's not so good solution at all.
Thanks for your feedback wink. It took me a few hours to understand how does it really work and as You can see from comments it is still not fully understood tongue.

Thank you so much for the explain. You are right. If there is a new update to the core files and I write them over the old ones, I am screwed. I just fixed the codes so that they only work according to the current theme. Happy face smile

30 (edited by map210690 2012-01-05 12:34)

Re: [Theme release]Urban

Hi im just trying to modify your Urban2.php script so that the quick reply box does not show when viewing as guess but cant seem to get it working i have

<?php if (FORUM_PAGE == 'viewtopic' && FORUM_USER != 'is_guest') { ?>
<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 ?>

what am i doing wrong ?

Thankyou,
Marky

Re: [Theme release]Urban

nevermind found the fix. for anyone that also wants it.

<?php
     if (FORUM_PAGE == 'viewtopic') if ($forum_user['is_guest'] != true) { ?>
    <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 ?>

Re: [Theme release]Urban

map210690 wrote:

nevermind found the fix. for anyone that also wants it.

<?php
     if (FORUM_PAGE == 'viewtopic') if ($forum_user['is_guest'] != true) { ?>
    <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 ?>

Isn't it already set for guests not being able to post if not logged in? Why we need this code can someone explains?

33 (edited by Kushi 2012-01-06 13:41)

Re: [Theme release]Urban

Only because I forgot about it, so it was displaying header ( I've decided to use main-head instead of main-subhead - that's why the file is there ). I guess, cause my site isn't working currently, I cannot check or fix that wink. Thanks for feedback @map210690.

/edit
Fixed and 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.

34

Re: [Theme release]Urban

Works fine for other members.
But Administrator's style is Oxygen still :-(

How can I change it to Urban too?
Thanks.

35

Re: [Theme release]Urban

Val wrote:

Works fine for other members.
But Administrator's style is Oxygen still :-(

How can I change it to Urban too?
Thanks.

Profile of Admin, then settings...

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

36

Re: [Theme release]Urban

KeyDog wrote:
Val wrote:

Works fine for other members.
But Administrator's style is Oxygen still :-(

How can I change it to Urban too?
Thanks.

Profile of Admin, then settings...

Thank you!!!

37 (edited by Kushi 2012-02-08 12:41)

Re: [Theme release]Urban

I've upgraded theme to 1.2

  • fixed some small issues

  • restyled paging
    http://i.minus.com/ibue2QBwDz3PFo.png

    For which I strongly recommend change in common.php lang file lines 76 and 77 to

'Previous'                    =>    '«',
'Next'                        =>    '»',
  • restyled submit button ( very nice idea wink )
    http://i.minus.com/ibyyqhzFVcVonJ.png

All of the changes are commented, at the end of the css file, so You can delete whatever part You want.

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.

38

Re: [Theme release]Urban

How to fix theme width for forum list, topic list, topics... ?

Re: [Theme release]Urban

problem after update, see here:
http://demo.chevereto.com/images/5cubg.jpg

40

Re: [Theme release]Urban

真是有够悲惨的...中国大陆那么多网站打不开...所以这个也下载不了...

我是来自中国新疆的陌生人,上学英语没学好很遗憾。
我的博客 Pnnk.net

41

Re: [Theme release]Urban

Great template. Will be a lightweight version for mobile phones?

42

Re: [Theme release]Urban

I cant see your picture @fantasma

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

strange, so the problem is...
after upload new theme the box of announcement show on top page, before the menu.

44

Re: [Theme release]Urban

Shame on me. I've reuploaded fixed version. Also the number was changed to 1.55. I've changed font of header to Open-sans.

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.

45

Re: [Theme release]Urban

Strange. Arebyou sure that You have got the latest version?

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

Latest punbb version and i download urban style in the first post in this topic wink

47 (edited by Kushi 2012-02-27 11:03)

Re: [Theme release]Urban

And it works fine on kushithemes.t15.org? Please try to turn off additional links in navigation for test. This may be the reason.

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

on kushithemes.t15.org the style work no space at top, i try turn off additional link and annoncement but not work hmm

Extension enable on my forum :

BBCode buttons 1.4.18
Fancy Scroll To Top 0.3.1
Fancy Video Tag 0.4.9
jQuery 1.1.3
Private Messaging 2.4.1

Re: [Theme release]Urban

I've reuploaded the style but nothing erf !

50

Re: [Theme release]Urban

I've just checked downloadable version and compared it with kushithemes version and it's the same. If you could bring me address of your forum, perhaps I would be able to tell more.

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.