MemHT Portal is a Free PHP CMS and Blog that permit the creation
and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Path Home > Forum > MemHT Portal > Developing for MemHT Portal > bridge with a store-shop
Navigator
Tags Cloud
Help MemHT Portal
Users Block
Hi Guest
IP: 38.103.63.18

Username
Password
Search
Language
Moderators: mem paulo89
RSSReply
bridge with a store-shop
AuthorText
JorgeCosta
Junior Member
Avatar

Posts: 31
Gender: Neutral
Online: No
Date: 27/03/2008 18:45
bridge with a store-shop
#post5352
hello

i m posting this because:
i have a script of a shoping-cart
and i think it is a good idea integrate it in memHT
with the same users, but the store have another sql_table to the users and when i login in memht i dont login in the store.
it is possible make the login in both at same time?

thanks
Delete Edit Quote
 
mem
MemHT Portal's Dad
Avatar

Posts: 2172
Gender: Male
Online: No
Date: 27/03/2008 20:32
Re: bridge with a store-shop
#post5360
only modifying one of the scripts
Delete Edit Quote
 
JorgeCosta
Junior Member
Avatar

Posts: 31
Gender: Neutral
Online: No
Date: 27/03/2008 23:00
Re: bridge with a store-shop
#post5364
i pretend modify only the shop script

can you give a tip please Smile

can i start using the variable $login_user or $user

and then change the users db shop to the users db memht

just a tip please

Edited: 27/03/2008 23:02
Delete Edit Quote
 
mem
MemHT Portal's Dad
Avatar

Posts: 2172
Gender: Male
Online: No
Date: 27/03/2008 23:18
Re: bridge with a store-shop
#post5365
Actually i don't know how the shopping cart script is done so there are few things i can tell you:

1) The memht user table is `memht_utenti`

2) To check if a user is logged or not use
code
global $user;
if (isUser($user)) { ...


3) To check if a user is logged or not as admin, use
code
global $admin;
if (isAdmin($admin)) { ...


4) Database login data is stored in inc/inc_config.php, so you'll need to include them, like inc_functions.php, inc_readConfig etc (look in root/index.php)

I'm very busy with the converter and few other things so i cannot work on this at the moment, so you must do it by yourself if you can Smile
Delete Edit Quote
 
JorgeCosta
Junior Member
Avatar

Posts: 31
Gender: Neutral
Online: No
Date: 28/03/2008 13:11
Re: bridge with a store-shop
#post5376
all links i have in memht
are to "//www/files/"

how can i change quikly to "//www/files/pages/....../"

or this is on instalations?
i thinks it is, but if you confirm to be i be thank you
Delete Edit Quote
 
mem
MemHT Portal's Dad
Avatar

Posts: 2172
Gender: Male
Online: No
Date: 28/03/2008 15:25
Re: bridge with a store-shop
#post5381
that's the portal's path, if you change this configuration you would get only errors
Delete Edit Quote
 
JorgeCosta
Junior Member
Avatar

Posts: 31
Gender: Neutral
Online: No
Date: 28/03/2008 17:13
Re: bridge with a store-shop
#post5389
can i add pages out of pages folder

if i dont i will have a litle problems to configure other scripts on this magnificy portal, dont you think

thanks
Edited: 28/03/2008 17:16
Delete Edit Quote
 
mem
MemHT Portal's Dad
Avatar

Posts: 2172
Gender: Male
Online: No
Date: 28/03/2008 17:32
Re: bridge with a store-shop
#post5393
http://www.memht.com/documents_Creating+new+Addons.html

You must convert the shop, this is the only way
Delete Edit Quote
 
Reply
Copyright © 2002-2008 by Miltenovik Manojlo - All rights reservedRainTPL
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo
"It's light, fast, secure plus best SEO. If compare to Dragonfly, Joomla, Drupal, PHPNuke. memht cms is the best. Once again, thanks for your hard work."
amerilao
News Archive
Friends