 |
 |
 |
 |
 |
| Author |
Message |
CLC
Joined: 11 Nov 2005 Posts: 13
|
|
|
|
 |  | Trie to place the PHP_self tag where you include the news..
Simply add this line, where page.php is the page you want to refer it to
 |  | $PHP_SELLF = "page.php"; |
|
...It's still not working... Thanks for trying, though...
|
|
| Mon Nov 14, 2005 7:56 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
Ramon
Joined: 12 Oct 2005 Posts: 550 Location: Hoogeveen, NL |
|
|
|
Try dumping all your cache files
It should work, as it works for me
I also saw I made a little error , its  |  | $PHP_SELF = "page.php"; | instead of  |  | $PHP_SELLF = "page.php"; |
|
|
| Mon Nov 14, 2005 7:57 pm |
|
 |
CLC
Joined: 11 Nov 2005 Posts: 13
|
|
|
|
 |  | Try dumping all your cache files
It should work, as it works for me
I also saw I made a little error , its  |  | $PHP_SELF = "page.php"; | instead of  |  | $PHP_SELLF = "page.php"; |
|
(Don't worry. I noticed that little error before. )
I GOT IT TO WORK!!!!
:D
I was tinkering with the help file by taking some of that Russian and translating it with an online translator. When I had translated a small portion of it, I saved the file then checked my help file again. I now noticed the following:
 |  | It is a very simple process. It is necessary only on the top of a file in which will be displayed News to write:
include 'head.php';
|
So I included that at the top of my page; and now it works!!!!
Hey, Chupa2k, maybe that's your problem, too!!!
Thanks for the help everyone.
I think there is more useful information on the help page; but not all of the Russian words seem to be translating; and the sentences aren't always configured in proper English grammar when translated like that.
If only some kind and generous *wheedle wheedle* *butter up * person could help the writer of the script, at least, translate that one page. I think a lot of problems would be avoided that way.
|
|
| Mon Nov 14, 2005 8:27 pm |
|
 |
marcusmagalhaes
Joined: 24 Apr 2007 Posts: 73
|
|
$PHP_SELF doesn't work!! |
|
$PHP_SELF doesn't work!!
I'm using Cutenews.ru last version, and when put this $PHP_SELF = 'newsfront.php'; doesn't go to the specific page..
http://www.mvmweb.com/tvpn/index.php (main page)
when I click in the "Read more"
http://www.mvmweb.com/noticias.php/2007/04/26/videos.html
the directory /tvpn/ gone!!!!!
whats happen?
<?PHP
$static = TRUE;
$category = '2';
$number= 3;
$template = 'Headlines';
$PHP_SELF = 'newsfront.php';
include $cutepath.'/show_news.php';
?>
|
|
| Thu Apr 26, 2007 5:49 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 2027 Location: US |
|
|
|
I've never used PHP_SELF to do this cause I've always found an easy way to get your full story links to open in any file you want was to do this:
Go to User Friendly URL's in the admin panel (urls.ini)
Add something like:
 |  | [../newsfront]
post = "{title}.html" |
Then copy your headlines template to something like 'headlines-newsfront'
Then make your include code for this match your new template. In your template active news change all your full story links to something like this:
 |  | <a href="{link=../newsfront/post}">Read more</a> |
That should allow you to produce the same effect that you're having trouble with in PHP_SELF.
_________________ www.scodal.com is an example of cnr as a social forum - www.scottdizzle.com is an example of cnr as a personal website to share whatever cool stuff i feel like. i have another, but it's nsfw. pm me  |
|
| Fri Apr 27, 2007 6:33 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|