101
Bazus
..
  • 2003/11/2 22:41

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


what I'm trying to do is place the login in a specific place in an html template that I converted to index.php by adding <?php ?> at the beginning and after that the html code and at the end closing with <?php ?> again.

other words is the index.php at the root.

I have tryed many things and what I get is the same parse error.

this is the latest code I tryed:
Quote:
//<?php include "index-workswithcodevisible.php"; ?>
<?php if {!$xoops_isuser} ?>

<form action=<?php "<{$xoops_url} >/user.php" ?> method="post"><br>

<b>user:</b><br>
<input type="text" id="topfield" name="uname" value=<?php "<{$block.unamevalue}>" /> ?> <br>

<b>pass:</b><br>
<input type="password" id="topfield" name="pass" />
<input type="hidden" name="xoops_redirect" value=<?php "<{$xoops_requesturi}>" /> ?> <input type="hidden" name="op" value="login" /><br>

<input type="submit" id="topbutton" value="login" />&nbsp; <a href=<?php "<{$xoops_url}>/user.php#lost"> ?><br>

lost pass?</a>&nbsp;&nbsp;&nbsp;
<a href=<?php "<{$xoops_url}>/register.php"> ?> register</a></form><?php <{ /if}> ?>//


Parse error: parse error, expecting `'('' on line 139
which is the line: <?php if {!$xoops_isuser} ?>



102
Bazus
Re: I get a "PARSE ERROR" in index.php (root) with following code:
  • 2003/11/2 21:35

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


with the <?php ?> I get a blank page loads with the parse error,

and if I take-out the <?php at the beginng and ?> at the end of that, the code inside the brackets don't get executed, the page loads but I can see the brackets and the code inside instead of the values.




103
Bazus
I get a "PARSE ERROR" in index.php (root) with following code:
  • 2003/11/2 20:50

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I getting a parse error with this code:

Quote:
<?php
<{if !$xoops_isuser}><form action="<{$xoops_url}>/user.php" method="post"><b>user:< /b>< /br>

<input type="text" id="topfield" name="uname" value="<{$block.unamevalue}>" />< /br>

<b>pass:</b>< /br>
<input type="password" id="topfield" name="pass" />
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" /><input type="hidden" name="op" value="login" />< /br>

<input type="submit" id="topbutton" value="login" />&nbsp; <a href="<{$xoops_url}>/user.php#lost">lost pass?</a>< /br>

<a href="<{$xoops_url}>/register.php">register</a></form><{ /if}>
?>


the parse error says is at line <{if !$xoops_isuser}>....

I"m trying to use an html template I have instead of the index.php at the root ( I made the html template a php file and named it index.php)

Any help to solve this problem is appreciated.

Regards



104
Bazus
Re: Login form in header part
  • 2003/11/2 4:13

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I have changed that line 139 to all combinations possible and still get same error
<{if $xoops_isuser}>

then

<{if !$xoops_isuser}>

and not improvement.



105
Bazus
Re: Login form in header part
  • 2003/11/2 4:00

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I have tryed everything posible with that code and not working:

this is what I'm using:

<{if {$xoops_isuser}}>
<form action="<{$xoops_url}>/user.php" method="post">&nbsp;<b>user:</b>
<input type="text" id="topfield" name="uname" value="<{$block.unamevalue}>" /> &nbsp; <b>pass:</b>
<input type="password" id="topfield" name="pass" />
<input type="hidden" name="xoops_redirect" value="<{$xoops_requesturi}>" />
<input type="hidden" name="op" value="login" />
<input type="submit" id="topbutton" value="login" />
&nbsp; <a href="<{$xoops_url}>/user.php#lost">lost pass?</a> &nbsp; <a href="<{$xoops_url}>/register.php">register</a>
</form><{/if}>


and page comes blank with error:
Parse error: parse error on line 139

line 139 is:
<{if {$xoops_isuser}}>



106
Bazus
Re: hide header
  • 2003/11/2 3:31

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I'm using the default theme, I went to this folder, edited theme.html (in /themes/default) and disabled the code at top:

<!--<table cellspacing="0">
<tr id="header">
<td id="headerlogo"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>logo.gif" width="150" height="80" alt="" /></a></td>
<td id="headerbanner"><{$xoops_banner}></td>
</tr>
<tr>
<td id="headerbar" colspan="2">&nbsp;</td>
</tr>
</table>-->


and still the header shows up.



107
Bazus
hide header
  • 2003/11/1 1:36

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


what file should I edit in order to avoid the header showing up. ?




108
Bazus
myxoopscart, shoops, oscommerce
  • 2002/11/10 5:16

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


I have noticed now that the shooping cart spree has started, probably for the need to make XOOPS a little more ecommerce and that's great news.

In my opinion oscommerce has all the whistles and if anyone want to develop a shoping cart for XOOPS it should be in that direction. having for instance the best sellers, specials, reviews, currencies, manufactures and categories in diferent blocks would help greatly to the distribution in the shopping page.

another thing that is needed is the integration of this with a payment system, and for this comes in mind some payment methos like paypal, egold, ebuillon, etc..

are the developers considering these into the module?

--------------------------------------------------
commenting on oscommerce, it has these functions:

Visitors Cart
Every visitor to the online shop will be given a 'Visitors Cart'. This allows the visitor to store their products in a temporary shopping cart. Once the visitor leaves the online shop, so will the contents of their shopping cart.

Members Cart
Every member to the online shop that logs in is given a 'Members Cart'. This allows the member to add products to their shopping cart, and come back at a later date to finalize their checkout. All products remain in their shopping cart until the member has checked them out, or removed the products themselves.

Info
If a member adds products to their 'Visitors Cart' and decides to log in to the online shop to use their 'Members Cart', the contents of their 'Visitors Cart' will merge with their 'Members Cart' contents automatically.




109
Bazus
Re: Attention Xoops RC3.0.4/3.0.5 Users
  • 2002/10/30 15:21

  • Bazus

  • Not too shy to talk

  • Posts: 144

  • Since: 2002/9/23


The situation is that many people these days are using certain type of security reflected as a firewall, a popup blocker, turning on security flags in their browsers, etc..

For many of us who use a light firewall like zone alarm, is anoying at the beggining not knowing that this program has to be tuned-up 'manually' in order to access the XOOPS site. And if any user of the site is using other type of proxy is hard to advice them what to do.

Most of the sites that uses cookies to remembers the name/password in IE don't have that problem with my zone alarm.. So I don't see why XOOPS should be different..

any thoughts on this ?




TopTop
« 1 ... 8 9 10 (11)



Login

Who's Online

194 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

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

Latest GitHub Commits