| Author |
Message |
aseitz Regular


Joined: Mar 08, 2005 Posts: 57 Location: Portland, Oregon USA
|
Posted:
Wed Jul 19, 2006 10:04 am |
|
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>·</big></strong> <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>·</big></strong> <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.
Kind Regards! |
|
|
|
 |
montego Site Admin

Joined: Aug 29, 2004 Posts: 7487 Location: Arizona
|
Posted:
Wed Jul 19, 2006 7:08 pm |
|
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? |
|
|
|
 |
aseitz Regular


Joined: Mar 08, 2005 Posts: 57 Location: Portland, Oregon USA
|
Posted:
Thu Jul 20, 2006 9:36 am |
|
| 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 Regular


Joined: Mar 08, 2005 Posts: 57 Location: Portland, Oregon USA
|
Posted:
Thu Jul 20, 2006 9:40 am |
|
The core file edits do not include the waiting content block, only funtion ultramode. |
|
|
|
 |
aseitz Regular


Joined: Mar 08, 2005 Posts: 57 Location: Portland, Oregon USA
|
Posted:
Mon Jul 24, 2006 10:48 am |
|
*bump* Still stuck on this one...
| 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. |
|
|
|
 |
|
|
|
|