591
rowdie
Re:Are multiple news modules possible?
  • 2004/10/14 9:26

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


The news module used on this site is news 1.2.1 which is considered the latest stable release. It's available on the dev.xoops.org site.

It is not cloneable by default, there are many changes you have to make to acheive that, but it is doable.

Steps to take for each copy of news.
1.Change the name of the news folder, give it a unique name (lower case letters). i.e. example_news
2.Open xoops_version.php, change modversion['dirname'] = "example news";
3.In xoops_version.php, change the name of the sql tables to make them unique modversion['tables'][0]="example_stories"
4.Change the table names in sql/mysql.sql to the name you chose in xoops_version.php
5.Find all references to the tables in the news php files and change them to your new table names. Normally that looks something like xoopsDB->prefix("topics") or db->prefix("stories") etc.
6.Find all hard-coded url's using modules/news/ and change them to your new directory name... modules/example_news

There's 69 changes that need to be made for points 5 and 6 that I've found.

I also needed several versions of the news module. It's easier for the next copies because you can just search on your new name (e.g. example_) and change that.

Good luck!

Rowd



592
rowdie
Re:My site is a failure!
  • 2004/10/10 11:53

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


All the comments here are very valid. After having another look at your site I've also got a few more suggestions...

1. I suggest putting the google block below your other blocks. The other blocks are more important to your site and I can't see them without scrolling, at my screen resolution.

2. I love the dog in the top right corner, next to the login / register links. It draws the eye to where we need to go to log on. I suggest you get rid of the login block now because it's not necessary anymore, your little doggie is doing it's work very well That moves the menu to the top so we can then actually see what you're offering on this site.

3. I suggest you change the way you've structured the business part of your site, reporting and browsing lost and found dogs. At the moment you've got two links in the menu, 'Report a lost dog & browse database' and 'Report a found dog and browse database'. They are far too long, plus when you go to the section you're confronted with a heap of text - instructions on how to report, when all I wanted to see is pictures of missing dogs. I suggest you make a new link, 'Report lost/found dogs' which has that text and two links to report either lost or found dogs. The existing sections can then simply be lost dogs, found dogs and when you go there you see the listings immediately - I hate scrolling every time.

4. Front page - decide what is more important to your site, and put that higher than the other sections. I personally would think that the Recent lost dogs and recent found dogs is more important than what's been said in the forum lately. That's important too, but not the business end of your site, is my opinion, so it can afford to move down a few spaces

Anyway, this is just my view. I'm a devoted dog lover and I would love to see your site take off. It's a very important service you're providing, it should be used. Maybe also visit a few forums of dog breeders/associations and make your site known. They have a lot of contact with the dog lovers community so word of your site should spread.

Good luck!
Rowd



593
rowdie
Re: My site is a failure!
  • 2004/10/10 1:04

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Find out if your host has services for parked domains. Some hosting companies allow you to park several domain names on their server and have them all pointing to your main web space. Quite often that's a free service. Otherwise, I think I've seen hosting sites that offer free parked domain services... though don't quote me on that, I suggest you maybe google to find out



594
rowdie
Re: My site is a failure!
  • 2004/10/9 23:36

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Quote:
tedsmith wrote:

What annoys me is that my first pre-historic static html site was really popular - so much so I had to shut it down cause I couldn't keep up with the demand. I made the new one with XOOPS so it could kind of run itself - but no one is using it.


If your first site was popular I'd stick with that look. Is it possible to make a XOOPS theme from your original design? Hopefully that would bring the original visitors back.

Rowd



595
rowdie
Re: Importing formated data in news module ?
  • 2004/10/7 9:57

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


The format is unix time - number of seconds since 01/01/1970 GMT.

You might want to try the mySql function UNIX_TIMESTAMP(date) to convert your dates. I haven't tried it but it looks like it might be what you need.

information on function UNIX_TIMESTAMP(): can be found here.

information on DATE and DATETIME strings: can be found here.

Good luck,
Rowd



596
rowdie
Re:good starting point for designing a theme
  • 2004/10/5 16:27

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


try the anatomy of the default theme at the XOOPS documentation site.

or
the xoops wiki

or
xoops for dummies

They're all good resources.

Rowd



597
rowdie
Re: Problem with firefox ...!
  • 2004/10/4 16:05

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


I have the same problem, using Firefox 0.8. It happens with most themes, the center and right blocks content gets pushed to the far right, 80% of it is off-screen and you need to scroll to see it. Refreshing the page fixes it. It affects pretty much all themes really, so I just decided to wait until Firefox releases a final version before worrying about the problem.

vagelis, what version of Firefox are you using?

edit: it happens with this new forum too, unfortunately. I didn't have any troubles with the old one Maybe it's time to update my Firefox



598
rowdie
Re: News module (2 questions)
  • 2004/9/30 23:50

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


Sorry, I forgot that I'm using a different version.

Try changing that line you posted to:
$story['title'] = "<a href='".XOOPS_URL."/modules/news/article.php?storyid=".$sarray[$i]->storyid()."'>".$sarray[$i]->title()."</a>".'&nbsp;:&nbsp;'.$sarray[$i]->textlink();

Rowd



599
rowdie
Re: News module (2 questions)
  • 2004/9/30 15:52

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


I had a quick look, doesn't look too difficult Still, make a backup of the files first in case you have problems.

in index.php find:

$story['title'] = $thisstory->textlink().'&nbsp;:&nbsp;'.$story['title'];

change it to this:

$story['title'] .= '&nbsp;:&nbsp;'.$thisstory->textlink();

If you want to change the article title the same way try this...

in article.php find:
$story['title'] = $article->textlink()."&nbsp;:&nbsp;".$article->title();

Change it to:
$story['title'] = $article->title()."&nbsp;:&nbsp;".$article->textlink();

Hope it's what you're after...
Rowd



600
rowdie
Re: News module (2 questions)
  • 2004/9/30 13:49

  • rowdie

  • Just can't stay away

  • Posts: 846

  • Since: 2004/7/21


For your problem with the time you need to find formatTimestamp() in the news php files and give it a second parameter of "s".

i.e. formatTimestamp($article->published(), "s");

That will make it use the _SHORTDATESTRING format you defined in the language/english/global.php file of Xoops.

Rowd




TopTop
« 1 ... 57 58 59 (60) 61 62 »



Login

Who's Online

220 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 220


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