Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
1 registered (57-Vette), 51 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 04/09/11
Posts: 140
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 2 of 4 < 1 2 3 4 >
Topic Options
#237785 - 07/06/10 05:18 PM Re: featured member image [Re: Ruben]
Ruben Offline

Registered: 12/20/03
Posts: 4424
Loc: Lutz,FL
Okay I found one style that was missing the gif file . But nobody is using the style.
So we will see but still this site has the same issues on featured members.
_________________________
Blue Man Group
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#237816 - 07/08/10 12:29 PM Re: featured member image [Re: Ruben]
Chosen Offline
member
Registered: 01/26/05
Posts: 194
Loc: Cincinnati, OH
I have the same problem on my site and ended up just hard coding it to fix the problem. It isn't entering a value for {$style_array['general']}.


In cache_builders/featured_member.php on line 58 I replaced:
Code:
$avatar = "{$config['FULL_URL']}/images/{$style_array['general']}/nopicture.gif";

with:
Code:
$avatar = "{$config['FULL_URL']}/images/general/default/nopicture.gif";


That obviously isn't the best solution, but it will fix the issue.
Top
#237817 - 07/08/10 02:20 PM Re: featured member image [Re: Chosen]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Figuring you could probably enter an if/else statement above $avatar, if $style_array['general'] is blank, then use default, blah blah blah...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#237818 - 07/08/10 02:50 PM Re: featured member image [Re: Gizmo]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
I'd try adding:
Code:
	if($style_array['general'] == "") { $style_array['general'] = "default"; } else { }


Above:
Code:
	$avatar = "{$config['FULL_URL']}/images/{$style_array['general']}/nopicture.gif";


So that if the portion of the array is blank it'll be changed to default, versus always setting it to default.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#237822 - 07/09/10 10:35 AM Re: featured member image [Re: Gizmo]
Chosen Offline
member
Registered: 01/26/05
Posts: 194
Loc: Cincinnati, OH
Thanks for the additional code Giz.
Top
#238286 - 07/28/10 09:40 PM Re: featured member image [Re: Chosen]
Scott Young Offline
newbie
Registered: 01/03/10
Posts: 35
Loc: Virginia
Here is an an actual code change that will work. Gizmo was close, but just needs to be a bit different and it needs to be general/default I've added it here as well so it should no longer break, unless someone just has a link to an avatar that doesn't exist.

Open up your cache_builders/featured_member.php script. Line 57, you'll see this:

Code:
if (!$avatar) {



Change that, so it reads:

Code:
if (!$avatar) {
        if (!$style_array['general']) {
                $style_array['general'] = "general/default";
        }
Top
#238289 - 07/28/10 09:43 PM Re: featured member image [Re: Scott Young]
gliderdad Offline
Registered: 06/08/06
Posts: 1466
Loc: NY
I think Ruben gona have a new best friend, lol. Good job Scott
Top
#238290 - 07/29/10 12:39 AM Re: featured member image [Re: gliderdad]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
Originally Posted By: gliderdad
I think Ruben gona have a new best friend, lol. Good job Scott
My idea, his fix to my lack of /default tongue
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#238291 - 07/29/10 01:39 AM Re: featured member image [Re: Gizmo]
Dunny Online   coffee
addict
Registered: 01/16/08
Posts: 460
Loc: DE USA
ROFL aww Gizmo we all know you rock don't sweat it!
_________________________
Dunny

Removed link due to bleedover spammers

Dawn of Iskirra
Top
#238293 - 07/29/10 10:48 AM Re: featured member image [Re: Gizmo]
Scott Young Offline
newbie
Registered: 01/03/10
Posts: 35
Loc: Virginia
Originally Posted By: Gizmo
My idea, his fix to my lack of /default tongue


Hey, I said you were close wink
Top
Page 2 of 4 < 1 2 3 4 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image