1
Hi!
I'm not much of a programmer, therefore I'm asking for help. This should be easy
I would like to add a link from within one module to the other. The problem is posed by the fact that the link needs to point to a selected user. Say ABC is looking at the profile of user XYZ in yogurt and would like to go to his blog in lifetype.
Problem 1Lifetype does not create blogs on registration but on first attempt to log on to lifetype (a person may log on to the XOOPS million times and have no blog) therefore I cannot use
<{$uid_owner}>
as user id in xoops/yogurt may be different from blog id in lifetype it is very imperfect method of calling user's blog.
Solution $bloglocation = mysql_query("SELECT id FROM test_lt_blogs WHERE owner_id='$uid_owner'");
or something like this?
and then a link would probably look like this?:
<a href="<{$xoops_url}>/modules/lifetype/index.php?blogId=<{$bloglocation}>">My Bloga>
problem is I don't know how to write it all so it works and where to put separate parts, if this needs to be separated (and I'm assuming php code should go to phpfile and link to yogurt's template)
could someone help, please?
Some things never change, but some things do.