» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 42
0 members and 42 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on CloseTable Code Breaking Page within the Site design forums, part of the General category; I've altered my CloseTable function for a framed table but whenever I view the Content module as a user ...


Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-13-2004, 02:13 AM
Junior Member
 
Join Date: Sep 2004
Posts: 15
CloseTable Code Breaking Page
I've altered my CloseTable function for a framed table but whenever I view the Content module as a user or guest, the pannel gives me the usuall Access Denied error but then CloseTable does not run after that and the code just stops, no more html after that. It fixes when I replace my tables.php file with the original one so it must be something in my CloseTable function code. Could someone with a fresh pair of eyes take a look at it. I can't find the hiccup. Thanks.

Code:
http://www.antifusion.net/tables.txt

Example:
http://ird.antifusion.net/modules.php?name=Content
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 10-13-2004, 03:49 PM
Moderator
 
Join Date: Nov 2002
Location: Belgium
Posts: 957
i doubt this will work, but better try it anyway
remove
Code:
</td>
	</tr>
</table>
at the end of the closetable function
__________________
Yannick R. aka Mighty_Y
http://support.code-area51.com
http://www.code-area51.com

Search before asking makes my life easier!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 10-13-2004, 07:49 PM
Junior Member
 
Join Date: Sep 2004
Posts: 15
It didn't work. I think the whole php instance is dieing. Something in that html seems to be killing the parser, if that makes sense.

Here is the original, working code for these functions for your comparison.
http://www.antifusion.net/working.txt

Still need suggestions.
Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 10-14-2004, 01:46 AM
Moderator
 
Join Date: Jan 2003
Posts: 338
in footer.php find:
Code:
function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name;
change to:
Code:
function foot() {
    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $module, $name, $admin;
also find:
Code:
if ($module == 1 AND file_exists("modules/$name/admin/panel.php")) {
change to:
Code:
if ($module == 1 AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {
With this panel.php will only get included if it exists and the user is an admin.
__________________
NukeResources | ScriptHeaven
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 10-14-2004, 01:53 AM
Junior Member
 
Join Date: Sep 2004
Posts: 15
Excelent. I didn't want to have to comment out the panel function. That worked very well. Thanks a ton.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP code?? qwicker Nuke 7.x - Modules 0 07-11-2005 01:09 AM
security code gozzy Nuke 7.x - General 6 01-20-2005 01:22 AM
signing in code varialskate Nuke 6.5 to 6.9 - General 2 08-15-2004 07:25 AM
HOw to: Link one content page to another content page? IACOJ Purged Topics 5 02-12-2003 03:58 PM
Need help with code.... Ryetsu Site design 1 01-30-2003 09:23 AM


All times are GMT -5. The time now is 12:38 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31