Skinbase.org Skinbase.org

Headlines News in another page

By antonio
814 views 13 replies
peter_vazed avatar
peter_vazed
Member
OP
Then you need these files: <br />index <br />footer <br />header <br />newman.lib <br />db.inc <br /> <br />Now you have to edit the header and index. <br />Delete what you do not want. <br /> <br />In these files are functions and jumps <br />So then you can jump from a headline to the news. <br /> <br /> <br /> :fighter
antonio avatar
antonio
Member
<b>Peter_Vazed</b> <br /> <br />Thanks, but that is a huge solution for a tiny problem... <br />I think it has to be an way to use one script that permits display the headlines in a remote site. Like if I want to have in my site a set of headlines from Yahoo news, they provide me a php, javascript or ssi to display their headlines. When clicking on the links the user is send to the source stories. <br /> <br />Can I hire you to help me display the headlines in a second site? <br />If you can not do it, I appreciate if somebody can do that for me. <br />I will pay for his/her service.
peter_vazed avatar
peter_vazed
Member
Arrows? <br />you mean <b> &gt; &gt;</b> more ? <br />src=&quot;./newman/gfx/more.gif&quot; is the code. <br /> <br /><b> 2) I want it to be display like this (with header and everything) </b> <br />&#191;&#191;&#191;&#191;&#191;&#191; ...... and what not? <br /> <br /> <br /> :sangria

Edited

antonio avatar
antonio
Member
<b>Peter_Vazed</b> <br />Thanks again for your time helping me. <br />Please remember that I am not an expert like you. <br />What I mean with (2) is with the codes you provided me <br /> <br />1-I want to display the titles in one page exactly like the way you put it. <br />2- But, when somebody click the title, I want to see the full page like this <br />http://www.noticias.alabanzas.com/revista/index.php?action=show&amp;type=news&amp;id=8 <br /> <br />
peter_vazed avatar
peter_vazed
Member
Thought it was impossible. <br /> <br />How Webmagazine works: <br />The site has just ONE page <br />and divided in three parts: <br />index heading and footer <br /> <br />So only the contentpart changes. <br />The contentpart is filled by the database. <br /> <br />So the test_headings.php wil only replace the content, and not be able to get the header, menu and the rest. <br /> <br />There has to be a jump to the index.php <br />It is not possible to use a base target. <br />A javascript with confirm did not work. <br />We need the id and a jump. <br /> <br />So we need a new function to do the job. <br />I took two functions and just renamed them. <br />It worked. <br />Now the jump. <br />In the code is PHP_SELF, this is replaced bij index.php <br />(if you use it in another site you need the full URL) <br /> <br />It woks :jafo :jafo <br /> <br />See it in action: <br />php file http://members.lycos.nl/vazed/webmagazine/test_headlines2.php <br />get this file: <br />txt file http://members.lycos.nl/vazed/webmagazine/test_headlines2.txt <br />rename it to php <br /> <br />gts <br />Peter V <br /> <br /> :car

Edited

antonio avatar
antonio
Member
<b>Peter_Vazed</b> <br />I am still breaking my head trying to put correctly the location of the 3 files, but with different combinations, I get errors. <br /> <br />The headlines ( I call it &quot;peter.php&quot;) are in html folder <br />db.inc.php is in html/news <br />lang_spanish.php is in html/news/magazine/lang_spanish.php <br />newman_lib.php is in html/news/magazine/newman_lib.php <br /> <br />The way I put it is... <br />require (&quot;./news/db.inc.php&quot;); <br />require (&quot;/news/magazine/lang_spanish.php&quot;); <br />include (&quot;/news/magazine/newman_lib.php&quot;); <br /> <br />See the error http://alabanzas.com/peter.php
antonio avatar
antonio
Member
<b>Could somebody help me on this?</b> <br />I am still breaking my head trying to put correctly the location of the 3 files, but with different combinations, I get errors. <br /> <br />The headlines ( I call it &quot;peter.php&quot; are in html folder <br />db.inc.php is in html/news <br />lang_spanish.php is in html/news/magazine/lang_spanish.php <br />newman_lib.php is in html/news/magazine/newman_lib.php <br /> <br />The way I put it is... <br />require (&quot;./news/db.inc.php&quot;; <br />require (&quot;/news/magazine/lang_spanish.php&quot;; <br />include (&quot;/news/magazine/newman_lib.php&quot;; <br /> <br />See the error http://alabanzas.com/peter.php <br />
peter_vazed avatar
peter_vazed
Member
Error: <br />No such file or directory in /var/www/html/noticias/revista/newman_lib.php on line 9 <br /> <br />So the root is not correct. <br /> <br /> :fighter
antonio avatar
antonio
Member
<b>Updating my headache</b> <br />This is the headlines inside the same magazine <br />http://alabanzas.com/noticias/revista/peter.php <br /> <br />This is the headline in the &quot;html&quot; of the side (where I want it to be) <br />http://alabanzas.com/peter.php <br /> <br />Inside the magazine it works ok, but not outside. The information that I put there is: <br />require (&quot;/var/www/html/noticias/db.inc.php&quot;); <br />require (&quot;/var/www/html/noticias/revista/languages/lang_spanish.php&quot;); <br />include (&quot;/var/www/html/noticias/revista/newman_lib.php&quot;); <br />
peter_vazed avatar
peter_vazed
Member
The test <br />http://members.lycos.nl/vazed/test_headlines3.php <br />outside the webmagazinefolder. <br /> <br />But is hard to use includes from another folder. <br />You need the db.inc and newman.lib in the same folder. <br /> <br />If this is like you want it i can upload a zip with the files i used. <br />So you can see how it is done. <br /> <br />Or use a &quot;one frame&quot;option. <br />Look here: <br />http://people.zeelandnet.nl/vazed/test/one_frame_test1.html <br />It is another server but shows the files. <br />View Source for the code. <br /> <br /> <br />gts <br />PV <br />:car <br /> <br />
antonio avatar
antonio
Member
Please send me antonio@nosotros.com the &quot;no frames&quot; file. <br />Thanks in advance.
Sign in to post a reply.