31
maxima
Re: Can content be extracted from one page to another?
  • 2007/1/11 1:24

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Yes you certainly mis-understood. I want to extract content from one page to another.

I am thinking a smarty like this. This doesn't work. It is just a concept:
<div>
<{
show $block.content from=$xoops_dirname == "basic"}>
</
div>


I don't know the smarty tags but if there is one that locates the content of a directory in the database I think I can get it to work.

Or more likely an SQL query. This didn't work either but it's because I don't have a clue about DB query strings so someone with knowledge please help me correct this query.

It is to extract from the content column of the xoops_newblocks table and identify it by the title column 'Test'
<{php}>

$username='root';
$password='password';
$hostname='localhost';
$databasename='xoops';
$conection = @mysql_connect($hostname$username$password);
mysql_select_db($databasename);

$results mysql_query("SELECT content FROM xoops_newblocks WHERE title=('Test') ");

while ( 
$row mysql_fetch_array$results ) ) {

echo 
mysql_result($result);


}

<{/
php}>



32
maxima
Can content be extracted from one page to another?
  • 2007/1/10 18:47

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I created 3 basic modules using the simple:
<?php
include("../../mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
$xoopsOption['show_rblock'] = 1;
?><?php
include(XOOPS_ROOT_PATH."/footer.php");

?>


I am trying to use a javascript tabbed section on a page which has 3 tabs and each will expand a hidden layer which should contain the information extracted from the basic modules.

I want to be able to add content to the basic modules using the add block tool in admin but not show the modules as links. The modules will just serve as the content holder.

Is there a smarty method to locate and display content from other modules or does it have to be an SQL query wrapped in PHP to format?



33
maxima
Re: How can I set the anonymous group to status of registered?
  • 2006/12/26 3:07

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


So there is no simple sql or code adjustment to make this happen? It would be nice if there was a switch in general preference to enable this.

The back office system is great to edit the site but sometimes I forget to set the permission when a block is added, then it's not until someone report that it's not visible that I realise.

Maybe someone has made this hack. If so please let me know how.



34
maxima
How can I set the anonymous group to status of registered?
  • 2006/12/25 2:09

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I don't require users to register and so I'd like to make it so that when a module or new block is added it is automatically available to the Anonymous group just as it does for the registered group.



35
maxima
Re: Can the anonymous group be permission be automated?
  • 2006/11/22 3:35

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


any suggestions on this?



36
maxima
Can the anonymous group be permission be automated?
  • 2006/11/20 16:36

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I'd like to make the anonymous group permission be automatic so that new blocks and modules are checked just as the registered users. Is there a simple edit to do this?



37
maxima
XCGallery 2.03 album sort order modification?
  • 2006/11/19 1:42

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I want to modify the sort order of the albums of the XCGallery module to descending. Does anyone have a hack to do this?

Also want to fade the watermark if it is possible.



38
maxima
Re: Can I add numbering to block listing?
  • 2006/11/18 2:15

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


I tried the block admin module and it does arrange the blocks nicely but it is not up to date with XOOPS additional bottom blocks so the don't show. Is there a newer version somewhere?



39
maxima
Re: Watermarks and XCGal
  • 2006/11/10 23:45

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Still seeking a solution to this



40
maxima
Re: XCGallery album sort order modification?
  • 2006/11/10 23:44

  • maxima

  • Not too shy to talk

  • Posts: 152

  • Since: 2006/3/4 4


Still seeking a possible solution.




TopTop
« 1 2 3 (4) 5 6 7 ... 14 »



Login

Who's Online

223 user(s) are online (129 user(s) are browsing Support Forums)


Members: 0


Guests: 223


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