PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
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 Back to top

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!
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
montego
Site Admin


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

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

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?
View user's profile Send private message Visit poster's website
aseitz
Regular
Regular


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

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

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.
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
aseitz
Regular
Regular


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

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

The core file edits do not include the waiting content block, only funtion ultramode.
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
aseitz
Regular
Regular


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

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

*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.
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum