Ravens PHP Scripts: Forums
 

 

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



Joined: Mar 08, 2005
Posts: 57
Location: Portland, Oregon USA

PostPosted: Wed Jul 19, 2006 10:04 am Reply with quote

Hello,

In mainfile.php is a function called "function adminblock()" (Line 1039), this is what generates the admin block "Waiting Content" on the main page when you are logged in as an administrator.

I am trying to modify it so that the NSN News submissions and reviews will display on this block.

Here are the lines of code in question:
Code:


$title = _WAITINGCONT;
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_queue"));
$content = "<span class=\"content\">";
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=submissions\">"._SUBMISSIONS."</a>: $num<br>";
$num = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_reviews_add"));
$content .= "<strong><big>&middot;</big></strong>&nbsp;<a href=\"".$admin_file.".php?op=reviews\">"._WREVIEWS."</a>: $num<br>";


Anyone have a solution? I'm a terrible coder, but I cut and paste really well. Wink

Kind Regards!

_________________
if (video) {
die ( "Radio_Star");
} 
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Jul 19, 2006 7:08 pm Reply with quote

I could have sworn that Bob already accounted for that. I don't have the download for 2.0 (this is 2.0 right?) handy to look at. Are you sure there are no mainfile.php edits for that?

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







PostPosted: Thu Jul 20, 2006 9:36 am Reply with quote

montego wrote:
I could have sworn that Bob already accounted for that. I don't have the download for 2.0 (this is 2.0 right?) handy to look at. Are you sure there are no mainfile.php edits for that?


You mean if I RTFM I might find it? LOL, Giving it a look now.
 
aseitz







PostPosted: Thu Jul 20, 2006 9:40 am Reply with quote

The core file edits do not include the waiting content block, only funtion ultramode.
 
aseitz







PostPosted: Mon Jul 24, 2006 10:48 am Reply with quote

*bump* Still stuck on this one... Smile

montego wrote:
I could have sworn that Bob already accounted for that. I don't have the download for 2.0 (this is 2.0 right?) handy to look at. Are you sure there are no mainfile.php edits for that?


Yeah it is 2 and no, the core edits do not include this.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> NSN News

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 ©