Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Plugin Last views - image path
Date: 2006/08/20 19:01 By: ddr2004 Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 4
graphgraph
Hi,

Just wanna thanks first DJTrail for his plugin


I have just a little problem >

When I select an avatar from CB gallery. It doesn't appear in Last view ;(

but the picture tnnophoto.jpg

+++
thanks for your help
+++
Fan of Japan : http://www.horizonjapon.com

Fan of Webdesign : http://www.whoisddr.com

Fan of Joomla > Open Source Matters
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin Last views - image path
Date: 2006/09/04 04:06 By: trail Status: Admin  
Karma: 623  
Admin

Posts: 473
graphgraph
As far as i know there are no thumbnails of the gallery icons, showing the normal icons would give unpredicted results, hence it shows tnnophoto if no thumb is found, wich takes care of gallery photos in a predictable manner.

I never used the gallery on any of my sites, so i didn't think it was that important when i started this project.

I'll have to take a look and see what i can do to show a full size gallery image instead of tnnophoto for you.
DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age, Starsign Matchmaking Horoscope, My Visitor, My Highscores, My ProfileID,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many
Click here to see the profile of this user The administrator has disabled public write access.

Re:Plugin Last views - image path
Date: 2006/09/04 12:44 By: mischa Status: User  
Karma: 7  
Senior Joomlapolitan

Posts: 78
graphgraph
Hi there Trail,


I can (and will) take a look at this tonight when I'm at home. I have mentioned this "issue" earlier here.

Rightnow I'm busy with adjusting/bug-fixing/adding feature's into GroupJive and this component had to problem too. Therefor I fixed it already so I post (maybe tonight) a little code-hack into this forum for the last views plugin for the people who wants to enable this...


Will be continued...


Greetz,


Mischa.
Projectmember of the BirthDays Module Project
Click here to see the profile of this user The administrator has disabled public write access.

"Fixed": Plugin Last views - image path
Date: 2006/09/04 17:00 By: mischa Status: User  
Karma: 7  
Senior Joomlapolitan

Posts: 78
graphgraph
Hi there again....


A little earlier then predicted (got home from work earlier ) but here I am again...


I "fixed" this "issue" rightnow. I just added some lines to the lastviews.php. Like Trail already mentioned beware of the sizes you make the gallery-images to "force" the output to be predictable. As far as I saw the default gallery-images are of a size of 48x48. I would advise not to use any bigger picture...


The lines I changed are 167-180. Note: I hacked this into v0.2.5prestab of the lastviews plugin. After hacking I discovered that we are arrived some versions later... The lines will be the same I guess, but the linenumbers can be different... I will put the old and new code below...


From:
Code:

                  if ($lastview->avatar && $lastview->banned != '1' && $lastview->avatarapproved !='0') {                     $testimage "/images/comprofiler/tn$lastview->avatar";                                          if (file_exists($mosConfig_absolute_path.$testimage)) {                         $image $mosConfig_live_site.$testimage;                     } else {                         $testimage "/components/com_comprofiler/plugin/language/$mosConfig_lang/images/tnnophoto.jpg";                                                  if (file_exists($mosConfig_absolute_path.$testimage)) {                             $image $mosConfig_live_site.$testimage;                         } else {                             $image "$mosConfig_live_site/components/com_comprofiler/plugin/language/default_language/images/ tnnophoto.jpg";                          }                     }



To:
Code:

                  if ($lastview->avatar && $lastview->banned != '1' && $lastview->avatarapproved !='0') {                     $testimage "/images/comprofiler/tn$lastview->avatar";                     $galleryimage "/images/comprofiler/$lastview->avatar";                                          if (file_exists($mosConfig_absolute_path.$testimage)) {                         $image $mosConfig_live_site.$testimage;                     } else {                         $testimage "/components/com_comprofiler/plugin/language/$mosConfig_lang/images/tnnophoto.jpg";                                                  if (file_exists($mosConfig_absolute_path.$testimage)) {                         $image $mosConfig_live_site.$testimage;                         } else {                             $image "$mosConfig_live_site/components/com_comprofiler/plugin/language/default_language/images/ tnnophoto.jpg";                          }                     }                     if (file_exists($mosConfig_absolute_path.$galleryimage)) {                         $image $mosConfig_live_site.$galleryimage;                     } else {                         $galleryimage "/components/com_comprofiler/plugin/language/$mosConfig_lang/images/tnnophoto.jpg";                                                  if (file_exists($mosConfig_absolute_path.$galleryimage)) {                         $image $mosConfig_live_site.$galleryimage;                         } else {                             $image "$mosConfig_live_site/components/com_comprofiler/plugin/language/default_language/images/ tnnophoto.jpg";                          }                     }





With this code included the lastviews.php also shows avatars for users that have gallery-images selected as their avatar...



I hope this is what ppl want...




Greetz,


Mischa.



Off-Topic:
I now see the reason of just looking at else's ppl's code... At some time you're beginning to understand it and see the logic of it all..... Rightnow I'm really starting to like it

Post edited by: mischa, at: 2006/09/04 17:21
Projectmember of the BirthDays Module Project
Click here to see the profile of this user The administrator has disabled public write access.

Re:"Fixed": Plugin Last views - image path
Date: 2006/09/18 18:59 By: trail Status: Admin  
Karma: 623  
Admin

Posts: 473
graphgraph
thanks, your modification will be seriously considered for the next version
DJ Trail.
CB Co-Founder & Test-Lead.
Plugins: My Age, Starsign Matchmaking Horoscope, My Visitor, My Highscores, My ProfileID,
My Components: Import & Invite Karma Casino (Use Test / Test)
My Modules: Many
Click here to see the profile of this user The administrator has disabled public write access.

Re:"Fixed": Plugin Last views - image path
Date: 2007/09/25 11:40 By: bertzki Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 1
graphgraph
hi trail how can i show their uploaded avatar
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login