61
Xman04
Re: Bidding module?
  • 2007/1/12 22:52

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi Wizanda and Preachur,

It would definitely be a very useful module, since project and product bidding sites have become very popular.

Preachur, thanks for uploading the XoopsAuction module. I will try it out, and see what happens. Although, I'm not a PHP expert, so I probably won't be able to fix it up myself. Hopefully, someone with more expertise will work on it.

Dave



62
Xman04
Bidding module?
  • 2007/1/12 17:36

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Is there an XOOPS module for accepting bids? Something on the Ebay idea, but it doesn't need to be even remotely as sophisticated as Ebay. I did a search on here, but didn't come up with anything.

Dave



63
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/11 3:56

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Biteronboard,

Quote:
The errors that you are receiving make very little sense, I am using the very same system_redirect on one of my domains and it is cross browser friendly. I am not really sure what the deal is. I guess it could be as simple as your editor.


Yes, it was my editor. Your version of system_redirect works just fine, and I'm going to use it for my site.

I also fixed the original html file that was giving me all the trouble. I added "margin: 0 auto;" to the div style, and that centered it. It was going to drive me crazy until I figured out what was going wrong.

Thanks for the help and the code!

Dave



64
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/6 21:29

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


UPDATE:

I may have received the errors below because I created the new file in wordpad and then changed it to an html file. It may have created it in some kind of unreadable format.

I just used the original file and replaced it with your code, and the errors are now gone. However, I need to play around with the fonts and colors, since only the theme background is showing up at the moment, and not the message text. This may work though. I will let you know.

Thanks for your help!
---------------------------------


Hi Biteronboard,

I tried using the code you posted, but when the redirect page is generated, Internet Explorer displays this page:

{rtf1ansiansicpg1252deff0deflang1033{fonttbl{f0fswissfcharset0 Courier New;}{f1fswissfcharset0 Arial;}} {*generator Msftedit 5.41.15.1503;}viewkind4uc1pardtx0tx959tx1918tx2877tx3836tx4795tx5754tx6713tx7672tx8631f0fs20 par par par par par par par par par par  par  par par 
par 
<{$message}>
par 
<{$lang_ifnotreload}>

par 
par 
<{if $xoops_logdump != ''}>
<{
$xoops_logdump}>
<{/if}>  
par  
par  par par f1par 
}


And I received this page in Firefox:

Not Found
The requested URL 
/<{$url}> was not found on this server.

Additionallya 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


Dave



65
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/6 20:39

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi,

Quote:
Well, this is an accessibility problem i guess...


The custom redirect page is being accessed, since both Internet Explorer and Firefox are showing "some" of the custom features of the customized file. As a side note, I don't understand how XOOPS knows which sytem_redirect file to use, since there is also a standard redirect file in the system module of XOOPS. If I delete the custom file, XOOPS once again uses the standard redirect file instead.

Now, back to the issue of the custom redirect page. I'm wondering if Firefox doesn't like all the CSS code and html code being on the same page? I'm not a CSS/html expert, so this is just a possibility I'm considering.

The other thing I noticed was that the html body tag doesn't seem to be referencing the CSS code created for that specific tag. The CSS code for body seems to also be missing a period before it. In any case, I tried adjusting all that, which had absolutely no effect.

I guess I will just have to use the standard file (by deleting the custom file). However, this bothers me, because I like the way the custom redirect page looks in Internet Explorer. It just doesn't center itself or show the correct fonts in Firefox.

Dave



66
Xman04
Re: Firefox does not display redirect page properly
  • 2007/1/5 22:20

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi Biteronboard,

Here is the "original" code for the custom system_redirect.html file:

<html>
<
head>
<
meta http-equiv="Content-Type" content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="Refresh" content="<{$time}>; url=<{$url}>" />
<
title><{$xoops_sitename}></title>
<
style type="text/css">
<!--
body 
background#464646; 
text-aligncenter
font-familyVerdanaArialHelveticasans-serif;
margin:20px;
}
.
div {
    
border1px solid #333;
    
font-size12px;
    
color#333;
    
width500px;
    
border0;
  
background#DFDFDF; 
  
font-weight bold;
  
padding:20px;
}
-->
</
style>
</
head>
<
body>
<
div class="div">
  <
h4><{$message}></h4>
  <
p><{$lang_ifnotreload}></p>
</
div>
<{if 
$xoops_logdump != ''}><br /><div><{$xoops_logdump}></div><{/if}>
</
body>
</
html>



67
Xman04
Firefox does not display redirect page properly
  • 2007/1/5 17:28

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


I'm using the 7Xred theme. The system_redirect page looks fine in Internet Explorer, but it is not centered in Firefox. I tried making a few changes, but nothing seems to work. Even the font looks different.

Does anyone have any ideas how to fix this? I'm sure it is something very simple that I'm missing.

** By the way, the 7Xred theme comes with its own custom system_redirect html file.

Dave



68
Xman04
Re: Weird date problem
  • 2006/12/15 17:24

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi Mithrandir,

Quote:
I suggest that this is brought to the attention of the Smarty developers, so they can find a solution in smarty_make_timestamp().


I checked on the PHP site and Smarty forums, and this issue has been discussed quite a bit by various developers. I found out that strtotime() was rewritten in PHP version 5.1.0. However, I don't know if there have been any significant revisions to the way smarty implements smarty_make_timestamp() (or if it was necessary after modifying strtotime). I saw some vague references to some kind of modifications being made or attempted, but nothing specific.

I assume that the improvements to strtotime() is the sole factor in fixing the issue on my particular server, since it now works correctly after I switched from PHP4 to PHP5. However, I don't know if there could still be a problem on other servers (depending on the system's configuration and how it presents its system time data). Also, if a host does not offer PHP5, then there may be no solution other than changing to a host that offers PHP5(unless you code the date without using Smarty, such as in Javascript).

Dave



69
Xman04
Re: Weird date problem
  • 2006/12/15 9:43

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


Hi Dave_L,

From what I read, there was a past controversy over how strtotime was being used. Apparently, the strtotime function was sometimes using a timestamp (time()) as the data input for this function, which works on older systems, but "apparently" produces errors on 64 bit systems. There was a debate over whether a timestamp or time() should or could be interpreted as a date string. The conclusion of the controversy, was that timestamps or time() should not be passed to strtotime, since it causes odd results at times (depending on the host system configuration). The last thing I read was that this issue was resolved in PHP5.

I'm not sure exactly where strtotime factors into the smarty date_format, but from what I researched, it sounded like it had been utilized in some way. Whether this is accurate, I don't know. I'm not a PHP programmer, so I'm just going by what I've read online. I'm wondering if maybe earlier versions of Smarty utilized strtotime in the date function calculations?

In any case, there is definitely a smarty date bug that occurs with PHP4 on some server configurations, and which causes smarty generated dates in XOOPS themes to display incorrectly. I noticed the problem after moving to a new host/server. Switching from PHP4 TO PHP5 solved the problem on my end.

Dave



70
Xman04
Re: Weird date problem
  • 2006/12/14 19:56

  • Xman04

  • Not too shy to talk

  • Posts: 180

  • Since: 2004/7/12


If your host offers both PHP4 and PHP5, changing the default PHP version that XOOPS uses to PHP5 will fix the date error. I just tried it out on my Surpass hosting account and it works.

Go to your .htaccess file in your root XOOPS directory, and add the following line:

AddHandler application/x-httpd-php5 .php

Dave




TopTop
« 1 ... 4 5 6 (7) 8 9 10 ... 16 »



Login

Who's Online

266 user(s) are online (180 user(s) are browsing Support Forums)


Members: 0


Guests: 266


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