1531
Peekay
Reset database script - like the new demo site?
  • 2005/6/26 23:46

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I noticed that Bluenova has kindly set up a new module testing site at:

http://xoopsmods.mmwebsites.com/

This is a nice resource, but it also caught my eye because it resets itself every hour.

Does anyone have a link to a tutorial and Cron script for resetting a demo site database back to it's default state periodically?. My host has nothing like that.
A thread is for life. Not just for Christmas.



1532
Peekay
Re: How to Differentiate between XOOPS and mambo
  • 2005/6/26 16:25

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


There's some opinions in this thread.
A thread is for life. Not just for Christmas.



1533
Peekay
Re: Building sites using Linux?
  • 2005/6/26 14:42

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Been doing a little more work on this and have another couple of dumb questions if anyone can help!

I figured I would be able to access my XOOPS site installed on my Linux machine from my Windows PC via TCP-IP network. So I can edit and check the site using Win browsers. I'm O.K. with that.

I found a Windows application called WinAxe that allows you to open a window to your Linux server in Windows.

http://www.labf.com/winaxe/index.html

This I guess would enable me to open a Linux text editor in the WinAxe 'window' in Windows, so I can edit and save PHP files and cut-n-paste text. I'm O.K with that too.

What I figured I could *not* do was open a file from the Linux machine in a Windows application, edit it and save it back to the Linux machine preserving the UNIX file permissions. However, I found a Linux file-sharing solution called Samba

http://us1.samba.org/samba/

which appears to have some way of using UNIX permissions with Win apps. The online docs are heavy going and I am struggling to work out if it would do what I wanted.

Does anyone know if Samba would let me edit a file in Win Photoshop and let me save it back to the Linux machine with file permissions intact?
A thread is for life. Not just for Christmas.



1534
Peekay
Re: What is the easiest way to run Xoops off your own pc??
  • 2005/6/26 12:52

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I also recently tried XAMP (needed to run XOOPS on a Windows Home Edition PC that doesn't support IIS) I can recommend it. It really is a one-click install and (for me) was up and running in a few minutes.

There are no registry entries required, I installed XAMP and XOOPS in a folder on a 'D' drive. However, as davidl2 says, you do need to set paths in XOOPS config files properly. I don't have access to that laptop now, but I can post my settings if you decide to try it.

If you upgrade to broadband you might find the comments in this thread useful.
A thread is for life. Not just for Christmas.



1535
Peekay
Re: [code] dont respect width
  • 2005/6/25 17:12

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I will try and test the PHP in the next few days. I'll post here if it does, or doesn't work.

I agree with panigrc that long links are a pain too, but I think forcing HTML linebreaks to get them to wrap (which is what the PHP does) would break the URL?.

Of course, the same can be said of any code, so there is a trade-off between preserving your site layout and preserving the data. At the end of the day, the scrolling box may be the best solution.
A thread is for life. Not just for Christmas.



1536
Peekay
Re: [code] dont respect width
  • 2005/6/24 16:27

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


The PHP code would need to be added to core files somewhere I guess. I don't know where to put it either!

Your CSS looks fine to me.
A thread is for life. Not just for Christmas.



1537
Peekay
Re: [code] dont respect width
  • 2005/6/24 16:12

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Apparently, there is also a PHP string function that might do it:
$wrappedText wordwrap($text80"<br>n"1);

That's a hack too deep for me to try I'm afraid!

It was a good question though. I too will be interested to see if it can be solved.
A thread is for life. Not just for Christmas.



1538
Peekay
Re: [code] dont respect width
  • 2005/6/24 15:38

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I tried the CSS. It didn't work for me.

I did a little more digging and read that adding the wrap='hard' param to the textarea should wrap the text and send line breaks to the server. It requires a code hack to test it though and I'm out of time. I'll try later today unless anyone else cracks the problem in the meantime.
A thread is for life. Not just for Christmas.



1539
Peekay
Re: [code] dont respect width
  • 2005/6/24 14:30

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I haven't tried this, but you could try:
div.xoopsCode {
word-wrap: break-word ;
}

If you wanted unbroken lines of text to wrap in the input form too, I think you would need to modify the form, like comment_new.php for example, and change:

<textarea id='com_text'...

to
<textarea id='com_text' wrap='physical'...
A thread is for life. Not just for Christmas.



1540
Peekay
Re: CSS for Table CAPTION?
  • 2005/6/24 10:33

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


O.K. Sorry, solved it. My syntax error.

<caption>A Table of Contents</caption>


It's a requirement to make tables accessible to assisted technology browsers. Just add global 'caption' CSS to stylesheet, e.g.

caption {
font-size: 0.8em;
}
A thread is for life. Not just for Christmas.




TopTop
« 1 ... 151 152 153 (154) 155 156 157 ... 187 »



Login

Who's Online

248 user(s) are online (151 user(s) are browsing Support Forums)


Members: 0


Guests: 248


more...

Donat-O-Meter

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

Latest GitHub Commits