Author |
Message |
ravenlife
Regular


Joined: May 07, 2006
Posts: 62
|
Posted:
Sat Jul 15, 2006 9:21 am |
|
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 |
|
|
 |
gregexp
The Mouse Is Extension Of Arm

Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol
|
Posted:
Sat Jul 15, 2006 9:47 am |
|
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!! |
|
 |
 |
ravenlife

|
Posted:
Sat Jul 15, 2006 9:58 am |
|
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

|
Posted:
Sat Jul 15, 2006 10:23 am |
|
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

|
Posted:
Sat Jul 15, 2006 10:25 am |
|
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

|
Posted:
Sat Jul 15, 2006 10:31 am |
|
|
|
 |
ravenlife

|
Posted:
Sat Jul 15, 2006 10:34 am |
|
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
|
Posted:
Sat Jul 15, 2006 1:09 pm |
|
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! |
|
|
 |
ravenlife

|
Posted:
Sat Jul 15, 2006 2:36 pm |
|
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
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 |
|
|
|
 |
|