PDA

View Full Version : NEWS Plugin: Header


CocteauBoy
06-28-2004, 10:01 PM
I was wondering if there is a way to create different or remove headers for the different News plugins. I have created a couple of different areas of my site with different types of News, but they all default to the one description of "announcements" (which I have labled the news plugin).

Help?

troy

Ziad
06-28-2004, 11:20 PM
This can't be done in the current version of Subdreamer, however there is a work around.

Simply erase the News plugin name, and then add custom plugins with news titles before your news plugins! Or if you want to save plugin space, just create a custom plugin with the news title and then include a php file that includes the news plugin!

CocteauBoy
06-29-2004, 11:48 AM
Thanks for the response!! I will have to ponder this because I am not really sure what you mean, but give me a day or so and I will figure it out. Thanks!

troy

Ziad
06-29-2004, 02:46 PM
Create a custom plugin with the words 'My News' and then add that plugin right before your News plugin and that will give a new title for your news section :)

CocteauBoy
06-29-2004, 03:09 PM
Create a custom plugin with the words 'My News' and then add that plugin right before your News plugin and that will give a new title for your news section :)

Won't this use up one of the P spaces (P1, P2, P3,...)? I have all of my positions filled (by the way, is there a way to add more P-ositions?)

Troy

Ziad
06-29-2004, 03:15 PM
At this time, there's no way of adding more spaces without changing the skin's code and adding new information to the database. Although, a new solution will appear in Subdreamer 115 that will allow an unlimited number of plugins in each skin.

One thing you could do is create a php file called print_news.php
and in that file add this code:



<?php

if(!defined('IN_SUBDREAMER'))
die("Hacking attempt!");

include(/plugins/p2_news/news.php);

?>


Upload that file to your main Subdreamer directory. Now create a custom plugin with a News Title (like before) and then include the file you just uploaded with the custom plugin. Next deselect the news plugin from your page (because the custom plugin is already including the news plugin). With this solution you get exactly what you want without taking up another plugin space.