[BW-dev-discussion] links in words table

Jose Aliste jose.aliste ...
Wed Nov 7 17:02:50 UTC 2007


Hi Micha,
The function getFormatted is already implemented(by Felix of course). The
problem seems to be  that there are two different templates for the
loginform. One in templates/apps/user/loginform.php and the other in
templates/apps/rox/rightOutContent.php. I corrected the first one in
revision 3195, so it should work now :) (and you already fixed the other)

Cheers

Jose



On 11/7/07, Michael Dettbarn <micha at dettbarn.net> wrote:
>
> ahem, Felix? Did you implement that functionality already or were you
> talking in general? It doesn't seem to work as it is now..
>
> Micha
>
>
> 2007/11/7, Michael Dettbarn <micha at dettbarn.net>:
> > Although I can't confirm this error (maybe it's been fixed since you
> > mentioned it), I agree that we should use this form of putting
> > together links or other objects and $words-texts:
> >
> > > --- snip ---
> > > echo $words->getFormatted('IndexPageWord17', '<a
> > > href="/bw/signup.php">', '</a>');
> > > --- snip ---
> >
> > I will fix the belonging code in
> > /templates/apps/rox/rightContentOut.php in a minute and update the
> > correct entry in the words-table.
> >
> > cheers
> > Micha
> >
> >
> >
> >
> > 2007/11/7, Felix van Hove <fvanhove at gmx.de>:
> > > Problem in accessing the signup form:
> > >
> > > Signup-Link on start page of test.bewelcome.org is
> > >
> > > http://test.bewelcome.org/signup.php
> > >
> > > Reason is (according to the test database) the recordset belonging to
> > > the code "IndexPageWord17" in the words table (referenced in
> > > /templates/apps/user/loginform.php).
> > >
> > > But the real signup form resides at
> > >
> > > http://test.bewelcome.org/bw/signup.php
> > >
> > > How did this mess materialize?
> > >
> > > Links should *never* be put into the words table without serious
> > > precautions!
> > >
> > > Precaution could mean: Instead of using
> > >
> > > --- snip ---
> > > <a href="signup.php">Create a profile</a> without obligations. Joining
> > > and using the network is free!
> > > --- snip ---
> > >
> > > as the content of the value field (in table words) use
> > >
> > > --- snip ---
> > > %sCreate a profile%s without obligations. Joining and using the
> network
> > > is free!
> > > --- snip ---
> > >
> > > ; and instead of
> > >
> > > --- snip ---
> > > echo $words->getFormatted('IndexPageWord17');
> > > --- snip ---
> > >
> > > put this into your template:
> > >
> > > --- snip ---
> > > echo $words->getFormatted('IndexPageWord17', '<a
> > > href="/bw/signup.php">', '</a>');
> > > --- snip ---
> > >
> > > This is obviously complicate and easily becomes the source of
> different
> > > mistakes. Any other suggestions?
> > >
> > > Who cares for the wrong links belonging to the meaningful code
> > > "IndexPageWord17"?
> > >
> > >
> > > Felix
> > > _______________________________________________
> > > bw-dev-discussion mailing list
> > > bw-dev-discussion at bewelcome.org
> > > http://bewelcome.org/mailman/listinfo/bw-dev-discussion
> > >
> > >
> >
> _______________________________________________
> bw-dev-discussion mailing list
> bw-dev-discussion at bewelcome.org
> http://bewelcome.org/mailman/listinfo/bw-dev-discussion
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://bewelcome.org/pipermail/bw-dev-discussion/attachments/20071107/6e7aee54/attachment.html 


More information about the bw-dev-discussion mailing list