other avatar path?

Events happening in the community are now at Drupal community events on www.drupal.org.
demon326's picture

Hi arkepp,i like the avatar sync function but i have a question about it:
is it possible to change the avatar dir so that i can kepp the "/files" folder in drupal but still use the avatar sync function.

i'm using other modules like tinyMCE and IMCE thats uses the files folder and i cant replace it cause my older images will not work..,so if there is a sollution can you say howto do it pls?:)

Greetz Benny

Comments

update

demon326's picture

Arkepp,when searching for an error(see post of RC7),i found something off the avatar path in function_drupal.php
on line 13 i see this

<?php
$drupal_avatar_path
= '.../files/avatars/' . $config['avatar_path'];//lets customize the avatar path so we can use a other dir
?>

how can i set it to use the {drupal-directory}/files/avatars/ dir ?

You're taking the code out

arkepp's picture

You're taking the code out of context. If you read 10 more lines, you'll realize that this is what gets written back to Drupals user table, phpBB will never see what you are doing here.

What you need to do is change the value of $config['avatar_path'] , which is stored in the phpbb_config table in the database and cached in phpBB's cache directory. If you change that value to be ../../something (you'll have to figure out the details) then it should work. But I stopped doing that because phpBB's admin control panel added checks that prevent you from doing this, so you need to edit it directly in the database and not access those configuration menus.

sorry for the late comment

demon326's picture

sorry for the late comment arkepp,but i did some testing on my local machine and your methode is still the best(change the paths),but now i followed youre instructions i'm not seeying my avatar in drupal this is what i see is the alternate text "image of demon" but there is no avatar....
you can see it here:
http://ashladan.be/20-years-of-nuclear-blast-dvd-trailer-beschikbaar#com...

i dont know what to do now?

phpbb

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week