Error in custom Content module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Anduril

Error in custom Content module

Post by Anduril »

I tried to have a menu appear only to Admins, zo i created the following script (or copied it):

The login script form FrontEndUsers:
{cms_module module=FrontEndUsers}

The Script from CustomContent:



ADMINmenu


   
    {cms_module module='cssmenu'}       
   




But I get the following error... What did i do wrong here?
Fatal error: Call to undefined function: readpreferences() in /home/virtual/site72/fst/home/site/public_html/modules/FrontEndUsers/FrontEndUsers.api.php on line 1032
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Error in custom Content module

Post by calguy1000 »

I encountered this FrontEndUsers error too, it's fixed in svn. and may be fixed in the latest release I'd have to look back to be sure.

also you need the {cms_module module=CustomContent} tag in your page or template as well.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Anduril

Re: Error in custom Content module

Post by Anduril »

It isn't fixed in the latest beta release... im using that one...0.11beta5
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Error in custom Content module

Post by calguy1000 »

Checked the svn diffs and I think I fixed a similar problem in a previous commit.  I've just committed a change where I deleted the line that Called ReadPreferences (it wasn't used anyways afaik).
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Anduril

Re: Error in custom Content module

Post by Anduril »

Should i download the new SVN or the new customcontent?

Can I overwrite the new SVN over my old installation? or should i install a new version?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: Error in custom Content module

Post by calguy1000 »

First just try deleting the line that is causing the error.  That function is no longer needed.

Secondly you would either have to wait for the nightly tarball, or use tortoise svn client or some other svn client to get the change.  and it's FrontEndUsers that you want.

Yes, you just over-write the existing files, then go to the module page in the admin section, and click upgrade.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
calboy

Re: Error in custom Content module

Post by calboy »

after d/l the new version of from frontend users from forge, i still cannot define any properties. after clicking on it, nothing happens?!
Anduril

Re: Error in custom Content module

Post by Anduril »

Did u set the user rights for FrontEndUsers?
In the users menu is a user rights button, used click the checkbox next to frontend user settings..
calboy

Re: Error in custom Content module

Post by calboy »

ahh. stupid me. i remember reading this somewhere from the forum b4 but still missed it. THNX millions, it works. now i m still waiting to see if anyone can come up w/ a fix for the gallery2 integration or to d/l the new module 'SimpleViewer Gallery'. after that, i got everything i needed for my site.
Locked

Return to “Modules/Add-Ons”