Welcome, Guest. Please Login or Register.
August 30, 2025, 10:10:31 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Trying to alter template « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Trying to alter template  (Read 314 times)
scotbuff
Noobie
*
Posts: 20


I love YaBB SE!

Trying to alter template
« on: May 02, 2002, 01:42:40 AM »
Reply with quote

I am trying to alter my template in a big way, sort of like this communities forum layout but matching my site.  I keep getting the following errors.  I am running a lot of php scripts to do various things, like a poll, user counter etc...  

Quote2: Supplied argument is not a valid MySQL result resource
(/home/nitevil/public_html/forums/Sources/BoardIndex.php ln 154)

Does this error mean that line 154 of the BoardIndex.php is conflicting with something else I am running?  I was a bit confused by this error.  Thanks in advance.    :)
Logged
ikkebra
Noobie
*
Posts: 10


Blue Blob

WWW
Re:Trying to alter template
« Reply #1 on: May 02, 2002, 04:00:58 PM »
Reply with quote

Not sure if this helps, but I once got this same error setting up phpNuke and it was due to a the database tables not being setup properly and I had to rerun the SQL statement to rebuild the database.
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:Trying to alter template
« Reply #2 on: May 02, 2002, 04:17:23 PM »
Reply with quote

if you could tell me the SQL query right before line 154 I might have an idea...
Logged

scotbuff
Noobie
*
Posts: 20


I love YaBB SE!

Re:Trying to alter template
« Reply #3 on: May 03, 2002, 10:42:24 PM »
Reply with quote

Sure, this is line 152
Quote$result = mysql_query("SELECT name,ID_CAT FROM {$db_prefix}categories WHERE ('$settings[7]'='Administrator' || '$settings[7]'='Global Moderator' || FIND_IN_SET('$settings[7]',memberGroups)!=0 || memberGroups='') ORDER BY catOrder");

line 153 is blank and line 154 in the BoardIndex is this.
Quotewhile ($row_cat = mysql_fetch_array($result))

I should of included that on my question, stupid me just thought everyones would be the same, forgot about possible mods etc.   :)

Any help would be greatly appreciated, I do not think I need to rebuild a table as suggested, because when restoring my original template the board works fine no error.  That is why I thought it must be interferring with another piece I have on my site.  I am new to PHP so this error is new to me.  Thanks in advance.   :)
Logged
Hypocrite
YaBB God
*****
Posts: 692


For To End Yet Again

dimmuh@gmx.net WWW
Re:Trying to alter template
« Reply #4 on: May 03, 2002, 10:47:42 PM »
Reply with quote

Try taking away the blank line in 153
Logged
scotbuff
Noobie
*
Posts: 20


I love YaBB SE!

Re:Trying to alter template
« Reply #5 on: May 04, 2002, 11:16:36 AM »
Reply with quote

Nope, that did not fix it, the same thing happens, the entire template layout appears but where the boards should appear is nothing but the previously described error.  Only now it refers to the line 152, which is the same blocks of code within the BoardIndex.php.
Logged
Mach8
Sweetie
Beta Tester
YaBB God
*****
Posts: 1218


ICQ - 339855961
Re:Trying to alter template
« Reply #6 on: May 04, 2002, 11:32:07 AM »
Reply with quote

After this line:

while ($row_cat = mysql_fetch_array($result))

Add this:
echo mysql_error();

And post here what it says...
Logged
scotbuff
Noobie
*
Posts: 20


I love YaBB SE!

Re:Trying to alter template
« Reply #7 on: May 04, 2002, 03:21:29 PM »
Reply with quote

Um, OK.  I tried the echo under the while statement first, I got nothing new back, just the same error.  Then I moved it directly under the MySQL query and I got the following:

QuoteNo Database Selected

Along with the error

Quote2: Supplied argument is not a valid MySQL result resource
(/home/nitevil/public_html/forums/Sources/BoardIndex.php ln 153)


Are my variables somehow getting unset for my board when I try to use this template?  Hmm..  Thanks for the suggestions so far guys.  I appreciate you trying to help.   :)
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Trying to alter template « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.083 seconds with 21 queries.