Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 17

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse
Old 08.02.2005, 22:24   #1 (permalink)
Baby Mamber
 
Join Date: Feb 2005
Posts: 1
vario is on a distinguished road
Default Poważny problem z prawami

Zainstalowałem wersji 4.5.1a. Mam link w menu do listy kategorii. Jeśli prawa dostępu do wszystkich kategorii są ustawione na Public, to widzę wszystkie kategorie (powiedzmy, że się nie zalogowałem). Jeśli którąkolwiek z nich ustawię na Registered, to mi znika z listy. Dopiero po zalogowaniu na jakiegoś użytkownika pojawia mi się ponownie. Problem w tym, że z analizy kodu funkcji showCategories z content.html.php wynika, że jeśli nie zalogowałem się, to powinna zostać wyświetlona nazwa kategorii z informacją, że powinienem się zarejestrować, aby do niej się dostać. I właśnie o to mi chodzi! Chciałbym, aby dla nie zarejestrowanych użytkowników pojawiały się wszystkie kategorie, ale z linkiem do strony rejestracyjnej.

Dalsza analiza zaprowadziła mnie do pliku content.php i miejsca:

// Main Query
$query = "SELECT a.*, COUNT( b.id ) AS numitems"
. "\n FROM #__categories AS a"
. "\n LEFT JOIN #__content AS b ON b.catid = a.id ". $xwhere2
. "\n WHERE a.section = '". $section->id ."' ". $xwhere
. ( $noauth ? "\n AND a.access <= '". $gid ."'" : '' )
. "\n GROUP BY a.id"
. $empty
. "\n ORDER BY ". $orderby

z czego jak mniemam wynika, że z bazy pobierane są tylko te kategorie, do których mam dostęp. Czy da się jakość zrobić, aby nie ruszając kodu uzyskać to o co mi chodzi? Skoro już samo query zwraca tylko kategorie z uprawnieniami, to po co to else w content.html.php? Ma ktoś jakiś pomysł?
vario is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 12.02.2005, 22:55   #2 (permalink)
Mamber
 
Arek2's Avatar
 
Join Date: Dec 2004
Posts: 50
Arek2 is on a distinguished road
Default Re: Poważny problem z prawami

Jęsli masz link w menu dla registered to tylko dla nich się wyświetli i nie ma to nic wspólnego z dostępem do kategorii czy też brakiem. To są dwie oddzielne rzeczy. TAk mi się z dośiwadczenia przynajmniej wydaje!
Arek2 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.08.2005, 13:14   #3 (permalink)
Senior Mamber
 
Join Date: Jun 2005
Posts: 159
jamaica is on a distinguished road
Default Re: Poważny problem z prawami

u mnie problem podobny tyle tylko ze chodzi o artykuly. dla zarejestrowanych userow napisalem newsa opublikowalem go na stronie glowej ale jednoczesnie ustwilem go na "registered" a text pokazuje sie jakby byly ustawione na "public" wszyscy go moga przeczytac.
co zabawne w dziale "artykuły" jest on pokazany ja liscie ale jego podejzenie nie jest mozliwe bo trzeba sie zarejestrowac.
jamaica is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.08.2005, 14:26   #4 (permalink)
Elite Mamber
 
Join Date: Mar 2005
Location: Poland
Posts: 1,684
stone will become famous soon enough
Default Re: Poważny problem z prawami

a mozesz dac linka do tej strony?
__________________
forum.joomla.pl Polskie wspracie Joomla!
stone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.08.2005, 19:54   #5 (permalink)
Senior Mamber
 
Join Date: Jun 2005
Posts: 159
jamaica is on a distinguished road
Default Re: Poważny problem z prawami

www.clan32dor.prv.pl
jamaica is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 20.08.2005, 20:18   #6 (permalink)
Elite Mamber
 
Join Date: Mar 2005
Location: Poland
Posts: 1,684
stone will become famous soon enough
Default Re: Poważny problem z prawami

a gdzie jest ten link 'wyloguj'?
jestem oczywiscie jako niezarejestrowany
__________________
forum.joomla.pl Polskie wspracie Joomla!
stone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21.08.2005, 16:58   #7 (permalink)
Senior Mamber
 
Join Date: Jun 2005
Posts: 159
jamaica is on a distinguished road
Default Re: Poważny problem z prawami

juz wywalilem z menu :p
jamaica is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.08.2005, 12:47   #8 (permalink)
Senior Mamber
 
Join Date: Jun 2005
Posts: 159
jamaica is on a distinguished road
Default Re: Poważny problem z prawami

lol

przenioslem wczoraj stronke na inny serwer wlaczylem ponownie "wyloguj" i ustawilem na registered i dziala tak jak powinno.
jamaica is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mambo install problem or host problem? joflow Mambo 4.5.1 General Talk 6 03.02.2005 14:30
RSS Feed or Server Problem?! Schoko Mambo 4.5.1 'How Do I' Questions 0 28.01.2005 16:57
Serious problem (MAMBO + SWF) pancho_kce Mambo 4.5.1 'How Do I' Questions 0 09.11.2004 02:56
Problem with Contacts in version 4.5.1.0.9 zirby Mambo 4.5.1 'How Do I' Questions 0 27.09.2004 19:41
File Access problem with ReMOSitory and Gallery mufflerless Mambo 4.5 'How Do I' Questions 5 05.05.2004 05:59


All times are GMT +2. The time now is 23:57.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.