1
equinox
Re: $xoops_contents HTML output stays
  • 2010/11/9 15:51

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi kris,

thx for, but i dont know what you want to say...

can you explain the file please?

thx so much!



2
equinox
Re: $xoops_contents HTML output stays
  • 2010/11/9 14:49

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


does nobody have an idea about?



3
equinox
Re: $xoops_contents HTML output stays
  • 2010/11/8 11:57

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi at all,

i´ve the same problem in the present version 2.4.5.
So i use for some themes the simple statement
Quote:

<div id="startpage <{if $xoops_contents}>style="display:none;"<{/if}>>
THIS PART IS ONLY DISPLAYED ON STARTPAGE (AND NO ACTIVE MODULE ON STARTPAGE TOO)
</div>
<{if $xoops_contents}>
<{$xoops_contents}>
<{/if}>


Now i had download the newest version from the German Community and it doesnt work any more. I have also installed the present version 2.4.5 from the xoops-repository and all works fine. As soon as the German language arrive, the problem is still again.

(I´ve tried something like
Quote:
<{if $xoops_contents != " ")

but nothing solves this.

What can that be?

Greetings
Thom


::push::



4
equinox
Re: Display only a part (#anchor) from a page with "file_get_contents" in another Page
  • 2010/2/19 13:36

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi ghia and thank you very much for your answer.

I GOT IT!

I still meaned:
<table id="ajax">
 <
tr>
  <
td class="title" colspan="2">TITLE</td>
 </
tr>
 <
tr>
  <
td id="desc">here the content i would to display as only from this page</td>
  <
td id="thumb"><img... /></td>
 </
tr>
</
table>


To solve this issue is just in the page where this part is included:
<?php
$filepart 
"http://example.com/folder/filename.php"
$array file($filepart);
echo 
$array[5];
?>

That will happend only the 6th line is displayed.
BTW: a table-structure is a bad example for, because the table > tr > < /tr < /table must displayed too. I have the arrays just extended. But all works fine.

Greetings
Tom



5
equinox
Re: Display only a part (#anchor) from a page with "file_get_contents" in another Page
  • 2010/2/19 12:01

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


no one knows what i mean?



6
equinox
Re: Display only a part (#anchor) from a page with "file_get_contents" in another Page
  • 2010/2/17 23:12

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi at all,

I am Sorry! its sure that the complete file is displayed at the place where i would display it. (The anchor is just a place to display in a file, not only a part what i would to display.)

With "file_get_contents("");" is loaded a complete file into a String. How can i now this function extend to read only a part of this loaded file? I know i can set some extra (example: NULL, NULL, 10, 20) from start and/or until the end to read the file. But the size of my pages at this line is different long.
I can´t find anything about this.

Can anybody help me pls?

Greetings



7
equinox
Display only a part (#anchor) from a page with "file_get_contents" in another Page
  • 2010/2/14 15:13

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi Guys,

i´ve readed that if i want to display only an fragment (anchor) from another page i can use it like this:

<?php 
$desc 
file_get_contents("http://www.mydomain.com/folder/file.html?#fragment2"); 
echo 
$desc;
?>


The code from the file.html looks like this:

<table id="fragmented">
<
tr>
<
td id="fragment1">The page title</td>
</
tr>
<
tr>
<
td id="fragment2">The code to display in another page</td>
</
tr>
<
tr>
<
td id="fragment3">The page footer</td>
</
tr>
</
table>


But thats not work correctly, the complete file is displayed and not only the anchor. What i do wrong?
I can not use some XOOPS Vars because that all is not in a module. I think, i do wrong anything with the php-code.

Greetings from Germany
Thom



8
equinox
Re: Is a Function needed to use <{$xoops_url}> as http://... ?
  • 2010/2/8 14:38

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi ghia,
thx as first, if i use now this PHP-code has result "http://..." is displaying. Great job, thx.

My code looks now like a code from Wordpress *LOL*

BTW: Is nothing else possible to use <{$xoops_url}>?
It must be PHP-code for pages that not inside a module?
(Thats only a question. I want to understand how inside a module some variables like <{$xoops_url}> can be used, and just only there.)

Greetings
Thomas



9
equinox
Re: Is a Function needed to use <{$xoops_url}> as http://... ?
  • 2010/2/7 13:21

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi ghia,

thx for it, but that is not what i mean.
I would like to display "http://www.mydomain.com/" at using <{$xoops_url}>, but <{$xoops_url}> is displayed by hover the link on my page, thats result by click the link an http-error (page can not be found...). Sure, because the var is not displayed as "http://..."

I am Sorry for misunderstanding, the Homelink (as example) is in a html part above php-code.



10
equinox
Is a Function needed to use <{$xoops_url}> as http://... ?
  • 2010/2/7 1:34

  • equinox

  • Just popping in

  • Posts: 13

  • Since: 2010/1/17


Hi at all,

i tried to use
<a href="<{$xoops_url}>/index.php">Back to Home</a>
in a *.php page in my Uploadfolder.
I know for using any contents that is not provided in xoops, there must be the mainfile.php included to display all correctly.
I also tried the mainfile.php, the header.php and the footer.php to include too, but all does not work.

Is there a Hack needed to use the xoops-Variables in extra pages?

In Themes i can provide some new variables they i would like to use with:
"<{assign var="name" value=$name->folderName|cat:'/name'}>"
Is a part like this needed too to solve my problem?

THX for all Answers and Greetings from Germany
Thom




TopTop
(1) 2 »



Login

Who's Online

135 user(s) are online (79 user(s) are browsing Support Forums)


Members: 0


Guests: 135


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