1
NIUNIEK
Re: mysql, php, connecting yogurt with lifetype
  • 2008/11/23 11:18

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Hi!

There is lots of fields, but most of them are user dependant, meaning user can change them in lifetype admin.

As I've said I'm not much of aprogrammer, but I think I need a common not changeable field from both tables to establish blog id for a particular user and then use it in a link, don't I?

I will look into it tonight, maybe I stumble upon something
But any help would be welcome.

M.Z.
Some things never change, but some things do.



2
NIUNIEK
mysql, php, connecting yogurt with lifetype
  • 2008/11/23 1:09

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


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 1
Lifetype 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 Blog</a>


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.



3
NIUNIEK
Re: XoopsLifeType module in 2.3
  • 2008/11/21 23:42

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Hi!

Sailjapan, could you let me know if aside of the blank screens everything else is working in your lifetype with captcha folder in frameworks?

I've been trying to look through some files to see if I can find why blank screen on (un)install is shown, but I gave up.
It seems to me that with my lack of knowledge it is not possible...and for now the module seems to install properly and looks as if it is stable.

As I was saying I'm about to work on a website and need to play with themes in lifetype as the lack of links is appalling.
I don't know if it's just me or the only way of going to blog's front page is through dashbord and clicking on any of the posts?

Anyway, as I have said I need to start learning and timeframe is not promising. I need to start testing the site by the end of January

One more thing. Just have been looking through index.php of lifetype and it says
// just to make php use &amp; as the separator when adding the PHPSESSID     
// variable to our requests 
ini_set("arg_seperator.output""&amp;");   
ini_set("magic_quotes_runtime");


should it not be "arg_separator.output"

I don't think it really matters, but it looks like a typo

For now, take care, and I will let you know if I figure something useful
Some things never change, but some things do.



4
NIUNIEK
Re: XoopsLifeType module in 2.3
  • 2008/11/20 16:45

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Hi!


Quote:
I will not leave the others without help, but you may restrain any help from me for yourself.


Please don't take the following to seriously, I'm just trying to make a point here...

Great! Good job. That's a community spirit. Is lifetype working for everyone else aside of sailjapan and me? or is someone elso already working on the fix on it? Because if so than WTF am I wasting my time on?

But now seriously. I have not been working on anything web related for around 3 years and even before that I was just learning php, so I don't think it is reasonable on your side to witheld information that might prove useful, don't you think?

Ghia, I didn't mean to offend you in any way by what I wrote in previous or this post and I know you did not mean to either, I think it's down to lack of sleep and my overall nervousness, so I will think of it as a misunderstanding on both sides or at least on mine and I will not take up on that anymore.


Quote:
Yes, XOOPS has a Frameworks directory, but they have in no way the complete Frameworks. If you had followed the readme instructions and downloaded the Frameworks of the link, you could have seen it for yourself that important directories where missing.


Yeah, of course I could have if only I had your knowledge on xoops. BUT I DO NOT!!! The last time I was using XOOPS (read above) it was when frameworks were introduced or started beeing widely used by some modules. I came back after a long break I dload new release and try to make something out of it.Bbasics did not change, but coding did, XOOPS has changed a lot as well, things were moved about, added, removed or incorporated into core. I did see that frameworks in 2.3.1 is somewhat empty, but try to put yourself in my position and take a look at its readme.txt:

XOOPS Frameworks  
For common frameworks shared by XOOPS modules.  
A framework could be adopted into XOOPS core once it is proven.  
The structure: {XOOPS_ROOT_PATH}/Frameworks/myframework/xoopsmyframework.php  
Content of myframework.php: 
<?php  
class XoopsMyframework 
{     
function 
__construct()    
{     
}     
... }  
?>

Very informative for a new user or a person who comes back like me, isn't it?

Than an all important part of frameworks/art changelog:
"1 Cleaned for XOOPS 2.3.0 (phppp)"
and xoops_version for art
" * @version $Id: xoops_version.php 1901 2008-07-26 04:05:57Z phppp $"
It is dated 4 months ago.
I assumed, by reading above that other stuff got incorporated (and some of it did in one way or another).
So don't you think that insisting on if I've read I would know is a bit pointless? I did read it and I have seen the requirements.

I think we should stop talking about what I could have or should have done and concentrate on what I/we could or should do. And please, I do need your help Ghia, so if or when you know something please contibute. I appreciate your input.

Now, getting down to what I came here for.

Lifetype is very temperamental and even though I know what it needs in frameworks. I does not install the proper way (returns a blank screen), but it does create tables and everything.

Folder needed from original frameworks is captcha
calls come from:
class/data/validator/captchavalidator.class.php and
class/view/viewarticleview.class.php
for
Frameworks/captcha/captcha.php
and
Frameworks/captcha/formcaptcha.php respectively

Surprisingly, you may find them in XOOPS class folder (captcha and xoopsform) as well. Their code differ however what renders them useless (at least I think it does).

There are 4 other calls to Frameworks in other files, but they call on art and textsanitizer which are included in the XOOPS native frameworks.

I've copied the captcha folder and after 15 minutes of fiddling had my lifetype working. As I've said it is a temperamental module and I had a problem with blogcreation (was getting a message about not being attached to any blogs or something)

Problems still occuring:
-blank page after install
-when clicking on the lifetype likn in main menu user is redirected to the first blog meaning in my case admins blog
-userlist in lifetype is blank (didn't check prefs yet, it may be so intentionally)

Other issues:
-No way to go back to your site other than clicking on register. link needs to be added in the main template.
-once in someones blog there is no way to go back to summary page

I think that's it from me for now.
Take care.

Some things never change, but some things do.



5
NIUNIEK
Re: XoopsLifeType module in 2.3
  • 2008/11/20 13:55

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Hi!
Quote:
And I'm NOT surprised if you say that you didn't read the readme.txt!


Sorry, but doesn't XOOPS 2.3.1 already have frameworks? So please do not paternalize people. We are here to help each other in situations like this if you're in this thread to criticise than please leave

Quote:
Check every file of the module for the includes. It will lead to other files and their includes and so on. This way you see what you need realy from the Frameworks.


Thanks for advise, will do.

Some things never change, but some things do.



6
NIUNIEK
Re: XoopsLifeType module in 2.3
  • 2008/11/19 23:40

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Hi!

Quote:
What lead you to the frameworks folder, NIUNIEK? Got a link?


As I say I was on my way to use the supposedly better cms (that's what they claim) than XOOPS (read I C M S), where you need to add entire frameworks for xpress to work. I've been trying to install lifetype there as well, but failed. Surprisingly, once I've installed framworks, to make xpress work, lifetype started working as well.
!!!Off-topic!!
BTW I'm really surprised how impress got that award. Going from XOOPS to icms was like moving back in time by couple years. The amount of work their community did during that year is just laughable, aside for one module imBlogging (which is quite good, I have to give smartfactory credit for that), everything seems to be taken from XOOPS repository.
!!!end!!!

I will try to narrowdown the filelist from the full frameworks package to find the ones used by lifetype tonight or tomorrow. Until then...over'n'out

One more thing,
Can someone tell me whom to write about email change as the one here is as old as this account and I'm not using it for nearly as long
Some things never change, but some things do.



7
NIUNIEK
Re: XoopsLifeType module in 2.3
  • 2008/11/19 1:11

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


I got it!!!

I don't know how secure it is, but should not pose too much of a security issues. Hope you will tell me.
For LifeType to work you need to download and put in your root the original frameworks 1.35 or whatever is here in rep.

and that's it. before I go online in February I will probably narrow down the number of files that need to be copied from the 1.35 to the original frameworks that are in XOOPS for lifetype to work.

P.S. Sometimes it is good to look to your enemy...if it was not for the fact that I've been on my way to base the site on impress I would not know what's wrong...

Good luck,
M.Z.
Some things never change, but some things do.



8
NIUNIEK
Re: Xoops 3.0, when?
  • 2008/11/18 10:24

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Seems reasonable, thanks.
Some things never change, but some things do.



9
NIUNIEK
Xoops 3.0, when?
  • 2008/11/18 0:07

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


I'm curious, as I was reading news, comments and forums, when will the XOOPS 3.0 be released? (is it anytime soon?)
I'm developing a website for which I will have to modify (combine) couple modules and the idea of waking up one January morning to the fact that XOOPS 3 has been released and a month(s) worth of playing with a previous release of modules and core is lost would drive me nuts.

Since, I'm not going to release the site until early/late February, I'm kindly asking for anyone with relevant knowledge to let me know the earliest possible date by which XOOPS 3 might be released.

Thanks in advance,

M.Z.

P.S. I do understand that various factors may extend the time needed to develop XOOPS 3 therefore the only thing I'm asking for is the info whether or not is there a chance for XOOPS 3 to be released in January.
Some things never change, but some things do.



10
NIUNIEK
Re: XoopsLifeType module in 2.3
  • 2008/11/16 1:13

  • NIUNIEK

  • Just popping in

  • Posts: 38

  • Since: 2004/1/20


Hi!

I just came back to XOOPS after a loong break from any serious work on the web and I'm not sure what you mean by "succesfully" I'm running lifetype on 2.3.1 but so far it's only local and to be honest I have no idea what to expect as it's the first time I see the module. Well, I just have seen it and if that is the only thing this module has "ported" to XOOPS than Yes it seems to be working under XOOPS 2.3.1 on my local server. I've been expecting it to be more integrated, just as XPress is.
It seems to me that the only problem I have is the link added to the main menu seems to direct me to the administartors blog, but thet can be changed and for my personal use it does not matter. There also is no menu in XOOPS admin, but I think that is intentional. If you could write what is your prolem with it then maybe we could somehow get that fixed. As to one of your other posts. I was thinking of integrating the wordpress mu at least to the level lifetype is although I've never seen wordpress mu in action and even if I decide to do it my attempts to use lifetype will have to fail miserably...

Take care,

M.Z.

UPDATE

After another couple minutes of fiddling with it I recall what I wrote above...no joy...it's not working properly...does not link to posts. one can read posts ok when in a particular blog but I can't siply click on a link to a post, returns a blank page...!@#$%$&$@#!

Sorry, SailJapan, will see in couple days if I can do anything with this, or maybe a dev team of this module could...if there is a dev team ?
Some things never change, but some things do.




TopTop
(1) 2 3 4 »



Login

Who's Online

148 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 148


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits