TinyPortal

Themes. => Bloc Themes (free) => Topic started by: Shwiggie on December 12, 2015, 10:36:39 PM

Title: Enterprise upper right template image, Guest text call
Post by: Shwiggie on December 12, 2015, 10:36:39 PM
Hello everyone! I have two issues I need help with on the I'm looking for regarding Bloc's Enterprise theme. First, there used to be an image template for the upper right corner in PSD format. Does anyone have it? If I replicate it, it will take an inordinate amount of time.

Second, I'm also trying to determine the cause of a bug in the theme. When a guest opens the forum, where it should say, "Welcome, Guest. Please login or register.", it says, "Welcome, %1$s. Please login or register." This is from the userbox function in index.template.php (line 445) where it echos "welcome_guest", but I'm unsure as to how this can be addressed. I did customize the location of a news feed in that area, but it shouldn't be impacting this in the least.

Thanks for any help that can be provided. I was still using the 1.0.x version of SMF on the last version of TP for that software, and I had to make changes when my host updated to PHP 5.5. It's been somewhat bumpy, since I'm as rusty as an old rake when it comes to board admin stuff, but it's been fun, as well. Again, thanks!

Link to my forum: http://bonr.shwiggie.com
SMF version: 2.0.11
TP version: 1.2
Default Forum Language: English
Theme name and version: Enterprise (2.0)
Browser Name and Version: Chrome 49.0.2587.3 dev-m (64-bit), Firefox 42.0, Opera 12.17, Vivaldi 1.0.162.9 (Dev Build)
Mods installed: Simple Audio Video Embedder, Expanding & Collapsing Spoiler Tag
Related Error messages: N/A
Title: Re: Enterprise upper right template image, Guest text call
Post by: illori on December 12, 2015, 11:33:46 PM
in index.template.php find

echo $txt['welcome_guest'];

replace with
sprintf($txt['welcome_guest'], $txt['guest_title'])
Title: Re: Enterprise upper right template image, Guest text call
Post by: lurkalot on December 12, 2015, 11:47:42 PM
Quote from: Shwiggie on December 12, 2015, 10:36:39 PM

I'm looking for regarding Bloc's Enterprise theme. First, there used to be an image template for the upper right corner in PSD format. Does anyone have it? If I replicate it, it will take an inordinate amount of time.


Unfortunately we don't have a copy of that PSD on here, at least not that I can find.  If you're lucky, and I mean lucky, bloc might have it lying around somewhere and help you out.  ;)
Title: Re: Enterprise upper right template image, Guest text call
Post by: lurkalot on December 12, 2015, 11:53:05 PM
Actually, is this what you're looking for? http://www.simplemachines.org/community/index.php?topic=80888.msg3597704#msg3597704
Title: Re: Enterprise upper right template image, Guest text call
Post by: Shwiggie on December 15, 2015, 03:32:31 AM
Quote from: illori on December 12, 2015, 11:33:46 PM
in index.template.php find

echo $txt['welcome_guest'];

replace with
sprintf($txt['welcome_guest'], $txt['guest_title'])

Thanks for looking into it. I made this change (adding a semicolon at the end of the code), but I got a blank where the greeting should be, instead. Ideas? I know this call works properly on the TP block on the lower right-hand side, but copy/pasting the code isn't accomplishing anything for some reason.

Quote from: lurkalot on December 12, 2015, 11:53:05 PMActually, is this what you're looking for? http://www.simplemachines.org/community/index.php?topic=80888.msg3597704#msg3597704

Yes, that's it. Thank you! I must have not been logged into the SMF site when I looked there earlier, as I didn't notice the download.
Title: Re: Enterprise upper right template image, Guest text call
Post by: illori on December 15, 2015, 10:05:05 AM
dont know why but

echo '
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>';
works but without the div it seems to fail.