1
cgibb1014
Where do you assign values to variables?
  • 2005/10/8 4:09

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


This might seem like a really dumb question but I'm not that familiar with php or smarty or the XOOPS structure.

All the php files that I've looked at have tons of variables like $xoops_sitename but I can't find where you can assign an actual value to the variables. The values always seem to be picked up from other variables.

Is there a central file or table or someplace where you can assign values to these global variables all at once without having to hardcode strings or values into each location where the variable is used?

When I did a lot of programming in the past we always had a way to make the change in one place, like by importing a file or running a module whose sole function was to initialize variables. But I haven't found it in XOOPS yet and all my searches of the support forums have been fruitless.

This has got to be a simple thing to do. Can anybody tell me where I do it?

Thanks.



2
cgibb1014
Re: Blank Page Module
  • 2005/7/21 6:27

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


Thank you! Thank you! Thank you!
That's pretty much exactly what I was looking for.

It's great that you can customize your own module file on their site and then download it.

There is a bug as far as editing the sample database block and the sample block. In both cases you can only view the existing template, you cannot change them. But you can also create your own custom blocks to display on the page.

Or you can have a blank page if you like.



3
cgibb1014
Re: Blank Page Module
  • 2005/7/21 1:54

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I've been looking for a blank page module that can be easily cloned so that it will have the same look as my other pages but I can use blocks, php or HTML to use it for whatever I wanted. Because it's a module, it will automatically appear in the main menu under whatever name I give it.

I downloaded smallstore and the installation went fine and gave me all the right messages.

But it's not a blank page. It's Kaotic's store. I'm assuming there's some way to configure it to suit my own needs but I can't find it. When I hover over the smallstore icon on the modules page I get nothing to show it can be customized. There are also no new blocks on the blocks page and "smallstore" is not one of the options for pages to add blocks to.

So what am I missing here? Where's the blank page?



4
cgibb1014
Re: Can't see text in forum category title bar
  • 2005/7/18 18:40

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I was able to solve this problem by adding three lines to the css file.

After these lines:
a {color: #666666; text-decoration: none; font-weight: bold; background-color: transparent;}
a:hover {color: #ff6600;}

Add these lines:
table.outer th a:link {color: #ffffff;}
table.outer th a:hover {color: #ff6600;}
table.outer th a:visited {color: #aaaaaa;}

It took a long time but I was able to learn something about css, classes and id's in the process.



5
cgibb1014
Can't see text in forum category title bar
  • 2005/7/17 5:01

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I don't know if this is a css problem or a module problem.

I just installed the forum module and the category titles are dark text on a dark background--nearly invisible. I'd like to change the text to white.

Anybody know where I do that?

I'm using the default theme.



6
cgibb1014
Re: Visitor count in Whos Online block is incorrect
  • 2005/7/15 21:41

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


So let me see if I understand this.

Those anonymous users probably were there at one point but because there hasn't been a lot of traffic today, the list doesn't get "refreshed" and so it looks like they're still there long after they've left?

Or were they never there in the first place?

UPDATE: Since those same users have been there all day, I just emptied the xoops_online table and that took care of them.



7
cgibb1014
Re: Visitor count in Whos Online block is incorrect
  • 2005/7/15 19:50

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I've got the same problem. It sees me under a registered name when I log in and also keeps me as anonymous.

Also, all morning it has shown 8 anonymous users online in addition to me. When I click "more," it shows the same IP addresses each time and shows them browsing the same locations (for hours!).

When I log on, there are 9 anonymous users and my registered name, so the count goes up to ten. When I log off those 8 anonymous users remain, but I don't think they're really there.

Oddly, my StatCounter says NOBODY has hit the site at all today (I filter out my own IP address).

There is "no cache" for the Who's Online block.

Is there something I can do to fix this?



8
cgibb1014
Re: xlanguage 2.0 - Menu not translated
  • 2005/7/14 16:58

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I'm a little confused about this module. When I first tried CMS, I tried phpNuke. It had a language block and if a user picked a different language, all the messages from phpNuke itself were translated into their language. None of the content was translated so I'm not sure how much good it did for a foreign language visitor.

Since I set up XOOPS, more than half of my hits are coming from China. Why? I don't know.

Does xlanguage 2.0 translate the XOOPS messages into Chinese or any other language I choose? Is that it's purpose?

It also sounds like users can write messages (like bulletin board, etc.) in their native tongue. Is that true? How could I moderate posts if I can't understand them?



9
cgibb1014
Re: problem with admin login
  • 2005/7/10 4:32

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I'm using version 2.0.13.

Thanks JD. That got me in but there's still something wrong there. If I log in a from user.php and then go to admin.php it sees me as two users, anonymous and admin.

When I first installed it, I got a completely different login screen, that looked like it was just a doorway into the back end. I've never seen that screen again. If I go directly to admin.php, it just says I don't have access. I would think it would let me try to sign in first before it said I didn't have access.

It also seems that if I turn off anonymous comments, it won't let an anonymous user vote in a poll, but I guess that's off topic here.



10
cgibb1014
Re: problem with admin login
  • 2005/7/10 2:40

  • cgibb1014

  • Just popping in

  • Posts: 12

  • Since: 2005/7/10


I just downloaded XOOPS today and had no problem installing it. I logged in as admin and set up block, changed the logo, and a few other things.

I was able to flip to the home page from the admin panel and could see everything fine. Decided to take a break.

Now if I go to www.yourhostfinder.com/xoops/index.php I get a simple screen, but not the full home page.

If I go to www.yourhostfinder.com/xoops/admin.php I get a message that I don't have access to this area and then the same simple screen.

How can I not have access? I was just signed in.

What's up with that?

Please don't say I just wasted all this time installing software that's full of bugs. I'm ditching phpNuke because I just couldn't take all the bugs anymore.

Can anybody help?




TopTop



Login

Who's Online

162 user(s) are online (117 user(s) are browsing Support Forums)


Members: 0


Guests: 162


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