Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Call User_edit_profile in static mode ?

Quote Reply
Call User_edit_profile in static mode ?
Hello,
probably i make a small mistake only, but after hours i hope to find help here.


<div>
<%if user.Username%>
<a href="<%config.db_cgi_url%>/page.cgi?p=user_profile">User Profile</a>
<%endif%>
</div>

or the better solution:
how is it possible to show dynamic pages for Logged in users only ?
Because then the logged in user would see all changes and links immediatly.
I found this
http://www.gossamer-threads.com/...orum.cgi?post=211096

But i think there are many changes since this thread was made.

best regards
manneSmile



http://www.edelsteine.de
Quote Reply
Re: [manne] Call User_edit_profile in static mode ? In reply to
Hi,

Afraid not. To be able to use ther <%user.Username%> (or <%Username%>) tag, you need to be using page.cgi.

You could get around this by using mod_rewrite to show your pages (like we do on our site, and most of our sites) - but this would require you to setup mod_rewrite, and also the .htaccess file.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Call User_edit_profile in static mode ? In reply to
Hi Andy,
did i understood you right ?

Is there no way to have static pages and until somebody is logged-in,
then the somebody (logged-in user) go on with dynamic pages ?BlushAngelic


(I would be happy if only the Categories and Links would be static html pages until log-in...
the add.cgi,modify,subscribe etc is OK always in dynamic...)



Mod rewrite would be no problem if i find the rules for the access file,
but i find it more comfortable to use the static build pages for not-logged-in users/robots etc..
because the builded static pages is what i like at Linkssql.

SmileSmileregards manne


http://www.edelsteine.de

Last edited by:

manne: Mar 17, 2007, 1:25 PM
Quote Reply
Re: [manne] Call User_edit_profile in static mode ? In reply to
Maybe i found a solution.Smile

i changed the template
login_sucess
to include
include_header_logged_in.
in
include_header_logged_in, i put ;d=1
to all URLs. Then i think it s dynamic from then.

I don t know what means the ;d=1 at the URL
but it works until know.

Will i get problems ?
If somebody see conflicts please write down.

Thanks and best regards
manne
AngelicCrazyBlushSmileLaughLaughLaughLaugh
I know,...my writing english is not a teacher english,... sometimes i don t understand it also,
if i read it weeks later...smile...Wink
But be happy, that you don t have to hear my singing english....Wink


http://www.edelsteine.de
Quote Reply
Re: [manne] Call User_edit_profile in static mode ? In reply to
Hi,

d=1 means dynamic mode and this information is used for every call.
I think this might help you:
http://www.gossamer-threads.com/...uest=17777026#279401

Regards

n||i||k||o
Quote Reply
Re: [el noe] Call User_edit_profile in static mode ? In reply to
Hi niko,
i just tried to get working that all logged-in users get dynamic pages only.

But it makes no sense, bacause google soon will get the dynamic url s also and will can surf these dynamic urls also.

Then it makes no sense for me to use static and dynamic sites together, cause with static i can t use <%username">. And if a logged-in user logged out i can t check this, that means also google can surf the dynamic.

The result is to use dynamic pages using rewrite.
But this means one of the big advantages of Linkssql (building static pages) is not possible if you want to have only a minimum of interactivity.... 8 (it should be possible if somebody is logged in or not for example...)
maybe ajax will bring a result in the future to make it interesting again to use static pages...Angelic

WinkWinkSmileSmile

regards
manne


http://www.edelsteine.de
Quote Reply
Re: [manne] Call User_edit_profile in static mode ? In reply to
As far as I know google only follows links but is not able to follow form submits.
That means if you have your d=1 during the login process google won´t get the dynamic pages.
BTW adding

Code:

<input type=hidden name=d value=1>


should be enough for any page to switch the users view to dynamic mode

Regards

n||i||k||o

Last edited by:

el noe: Mar 19, 2007, 8:58 AM
Quote Reply
Re: [el noe] Call User_edit_profile in static mode ? In reply to
In Reply To:
As far as I know google only follows links but is not able to follow form submits.
That means if you have your d=1 during the login process google won´t get the dynamic pages.
BTW adding
Code:

<input type=hidden name=d value=1>

Google also follow links if you are surfing logged in and you go directly from there to google. It s my experience over years with onlineshops etc. (you can find url s with session ID s in google although session id s are disabled for robots...)
i also think that google can indexing sites that are surfed with a google toolbar.
And if the dynamic pages are not forbidden ( only allowed for logged-in users) then all pages will be spidered for sure.

But lets wait. The gossamer s team made such a good software with Linkssql. i am sure they will give more quality to the software in the future to keep a quality distance to the many growing open source CMS.
And give static built pages the functionality -maybe with ajax- to be a little bit interactiv, gives Linkssql a big step forward in front of the many different CMS systems.
i am although really satisfied with Linkssql. But i compare also with other systems. Pearl is for me not so easy to understund. But i think more and more that Linkssql need a time to understand the own system to configure. but if you learned this it gives many possibilities to make easy changes.
(only that i can t use the static pages if i want to know if a user is logged in let s me wondering...smile...)

But my nation is not resig-nation.

Anyway linkssql is a fine thing.

regards
manne

Thanks


http://www.edelsteine.de

Last edited by:

manne: Mar 19, 2007, 12:06 PM
Quote Reply
Re: [manne] Call User_edit_profile in static mode ? In reply to
In Reply To:
As far as I know google only follows links but is not able to follow form submits. [/quote]

This is not true; I know someone who did not close there form statement and Google deleted their database. Thank goodness for the back up system and the ability to back up your database otherwise it would have been a catastrophe.


Sandra Roussel
Chonsa Group Design - Fresh Start Housing