Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

notifications do not have an itemid

9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

Hello, I have a separate template, and its set as the default, everything works fine except for when the user is mailed notifications, the link does not have an &Itemid=## attached on the link.

I am using the latest 3.2.1.5

9 years 5 months ago
Licenses:
9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

I saw those, but it only looked like that was for only inbox messages and comment like's

I actually just went into my /language/en-GB/en-GB.com_community.ini

and then found the ; mail template section and changed {url} to {url}&Itemid=262

It seems to have done the job.

9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

feel free to let me know if I may have messed something up.

9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

in the controllers/system.php I changed

$url = 'index.php?option=com_community&view=profile&userid=' . $act->actor . '&actid=' . $actid;
to this
$url = CRoute::_('index.php?option=com_community&view=profile&userid=' . $act->actor . '&actid=' . $actid);

and it adds my Itemid like I need, but it adds another // before index.php for example
http://example.com//index.php?option=com_community&view=profile&userid=931&actid=270&Itemid=262

any way to get rid of the extra / ?

9 years 5 months ago
Licenses:

Hi Jeremy,

no problem with extra / at the URL. but if you want remove it. here the step:
at /components/com_community/libraries/core.php at line 1229
from

return $data;
to
return str_replace('/index.php', 'index.php', $data);

Regards,
Albert

The following user(s) said Thank You: Jeremy
9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

that did the job thank you!

it was causing a problem with my alternative template, it basically came up as more of a 404 type page, so it was a pain,

Thank you so much for helping! I appreciate your time!

9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

ok, so now if I do that, and go into notifications and click on the notification inside the pop up box it comes back with no slash at all.. :)

http://example.comindex.php/?option=com_community&view=profile&userid=929&actid=268&Itemid=262#activity-stream-container#activity-stream-container

9 years 5 months ago
Licenses:

Hi Jeremey,

please revert the changes for:
www.jomsocial.com/forum/profile-universa...ave-an-itemid#110805

and apply this changes:
1. edit /components/com_community/libraries/mailq.php
2. at line 96 you can see this code

$row->body = $tmpl->fetch($base);
after that code. put this code
$row->params = str_replace("\/\/index.php", "\/index.php", $row->params);

this is a temporary fix. our developer still on this bug to give the proper solution.

Regards,
Albert

9 years 5 months ago
  • Jeremy's Avatar
    Topic Author
  • Jeremy
  • Offline
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
Licenses:
JomSocial Active Socialize Expired

Thank you, that seems to have everything working correctly.

I really appreciate your time!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW