| Author |
Message |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
Two Problems: rUFUS Question and Different Layouts |
|
I'm just curious...can I use rUFUS to do this type of situation? And how can I make it go to a different template?
Say I add this line
[home2]
post= "{title}.html"
Now do I create a home2.php in the cutenews directory? Say I do that, can I make it so whenever I link a full story to {link=home2/post} it will show a specified template on a different layout page that I make in Dreamweaver? Because right now I have a setup where on the left side of the site there are 7 short story news agrticles showin. And on the right side I have it so there is another php include that will a only show the titles(linked to their full stories) of articles from another section that were posted but the problem is whenever I click those title links, they open up those articles on the wrong layout page...
-------------------------------
Thank you for any help!
-him
|
|
| Thu Mar 09, 2006 5:42 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
Yes, that's possible. That way I created the gallery on the demo page.
|
|
| Thu Mar 09, 2006 8:50 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Ah, thank you
One more question, lets use your gallery.php as an example. Say I wanted to make it so gallery.php was outside of the cutenews directory so instead of the address showing as www.yoursite.com/cutenews/gallery.php it would show as www.yoursite.com/gallery.php.
Is this possible with a code in rUFUS?
Thank you so far for the help
-him
|
|
| Fri Mar 10, 2006 8:24 am |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
| Fri Mar 10, 2006 9:41 am |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Thanks, FI-DD I'll see how everything comes out. I just want to make sure, say I make the gallery.php in Dreamweaver with the php include code in it, will it show that layout i made and the cutenews content as well?
-him
|
|
| Fri Mar 10, 2006 5:36 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
| Sat Mar 11, 2006 1:36 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Hm, I'm having a problem...
I created the new field in rUFUS right below [home]:
[reviews]
post = "{title}.html"
I made a layout for the webpage Reviews in Dreamweaver and put in the include code for the reviews posts to show up. I saved this file as reviews.php and uploaded it to the main cutenews directory.
The problem is a template I am using for full story on the main page for news keeps getting used whenever someone clicks on a link for a Review to be read in it's full format. I made the links {link=reviews/post} for the full story to be displayed but it always just goes back to using the full story layout of {link=home/post}.
Can anyone help me out and tell me what I'm doing wrong here? Thank you.
-him
|
|
| Sun Mar 12, 2006 10:20 am |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Oh also, FI-DD...could you post the code you put in your gallery.php? Maybe I'm missing something in my code that restricts {link=reviews/post} from showing the correct template when those links are clicked. I'm so confused, this problem doesn't make sense since I'm following your instructions correctly....
-him
|
|
| Sun Mar 12, 2006 9:05 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
 |  | $number = 6;
$category = 6;
$template = "Gallery";
include $cutepath.'/show_news.php'; |
Make sure you edit the correct template. And try to clear your browser cache and/or Cutenews cache.
|
|
| Sun Mar 12, 2006 9:15 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Alright, this is my layout setup:
When you go to the main page, there is a News template include in the center (which shows up) and on the right side there is another include that only shows the titles of articles posted in the Reviews category with the code {link=reviews/post} attached to it. The main news show up in it's correct template for short story and full story when clicked. The right side include that shows the titles of articles in Reviews shows up but when you click the titles, they go to the template meant for the fully story main page. I set up the rUFUS with the code:
[reviews]
post = "{title}.html"
Then I made a layout in dreamweaver and in the center of it all i put this include code:
<?PHP
$static['number'] = 7;
$static['template'] = 'Reviews';
$static['category'] = '2';
include $cutepath.'/show_news.php';
?>
I saved this page as reviews.php and uploaded it to the main cutenews folder (where print.php and rss.php are). I cleared the caches and went to my main page. I refreshed the site and clicked the title links for reviews...and it doesnt even show the layout I made for reviews.php, not even the specified template. All it does is the same thing when you click the Full Story link for the News posts; goes to the full story template for that on the index.php page layout.
Is there something I am missing here? I tried your code FI-DD and that didn't work either. What can possibly be wrong now?
I saved the urls.ini too...
-him
|
|
| Sun Mar 12, 2006 10:16 pm |
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2818 Location: Germany |
|
|
|
Oh, now I fully understand what you want to do. You want to show some headlines next to your news. And when you click the headlines they should show instead of your normal news but with a different template.
That's different to my gallery which loads in a new file and not as a second include. I don't know if it's possible the way you want it but I'll try.
|
|
| Mon Mar 13, 2006 9:24 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
FI-DD, I really appreciate it all of the help and I just wanted to say...after hours of attempting to figure this problem out, I finally got it!
Ok, this is what I did...
[reviews]
post = "reviews.php/{title}.html"
and now it works perfectly...I was missing that reviews.php in the beginning. Wow, I am so incredibly happy because now I can complete my website. That was actually the one problem I could not figure out and that one problem was the key to the site's success of working.
I just want to say thank you for the help over the past few days and for offering more, FI-DD
-him
|
|
| Mon Mar 13, 2006 9:28 pm |
|
 |
Heya Im Me
Joined: 01 Feb 2006 Posts: 189
|
|
|
|
Oh..two more questions haha, off topic of this
1. Why does cutenews hang sometimes and then give me a Failed to Open Page error (in Safari and Firefox) at random times...? It's not a permanent error but it'll error for a temporary amount of time and any page linked to the script will too.
2. Is it possible to set Search (without the user being able to select a category) to be stricken to just searching one category and no other? -- Figured this out.
In search.php locate:
 |  |
<input name="search" type="text" value="<?=$search;?>" size="35">
|
and add this:
 |  |
<input name="search" type="text" value="<?=$search;$category='X';?>" size="35">
|
Replace X with the category number you want this search box to search in only without the user selecting it from a dropdown menu.
Any ideas?
-him[/b]
|
|
| Mon Mar 13, 2006 9:34 pm |
|
 |
|