Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Help & Support Open web link in new browser window?
1 2
Ccs9623
Posted on 15 Aug 2009, 04:17:47

Access: Member
Total Posts: 16
Joined: 2009-07-10

:noexpression: For some reason I'm not getting the blank page. This is the line I have in the bbparser.php file:

$bb2html = preg_replace("/\[url=(\W?)(.*?)(\W?)\](.*?)\[\/url\]/", '<a href="$2" target="_BLANK">$4</a>', $bb2html);

however when I look at the source code of the displayed page, the target reference isn't there. Is this the correct file/line to modify?



Preferably, what I'd like to do it direct the link to a pre-defined 'news' page showing the whole story. If I can edit the line that creates the link for the Full Story text, I think it would be possible. The file/line above however, does not seem to be the right place.
#741
Chris
Posted on 15 Aug 2009, 12:01:12

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

Can you show me on your site the link that's not opening in the new window?
#742
Ccs9623
Posted on 15 Aug 2009, 17:31:34

Access: Member
Total Posts: 16
Joined: 2009-07-10

There are two news postings Here: As you can see, the full story simply writes over the rest of the page.
#743
Chris
Posted on 16 Aug 2009, 04:03:22

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I was going to make some more changes to one of the files then post it here for you to download but I then thought of an easier method.

If you edit the template you're currently using and expand the "News Structure" section, paste this into that box

Code:
{news}
{pagintation}
<script language="javascript">
    var allbodylinks = document.getElementById('allbody');
    var links = allbodylinks.getElementsByTagName('a');
    for (var i=0; i<links.length; ++i) {
        links[i].setAttribute('target','_blank');
    }
</script>


this basically loops though all the links that get created and adds the target="_blank" attribute.
#763
Last edited by Chris at 2009-08-16 04:04:47 Reason:
Ccs9623
Posted on 16 Aug 2009, 18:43:09

Access: Member
Total Posts: 16
Joined: 2009-07-10

Thanks for the reply. I can't seem to find this section of code in any of the files though. I can't seem to identify where the template code it stored.

Looking over this code block though, it does seem like the right spot to send the news story off into its own page, but I don't think I'll be able to make my final result from there.

I've looked at hundreds of news apps like this, both free and commercial (which would be fine with me too) and yours is one of the finest I've found...but I need it do just a little more.

Specifically, I must find a way to list the news "headlines" on my main page, but link to a different page to show the actual story. I'm hoping I can fudge this code to do that by using the category functions, but I'm beginning to think it may be a lost cause. While I'm not a great PHP coder, I am competent, so I was/am hoping to find a way to do this.

What is your gut feeling? Am I trying to do something that will take lots of modifications to work? Would I be better off spending my time looking for something else?

Please understand I'm NOT complaining. I'm just trying to figure out the best use of my time. If the mods to N-13 News are doable and not to difficult, then I'd prefer to stay with this app. On the other hand, If its going to take a lot of work, I might be better off spending the time and money to find something that already works as I need.

I don't see any mention on your site, but would you be willing to make custom modifications on a paid basis?
#767
Last edited by Ccs9623 at 2009-08-16 18:43:57 Reason:
Chris
Posted on 16 Aug 2009, 18:57:02

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

By editing the template what I means is, once logged into the admin area, if you goto Options > Templates > edit the template you've currently got selected. Here you'll see the "News Structure" section I mentioned in my previous post. Simply paste the code in there.

Displaying headlines and having them open/display the news on a seperate page is possible and wouldn't be that complicated to do.

Regarding making modifications to suit your needs on a paid basis. This is certainly doable and I'd be willing to spend the time modifying the script. If you'd like to discuss this further you can email me at chris@network-13.com or alternatively if you use windows live messenger you can add me on there with the same address.
#768
1 2
Network-13.com © 2013