Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Thu Nov 11, 2004 8:40 am Reply with quote

In the CNB avatar control panel I put in th address to my offsite avatar and it made the link into the following:
Code:
http://www.*********.com/modules/Forums/images/avatars/www.*******.com/pics/blithavie.jpg

So it added the path to the gallery avatars at the front... How can I fix this? Thanks.
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Nov 11, 2004 6:35 pm Reply with quote

well after some checking in the files i end up in avatarlinksave.php
but also there it mentions...avatar_gallery_path so that isnt that clear.
i had installed the new version on testsite but was kind of hopeless....
 
View user's profile Send private message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Thu Nov 11, 2004 8:03 pm Reply with quote

Shucks you come up with all the good ones. Once we work out whats bugged with the admin panel we'll get this. I'll have to change my test site a little I've hard coded it so this option doesn't exist in my phpbb.

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
sixonetonoffun







PostPosted: Fri Nov 12, 2004 12:04 pm Reply with quote

blith I can't create this error its working on my site. Can you double check this one?
 
blith







PostPosted: Fri Nov 12, 2004 12:57 pm Reply with quote

Okay.... now it works. I swear it didn't. The post I made above was a copy and paste of the properties of the red x that appeared after I linked to an offsite avatar the first time. Is it possible it only happens when there is currently no gallery or offsite avatar selected. Such as when a new user signs up?
 
blith







PostPosted: Fri Nov 12, 2004 1:06 pm Reply with quote

I found the problem. The url must be
Code:
 http://www.pathtoyouravatar.com
form. It cannot be just
Code:
www.pathtoyouravatar.com

Maybe that is something simple but it should be in the control panel:
Link to off-site Avatar:
Enter the URL of the location containing the Avatar image you wish to link to and click on the submit button below. Ex: [ Only registered users can see links on this board! Get registered or login! ]
 
sixonetonoffun







PostPosted: Fri Nov 12, 2004 2:12 pm Reply with quote

Here is a temp fix. [ Only registered users can see links on this board! Get registered or login! ]

Just save it as modules/Your_Account/public/edituser.php
 
blith







PostPosted: Fri Nov 12, 2004 2:52 pm Reply with quote

Thanks. If you tell the user that the path has to be [ Only registered users can see links on this board! Get registered or login! ] it shoudn't be a big issue.
 
sixonetonoffun







PostPosted: Fri Nov 12, 2004 2:54 pm Reply with quote

The file above adds it to the form field as a reminder I hope that is enough for now. It also resolves another issue of the image not being shown on the edituser page.
 
blith







PostPosted: Fri Nov 12, 2004 2:56 pm Reply with quote

Oh. thanks!
 
blith







PostPosted: Wed Nov 17, 2004 8:30 am Reply with quote

sixonetonoffun wrote:
The file above adds it to the form field as a reminder I hope that is enough for now. It also resolves another issue of the image not being shown on the edituser page.

six, I did the change and it did not do anything... what was it supposed to do exactly? Thanks!
 
sixonetonoffun







PostPosted: Wed Nov 17, 2004 7:24 pm Reply with quote

It fixes so that the offsite avatar displays on the edit user page and I added [ Only registered users can see links on this board! Get registered or login! ] to the form field as a simple reminder.

To complete this totally open modules/Your_Account/avatarlinksave.php
Around Line 24 find:
Code:


//avatarfix by menelaos dot hetnet dot nl

Below that add this:
Code:


   if (!ereg("http", $avatar)) {
        $avatar="http://$avatar";
        }

That should take care of it completely.
 
blith







PostPosted: Thu Nov 18, 2004 1:07 pm Reply with quote

It is in modules/Your_Account/public/avatarlinksave.php right? Thank you!
 
blith







PostPosted: Thu Nov 18, 2004 1:10 pm Reply with quote

That did not work... I put in [ Only registered users can see links on this board! Get registered or login! ] and it was stuck on the end of.....http://www.******.com/modules/Forums/images/avatars/www.******.com/pics/blithavie.jpg
In addition nothing was added to the form field...
 
sixonetonoffun







PostPosted: Thu Nov 18, 2004 8:35 pm Reply with quote

blith thats strange try this pre editted file just to be sure: [ Only registered users can see links on this board! Get registered or login! ]

Also the one in the previous post does add it to the form if its not then you might be having some trouble over writing the files because the form has a value="http://" so it is automatically placed into the field.
 
blith







PostPosted: Fri Nov 19, 2004 7:59 am Reply with quote

Okay, it works now, perfectly. Thank you. I must have not overwritten the file properly. I checked file size this time...
so if you do not add the [ Only registered users can see links on this board! Get registered or login! ] it will and if you do add the [ Only registered users can see links on this board! Get registered or login! ] it won't correct? Thanks again, six!
 
sixonetonoffun







PostPosted: Fri Nov 19, 2004 3:34 pm Reply with quote

Yes sir it should do exactly that.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> CNB Your Account

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©