You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 58 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - phpnukebb addon [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Sat Apr 05, 2003 2:46 pm Reply with quoteBack to top

Hello,

I noticed there are forums for blocks & modules but I didn't see one for addons therefore, I thought it was safe to post this topic here.

I want to install the flag hack for the forum. I did everything accordingly, when I click the profile link I get this debug error message:
Code:
Couldn't obtain flags information.

DEBUG MODE

SQL Error : 1146 Table 'foxy.bbflags' doesn't exist

SELECT * FROM bbflags ORDER BY flag_id

Line : 892
File : /home/foxy/www/includes/usercp_register.php

This is the information I have on line 892 usercp_register.php
Code:
// FLAGHACK-start
   // query to get the list of flags
   $sql = "SELECT *
      FROM " . FLAG_TABLE . "
      ORDER BY flag_id";
   if(!$flags_result = $db->sql_query($sql))
   {
      message_die(GENERAL_ERROR, "Couldn't obtain flags information.", "", __LINE__, __FILE__, $sql);
   }
   $flag_row = $db->sql_fetchrowset($ranksresult);
   $num_flags = $db->sql_numrows($ranksresult) ;

   // build the html select statement
   $flag_start_image = 'blank.gif' ;
   $selected = ( isset($user_flag) ) ? '' : ' selected="selected"'  ;
   $flag_select = "<select name=\"user_flag\" onChange=\"document.images['user_flag'].src = 'images/flags/' + this.value;\" >";
   $flag_select .= "<option value=\"blank.gif\"$selected>" . $lang['Select_Country'] . "</option>";
   for ($i = 0; $i < $num_flags; $i++)
   {
      $flag_name = $flag_row[$i]['flag_name'];
      $flag_image = $flag_row[$i]['flag_image'];
      $selected = ( isset( $user_flag) ) ? (($user_flag == $flag_image) ? 'selected="selected"' : '' ) : '' ;
      $flag_select .= "\t<option value=\"$flag_image\"$selected>$flag_name</option>";
      if ( isset( $user_flag) && ($user_flag == $flag_image))
      {
         $flag_start_image = $flag_image ;
      }
   }
   $flag_select .= '</select>';
// FLAGHACK-end


The flag table is nuke_bbflags. What I don't understand is why is it looking for the flags in foxy.bbflags? note: foxy is my database name.

I'd appreciate any input one has to offer.
Find all posts by foxyfemfemView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Sat Apr 05, 2003 2:50 pm Reply with quoteBack to top

add-ons are modules.

As for ur problem, it sounds like ur using an unported add-on for the phpBB forum. It's looking for a table called bbflags in ur foxy database. What I suggest you do is alter the code in the files mentioned and add nuke_ in front of bbflags.

AI
Find all posts by ArtificialIntelView user's profileSend private message
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Sat Apr 05, 2003 3:01 pm Reply with quoteBack to top

ArtificialIntel wrote:
What I suggest you do is alter the code in the files mentioned and add nuke_ in front of bbflags.


Alter what codes? Assuming you're referring to this one
Code:
   $sql = "SELECT *
      FROM " . FLAG_TABLE . "
The nuke_bbflags table already exist.

addendum: I changed FLAG_TABLE to nuke_bbflags and it worked, user can select their country flag when they edit their profile.

Thanks for helping me.
Find all posts by foxyfemfemView user's profileSend private message
doctorswaz
Nuke Cadet
Nuke Cadet


Joined: Jun 05, 2003
Posts: 2


PostPosted: Thu Jun 05, 2003 2:13 am Reply with quoteBack to top

Hi Foxyfemfem!!

Can i ask a dumb q - how do you install that hack?

I had a go but it is all SQL which i am not very good at........

i managed to launch the sql file from myphpadmin but received an error saying that it couldnt create the table due to phpbb_users not being there.........which it isnt.........can the code safely be edited to look at nuke_users?

How did you get it to work? - i am really keen to stick this hack onto my bb and would really appreciate any help - Thanks!!!

Doc
Find all posts by doctorswazView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.189 Seconds - 293 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::