233641
bluwu
Creating and printing a list from dB...
  • 2004/9/30 23:11

  • bluwu

  • Just popping in

  • Posts: 26

  • Since: 2004/6/29


I used the module kickstart instructions to create a test module. I would like the mod to simply list the names of selected users.

Using the Kickstart guide i learned how to create simple variables like name etc but is there a way to output a simple list of names?

NuB-All-the-Way,
bluwu



233642
niktarin
Wierd activation email problem
  • 2004/9/30 22:54

  • niktarin

  • Just popping in

  • Posts: 28

  • Since: 2003/9/21


Hi all,
Some users complained to me about not getting the activation email when registering on my website.
I tried it myself and in some cases it actually did not send the activation key email to the user but at the same time I got the mail telling me that the a new user has registered.
If I try to send to the user (that did not get the activation mail) an email message within XOOPS he gets it.
Any Idea what is happening?
xoops version 2.0.7.3


Thanks
Nick



233643
m0nty
Re: TRUE Multisites hack.... at last!
  • 2004/9/30 22:14

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


ok, if i understand this right?

i am currently designing a new site, but each site will cater for different countries..

they are to be hosted on the same server, with the same database

so i have:

server_home/uk XOOPS site 1 install
server_home/us xoops_site 2 install
server_home/ca xoops_site 3 install

each country will have it's own XOOPS installation in a folder as above

all 3 sites share the same database.. (maybe each will if pos have it's own database, but for now in designing it i am only using 1 database)

site1 (uk) has the prefix on all tables of 'uksite'
site2 (us) has the prefix of 'ussite'
site3 (ca) has the prefix of 'casite'

and so on....

so what i want basically is all 3 sites to share the user tables, and all relevant tables.

BUT, each site will have unique content to that site in various modules.. ie the news module and sections etc..

i want the forum and mylinks, and downloads modules to be shared so each site will see exactly the same..

it's only certain modules that need to have unique data specific to each country.. so i don't want uk news showin on the us site.. but all 3 sites should basically be using the exact same downloads, forum and links modules..

if i've confused you let me know and i'll try to explain more..

what i want to know is, would this hack allow me to do this???

ie i can tell database.php that for the news module it would use default site prefix..

but then tell each site that the forum is to use for example: uksite prefix for all sites (so everything goes into those tables..)



233644
ackbarr
Re: Time Tracking Beta Released

Well - there is the API documentation for both classes (CriteriaCompo and Criteria). But they take a little getting used to. Their purpose is to handle everything after the 'WHERE' in a SQL Query.

Lets say you want to retrieve every user in XOOPS with an email ending in xoops.org, with a post count of 0, listed by date of user registration (oldest to newest).

Here's what I do:

Start with the full SQL query to retrieve the records you want.

SELECT FROM xoops_users WHERE [b]email LIKE '%xoops.org' AND posts=0 ORDER BY user_regdate ASC[/b]


The criteria for your records is displayed in bold, above.

The CriteriaCompo is a container to hold all the different pieces of the criteria. In our query the pieces are:

email LIKE '%xoops.org'
posts=0

First we create a new CriteriaCompo to hold our Criteria(s)

$crit = new CriteriaCompo();


Next we create a Criteria object for each piece:
$email = new Criteria('email''%xoops.org''LIKE');
$posts = new Criteria('posts'0'=');


Then we add them to the container:
$crit->add($email);
$crit->add($posts);


To adjust the sorting and the order, both CriteriaCompo and Criteria have the setSort and setOrder functions.
$crit->setSort('user_regdate');
$crit->setSort('ASC');



To get the resulting WHERE text, use the renderWhere function
$WHERE $crit->renderWhere();

$WHERE should be 'WHERE (email LIKE '%xoops.org') AND (posts = 0)'

For an example of how to use these objects in your own SQL queries, I recommend looking at the GetObjects function in any of the files in the /kernel directory



233645
Dave_L
Re: How to mass activate users?
  • 2004/9/30 22:07

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


This query should activate all inactivated users:

UPDATE xoops_users SET level 1 WHERE level 0


Back up the database (at least the xoops_users table) first.



233646
JackJ
Re: Putting module for start page above 2 blocks for center(r-l)
  • 2004/9/30 21:58

  • JackJ

  • Community Support Member

  • Posts: 747

  • Since: 2003/8/31


See this thread here

https://xoops.org/modules/newbb/viewtopic.php?topic_id=22516&forum=7#forumpost107755

If you need more help with your specific theme post again..



233647
jwf79
Re: No Users Can Login
  • 2004/9/30 21:46

  • jwf79

  • Just popping in

  • Posts: 11

  • Since: 2004/9/24


You did it the easier way ;) I was unsure of what empty did so I dumped the table then reinserted it. Goo to know empty also work

Thanks
Buster



233648
jegelstaff
Re: Flashchat module link

Quote:

jmass wrote:

with the C only in caps. That was it for me.


Yeah, that was it for me too. Or so I thought. But although it installs fine now, when I click on FlashChat in the Main Menu, nothing happens, the content part of the page (center block area) is simply blank.

Anyone have any suggestions? Here's what I've done:

1. Set the CMS include lines in common.php so that only the XOOPS line is uncommented.

2. swapped index.php and index_xoops.php

3. changed the folder name to flashChat.

4. Uploaded the files to the xoops\modules\ folder (the install instructions say to upload to the XOOPS root, but if you did that you couldn't install it in XOOPS, so the modules folder is the right place, right?)

4. CHMOD the config.srv.php file and the appTime.txt file to 777.

5. Install the module in XOOPS through the Admin Menu

That all seems to go fine, but when I click on the link for FlashChat in the Main Menu, I get a blank content area. Any insight greatly appreciated. Thanks.

--Julian



233649
jmass
Re: Time Tracking Beta Released
  • 2004/9/30 21:44

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


I look forward to your feedback.

As I mentioned above I am a newbie. So you may want a better mod to integrate with.

BTW - I started to look into Criteria and CriteriaCampo. They are more than a little confusing to me. Any doc on them besides just looking at the class files?

JMass



233650
CiberEspia
Re: block error newBB2

Thanks you!







Login

Who's Online

136 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 136


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