×

info

Dear guests,
You are currently on the old forum we kept as a knowledge base. You will find the new community forum here
Welcome, Guest
Username: Password: Remember me
Keyword

TOPIC: Possible to view this page using a Joomla user ID?

Possible to view this page using a Joomla user ID? 3 years 8 months ago #105354

  • Anonymous user
  • deadlydave's Avatar
  • Posts: 4
  • Karma: 0
/component/acymailing/frontsubscriber/edit?subid=44

I want to integrate acymailing into my own component. Is it possible to access this page based on joomla ID?

Then I can easily add a link in my components menu based on user ID.
Please log in to post a reply

Possible to view this page using a Joomla user ID? 3 years 8 months ago #105377

  • Dax
  • Dax's Avatar
  • Posts: 6423
  • Karma: 227
Hello,

The subscriber's modification page on the front-end only uses the subscriber ID (subid).
You can get the subid based on the userid with this query:
$db = JFactory::getDBO();
$db->setQuery('SELECT subid FROM #__acymailing_subscriber WHERE userid = '.intval($userid));
$subid = $db->loadResult();

Jeremy
-AcyMailing developer-
This email address is being protected from spambots. You need JavaScript enabled to view it.

I helped you? The best way to thank me is to post a review on the JED :laugh:

Do not hesitate to illustrate your messages with screenshots, I love images :)
Always consult our tutorials before asking a question on our forum, the answer is surely there ;)

Hey look at our Video tutorials, It's really helpful to understand how Acy works!
Please log in to post a reply

Possible to view this page using a Joomla user ID? 3 years 8 months ago #105402

  • Anonymous user
  • deadlydave's Avatar
  • Posts: 4
  • Karma: 0
great that helps a lot thanks!
Please log in to post a reply
Time to create page: 0.057 seconds
Powered by Kunena Forum