Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 83
5 members and 78 guests
huelva9, peardir46, ral6qkeighqenpa, tamyrtpawaterda, tsevytefasl
Most users ever online was 611, 03-21-2008 at 10:10 PM.
» .::.
» .:.

Go Back   Nukemods Forum > General > Site design

Reply
 
LinkBack Thread Tools Display Modes
CloseTable Code Breaking Page
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Sep 2004
CloseTable Code Breaking Page - 10-13-2004, 01:13 AM

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
Old
  (#2 (permalink))
Moderator
 
Status: Offline
Posts: 957
Join Date: Nov 2002
Location: Belgium
10-13-2004, 02:49 PM

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
Old
  (#3 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Sep 2004
10-13-2004, 06:49 PM

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
Old
  (#4 (permalink))
Moderator
 
Status: Offline
Posts: 338
Join Date: Jan 2003
10-14-2004, 12:46 AM

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.
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old
  (#5 (permalink))
Junior Member
 
Status: Offline
Posts: 15
Join Date: Sep 2004
10-14-2004, 12:53 AM

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 12:09 AM
security code gozzy Nuke 7.x - General 6 01-20-2005 12:22 AM
signing in code varialskate Nuke 6.5 to 6.9 - General 2 08-15-2004 06:25 AM
HOw to: Link one content page to another content page? IACOJ Purged Topics 5 02-12-2003 02:58 PM
Need help with code.... Ryetsu Site design 1 01-30-2003 08:23 AM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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