191
phillipd
How do themes work?
  • 2004/5/1 16:12

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Looking at the gold theme, which I'm trying to troubleshoot a problem, there are sections for:

Left blocks, center-left, center-right, center-center, right

then there is the section for content, and then right blocks.

In the content section I see:
class="blockContent" width="100%"><div id="content"> <{$xoops_contents}

I assume this is were XOOPS grabs the contents of the block from the DB and enters in the block. But when I remove "xoops_contents" like this:


class="blockContent" width="100%"><div id="content"><{}

I see that the content stays in the center blocks but the right blocks and content are missing. I would have expected the content in the blocks to all disapear but the blocks to stay.

I guess I clearly don't understand the way themes work. Is there a good explanation of this mechanism somewhere?

Thanks

Doug P



192
phillipd
Re: Gold theme center column blocks are depressed
  • 2004/5/1 14:57

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Could you just email it to me please?

dougp at intermind dot net

Thanks alot

Doug p



193
phillipd
Re: Gold theme: center column is depressed down
  • 2004/5/1 14:52

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I'm sorry, I posted in the beginners corner first then saw the theme reated forum. It won't happen again...

Doug P



194
phillipd
Gold theme center column blocks are depressed
  • 2004/5/1 5:18

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


When using the gold theme, my blocks in the center start an inch below the side blocks. What might cause this? I'm looking at the theme.html file but I don't really know how a theme works so it's greek to me...

Thanks for any help

Doug P



195
phillipd
Gold theme: center column is depressed down
  • 2004/5/1 5:10

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


When using the gold theme, my blocks in the center start an inch below the side blocks. What might cause this? I'm looking at the theme.html file but I don't really know how a theme works so it's greek to me...

Thanks for any help

Doug P



196
phillipd
Is there a config setting to post text for text based browsers?
  • 2004/4/29 22:29

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I want to use XOOPS for my LUG site. There are some pretty opinionated people in the LUG than will really gripe at a strictly graphical site. Are there any solutions for this with Xoops?

Thanks

Doug P



197
phillipd
Re: Is it possible to do a MySQL query in a block
  • 2004/4/29 2:42

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Where does the log info go?



198
phillipd
Re: Is it possible to do a MySQL query in a block
  • 2004/4/29 2:15

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


That works great! Many thanks. How do you turn on this debug mode I'm hearing about?

Doug P



199
phillipd
Re: Is it possible to do a MySQL query in a block
  • 2004/4/29 1:42

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


I try the following code in a block but get no output, what am I missing? Got any sample code???

global $xoopsDB;

mysql_pconnect('localhost', 'douglas', '') or die ("Can't connect to DB");
mysql_query("USE customers");

<table cellpadding=4 border=1><tr><td>id</td><td>userid</td><td>Last</td><td>first</td><td>phone</td><td>ip
</td><td>comment</td></tr>

<?php
$query = "SELECT id,userid,last,first,phone,ip,comment FROM cdata where userid like '%doug%'";

$result = mysql_query($query);

while ($data = mysql_fetch_object($result)) {
echo "<tr>
<td>$data->id</td>
<td>$data->userid</td>
<td>$data->last</td>
<td>$data->first</td>
<td>$data->phone</td>
<td>$data->ip</td>
<td>$data->comment</td>
</tr>";
}
}
?>

</table>
</body></html>



200
phillipd
Is it possible to do a MySQL query in a block
  • 2004/4/29 1:01

  • phillipd

  • Quite a regular

  • Posts: 219

  • Since: 2004/4/20


Is it possible to open a MySQL db connection via php and do a query, in a block? I know you can select PHP or html, but I try this and get no output to the block. Could someone provide some example code that really works, in a block, please?

Also can you mix php AND html in a block?

Thanks, a bunch!

Doug P




TopTop
« 1 ... 17 18 19 (20) 21 22 »



Login

Who's Online

163 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 163


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