Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Show module depending on field...
Show module depending on field Community builder
Show module depending on field Community builder
Hello,
I want to show (or not) a module based on a field of Community builder (let's say profession).
I found this: http://www.metamodpro.com/metamod/recip … lder-pages, looks what i need, but itsnot working (yes i replaced the #_ for the databasefield).
Can you help me with working code (latest versions of Joomla, CB, Metamod).
Regards Michel
Re: Show module depending on field Community builder
Hi Michel,
in Joomla 3.4 (and some previous versions) the database escape method has changed its name. Therefore replace this line from the example code:
$user_id = $db->getEscaped((int)($user->id));
With this simplified line:
$user_id = (int)($user->id);
The rest of it still works fine (I just installed the latest CB version to test). Keep the #_ part which gets automatically substituted for the correct database table prefix.
Best regards,
Stephen
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Show module depending on field...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7627
- Newest User:
- rudys68879
- Members Online:
- 0
- Guests Online:
- 181
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked