PDA

View Full Version : Banner Change by ACP first release.


MasterOfAll
07-10-2007, 06:22 PM
Ok, i have doing a first release of rebuild Mod.
you can fint the zip at http://www.masterofall.it/nbsmod/nbs_banner_mod.zip.

That's all folks.

MasterOfAll
07-12-2007, 07:16 AM
Please respond at the poll.
And for the old forum's update see the other tread about update forum's table.

Weppa ^_^ = :chomp:

memorex
07-17-2007, 07:31 AM
Just put the SQL in nbs/new_forum_sql.php, and execute those queries on the execute query page in the admincp if there are forums that already exist. Simply put {accessname}_ for the prefix when executing on that page and it will do it for every forum.

Derek

Hi, please tell me what exacly i need to do, to add the sql in all my forums. Because i can`t understand what i need to do in the admincp an in who admincp and wher in admincp. Please explane me.

MasterOfAll
07-21-2007, 06:00 PM
Ok, I understand ... Open nbs_config.php and change the value

$config['SpecialUsers']['canrunqueries'] = ''; in
$config['SpecialUsers']['canrunqueries'] = '1'; And after open the SACP (Super Admin Controll Pannel) and put the query under Maintenance --> Execute SQL Query (http://chooseforum.it/forum/nbs/admin.php?do=query) this code ...


INSERT INTO phpbb_config values ('banner_source', 'banners/logo_phpBB.gif' );
INSERT INTO {accessname}_config values ('banner_path', 'the_ur_lwhere_is_your_banner' ); // E.G. http://www.chooseforum.it/images/chooseforum.gif !
INSERT INTO {accessname}_config values ('banner_link', 'index.php' ); // this is the redirect url where the user are send if click up te banner!
INSERT INTO {accessname}_config values ('banner_cols', '2' ); // this are the colums of the banner, if you whant youcan change!
INSERT INTO {accessname}_config values ('banner_width', '200' ); //This is the width strandard of the banner, you can change!
INSERT INTO {accessname}_config values ('banner_height', '91' );
//This is the height strandard of the banner, you can change!


That's All Folks ^_^ Weppa ^_^ ^_^ ^_^

I have say just right, derek?

copy112
07-22-2007, 12:18 PM
itīs right. I have tested it and it work.

memorex
07-23-2007, 03:56 AM
Ok, I understand ... Open nbs_config.php and change the value

$config['SpecialUsers']['canrunqueries'] = ''; in
$config['SpecialUsers']['canrunqueries'] = '1'; And after open the SACP (Super Admin Controll Pannel) and put the query under Maintenance --> Execute SQL Query (http://chooseforum.it/forum/nbs/admin.php?do=query) this code ...


INSERT INTO phpbb_config values ('banner_source', 'banners/logo_phpBB.gif' );
INSERT INTO {accessname}_config values ('banner_path', 'the_ur_lwhere_is_your_banner' ); // E.G. http://www.chooseforum.it/images/chooseforum.gif !
INSERT INTO {accessname}_config values ('banner_link', 'index.php' ); // this is the redirect url where the user are send if click up te banner!
INSERT INTO {accessname}_config values ('banner_cols', '2' ); // this are the colums of the banner, if you whant youcan change!
INSERT INTO {accessname}_config values ('banner_width', '200' ); //This is the width strandard of the banner, you can change!
INSERT INTO {accessname}_config values ('banner_height', '91' );
//This is the height strandard of the banner, you can change!
That's All Folks ^_^ Weppa ^_^ ^_^ ^_^

I have say just right, derek?
But i haven`t this option Execute SQL Query (http://chooseforum.it/forum/nbs/admin.php?do=query) in Maintenance i have only this options => PHP Info ; Update Category Total Forums ; Repair / Optimize Tables ; Backup Database. Why i haven`t this option Execute SQL Query?

Derek
07-23-2007, 04:38 PM
What version are you running? It was added in Beta 8...

memorex
07-23-2007, 06:02 PM
What version are you running? It was added in Beta 8...
I use Beta 8

Derek
07-23-2007, 08:15 PM
Well it should show up then...

MasterOfAll
07-24-2007, 07:34 PM
But i haven`t this option Execute SQL Query (http://chooseforum.it/forum/nbs/admin.php?do=query) in Maintenance i have only this options => PHP Info ; Update Category Total Forums ; Repair / Optimize Tables ; Backup Database. Why i haven`t this option Execute SQL Query?

If you don't see the Execute SQL Query you HAVE open nbs_config.php and change the VALUE!!!

How Value? Read the my topic up! ^_^
After you have change the value upload again the nbs/nbs_config.php and put its in chmod 644

memorex
07-25-2007, 03:19 PM
If you don't see the Execute SQL Query you HAVE open nbs_config.php and change the VALUE!!!

How Value? Read the my topic up! ^_^
After you have change the value upload again the nbs/nbs_config.php and put its in chmod 644
Big thanks now i see it!

Hmmm when i paste all the code INSERT INTO phpbb_config values ('banner_source', 'banners/logo_phpBB.gif' );
INSERT INTO {accessname}_config values ('banner_path', 'http://*****.us/img/banner2.jpg' );
INSERT INTO {accessname}_config values ('banner_link', 'index.php' ); // this is the redirect url where the user are send if click up te banner!
INSERT INTO {accessname}_config values ('banner_cols', '2' ); // this are the colums of the banner, if you whant youcan change!
INSERT INTO {accessname}_config values ('banner_width', '186' ); //This is the width strandard of the banner, you can change!
INSERT INTO {accessname}_config values ('banner_height', '85' );
It`s show me Confirm Are you sure you want to execute this query?

INSERT INTO phpbb_config values (\'banner_source\', \'banners/logo_phpBB.gif\' ); INSERT INTO {accessname}_config values (\'banner_path\', \'http://*****.us/img/banner2.jpg\' ); INSERT INTO {accessname}_config values (\'banner_link\', \'index.php\' ); // this is the redirect url where the user are send if click up te banner! INSERT INTO {accessname}_config values (\'banner_cols\', \'2\' ); // this are the colums of the banner, if you whant youcan change! INSERT INTO {accessname}_config values (\'banner_width\', \'186\' ); //This is the width strandard of the banner, you can change! INSERT INTO {accessname}_config values (\'banner_height\', \'85\' );

And when i push the Yes it doesn`t happend anything. But when i write only one Query and i push Yes it write me Error Sorry, you left one or more fields empty.

Please go back and try again.

MasterOfAll
07-26-2007, 06:19 PM
Sorry I have doing a Mistake.
Change ...

INSERT INTO phpbb_config values ('banner_source', 'banners/logo_phpBB.gif' );
into

INSERT INTO {accessname}_config values ('banner_source', 'banners/logo_phpBB.gif' );
The Other Code ...

INSERT INTO {accessname}_config values ('banner_path', 'http://*****.us/img/banner2.jpg' );
INSERT INTO {accessname}_config values ('banner_link', 'index.php' );
INSERT INTO {accessname}_config values ('banner_cols', '2' );
INSERT INTO {accessname}_config values ('banner_width', '186' );
INSERT INTO {accessname}_config values ('banner_height', '85' );

Is Right ... (I hope, I don't have test but in Derek I'm trust).

Exactly All code Right is ...


INSERT INTO {accessname}_config values ('banner_source', 'banners/logo_phpBB.gif' );
INSERT INTO {accessname}_config values ('banner_path', 'http://*****.us/img/banner2.jpg' );
INSERT INTO {accessname}_config values ('banner_link', 'index.php' );
INSERT INTO {accessname}_config values ('banner_cols', '2' );
INSERT INTO {accessname}_config values ('banner_width', '186' );
INSERT INTO {accessname}_config values ('banner_height', '85' );
.

That's all do! :chomp:

copy112
07-26-2007, 07:07 PM
Yes it only to copy and past now. It wasenīt hard before.

memorex
07-26-2007, 07:30 PM
I have the same problem yet

MasterOfAll
07-29-2007, 09:56 PM
Stay tunned for a few days ... I'm Make a test.
I hope that you have to update manualy the table.
If I find the solution I put Here the god mode ^_^.
Derek any solution? You know your script how your "Pockets of the pants".

memorex
07-30-2007, 03:44 AM
Ste tunned for a few days ... I'm Make a test.
I hope that you have to update manualy the table.
If I find the solution I put Here the god mode ^_^.
Derek any solution? You know your script how your "Pockets of the pants".
I have more than 1400 forums, i can`t update manualy!

MasterOfAll
07-30-2007, 12:01 PM
Yes, I know. Stay Tunned. Please ^_^ ... I'm Under Work.


Only One query At Time (Note Of MasterOfAll)

INSERT INTO {accessname}_config values ('banner_source', 'http://www.chooseforum.it/images/chooseforum.gif' );

After ....

The query you tried executing has failed. The following error was returned:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{accessname}_config values ('banner_source', 'http://www.chooseforum.it/images/c' at line 1

Please go back, review the query, and try again.

But the INSERT INTO is a good syntax. ... ?


I must do some test for find how don't Work.

kloden1
07-31-2007, 09:06 AM
When a new user try to add a new forum i get database error.

MasterOfAll
07-31-2007, 03:07 PM
Only because the query isn't do. I have test to create a Forum from the Scrath and work.
Be patience but here we need Derek for Help, because the script in reality don't understand {accessname}_ with jolly word for all query.
Infact if you try to put a single sql Work with no problem.
E.G.
INSERT INTO creato_config values ('banner_source', 'http://www.chooseforum.it/images/chooseforum.gif' );WORK!

Under here is the code of admin.php for accessname.

if (strpos($_POST['query'], '{accessname}_'))
{
// we are executing this query on every forum.
$forums1 = "SELECT `accessname`
FROM " . TABLE_PREFIX . "users
WHERE `user_level` = 0";
$forums2 = $db->query($forums1);

$errors = '';

while ($forums3 = $db->fetch_array($forums2))
{
$result = $db->query(stripslashes(str_replace('{accessname}', $forums3['accessname'], stripslashes(urldecode($_REQUEST['query'])))));

if (!$result)
{
$errors .= $db->error() . '<br />';
}
}
}

MasterOfAll
07-31-2007, 03:09 PM
When a new user try to add a new forum i get database error.

Put here the code of sql Error complete.
I know how append.

Wasuup
08-12-2007, 12:39 PM
I have this installed ok without any errors but when I log into a forum admin panel and click on the banner mod I just get 2 blank text inout boxes and 2 boxes for height & width.

Is there a way to label these boxes so people know what they're for?

edit: Found it - missed out some page edits.

Problem is I now have just a text link where the banner should be

MasterOfAll
08-16-2007, 06:28 PM
Where is your banner URL? I have understant that if don't put the right url the mod don't work.

DR_GIGGULS
08-17-2007, 09:48 PM
So, does it work?
And what's the final version?

MasterOfAll
08-19-2007, 01:24 PM
The mod work, but don't work if you don't update all the query by phpmyadmin, because for now the {accessname}_ for all forum created with nbs don't work.
I have do in this mode. I have take all the forum table and I have update by phpmyadmin. Is Hard but neccessary.
Sorry :/ :'-(

joebeonekenobe
08-21-2007, 03:01 PM
Good script thanks

MasterOfAll
08-22-2007, 04:50 PM
I had only Re-Build and added to the Big NBS. I don't have make alone.

frycook
09-07-2007, 02:34 AM
Yea I was wondering if someone can install this for me my yahoo messenger is sk8terjames13@yahoo.com my xfire is frycook15

MasterOfAll
09-22-2007, 08:54 PM
But is easy to install!

Try to use notepad ++ if you don't understand the php code ^_^.

Choas
12-14-2007, 03:05 PM
Can Someone put a description of this mode ?

DR_GIGGULS
12-16-2007, 06:50 AM
Allows users to change their logo image.

MasterOfAll
12-17-2007, 11:58 AM
And You can put a redirect page (E.G. index.php) when a user click up the logo's ^_^

marcovit
12-17-2007, 05:04 PM
hmm thats funny, your mod is the SAME as this one.. http://www.phpbb.com/community/viewtopic.php?t=243348?

>.>

MasterOfAll
01-06-2008, 01:10 PM
I had only Re-Build and added to the Big NBS. I don't have make alone.

Re-Build. Only Re-build and test. Nothig of script

################################################## ################################################## #########
## This mod is a rebuild of the mod that you an find at http://www.phpbb.com/community/viewtopic.php?f=15&t=243348
## REMOD Title: Change Forum Banner URL + link for NBS_MFscript
## REMOD Author: MasterOfAll < MASTEROFALL@masterofall.it > http://www.masterofall.it
## REMOD Author: MasterOfAll < MASTEROFALL@masterofall.it > http://www.dungeonsgame.masterofall.it
## REMOD Author: MasterOfAll < MASTEROFALL@masterofall.it > http://www.chooseforum.it
## REMOD Description: Allows the admin to change the forum banner in the admin panel WITH LINK.

Funky
05-14-2008, 02:12 PM
hi

where i add the code
cuz i open new_forum_sql
and i dont know where I add the codes


}
?>



plz anyone can help me

Funky
05-14-2008, 02:25 PM
oh oh soory I find it in bannermodbyACP_install
thanks Master of all
but i have Question
when I try to add another mod
can I add it after this code

$sql[] = "INSERT INTO " . $accessname . "_config (config_name, config_value) VALUES ('default_lang', 'english');";

thanks again ^_&