The Joomla! Forum ™





Post new topic Reply to topic  [ 22 posts ] 
Author Message
PostPosted: Sun Feb 26, 2006 8:18 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Dec 12, 2005 9:59 pm
Posts: 261
I'm not sure if this is where I post a problem with the new release or not.  I just upgraded and everything looks good so far except for the drop-down in the contact module - it's not populating anymore.  All the contacts are in the index, but they don't show up in the drop-down.  The drop-down was fine in 1.0.7.


Last edited by stingrey on Wed Mar 08, 2006 10:02 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Feb 26, 2006 9:18 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Dec 12, 2005 9:59 pm
Posts: 261
I just upgraded from 1.0.7 to 1.0.8.  The contacts drop-down on the front-end is no longer populating.  This worked in 1.0.7 but is now broken on both IE and Firefox. The drop-down is there, but it has no information in it.  All of the contacts have "Show" selected on the Drop-down parameter. 

Here is the relevant output I see when I look at the HTML source:
Code:
<script type="text/javascript">
      <!--
      function ViewCrossReference( selSelectObject ){
         var links = new Array();
         
         var sel = selSelectObject.options[selSelectObject.selectedIndex].value
         if (sel != "") {
            location.href = links[sel];
         }
      }
      //-->
      </script>
      
      <table width="100%" cellpadding="0" cellspacing="0" border="0" class="contentpane">
               <tr>
            <td colspan="2" align="center">
            <br />

            <form action="testserverURL/component/option,com_contact/Itemid,130/" method="post" name="selectForm" target="_top" id="selectForm">
               Select Contact:               <br />
               
<select name="contact_id" class="inputbox" onchange="ViewCrossReference(this);">
</select>
            </form>
            </td>
         </tr>


Top
 Profile  
 
PostPosted: Mon Feb 27, 2006 6:06 am 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Dec 12, 2005 9:59 pm
Posts: 261
I think my issue about the contact drop-down has gotten buried here...


Top
 Profile  
 
PostPosted: Mon Feb 27, 2006 6:15 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 19, 2005 4:58 am
Posts: 25
I reported this in another threat... I hope this is the right place now.

Hi there!

I upgraded from 1.0.7 to 1.0.8 just now. Everything works fine except for one thing. When I open my contact section there used to be a dropdown menu to show all entries. Well, the menu is still there, but it became very small and it is empty although there are serveral entries in the backend... and ideas how to solve this small problem?

Thanks for your great work on joomla!

Cheers!

was_nun?

Btw a second user reported a similar thing here:
latristesse wrote:
I'm not sure if this is where I post a problem with the new release or not.  I just upgraded and everything looks good so far except for the drop-down in the contact module - it's not populating anymore.  All the contacts are in the index, but they don't show up in the drop-down.  The drop-down was fine in 1.0.7.


Top
 Profile  
 
PostPosted: Mon Feb 27, 2006 11:19 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Sep 15, 2005 9:31 am
Posts: 96
Same Problem here :(

XD

_________________
MV Baltic Radio - The REAL Music Station
http://www.mvbalticradio.de
- Powered by Joomla! -


Top
 Profile  
 
PostPosted: Mon Feb 27, 2006 2:49 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Wed Feb 15, 2006 11:53 am
Posts: 70
Same here.

_________________
http://www.ujusansa.si | http://www.wetsuitmegastore.com/


Top
 Profile  
 
PostPosted: Tue Feb 28, 2006 7:25 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 10:51 pm
Posts: 697
Location: Austria
Guess somebody of the Q&A team forgot something ;-)

Change this part:
Code:
foreach ( $checks as $check ) {
         if ( $check->catid == $contact->catid && $check->cat_access > $my->gid ) {
            $list[] = $check;
         }
      }

into
Code:
foreach ( $checks as $check ) {
         if ( $check->catid == $contact->catid && $check->cat_access >= $my->gid ) {
            $list[] = $check;
         }
      }

and you will have your list ...
The missing part ist the = between cat_access > and $my->gid

You will find this part around line 233 in the ../components/com_contact/contact.php.

michael

_________________
http://www.joomx.com - custom extensions and development
http://www.joomlasupportdesk.com - support, migration, training and consulting
Member of the German Joomla Translation Team


Top
 Profile  
 
PostPosted: Tue Feb 28, 2006 7:35 pm 
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Mon Dec 12, 2005 9:59 pm
Posts: 261
This did the trick...thanks!


Top
 Profile  
 
PostPosted: Wed Mar 01, 2006 8:13 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Aug 19, 2005 4:58 am
Posts: 25
works like magic - thanks a bunch!    :-*

was_nun?


Top
 Profile  
 
PostPosted: Tue Mar 07, 2006 3:36 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 14953
Location: **Translation Matters**
This looks like solved in SVN.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Multilanguage in 1.7: http://help.joomla.org/files/EN-GB_mult ... torial.pdf
---------------------------------
Joomla Translation Coordination Team • Joomla! Production Working Group


Top
 Profile  
 
PostPosted: Wed Mar 08, 2006 10:03 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2756
Location: Marikina, Metro Manila, Philippines
Fixed in SVN

_________________
Rey Gigataras - Joomlatools Team Member
http://www.joomlatools.eu <-- Joomla extensions that just work
http://path.to/rey.gigataras <-- About Me :)
Online Community Manager, Support Engineer, Web Developer, Event Manager, Sports Coach :D


Top
 Profile  
 
PostPosted: Sun Mar 12, 2006 6:03 am 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Aug 30, 2005 1:44 pm
Posts: 82
Location: Asheville, NC area
stingrey wrote:
Fixed in SVN


What is SVN???  And how do we get it?  ???

_________________
He is the Good Shepherd - John 10:27


Top
 Profile  
 
PostPosted: Tue Mar 14, 2006 10:38 am 
Joomla! Intern
Joomla! Intern
Offline

Joined: Thu Jan 05, 2006 3:53 pm
Posts: 70
I still have a problem with this.  When i am logged in with a regsitrered user, the drop down disappear again.  When I am not logged in it is all working fine.  Any idea?

To make sure I did a fresh test install of Joomla 1.0.8 and it is the same. The only thing I have installed is CB.


Top
 Profile  
 
PostPosted: Sun Mar 19, 2006 11:28 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 8:55 pm
Posts: 16285
Location: Nijmegen, The Netherlands
pastor_rob wrote:
What is SVN???  And how do we get it?  ???

Here you can read more about SVN: http://forum.joomla.org/index.php/topic,47386.0.html

_________________
Kind Regards,
Peter Martin, Global Moderator - Community Leadership Team
www.db8.nl - Joomla specialist, Nijmegen, Nederland
Joomla 1.5 Quick Reference Guide: www.db8.nl/en/downloads/misc-downloads/ ... glish.html


Top
 Profile  
 
PostPosted: Wed Mar 22, 2006 12:46 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Mar 22, 2006 12:36 am
Posts: 3
mic wrote:
Guess somebody of the Q&A team forgot something ;-)

Change this part:
Code:
foreach ( $checks as $check ) {
         if ( $check->catid == $contact->catid && $check->cat_access > $my->gid ) {
            $list[] = $check;
         }
      }

into
Code:
foreach ( $checks as $check ) {
         if ( $check->catid == $contact->catid && $check->cat_access >= $my->gid ) {
            $list[] = $check;
         }
      }

and you will have your list ...
The missing part ist the = between cat_access > and $my->gid

You will find this part around line 233 in the ../components/com_contact/contact.php.

michael

Ummm, I may be missing something, but surely the above comparator should be changed to <=  (Add the contact to the list only if it's the same as, or less private, than the current gid).

Wouldn't your suggested alteration (and the existing code) mean that registered users couldn't see public categories, but they could see special categories?

Of course, I'm just a newbie, so feel free to flame me if I'm showing my inexperience!!!  (Or chalk up another security fix if I'm right!)


Top
 Profile  
 
PostPosted: Wed Mar 29, 2006 7:43 am 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2756
Location: Marikina, Metro Manila, Philippines
http://forum.joomla.org/index.php/topic,47039.0.html

_________________
Rey Gigataras - Joomlatools Team Member
http://www.joomlatools.eu <-- Joomla extensions that just work
http://path.to/rey.gigataras <-- About Me :)
Online Community Manager, Support Engineer, Web Developer, Event Manager, Sports Coach :D


Top
 Profile  
 
PostPosted: Wed Mar 29, 2006 7:57 am 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Mar 22, 2006 12:36 am
Posts: 3
The file attached to that thread appears to have the alteration suggested by mic.  I believe that his suggestion both fails to completely fix the problem and also introduces a security hole.  For this reason I will not be installing that patch and I urge you to do some proper testing to convince yourself that I am indeed talking bullshit before you include that code in 1.0.9!  ;) 


Top
 Profile  
 
PostPosted: Thu Mar 30, 2006 2:09 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Mon Aug 15, 2005 4:36 pm
Posts: 2756
Location: Marikina, Metro Manila, Philippines
Teasel wrote:
The file attached to that thread appears to have the alteration suggested by mic.  I believe that his suggestion both fails to completely fix the problem and also introduces a security hole.  For this reason I will not be installing that patch and I urge you to do some proper testing to convince yourself that I am indeed talking ******** before you include that code in 1.0.9!  ;) 

You are acutally correct in that the access logic check is incorrect.

However, as it turns out, the check is not even needed. 
And even with the incorrect logic, this does not introduce a security hole into the system.



This is because the values being populated can only be from the same category as the one you are viewing currently, as seen in the first part of the logic check:
Code:
$check->catid == $contact->catid




So the fact you can even view the contact item of this category means you have sufficient access to view other contact items in that same category.

It is unnecessary to once again check if you have sufficient access rights to view the items of the particular category you are viewing.

_________________
Rey Gigataras - Joomlatools Team Member
http://www.joomlatools.eu <-- Joomla extensions that just work
http://path.to/rey.gigataras <-- About Me :)
Online Community Manager, Support Engineer, Web Developer, Event Manager, Sports Coach :D


Top
 Profile  
 
PostPosted: Sat Apr 01, 2006 10:27 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Wed Mar 22, 2006 12:36 am
Posts: 3
Thanks stingrey, that makes sense!  However... the file in the thread you linked to above still contains the following code: 
Code:
      $list = array();
      foreach ( $checks as $check ) {
         if ( $check->catid == $contact->catid && $check->cat_access >= $my->gid ) {
            $list[] = $check;
         }
      }      


So, how will any public contacts ever be visible to a logged-in user?  I suggested you change the >= to a <=  You explained that actually the test isn't necessary at all.  But surely leaving the incorrect test in the code is the worst possible approach?!


Top
 Profile  
 
PostPosted: Mon May 01, 2006 1:31 pm 
Joomla! Fledgling
Joomla! Fledgling
Offline

Joined: Mon May 01, 2006 12:58 pm
Posts: 1
just did the last sugestion and that's works fine.
The >= solution results in no drop down for registred users.


Top
 Profile  
 
PostPosted: Mon May 01, 2006 2:21 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Tue Aug 30, 2005 1:44 pm
Posts: 82
Location: Asheville, NC area
Teasel wrote:
Thanks stingrey, that makes sense!  However... the file in the thread you linked to above still contains the following code: 
Code:
      $list = array();
      foreach ( $checks as $check ) {
         if ( $check->catid == $contact->catid && $check->cat_access >= $my->gid ) {
            $list[] = $check;
         }
      }      


So, how will any public contacts ever be visible to a logged-in user?  I suggested you change the >= to a <=  You explained that actually the test isn't necessary at all.  But surely leaving the incorrect test in the code is the worst possible approach?!


Once I did the corrected <= instead of >= ... the dropdown menu reappeared.  Thanks to all for finally coming through on this.  ;)

_________________
He is the Good Shepherd - John 10:27


Top
 Profile  
 
PostPosted: Tue May 09, 2006 4:40 pm 
Joomla! Intern
Joomla! Intern
Offline

Joined: Fri Jan 27, 2006 4:03 pm
Posts: 97
Ahh. NOW it works.

Apparently "<=" > ">="  ;)

Thanks for the unofficial mod to the semi-official mod to the broken but official release. (sheesh)


Last edited by yabba dabba on Tue May 09, 2006 4:43 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 22 posts ] 



Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group