I, in the other thread wrote:It looks like the original author has abandoned this MOD... ThinkBling, the author, hasn't posted here since October 4, 2004. As such, I'm considering this MOD abandoned, and locking this topic.
ThinkBling, if you come back and wish to continue development of this MOD, don't hesitate to contact me regarding this.
MennoniteHobbit wrote:I, in the other thread wrote:It looks like the original author has abandoned this MOD... ThinkBling, the author, hasn't posted here since October 4, 2004. As such, I'm considering this MOD abandoned, and locking this topic.
ThinkBling, if you come back and wish to continue development of this MOD, don't hesitate to contact me regarding this.
That was the reason I locked it, obvious as it was.
Note that you really shouldn't take over this MOD without first attempting to consult the original MOD author.
Also, you need to add a topic prefix, in accordance with the MODs in Development forum rules here. In addition, you should remove the MOD install script from your post and offer it as a separate textfile download; you should also follow our MOD Template, and utilize the "MOD Author:" line rather than your custom "REVISIONS BY:" line.
if ($PageName == "viewtopic.php" &&
$board_config['ad_enabled'] == "1" &&
rand(0, 1) == 1)[/code]
[quote]
The other thing is ad_profile_validate.php needs a line changed.
To post the correct userdata to the SQL database from the Profile page, you need change:
Code:
//Get the user ID.
$user_id = intval($HTTP_POST_VARS['id']);
to
Code:
//Get the user ID.
$user_id = intval($userdata['user_id'] );
[/quote]
I am still getting the SQL error. Plz somebody tell me the fiels I need to create in my DB.
Thanks for all the help. Hac wrote:Hey howard,
Why have you removed this line from the page_header file. I'm not that much programmer either but I think this is control structure tells the program to put the user ads on viewtopic only.
- Code: Select all
if ($PageName == "viewtopic.php" &&
$board_config['ad_enabled'] == "1" &&
rand(0, 1) == 1)[/code]
[quote]The other thing is ad_profile_validate.php needs a line changed.
To post the correct userdata to the SQL database from the Profile page, you need change:
Code:
//Get the user ID.
$user_id = intval($HTTP_POST_VARS['id']);
to
Code:
//Get the user ID.
$user_id = intval($userdata['user_id'] );
[/quote]
I am still getting the SQL error. Plz somebody tell me the fiels I need to create in my DB.
Thanks for all the help.
Could not select default dateformat
DEBUG MODE
SQL Error : 1146 Table 'hac_buddville.phpbb_buddad_user' doesn't exist
SELECT * FROM phpbb_buddad_user WHERE user_id = 2
Line : 26
File : ad_profile.php
CREATE TABLE `phpbb_ad_user` (
`user_id` mediumint(9) NOT NULL default '0',
`ad_client_id` varchar(25) default '',
`ad_channel` varchar(25) default '',
PRIMARY KEY (`user_id`)
);
Hac wrote:This is what I'm getting on clicking the setup adsense in the user profile page:
- Code: Select all
Could not select default dateformat
DEBUG MODE
SQL Error : 1146 Table 'hac_buddville.phpbb_buddad_user' doesn't exist
SELECT * FROM phpbb_buddad_user WHERE user_id = 2
Line : 26
File : ad_profile.php
$sql = "SELECT * ".
"FROM phpbb_users ".
"WHERE user_id = $FirstPoster";
if ( !($result = $db->sql_query($sql)) )
{
echo($sql);
}
$user_row = $db->sql_fetchrow($result);
if ($user_row['user_posts'] > $board_config['ad_min_posts'])
{
//Get the previous settings if they exist.
$sql = "SELECT * ".
"FROM phpbb_ad_user ".
"WHERE user_id = $FirstPoster";
Hac wrote:Thanks a lot for the SQL query man. It worked beuatifully. Thanks a lot. And yes I did change the prefix to phpbb_budd . And I don't need a new installation anyways coz there are so many modifications I made to the codeThanks a lot and keep it up. Plz check this page and tell me if you see the ads: http://timemachine.frih.net/Buddville/viewtopic.php?t=4
Return to [2.0.x] MODs in Development
Users browsing this forum: No registered users and 11 guests