| Author |
Message |
Akaveli
Captain


Joined: Jan 03, 2004
Posts: 501
|
Posted:
Thu Jun 10, 2004 9:40 am |
  |
Hi there...
How come the guest avatar is a red x?
And how can i fix this?
Thx in advanced  |
|
|
   |
 |
MrFluffy
Captain


Joined: Aug 06, 2003
Posts: 411
Location: Berlin
|
Posted:
Thu Jun 10, 2004 1:59 pm |
  |
|
        |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Thu Jun 10, 2004 4:33 pm |
  |
Edit /modules/Forums/templates/subSilver/subSilver.cfg, then add this two new lines:
$images['default_avatar'] = "modules/Forums/images/avatars/blank.gif";
$images['guest_avatar'] = "modules/Forums/images/avatars/blank.gif";
Do the same thing with every .cfg files on forum themes (/themes/{NUKE_THEME}/forums/), if any.
If you don't want to waste your time, edit /modules/Forums/viewtopic.php, and find this following lines:
| Code: |
//
// Start initial var setup
// |
Before, add:
| Code: |
if (!isset($images['default_avatar']) || $images['default_avatar'] == "")
{
$images['default_avatar'] = "modules/Forums/images/avatars/blank.gif";
}
if (!isset($images['guest_avatar']) || $images['guest_avatar'] == "")
{
$images['guest_avatar'] = "modules/Forums/images/avatars/blank.gif";
} |
|
_________________ I'm  |
|
      |
 |
Akaveli
Captain


Joined: Jan 03, 2004
Posts: 501
|
Posted:
Fri Jun 11, 2004 1:48 am |
  |
Thank you all for your help  |
|
|
   |
 |
Sony
Sergeant


Joined: Feb 15, 2004
Posts: 114
|
Posted:
Sat Jun 26, 2004 12:44 pm |
  |
Works great, finaly a working solution for this issue! THX  |
|
|
   |
 |
tommytomato
Sergeant


Joined: Feb 10, 2004
Posts: 116
|
Posted:
Sat Jul 10, 2004 2:33 am |
  |
Thanks heaps it worked
I was using the Helius theme so i had to surf to theme folder and edit the forums.cfg file. I also did subsilver as well just in case.
all is well, i have been searching for this fix for some time
thanks again
TT |
|
|
   |
 |
Hostile
Nuke Soldier


Joined: Jul 31, 2004
Posts: 24
|
Posted:
Mon Aug 02, 2004 6:55 am |
  |
| madman wrote: |
If you don't want to waste your time, edit /modules/Forums/viewtopic.php, and find this following lines:
| Code: |
//
// Start initial var setup
// |
Before, add:
| Code: |
if (!isset($images['default_avatar']) || $images['default_avatar'] == "")
{
$images['default_avatar'] = "modules/Forums/images/avatars/blank.gif";
}
if (!isset($images['guest_avatar']) || $images['guest_avatar'] == "")
{
$images['guest_avatar'] = "modules/Forums/images/avatars/blank.gif";
} |
|
Thank you much. |
|
|
   |
 |
maddys_daddy
Nuke Soldier


Joined: Jul 23, 2004
Posts: 22
|
Posted:
Wed Aug 04, 2004 2:31 pm |
  |
Unfortunately, this didn't work for me. I'm using the Chronicles theme pack, and I edited the .cfg file as instructed above, with no luck. Going into a user profile, I was able to successfully browse the avatar gallery, and even select an avatar. It then told me that my avatar had been succesffuly changed. But going to any page that should have an avatar on it (i.e. Your Account) nets me the same broken image icon. Viewing the page source shows the culprit:
| Code: |
| <img src="images/avatars/gallery/gallery/024.gif"> |
Note the duplication of gallery in the path. I checked in the Forums Admin Panel, and the avatar gallery path is correctly set: images/gallery, and the phpbb root path is also correctly set. Any ideas of what could be causing this? |
|
|
   |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Sat Aug 07, 2004 5:05 pm |
  |
| maddys_daddy wrote: |
| I checked in the Forums Admin Panel, and the avatar gallery path is correctly set: images/gallery, and the phpbb root path is also correctly set. Any ideas of what could be causing this? |
It's incorrect if your avatars upload and avatar gallery directories pointing to "modules/Forums/images/avatars" and "modules/Forums/images/avatars/gallery", respectively. In this case, from forum admin panel preferences, avatars upload must pointing to "modules/Forums/images/avatars" and avatar gallery to "modules/Forums/images/avatars/gallery". |
_________________ I'm  |
|
      |
 |
maddys_daddy
Nuke Soldier


Joined: Jul 23, 2004
Posts: 22
|
Posted:
Sat Aug 07, 2004 8:11 pm |
  |
| madman wrote: |
It's incorrect if your avatars upload and avatar gallery directories pointing to "modules/Forums/images/avatars" and "modules/Forums/images/avatars/gallery", respectively. In this case, from forum admin panel preferences, avatars upload must pointing to "modules/Forums/images/avatars" and avatar gallery to "modules/Forums/images/avatars/gallery". |
I'm a bit puzzled by your reply. The paths you first mention (in quotes) as being incorrect are identical to the paths you mention second as being correct. If you're saying that I need the full path from the phpnuke root, instead of phpbb's root (as is default), then that worked for me. Also, I had to remove the /gallery part from the gallery path, since phpnuke seemed to be appending that on it's own. Now I can browse the gallery from the Your_Account module, and select (and see!) my avatar. |
|
|
   |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Sun Aug 08, 2004 4:01 pm |
  |
| maddys_daddy wrote: |
| I'm a bit puzzled by your reply. The paths you first mention (in quotes) as being incorrect are identical to the paths you mention second as being correct. |
Sorry if it was look complicated. Basically, avatars and avatars gallery path follows the PHP-Nuke base path. For example, based on system path hierarchy:
Your forum path as follows: modules/Forums
Avatar path as follows: modules/Forums/images/avatars
Avatar gallery path as follows: modules/Forums/images/avatars/gallery
In phpbb, we usually set both avatar path based on phpbb relative path as follows:
Avatar path as follows: images/avatars
Avatar gallery path as follows: images/avatars/gallery
But in some bb2nuke ported module, they should configured as follows:
Avatar path as follows: modules/Forums/images/avatars
Avatar gallery path as follows: modules/Forums/images/avatars/gallery
But to be honest, there's no standard between bb2nuke and Your_Account module, and I saw many contradictives between these modules regarding to avatar's path. Unfortunately, each bb2nuke version also has incompatibilities on how to alter these avatar's path. Because of this reason, I never upgrade my bb2nuke and Your_Account modules to avoid this kind of problem. |
_________________ I'm  |
|
      |
 |
dead__last
Sergeant


Joined: Aug 07, 2004
Posts: 88
|
Posted:
Sun Aug 08, 2004 10:35 pm |
  |
Thx hostile that code cured my problem as well no more red x's.
Nice work dood |
|
|
    |
 |
crimsonred
Nuke Cadet


Joined: Aug 27, 2004
Posts: 8
|
Posted:
Fri Aug 27, 2004 4:03 pm |
  |
i looked all over the place for that start initial ver, my thing doesnt has it..........i use 2.1.0 theme Gametech |
|
|
   |
 |
madman
Support Mod


Joined: Feb 15, 2004
Posts: 806
|
Posted:
Sat Aug 28, 2004 3:45 pm |
  |
| crimsonred wrote: |
| i looked all over the place for that start initial ver, my thing doesnt has it..........i use 2.1.0 theme Gametech |
It's in viewtopic.php, located in Forums module directory and not in any of PHP-Nuke themes.  |
_________________ I'm  |
|
      |
 |
Stray_Bullet
Nuke Soldier


Joined: Aug 28, 2004
Posts: 22
Location: New York, USA
|
Posted:
Sat Sep 11, 2004 4:29 am |
  |
Worked For Me Also Thanx...  |
_________________ Kill With The Best... Or Die Like The Rest... |
|
    |
 |
|
|