Skip to Content Skip to Menu

CB 1.3.1 hack

  • GUEST
13 years 10 months ago - 13 years 10 months ago #151733 by
CB 1.3.1 hack was created by
Dear slabbi

first of all thank you very much for your hard work!
within this new version we have find a little problem
we use J1.5.22 and CB 1.3.1 and we made your hack (from your Uddeim Faq) in order to block the user profile wiew when that user is blocked in Uddeim
you hack code is:
Code:
// BLOCKING-HACK if ( defined( 'JPATH_ADMINISTRATOR' ) ) { $user =&JFactory::getUser(); $myid = $user->id; $db =&JFactory::getDBO(); } else { global $my, $database; $myid = $my->id; $db = $database; } if ($myid) { $db->setQuery("SELECT COUNT(id) FROM `#__uddeim_blocks` WHERE blocker=".(int)$user->id." AND blocked=".(int)$my->id); $is_blocked = (int)$db->loadResult(); if ($is_blocked) { echo '<fieldset><legend>Ignore</legend> <label for="description">The user has blocked his profile, so you cannot access it</label><br /><br /></fieldset>'; $showProfile = 0; } }

we insert the above code before line:
Code:
if ( $showProfile == 1 ) {

into the file: /components/com_comprofiler/comprofiler.html.php

the problem is that this code produce a blank screen maybe you need to update the code for CB 1.3.1

can you help us to solve this issue

regards
Last edit: 13 years 10 months ago by .

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum