ok - so after some more searching I have found a fix for
unsubscribing and
unfavoriting when using CB. At the moment when clicking unsubscribe from a thread the user is sent to a page that shows part of the FB profile
then redirects. This is incorrect as when you are using the CB profiles you should
never see the FB profile.
This fix will direct the unsubscribe and unfavorite requests to the CB profile.
This fix also works with the FB setting to use the CB profile or not so these changes (and the ones in the original post) can be made by anyone even if they are not using CB.
Unsubscribing
In file `components/com_fireboard/template/default/view.php` around line 340 find the following code:
| Code: |
<a href = "<?php echo sefRelToAbs(JB_LIVEURLREL.'&func=myprofile&do=unsubscribeitem&thread='.$thread);?>">
|
replace it with the following:
| Code: |
<a href = "<?php echo $fbConfig['cb_profile'] ? sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&Itemid=' . $cbitemid . '&tab=getforumtab&fbunsubthread='.$thread) : sefRelToAbs(JB_LIVEURLREL . '&func=myprofile&do=unsubscribeitem&thread='.$thread);?>">
|
In the same file around line 1381 make the same replacement of code.
Unfavoriting:
In file `components/com_fireboard/template/default/view.php` around line 375 find the following code:
| Code: |
<a href = "<?php echo sefRelToAbs(JB_LIVEURLREL.'&func=myprofile&do=unfavoriteitem&thread='.$thread);?>">
|
replace it with the following:
| Code: |
<a href = "<?php echo $fbConfig['cb_profile'] ? sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&Itemid=' . $cbitemid . '&tab=getforumtab&fbunfavthread='.$thread) : sefRelToAbs(JB_LIVEURLREL.'&func=myprofile&do=unfavoriteitem&thread='.$thread);?>">
|
In the same file around line 1461 find the following bit of code:
| Code: |
<a href = "<?php echo sefRelToAbs(JB_LIVEURLREL.'&func=myprofile&do=unfavoriteitem&thread='.$fb_thread);?>">
|
replace it with the following:
| Code: |
<a href = "<?php echo $fbConfig['cb_profile'] ? sefRelToAbs('index.php?option=com_comprofiler&task=userProfile&Itemid=' . $cbitemid . '&tab=getforumtab&fbunfavthread='.$fb_thread) : sefRelToAbs(JB_LIVEURLREL.'&func=myprofile&do=unfavoriteitem&thread='.$fb_thread);?>">
|
That should sort out that problem. Any feedback is appreciated.
omin