1

(19 replies, posted in PunBB 1.2 troubleshooting)

sobered up and sorted it out - works a treat - thanks all!

big_smile big_smile big_smile big_smile

PunBB.org rocks.

2

(19 replies, posted in PunBB 1.2 troubleshooting)

bahhhha!
programming + red wine = parse errors

can some one please put me out of my misery!



what do I put in here?...

<img src="<?php echo $pun_config['o_avatars_dir'].'/'.$id.'.'.$avatar_format ?>"

beacuse

<img src="<?php echo http://www.shared-avatar-dir-domain.com/img/avatars.'/'.$id.'.'.$avatar_format ?>"

and all my other random drunken combinations dont work.

<strong>bugger.</strong>

3

(19 replies, posted in PunBB 1.2 troubleshooting)

Thankyou very much for your help! Will try it tomorrow and let you know as am now close to the bottom of a bottle of red wine.
big_smile

4

(19 replies, posted in PunBB 1.2 troubleshooting)

Thankyou for your help Smartys,
I am new to php and am very stuck on this friday night... ('cause it dont work!)

Snippet from avitar section of profile.php code, with new path to shared avatar directory added:

                    <fieldset id="profileavatar">
                        <legend><?php echo $lang_profile['Avatar legend'] ?></legend>
                        <div class="infldset">
<?php if (isset($avatar_format)): ?>                    <img src="<?php echo $pun_config['http://www.shared-avatar-directory-domain.com/img/avatars'].'/'.$id.'.'.$avatar_format ?>" <?php echo $img_size[3] ?> alt="" />
<?php endif; ?>                    <p><?php echo $lang_profile['Avatar info'] ?></p>

Thanks mate!

5

(19 replies, posted in PunBB 1.2 troubleshooting)

Thanks for that Smartys,

Sounds like something I would like to try.

What files do I need to change $pun_config['o_avatars_dir']
and what would I change it to?

Thanks.

6

(19 replies, posted in PunBB 1.2 troubleshooting)

Thanks again Connorhd,

Both forums are now writing to the corect shared directory.

forum a writes to: img/avatars
forum b writes to: ../../../../site_a/www/www/forum/img/avatars

This has presented a new issue -

forum a reads from: http://domain_a/forum/img/avatars/3.jpg
forum b reads from: http://domain_b/site_a/www/www/forum/img/avatars (therefore broken img link)


How do I change forum b so that it reads from ../../../../site_a/www/www/forum/img/avatars ?


Thanks!

7

(19 replies, posted in PunBB 1.2 troubleshooting)

Thanks for your reply Connorhd,

But that would not suit my needs, as the two forums to share avitas - they are on sites with simmilar content (just different masthead and domain names - client request...) but sharing a forum database...

At the moment you can log in to either sites forum (with shareed db) as one user - and in the site that you registered with you can see your avitar, but on the site that you did not register with you can not see your avitar.

8

(19 replies, posted in PunBB 1.2 troubleshooting)

Is there a hack to get punBB to add a prefix to the avatar file name?

ie:
forum#1 writes files as a1.jpg, a2jpg, a3jpg
forum#2 writes files as b1.jpg, b2jpg, b3jpg

and then the previous soultion might work...

9

(19 replies, posted in PunBB 1.2 troubleshooting)

each forum is installed at a different domain - am not sure how I would use ../ to make the path name relative?

10

(19 replies, posted in PunBB 1.2 troubleshooting)

Hi All.

I have installed two forums on different but simmilar sites, sharing one database.
Works fine apart from the avitars.

I need to get both forums saving avitars into, and reading avitars from, one directory - but cant.

I have tried the following:
Specifying full path in PunBB Administrator > Options to same directory for both forums, rather than "relative to the PunBB root directory" - does not work...
Also setting permissions on directory to 777

Any help would be ace,
Thanks.