233621
Dave_L
Re: Creating and printing a list from dB...
  • 2004/10/1 1:17

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Oops, I forgot to enclose $name.username in Smarty delimiters. I corrected my post above. (You should have caught that. )



233622
bluwu
Re: Creating and printing a list from dB...
  • 2004/10/1 1:11

  • bluwu

  • Just popping in

  • Posts: 26

  • Since: 2004/6/29


this is what i got so far for output...

$name.username
$name.username
$name.username




233623
Bender
Re: WF-Sections Recent Features Block
  • 2004/10/1 1:08

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


1. Edit the file wfs_block_new.html

change line 5 from Quote:
<{$wfs.title}> (<{$wfs.new}>)

to
Quote:
<br><{$wfs.title}> (<{$wfs.new}>)


2. In XOOPS preferences set Update module template .html files from themes/your theme/templates directory? to yes and save. Then go to the page and have a look. After this you can set it to 'no' again if you prefer.

You can also edit the block template from XOOPS block management but then you have to clone the template set first and set XOOPS to use your new one.



233624
jmass
Re: Time Tracking Beta Released
  • 2004/10/1 1:07

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


Great explaination. I will sure check this out!

I looked at the api doc. It made no sense to me at all.

One question about your example:
Quote:
$crit->setSort('user_regdate');
$crit->setSort('ASC');

Should this be?:
Quote:
$crit->setOrder('user_regdate');
$crit->setSort('ASC');


Or am I off base?

Thanks,

JMass



233625
libervis
Re: My articles don't display (wf-sections)!!!
  • 2004/10/1 1:00

  • libervis

  • Not too shy to talk

  • Posts: 183

  • Since: 2004/7/4 1


Thank you wfsections and bender..

It's not a biggy anymore. I did a fresh install just as you wfsections said and the articles display fine.

I only now messed a bit with the db wfs tables, but nothing bad. I am reinstalling it fresh again and i'll then delete the tables i am going to put back again in from my backup that contains my content and it would be ok.

Thank you guys for your help
Daniel



233626
JasonMR
Re: Credits v1.3 now available
  • 2004/10/1 0:58

  • JasonMR

  • Just can't stay away

  • Posts: 655

  • Since: 2004/6/21


Your right mate!

This is the thread to post to

Great, to read this news, after having a quick 2h power nap.

I will PM you with some details.

Thanks wolvy for your prompt execution, and your contributions in the process of our further development. Bugtesters are a Developers-Best-Friend ( at least if interested in producing quality software! sure MS devs think differently )




233627
Dave_L
Re: Creating and printing a list from dB...
  • 2004/10/1 0:55

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


Ok, I'll just outline the method.

In your .php file, put the items you want to display into an array, doing a database query if necessary.

So you might wind up with:

$data[0]['username'] = 'joe';
$data[1]['username'] = 'moe';
$data[2]['username'] = 'reginald';


Assign the array to a Smarty template variable:

$xoopsTpl->assign('usernames'$data);


Then in your .html file (Smarty template), display the array contents with a foreach or section loop:

<{foreach from=$usernames item='name'}>
   <{
$name.username}> <br />
<{/foreach}>


You can make it prettier by adding labels, tabulation, etc.



233628
bluwu
Re: Creating and printing a list from dB...
  • 2004/10/1 0:43

  • bluwu

  • Just popping in

  • Posts: 26

  • Since: 2004/6/29


Quote:

Dave_L wrote:
How much do you know about PHP, MySQL, HTML and Smarty?


I can work with them all but I am not 100% proficient in any of them. But explain away... I think I can follow. I've already hacked my XOOPS enough as it is to get it to do what I need for better or worse but it works...

I'm just playing so i can learn.



233629
Bender
Re: My articles don't display (wf-sections)!!!
  • 2004/10/1 0:33

  • Bender

  • Home away from home

  • Posts: 1899

  • Since: 2003/3/10


Just a note:

Database dump works fine when thrown into a different XOOPS installation with WF-S 2.01. So the tables seem to be intact.

Currently trying a fresh XOOPS / WF-S 2.01 install on the same server and dumping the WF-S tables backup in there.



233630
peterpatrol
Index.php

Fantastic
Its back working. I really appreciate that.

Not even going to try and work out what happened. But what a great response (10 mins from problem evident to restored)

Thanks liquid







Login

Who's Online

126 user(s) are online (83 user(s) are browsing Support Forums)


Members: 0


Guests: 126


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