Joomla! Discussion Forums



It is currently Fri Nov 27, 2009 10:33 am (All times are UTC )

 





Post new topic Reply to topic  [ 288 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9, 10  Next
Author Message
Posted: Tue Nov 03, 2009 7:21 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Sat Oct 28, 2006 11:16 pm
Posts: 58
pedmajungne wrote:
$user =& JFactory::getUser();


$user->get('groups')

which will return an array of groups the user is a member of.


Top
   
 
Posted: Tue Nov 03, 2009 9:36 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
pedmajungne wrote:
I don't know this is the right forum or not ... :(


No, best to ask that on the general dev list.

pedmajungne wrote:
I want to get the GROUP-ID of current logged-in user in joomla 1.6 .
How to do that ?


Generically for any user:

Code:
$groupsUserIsIn = JAccess::getGroupsByUser($userId [, $recursive = true]);


The user will now be in one or more groups - you never know how many.

As stutteringp0et says, JFactory::getUser()->get('groups') will give you an array like:

Code:
Array ( [8] => Super Users )

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 5:24 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Hi Andrew,

It works. Many thanks. Using get('groups') is still failed .. it return empty :(

Best Regards,
- pedma -


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 6:28 am 
Joomla! Apprentice
Joomla! Apprentice
Online

Joined: Thu Feb 14, 2008 12:48 pm
Posts: 35
pedmajungne wrote:
Try this :
Extensions -> Template Manager -> Click at your_own_template
At Styles (right) -> click at 'default link'
Then check at FrontEnd, it should be changed to the new template.

I get this error message: "Operation Failed!: No template specified.".

This is why I'm curious about template differencies between 1.5 and 1.6.


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 6:34 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Oct 06, 2009 6:44 am
Posts: 8
Location: cochin, kerala
ChiefGoFor wrote:
For discussion of Joomla 1.6 Alpha 2 Released



WOW !!! Good News !!!

Shall we get all SEO efforts and PR privileges of current site which has been customized by Joomla 1.5 to Joomla 1.6 Alpha 2 ????

_________________
http://www.mindbees.com/ - Joomla Customization, Joomla templates


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 6:44 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat May 10, 2008 4:02 pm
Posts: 31
Location: Puerto Rico
we just installed the Alpha 2 version on a test environment but when trying to access the admin area we are getting a blank page.

Is there a solution for this? Thanks

_________________
JOlmeda


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 6:47 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
OC5 wrote:
pedmajungne wrote:
Try this :
Extensions -> Template Manager -> Click at your_own_template
At Styles (right) -> click at 'default link'
Then check at FrontEnd, it should be changed to the new template.

I get this error message: "Operation Failed!: No template specified.".

This is why I'm curious about template differencies between 1.5 and 1.6.
That should be fixed in the nightly build by now:

http://dev.joomla.org/nightly/joomla_tr ... svn.tar.gz

Note: Template manager is still a work in progress and there are few new changes that will eventually need some explanation.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 6:47 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
mindbees wrote:
Shall we get all SEO efforts and PR privileges of current site which has been customized by Joomla 1.5 to Joomla 1.6 Alpha 2 ????
I don't understand what you mean?

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 6:48 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
jolmeda wrote:
we just installed the Alpha 2 version on a test environment but when trying to access the admin area we are getting a blank page.
What the spec's of your test environment?

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 7:48 am 
Joomla! Apprentice
Joomla! Apprentice
Online

Joined: Thu Feb 14, 2008 12:48 pm
Posts: 35
masterchief wrote:
Note: Template manager is still a work in progress and there are few new changes that will eventually need some explanation.

Thanks, i tested that and managed to install my own template. There's no style for it in Styles tab though so I can't assign it as a default. Maybe I'll just wait for further development :)


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 8:09 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 27, 2006 5:06 pm
Posts: 23
masterchief wrote:
Note: Template manager is still a work in progress and there are few new changes that will eventually need some explanation.


I am wondering why the new Beez2 template is not in the package. Would a be a lot easier to have a tableless template in the standard package that actually WORKS...

Rooney


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 10:04 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Feb 13, 2009 6:20 am
Posts: 42
Hi All,

I'm testing on creating 'Hello' component to Joomla 1.6 Alpha 2 on LAMP.
Normally in J1.5, after assinging the component to database (insert to table jos_component) , we can see the new component item 'hello' at the component drop down menu at backend.
In J1.6 after doing the same thing, the new component item is NOT appear. What is the problem could be ?
Is there a documentation/tutorial on how to create component in J1.6 ?

Thanks.
Best Regards,
- pedma -


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 10:34 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
Rooney wrote:
I am wondering why the new Beez2 template is not in the package. Would a be a lot easier to have a tableless template in the standard package that actually WORKS...
The idea is that the default output of all core components in 1.6 will be clean, semantic, well structured, etc. Basically what Beez achieved in 1.5 will be standard in 1.6. Of course, you'll still be able to tune the output with layout overrides if you don't like the default output.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 10:36 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
pedmajungne wrote:
Is there a documentation/tutorial on how to create component in J1.6 ?
Not yet, but they'll come. I can't even guarantee the installer does what it's supposed to at the moment. One thing I'll mention though is there is a new table called jos_extensions which holds all the extensions (hence, jos_plugins is missing if you are looking for it). Alpha 2 is really for you to have a look at the interface and how the components are designed. By its very natue, alpha means it's feature incomplete and some things don't work - but it's good enough to get a bit of an idea.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 11:36 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 17, 2007 2:36 am
Posts: 16
masterchief wrote:
mindbees wrote:
Shall we get all SEO efforts and PR privileges of current site which has been customized by Joomla 1.5 to Joomla 1.6 Alpha 2 ????
I don't understand what you mean?


I believe he's talking about existing "http://www..../blablabla.html" links which are well registered with Google etc. I think, we all may want those URLs to be preserved (during 1.5 to 16 upgrade ...) in order to maintain our SEO scores or pageranks. How is this going to be handled? I'm using Joomla! core SEF through .htaccess file.

My big question: Is there gonna be option to rename/alias "ADMINISTRATOR" folder? Anyone would add administrator into our URLs, and get to Admin login screen. It would be a good security measure if Joomla site admins are allowed to rename "Administrator" folder and then setup variable or something to point to it.


Top
   
 
Posted: Wed Nov 04, 2009 12:04 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
Altansukh wrote:
I believe he's talking about existing "http://www..../blablabla.html" links which are well registered with Google etc. I think, we all may want those URLs to be preserved (during 1.5 to 16 upgrade ...) in order to maintain our SEO scores or pageranks. How is this going to be handled? I'm using Joomla! core SEF through .htaccess file.
We have a discussion going about upgrading 1.5 to 1.6 and I've flagged this. We have a new component called Redirect to handle moved pages and it is my desire that the upgrade process handles any changed urls (at least those we have control over).

Altansukh wrote:
My big question: Is there gonna be option to rename/alias "ADMINISTRATOR" folder? Anyone would add administrator into our URLs, and get to Admin login screen. It would be a good security measure if Joomla site admins are allowed to rename "Administrator" folder and then setup variable or something to point to it.
No, you won't be able to do this in 1.6. I'm not sure it will be feasible in the 1.x series at all. The plan is to allow for this in 2.0.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 1:19 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jan 27, 2006 5:06 pm
Posts: 23
masterchief wrote:
The idea is that the default output of all core components in 1.6 will be clean, semantic, well structured, etc. Basically what Beez achieved in 1.5 will be standard in 1.6. Of course, you'll still be able to tune the output with layout overrides if you don't like the default output.


Well that's great but one also needs a clean, semantic, well structured etc template. Otherwise the semantic of the core components is in vain because of the template overrides. What I do not understand is why a ready clean, semantic, well structured updated Beez template is not in the standard package (and I saw from the Google group discussions that there is a 1.6 version more or less ready to use), but instead a, at the moment, totally useless "Atomic" one...

Rooney


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 1:27 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Apr 17, 2007 2:36 am
Posts: 16
masterchief wrote:
Altansukh wrote:
My big question: Is there gonna be option to rename/alias "ADMINISTRATOR" folder? Anyone would add administrator into our URLs, and get to Admin login screen. It would be a good security measure if Joomla site admins are allowed to rename "Administrator" folder and then setup variable or something to point to it.
No, you won't be able to do this in 1.6. I'm not sure it will be feasible in the 1.x series at all. The plan is to allow for this in 2.0.


Thanks a lot.

Even this alpha feels great. ACL is a big step forward and no worries - it is fairly simply to understand even now. Also I love new Categorization. Awesome work, guys. Thanks again.


Last edited by ooffick on Wed Nov 04, 2009 1:42 pm, edited 1 time in total.
Mod Note: fixed quotation


Top
   
 
 Post subject: JDatabaseMySql error
Posted: Wed Nov 04, 2009 2:21 pm 
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Wed Apr 11, 2007 2:06 pm
Posts: 202
Upon save of a new article, I get the error shown below:

Code:
JDatabaseMySQL::query: 1364 - Field 'images' doesn't have a default value SQL=INSERT INTO `jos_content` (`id`,`title`,`alias`,`introtext`,`fulltext`,`state`,`catid`,`created`,`created_by`,
`created_by_alias`,`checked_out`,`checked_out_time`,`attribs`,`version`,`metakey`,
`metadesc`,`metadata`,`access`,`language`,`xreference`) VALUES ('0','easdfad','easdfad','\r\nasdfasdf','','1','11','2009-11-04 14:06:33','42','','0','0','{\"show_title\":\"\",\"link_titles\":\"\",
\"show_intro\":\"\",\"show_category\":\"\",\"link_category\":\"\",\"show_author\":\"\",
\"show_create_date\":\"\",\"show_modify_date\":\"\",\"show_readmore\":\"\",\"show_print_icon
\":\"\",\"show_email_icon\":\"\",\"page_title\":\"\",\"layout\":\"\",\"article-allow_ratings\":\"\",
\"article-allow_comments\":\"\"}','1','','','{\"robots\":\"\",\"author\":\"\"}','1','en_GB','')


This seems to have to do with my version of mysql. Can anyone give me a hint as to what is going on? Is this a bug? Or do I need to be sure I have a certain version of Mysql?

I am running PHP 5.2.9-2 with Mysql 5.0.51a, testing Joomla 1.6 A2. Running under IIS7.

Joomla 1.5 runs fine on this setup.

P.S. Is there a better place to post interactions with Joomla 1.6 Alpha 2?


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 8:48 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 25, 2005 5:48 pm
Posts: 2801
Location: Geneva mostly
masterchief wrote:
... We have a new component called Redirect to handle moved pages ...

Hi Andrew, is there any docs around on how to use this / how it should work? Thx


Top
  E-mail  
 
Posted: Wed Nov 04, 2009 9:48 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
Rooney wrote:
Well that's great but one also needs a clean, semantic, well structured etc template. Otherwise the semantic of the core components is in vain because of the template overrides. What I do not understand is why a ready clean, semantic, well structured updated Beez template is not in the standard package (and I saw from the Google group discussions that there is a 1.6 version more or less ready to use), but instead a, at the moment, totally useless "Atomic" one...
Thanks for your concern, but be patient. It's an alpha. The point of the alpha was to show off the completed permission system. Atomic is not finished (obviously) and it was not a blocker for the Alpha 2 to ship.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
 Post subject: Re: JDatabaseMySql error
Posted: Wed Nov 04, 2009 9:52 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
ksorbo wrote:
Upon save of a new article, I get the error shown below:
...snip...
P.S. Is there a better place to post interactions with Joomla 1.6 Alpha 2?
Yes. Best to record these things in the 1.6 Bug Tracker so there's a central record of them. The page is here:

http://joomlacode.org/gf/project/joomla ... er_id=8103

Thanks for the report.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Wed Nov 04, 2009 9:54 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
eyezberg wrote:
masterchief wrote:
... We have a new component called Redirect to handle moved pages ...

Hi Andrew, is there any docs around on how to use this / how it should work? Thx
Not yet but it works pretty much automatically. It collects 404's automatically so even some redirects are missed, it will collect them and you can assign the correct page. You can of cousre add redirects manually (I think the Alpha version is busted though).

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Thu Nov 05, 2009 7:29 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue May 12, 2009 2:31 pm
Posts: 18
Location: Bekasi - Jawa Barat
Is there any tutorial for joomla 1.6?

Expected mode=ON :D

_________________
viral marketing community in Indonesia
http://fathura.com


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 9:44 am 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
fathura1 wrote:
Is there any tutorial for joomla 1.6?
Not yet, but most of them are hundreds of pages long for 1.5 so I figure we'll be waiting a while for the real ones to come out. It's a bit hard when we haven't even finished it yet :)

However, there is information around. I've just written up what the new Template Manager is going to look like here:

http://community.joomla.org/blogs/commu ... la-16.html

Let us know what you think.

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Posted: Thu Nov 05, 2009 6:15 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sun Nov 05, 2006 10:20 pm
Posts: 298
Location: Joomlamz!
im install joomla 1.6.0 Alfa 2
when finish and open front page i see that error

Fatal error: Call to undefined function mb_strpos() in /home/joomlamz/public_html/joomla16/libraries/joomla/utilities/string.php on line 61

_________________
FREELANCER ALL CMS
Suporte Joomla em Portugues -http://forum.joomlamz.com
Suporte smf em Portugues -http://www.smfpt.net


Top
   
 
Posted: Thu Nov 05, 2009 7:04 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Dec 09, 2005 6:18 pm
Posts: 126
Location: England
Hi,

I think mb_strpos errors are normally related to your php version, post it here or check against similar posts in this thread.

Dan

_________________
My Extensions - http://www.dysolutions.co.uk/joomla


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 7:21 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Feb 11, 2006 9:43 pm
Posts: 279
Location: Birmingham, USA
I was following tutorial for ACL setup (http://docs.joomla.org/ACL_Tutorial_for_Joomla_1.6), and did not get anywhere, run into "page not found" on the front end.

I wanted to set up a (registered) user Group A, with Access level A, that would be able to access Category A with all articles A that go in category A from the User Menu A.
Other users, like Registered users or users from Group B, would not be able to access these articles.

It appears that new ACL feature would do that, but I was not successful in getting it to work.
Is it a user (my) error? Please confirm :pop

_________________
The key to your life is how well you deal with plan "B".
Latvian Project http://joomlacode.org/gf/project/joomla_latvian/ | http://www.joomlalv.org


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 7:24 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Feb 11, 2006 9:43 pm
Posts: 279
Location: Birmingham, USA
When registered from from the end I get Fatal error: Class 'JxSimpleTemplate' not found in C:\Documents and Settings\My Documents\new-wamp\wamp\www\joomla16alpha\components\com_users\models\registration.php on line 214

_________________
The key to your life is how well you deal with plan "B".
Latvian Project http://joomlacode.org/gf/project/joomla_latvian/ | http://www.joomlalv.org


Top
  E-mail  
 
Posted: Thu Nov 05, 2009 9:22 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 12, 2005 2:45 am
Posts: 1584
Location: Toowoomba, Australia
candidosa2 wrote:
im install joomla 1.6.0 Alfa 2
when finish and open front page i see that error

Fatal error: Call to undefined function mb_strpos() in /home/joomlamz/public_html/joomla16/libraries/joomla/utilities/string.php on line 61
As your host if they have a thing called "mbstring" supported in their PHP build (and make sure it's PHP 5.2+).

_________________
Andrew Eddie - Tweet @AndrewEddie
<><
http://www.theartofjoomla.com
http://www.kiva.org/team/joomla - Got Joomla for free? Pay it forward and help fight poverty.


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 288 posts ]  Go to page Previous  1 ... 3, 4, 5, 6, 7, 8, 9, 10  Next

Quick reply

 



Who is online

Users browsing this forum: Dangerous Boy, Stu-Icon and 3 guests


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 © 2000, 2002, 2005, 2007 phpBB Group