Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
ravenlife
Regular
Regular



Joined: May 07, 2006
Posts: 62

PostPosted: Sat Jul 15, 2006 9:21 am Reply with quote

could someone please enlighten me

as to where exactly in the news module can i find the code that tells it which database prefix to enter the news into

i have been looking for a while now

thanks

RL


Last edited by ravenlife on Sun Jul 16, 2006 9:36 am; edited 1 time in total 
View user's profile Send private message
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Sat Jul 15, 2006 9:47 am Reply with quote

What form of news are you working with, What versin of nuke(or distro)?

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
ravenlife







PostPosted: Sat Jul 15, 2006 9:58 am Reply with quote

sorry i am working with what i believe is modified NSN news
and it is nuke evolution

also would you happen to know how to change the name news - on admin panel to something else

say "posts"

thanks

RL
 
gregexp







PostPosted: Sat Jul 15, 2006 10:23 am Reply with quote

Then within the modules admin file like modules/news/admin/links.php

Youll see a reference to a name, change that

and to answer your fist question,to insert into the database is also done through admin and is also in the admin folder throughout almost all the files in the admin folder of the nsn news module.
 
ravenlife







PostPosted: Sat Jul 15, 2006 10:25 am Reply with quote

thank you darklord

i thought i was missing something - but what you said is what i did

must of missed a step....

...d***!


[edit]

names working now though

thanks darklord
 
gregexp







PostPosted: Sat Jul 15, 2006 10:31 am Reply with quote

np
 
ravenlife







PostPosted: Sat Jul 15, 2006 10:34 am Reply with quote

last question i promise

if i wanted to point it at a differnt prefix - say nuke_posts, instead of nuke_stories

would i have to change all of the other prefix's to the same

say nuke_stories_cat - to nuke_posts_cat

thanks again for all your help

im such a n00b

EDIT

okay so i have changed every bit of code that is in any of the files under the nsn news module folder

to point to _posts
and to posts_cat

yet still it posts into the old prefixes

am i missing something

is there something in the root admin.php
that i need to be changing

thanks in advance for any help

RL
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sat Jul 15, 2006 1:09 pm Reply with quote

Where are you posting news from? I believe if you're using the latest phpNukes, you need to edit the modules/Submit_News and the modules/News/admin files

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
ravenlife







PostPosted: Sat Jul 15, 2006 2:36 pm Reply with quote

its my attempt at giving myself better controls over where my junior admins can post and what they can edit

i dont like the way nukes admin is setup - and as i dont know a whole load of coding to allow for me to create a junior admin type c-panel, i have to set it up another way

hence the first post

im trying to set it up so my posts read from one database and the junior admins reads from another, which i believe should stop them being able to edit or change any post by myself.

if not - well im not to bothered about that as my ultimate goal is to have 5 news pages

hence i need a new news admin

so far i have successfully
set the module up - so its on a seperate page
and i can add posts via sql - and it displays them on that page (second page)
i have also successfully managed to get booted by sentinel Wink

but as i cant quite find all the code i need to edit i have the problem of it inserting the posts into the default prefix, no matter which admin news i use

does any of that make sense

i cant actually believe its never been done before

BTW you can see our test site here http://test.blindraven.net

click news_v2

to see how far we have got
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©