| Author |
Message |
TJ
Beginner


Joined: Jun 13, 2003 Posts: 3
|
Posted: Fri Jun 13, 2003 11:35 am Post subject: Read More... Fix Problem |
|
|
Hi, I've been trying to implement this fix but get the error:
Warning: Unknown modifier 'l' in /home/user/public_html/mainfile.php on line 849
I'm not sure how to fix it, any assistance appreciated.
Thanks,
TJ |
|
| Back to top |
|
|
AdBot
|
| Post subject: Read More... Fix Problem |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jun 15, 2003 7:36 pm Post subject: |
|
|
| what's the text on that line of your mainfile.php? if you're using phpnuke 6.5, i can email you my mainfile.php file. |
|
| Back to top |
|
|
TJ
Beginner


Joined: Jun 13, 2003 Posts: 3
|
Posted: Mon Jun 16, 2003 12:11 am Post subject: |
|
|
Hi dari,
In fact I just copied the script straight from the posting on this subject. Anyway I'll PM you with my e-mail address, if you could send you file that would be great.
Thanks,
TJ. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jun 16, 2003 7:37 am Post subject: |
|
|
ok, well here's the deal:
the code that i pasted on the page was correct as i pasted it, HOWEVER....PHP parses stuff like slashes and backslashes funny, and it resulted in some critical things being removed (and no matter how many times I tried to fix it, nothing worked.). So, what I will do is take a screenshot of the code and post it as an image in the article, instead of straight text on the page. The downside is that you won't be able to just copy and paste, but at least it will be correct. I may post the lines, with instructions, as a download, as well. |
|
| Back to top |
|
|
TJ
Beginner


Joined: Jun 13, 2003 Posts: 3
|
Posted: Sat Jun 21, 2003 10:30 pm Post subject: |
|
|
Dari,
Thanks very much for the e-mail, I got round to using your code today and the error has gone. However I'm not sure if the result is the expected one, as the 'Read More...' links now just refer back to my home page (which is still better than the root XML server!). Could you take a look at www.asiansecurityweb.com and let me know if something is wrong?
TJ |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jun 23, 2003 8:07 am Post subject: |
|
|
hmmm...
the way the code is written, it takes the value from the "link" section of the channel header code:Code: › ---rdf about and title stuff here---
<link>http://cnn.com/money//</link>
.
In this case it would return http://cnn.com/money/.
I'm looking at the source for your web page and have found that the link to the read more shows as follows:
Code: › <a href="" target="blank"><b>read more...</b></a>
That means that the XML feed format from your source is different from the perl/PHP script that is generated by the scripts available here. If you send me a sample XML file from them, I can tailor the couple of lines to your needs. |
|
| Back to top |
|
|
|
|
|
|
|