Add Google Adsense Code

jkowaljr

Joined: 2010-01-24
Posts: 1
Posted: Sun, 2010-01-24 20:05

I've done a fresh install of Gallery 3 and have everything working smoothly, but I'm having trouble figuring out how to add my Google Adsense code.

The old instructions for Gallery 2 don't seem to apply to the new template structures.

I've tried adding the javascript in the "Theme Options" page in the "Header Text" and "Footer Text" areas, but when I click the "Save" button, the form strips out the javacript and leaves behind the html only...

Code I paste:

<script type="text/javascript"><!--
google_ad_client = "pub-4777317788332621";
/* 336x280, created 1/24/10 */
google_ad_slot = "5524378183";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
-----------------------------

Code left behind after hitting the "Save" button:

<!--
google_ad_client = "pub-4777317788332621";
/* 336x280, created 1/24/10 */
google_ad_slot = "5524378183";
google_ad_width = 336;
google_ad_height = 280;
//-->

Do I need to input any additional code to preserve the javascript?

How can I add the Adsense code to every page in the gallery?

Thanks for your help,

Joe

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2010-01-24 21:18

you need to edit the view page you want to add the code to.
So edit themes/wind/views/page.html.php

JS is removed for security reasons.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Mon, 2010-01-25 02:29

I would like to know where and how to add my Google Adsense code to make it appear whenever an individual image is exibited in my Gallery 3.0 beta 2

Please see link to my page and I guess I am using default theme.

http://www.nigerianfolks.com/modules/gallery/index.php/Nollywood

__________________________________________________
Pretenders are people who lack self confidence...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2010-01-25 05:48
Quote:
Gallery 3.0 beta 2

First you need to upgrade to an experimental version:
FAQ: How do I upgrade?

Then add this module:
http://codex.gallery2.org/Gallery3:Modules:code_block
then edit the block you would like to edit. Add the block to the sidebar.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery TeamFAQ: How do I upgrade?

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Mon, 2010-01-25 17:53

floridave,

Quote:
First you need to upgrade to an experimental version:

Thanks for your reply.
Would it be correct if I say Gallery 3.0 Beta 3 is the experimental version? because I noticed it is the most talked about in the forum at the moment.

If not, may I have a direct download link?

_______________________________________________
Pretenders are people who lack self confidence...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-01-25 18:44

Here's the link for the latest code:
http://github.com/gallery/gallery3/zipball/master

And more detailed instructions, be sure to follow them:
http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Mon, 2010-01-25 21:30

Ok, upgrade from Gallery 3.0 beta 2 to gallery-gallery3-6023f2b was a success, (without any snitch.

My initial problem was that my Username or password was compromised, so I had to authenticate and was not logged in during upgrade as most people would do and as stated in the instructions.

Now, I still can't login with the info I see in var/database....

Changing login info last night got my screen frozen or continous loading page, where do I go from here?

If I can't login, there is no way I can integrate the adsence code I requested help for here.

Looking forward to a possitive and implementable response.

________________________________________________
Pretenders are people who lack self confidence...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-01-25 21:37
Quote:
Now, I still can't login with the info I see in var/database....

That's not the information you'd use to log into Gallery. That information is only stored in the database. The username is most likely admin, but the password is something you've set or left at the auto-generated password during your initial install. If you've forgotten that, let us know. One of the developers posted a post that resets that using a sql query.

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Mon, 2010-01-25 23:40

nivekiam,

Thanks, I know the post you are refering to, in that thread, I stated that I lost my password.
See quote below,

Quote:
update ${DB_PREFIX}users set password='O34c384a78a5d83403d5ddd80ed077165ef7' where id=2;

http://gallery.menalto.com/gallery_3.0_beta_2_feedback?page=4

My problem is that, I don't really know how to run sql queries, so, in my case, it always returns a syntax error.. pardon me.

But I will still give it another go, if problem persists, maybe a fresh install will take this ache off my head as I always keep the latter as the last option.

Thank you all who assisted me so far, your assistance is not in vain because, each I troubleshoot this, I learn something new.

______________________________________________
Pretenders are people who lack self confidence...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2010-01-25 23:44

Ah, I see.

If you have phpMyAdmin, it makes it a little more user friendly to run queries. The query you'd want to run, since you don't have a prefix:

update users set password='O34c384a78a5d83403d5ddd80ed077165ef7' where id=2;
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Tue, 2010-01-26 01:08

nivekiam,

I got to update the users set password .. so that one went well but I got this.

Quote:
Hey wait, you're an admin! We can tell you stuff.
Exception [ 503 ]:
@todo FORBIDDEN

Quote:
MODPATH/gallery/helpers/access.php[ 189 ]

184 185 /** 186 * Terminate immediately with an HTTP 503 Forbidden response. 187 */ 188 static function forbidden() { 189 throw new Exception("@todo FORBIDDEN", 503); 190 } 191 192 /** 193 * Internal method to set a permission 194 *
MODPATH/gallery/helpers/access.php[ 390 ] » access_Core::forbidden()

385 * Verify our Cross Site Request Forgery token is valid, else throw an exception.
386 */
387 static function verify_csrf() {
388 $input = Input::instance();
389 if ($input->post("csrf", $input->get("csrf", null)) !== Session::instance()->get("csrf")) {
390 self::forbidden();
391 }
392 }
393
394 /**
395 * Get the Cross Site Request Forgery token for this session.

MODPATH/gallery/controllers/login.php[ 29 ] » access_Core::verify_csrf()

24 $view->form = auth::get_login_form("login/auth_ajax");
25 print $view;
26 }
27
28 public function auth_ajax() {
29 access::verify_csrf();
30
31 list ($valid, $form) = $this->_auth("login/auth_ajax");
32 if ($valid) {
33 print json_encode(
34 array("result" => "success"));

{PHP internal call} » Login_Controller->auth_ajax()

SYSPATH/core/Kohana.php[ 330 ] » ReflectionMethod->invokeArgs( arguments )

object
object Login_Controller(0) {
}

args
array(0)

325
326 // Start the controller execution benchmark
327 Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');
328
329 // Execute the controller method
330 $method->invokeArgs($controller, $arguments);
331
332 // Controller method has been executed
333 Event::run('system.post_controller');
334
335 // Stop the controller execution benchmark

SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance( arguments )

0
NULL

203 Event::$data =& $data;
204 $callbacks = Event::get($name);
205
206 foreach ($callbacks as $callback)
207 {
208 call_user_func_array($callback, array(&$data));
209 }
210
211 // Do this to prevent data from getting 'stuck'
212 $clear_data = '';
213 Event::$data =& $clear_data;

APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( arguments )

name
array(2) (
0 => string(6) "Kohana"
1 => string(8) "instance"
)

data
array(1) (
0 => NULL
)

62
63// End system_initialization
64Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization');
65
66// Make the magic happen!
67Event::run('system.execute');
DOCROOT/index.php[ 90 ] » require( arguments )

0
string(69) "/home4/nigeriaf/public_html/modules/gallery/application/Bootstrap.php"

85if (file_exists("local.php")) {
86 include("local.php");
87}
88
89// Initialize.
90require APPPATH . "Bootstrap" . EXT;

Environment
Included files(85)
DOCROOT/index.php

APPPATH/Bootstrap.php

SYSPATH/core/Benchmark.php

SYSPATH/core/Event.php

SYSPATH/core/Kohana.php

SYSPATH/core/Kohana_Exception.php

MODPATH/gallery/libraries/MY_Kohana_Exception.php

SYSPATH/core/Kohana_Config.php

SYSPATH/libraries/drivers/Config.php

SYSPATH/libraries/drivers/Config/Array.php

APPPATH/config/config.php

SYSPATH/libraries/I18n.php

SYSPATH/libraries/Kohana_PHP_Exception.php

SYSPATH/config/locale.php

MODPATH/gallery/config/locale.php

MODPATH/gallery/hooks/init_gallery.php

MODPATH/gallery/helpers/gallery_error.php

SYSPATH/libraries/Input.php

SYSPATH/helpers/text.php

SYSPATH/libraries/Kohana_Log.php

SYSPATH/config/log.php

SYSPATH/libraries/drivers/Log/File.php

SYSPATH/libraries/drivers/Log.php

MODPATH/gallery/config/log_file.php

MODPATH/gallery/libraries/Gallery_I18n.php

MODPATH/gallery/helpers/module.php

SYSPATH/helpers/db.php

SYSPATH/libraries/Database_Builder.php

MODPATH/kohana23_compat/libraries/MY_Database_Builder.php

SYSPATH/libraries/Database.php

MODPATH/gallery/libraries/MY_Database.php

SYSPATH/config/database.php

MODPATH/gallery/config/database.php

DOCROOT/var/database.php

SYSPATH/libraries/Database_Mysqli.php

SYSPATH/libraries/Database_Mysql.php

SYSPATH/libraries/Database_Mysqli_Result.php

SYSPATH/libraries/Database_Result.php

SYSPATH/libraries/ORM.php

MODPATH/gallery/libraries/MY_ORM.php

SYSPATH/libraries/ORM_Iterator.php

MODPATH/gallery/models/module.php

SYSPATH/helpers/inflector.php

SYSPATH/config/inflector.php

SYSPATH/config/sql_types.php

MODPATH/gallery/helpers/model_cache.php

MODPATH/gallery/helpers/gallery.php

MODPATH/gallery/helpers/gallery_event.php

MODPATH/gallery/helpers/identity.php

MODPATH/gallery/libraries/IdentityProvider.php

MODPATH/user/config/identity.php

MODPATH/user/libraries/drivers/IdentityProvider/Gallery.php

MODPATH/gallery/libraries/drivers/IdentityProvider.php

SYSPATH/libraries/Session.php

SYSPATH/config/session.php

MODPATH/gallery/config/session.php

SYSPATH/libraries/drivers/Session/Database.php

SYSPATH/libraries/drivers/Session.php

SYSPATH/config/cookie.php

MODPATH/gallery/config/cookie.php

SYSPATH/helpers/cookie.php

MODPATH/user/models/user.php

SYSPATH/helpers/request.php

MODPATH/gallery/helpers/theme.php

MODPATH/gallery/helpers/locales.php

MODPATH/user/helpers/user_event.php

MODPATH/comment/helpers/comment_event.php

MODPATH/organize/helpers/organize_event.php

MODPATH/search/helpers/search_event.php

MODPATH/tag/helpers/tag_event.php

MODPATH/akismet/helpers/akismet_event.php

MODPATH/recaptcha/helpers/recaptcha_event.php

MODPATH/exif/helpers/exif_event.php

MODPATH/digibug/helpers/digibug_event.php

MODPATH/notification/helpers/notification_event.php

SYSPATH/libraries/Router.php

SYSPATH/config/routes.php

MODPATH/gallery/config/routes.php

SYSPATH/helpers/url.php

MODPATH/gallery/helpers/MY_url.php

MODPATH/gallery/controllers/login.php

SYSPATH/libraries/Controller.php

MODPATH/gallery/helpers/access.php

MODPATH/gallery/views/kohana/error.php

MODPATH/gallery/libraries/SafeString.php

Loaded extensions(52)
date

libxml

openssl

pcre

zlib

bcmath

bz2

calendar

ctype

curl

dom

hash

filter

ftp

gd

gettext

session

iconv

standard

json

mbstring

mcrypt

mhash

mime_magic

mysql

SimpleXML

pgsql

posix

pspell

Reflection

imap

SPL

mysqli

soap

sockets

exif

tidy

tokenizer

xml

xmlreader

xmlrpc

xmlwriter

xsl

zip

cgi-fcgi

SourceGuardian

PDO

pdo_sqlite

SQLite

pdo_mysql

ionCube Loader

Zend Optimizer

$_SESSION
session_id string(32) "539fa1b323b6c4db2c2073e8798e23ba"

total_hits integer 28

_kf_flash_ array(0)

user_agent string(71) "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.4)"

ip_address string(12) "77.248.83.36"

last_activity integer 1264467035

user object User_Model(34) {
protected has_and_belongs_to_many => array(1) (
0 => string(6) "groups"
)
public form_rules => array(6) (
"name" => string(21) "required|length[1,32]"
"full_name" => string(13) "length[0,255]"
"email" => string(34) "required|valid_email|length[1,255]"
"password" => string(12) "length[1,40]"
"url" => string(9) "valid_url"
"locale" => string(12) "length[2,10]"
)
protected original => NULL
protected has_one => array(0)
protected belongs_to => array(0)
protected has_many => array(0)
protected has_many_through => array(0)
protected load_with => array(0)
protected object => array(12) (
"id" => string(1) "2"
"name" => string(5) "admin"
"full_name" => string(21) "Gallery Administrator"
"password" => string(36) "O34c384a78a5d83403d5ddd80ed077165ef7"
"login_count" => string(1) "3"
"last_login" => string(10) "1264466333"
"email" => string(27) "webmaster@nigerianfolks.com"
"admin" => string(1) "1"
"guest" => string(1) "0"
"hash" => NULL
"url" => string(28) "http://www.nigerianfolks.com"
"locale" => NULL
)
protected changed => array(0)
protected related => array(0)
protected _valid => bool FALSE
protected _loaded => bool TRUE
protected _saved => bool TRUE
protected sorting => array(1) (
"id" => string(3) "asc"
)
protected rules => array(0)
protected object_relations => array(0)
protected changed_relations => array(0)
protected object_name => string(4) "user"
protected object_plural => NULL
protected table_name => string(5) "users"
protected table_columns => array(12) (
"id" => array(8) (
"type" => string(3) "int"
"min" => integer -2147483648
"max" => integer 2147483647
"sql_type" => string(3) "int"
"length" => string(1) "9"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool TRUE
)
"name" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(2) "32"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"full_name" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(3) "255"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"password" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(2) "64"
"default" => NULL
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"login_count" => array(8) (
"type" => string(3) "int"
"min" => integer 0
"max" => integer 4294967295
"sql_type" => string(12) "int unsigned"
"length" => string(2) "10"
"default" => string(1) "0"
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"last_login" => array(8) (
"type" => string(3) "int"
"min" => integer 0
"max" => integer 4294967295
"sql_type" => string(12) "int unsigned"
"length" => string(2) "10"
"default" => string(1) "0"
"nullable" => bool FALSE
"sequenced" => bool FALSE
)
"email" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(2) "64"
"default" => NULL
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"admin" => array(8) (
"type" => string(3) "int"
"min" => integer -128
"max" => integer 127
"sql_type" => string(7) "tinyint"
"length" => string(1) "1"
"default" => string(1) "0"
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"guest" => array(8) (
"type" => string(3) "int"
"min" => integer -128
"max" => integer 127
"sql_type" => string(7) "tinyint"
"length" => string(1) "1"
"default" => string(1) "0"
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"hash" => array(7) (
"type" => string(6) "string"
"exact" => bool TRUE
"sql_type" => string(4) "char"
"length" => string(2) "32"
"default" => NULL
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"url" => array(6) (
"type" => string(6) "string"
"sql_type" => string(7) "varchar"
"length" => string(3) "255"
"default" => NULL
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
"locale" => array(7) (
"type" => string(6) "string"
"exact" => bool TRUE
"sql_type" => string(4) "char"
"length" => string(2) "10"
"default" => NULL
"nullable" => bool TRUE
"sequenced" => bool FALSE
)
)
protected ignored_columns => NULL
protected updated_column => NULL
protected created_column => NULL
protected primary_key => string(2) "id"
protected primary_val => string(4) "name"
protected foreign_key => array(0)
protected table_names_plural => bool TRUE
protected reload_on_wakeup => bool TRUE
protected db => object Database_Mysqli(7) {
protected quote => string(1) "`"
protected _table_names => array(124) (
"{access_caches}" => string(13) "access_caches"
"{access_intents}" => string(14) "access_intents"
"{caches}" => string(6) "caches"
"{comments}" => string(8) "comments"
"{digibug_proxies}" => string(15) "digibug_proxies"
"{exif_records}" => string(12) "exif_records"
"{g2_maps}" => string(7) "g2_maps"
"{graphics_rules}" => string(14) "graphics_rules"
"{groups}" => string(6) "groups"
"{groups_users}" => string(12) "groups_users"
"{incoming_translations}" => string(21) "incoming_translations"
"{items}" => string(5) "items"
"{items_tags}" => string(10) "items_tags"
"{logs}" => string(4) "logs"
"{messages}" => string(8) "messages"
"{modules}" => string(7) "modules"
"{nuke_authors}" => string(12) "nuke_authors"
"{nuke_autonews}" => string(13) "nuke_autonews"
"{nuke_banned_ip}" => string(14) "nuke_banned_ip"
"{nuke_banner}" => string(11) "nuke_banner"
"{nuke_banner_clients}" => string(19) "nuke_banner_clients"
"{nuke_banner_plans}" => string(17) "nuke_banner_plans"
"{nuke_banner_positions}" => string(21) "nuke_banner_positions"
"{nuke_banner_terms}" => string(17) "nuke_banner_terms"
"{nuke_bbauth_access}" => string(18) "nuke_bbauth_access"
"{nuke_bbbanlist}" => string(14) "nuke_bbbanlist"
"{nuke_bbcategories}" => string(17) "nuke_bbcategories"
"{nuke_bbconfig}" => string(13) "nuke_bbconfig"
"{nuke_bbdisallow}" => string(15) "nuke_bbdisallow"
"{nuke_bbforum_prune}" => string(18) "nuke_bbforum_prune"
"{nuke_bbforums}" => string(13) "nuke_bbforums"
"{nuke_bbgroups}" => string(13) "nuke_bbgroups"
"{nuke_bbposts}" => string(12) "nuke_bbposts"
"{nuke_bbposts_text}" => string(17) "nuke_bbposts_text"
"{nuke_bbprivmsgs}" => string(15) "nuke_bbprivmsgs"
"{nuke_bbprivmsgs_text}" => string(20) "nuke_bbprivmsgs_text"
"{nuke_bbranks}" => string(12) "nuke_bbranks"
"{nuke_bbsearch_results}" => string(21) "nuke_bbsearch_results"
"{nuke_bbsearch_wordlist}" => string(22) "nuke_bbsearch_wordlist"
"{nuke_bbsearch_wordmatch}" => string(23) "nuke_bbsearch_wordmatch"
"{nuke_bbsessions}" => string(15) "nuke_bbsessions"
"{nuke_bbsmilies}" => string(14) "nuke_bbsmilies"
"{nuke_bbthemes}" => string(13) "nuke_bbthemes"
"{nuke_bbthemes_name}" => string(18) "nuke_bbthemes_name"
"{nuke_bbtopics}" => string(13) "nuke_bbtopics"
"{nuke_bbtopics_watch}" => string(19) "nuke_bbtopics_watch"
"{nuke_bbuser_group}" => string(17) "nuke_bbuser_group"
"{nuke_bbvote_desc}" => string(16) "nuke_bbvote_desc"
"{nuke_bbvote_results}" => string(19) "nuke_bbvote_results"
"{nuke_bbvote_voters}" => string(18) "nuke_bbvote_voters"
"{nuke_bbwords}" => string(12) "nuke_bbwords"
"{nuke_blocks}" => string(11) "nuke_blocks"
"{nuke_cities}" => string(11) "nuke_cities"
"{nuke_comments}" => string(13) "nuke_comments"
"{nuke_comments_moderated}" => string(23) "nuke_comments_moderated"
"{nuke_config}" => string(11) "nuke_config"
"{nuke_confirm}" => string(12) "nuke_confirm"
"{nuke_counter}" => string(12) "nuke_counter"
"{nuke_downloads_categories}" => string(25) "nuke_downloads_categories"
"{nuke_downloads_downloads}" => string(24) "nuke_downloads_downloads"
"{nuke_downloads_editorials}" => string(25) "nuke_downloads_editorials"
"{nuke_downloads_modrequest}" => string(25) "nuke_downloads_modrequest"
"{nuke_downloads_newdownload}" => string(26) "nuke_downloads_newdownload"
"{nuke_downloads_votedata}" => string(23) "nuke_downloads_votedata"
"{nuke_encyclopedia}" => string(17) "nuke_encyclopedia"
"{nuke_encyclopedia_text}" => string(22) "nuke_encyclopedia_text"
"{nuke_faqanswer}" => string(14) "nuke_faqanswer"
"{nuke_faqcategories}" => string(18) "nuke_faqcategories"
"{nuke_groups}" => string(11) "nuke_groups"
"{nuke_groups_points}" => string(18) "nuke_groups_points"
"{nuke_headlines}" => string(14) "nuke_headlines"
"{nuke_journal}" => string(12) "nuke_journal"
"{nuke_journal_comments}" => string(21) "nuke_journal_comments"
"{nuke_journal_stats}" => string(18) "nuke_journal_stats"
"{nuke_links_categories}" => string(21) "nuke_links_categories"
"{nuke_links_editorials}" => string(21) "nuke_links_editorials"
"{nuke_links_links}" => string(16) "nuke_links_links"
"{nuke_links_modrequest}" => string(21) "nuke_links_modrequest"
"{nuke_links_newlink}" => string(18) "nuke_links_newlink"
"{nuke_links_votedata}" => string(19) "nuke_links_votedata"
"{nuke_main}" => string(9) "nuke_main"
"{nuke_message}" => string(12) "nuke_message"
"{nuke_modules}" => string(12) "nuke_modules"
"{nuke_optimize_gain}" => string(18) "nuke_optimize_gain"
"{nuke_pages}" => string(10) "nuke_pages"
"{nuke_pages_categories}" => string(21) "nuke_pages_categories"
"{nuke_poll_check}" => string(15) "nuke_poll_check"
"{nuke_poll_data}" => string(14) "nuke_poll_data"
"{nuke_poll_desc}" => string(14) "nuke_poll_desc"
"{nuke_pollcomments}" => string(17) "nuke_pollcomments"
"{nuke_pollcomments_moderated}" => string(27) "nuke_pollcomments_moderated"
"{nuke_public_messages}" => string(20) "nuke_public_messages"
"{nuke_queue}" => string(10) "nuke_queue"
"{nuke_referer}" => string(12) "nuke_referer"
"{nuke_related}" => string(12) "nuke_related"
"{nuke_reviews}" => string(12) "nuke_reviews"
"{nuke_reviews_add}" => string(16) "nuke_reviews_add"
"{nuke_reviews_comments}" => string(21) "nuke_reviews_comments"
"{nuke_reviews_comments_moderated}" => string(31) "nuke_reviews_comments_moderated"
"{nuke_reviews_main}" => string(17) "nuke_reviews_main"
"{nuke_session}" => string(12) "nuke_session"
"{nuke_stats_date}" => string(15) "nuke_stats_date"
"{nuke_stats_hour}" => string(15) "nuke_stats_hour"
"{nuke_stats_month}" => string(16) "nuke_stats_month"
"{nuke_stats_year}" => string(15) "nuke_stats_year"
"{nuke_stories}" => string(12) "nuke_stories"
"{nuke_stories_cat}" => string(16) "nuke_stories_cat"
"{nuke_subscriptions}" => string(18) "nuke_subscriptions"
"{nuke_topics}" => string(11) "nuke_topics"
"{nuke_users}" => string(10) "nuke_users"
"{nuke_users_temp}" => string(15) "nuke_users_temp"
"{outgoing_translations}" => string(21) "outgoing_translations"
"{pending_notifications}" => string(21) "pending_notifications"
"{permissions}" => string(11) "permissions"
"{search_records}" => string(14) "search_records"
"{server_add_files}" => string(16) "server_add_files"
"{sessions}" => string(8) "sessions"
"{subscriptions}" => string(13) "subscriptions"
"{tags}" => string(4) "tags"
"{tasks}" => string(5) "tasks"
"{themes}" => string(6) "themes"
"{users}" => string(5) "users"
"{vars}" => string(4) "vars"
"{watermarks}" => string(10) "watermarks"
)
protected last_query => string(81) "SELECT `key`, `translation`
FROM `outgoing_translations`
WHERE `locale` = 'en_US'"
protected config => array(8) (
"benchmark" => bool FALSE
"persistent" => bool FALSE
"connection" => array(8) (
"type" => string(6) "mysqli"
"user" => string(13) "nigeriaf_root"
"pass" => string(8) "xud23fon"
"host" => string(9) "localhost"
"port" => bool FALSE
"socket" => bool FALSE
"database" => string(16) "nigeriaf_gallery"
"params" => NULL
)
"character_set" => string(4) "utf8"
"table_prefix" => string(0) ""
"object" => bool TRUE
"cache" => bool FALSE
"escape" => bool TRUE
)
protected config_required => array(0)
protected connection => object mysqli(0) {
}
protected cache => NULL
}
protected db_applied => array(0)
protected db_builder => object Database_Builder(18) {
protected order_directions => array(3) (
0 => string(3) "ASC"
1 => string(4) "DESC"
2 => string(6) "RAND()"
)
protected db => object Database_Mysqli(7) {
protected quote => string(1) "`"
protected _table_names => array(124) (
"{access_caches}" => string(13) "access_caches"
"{access_intents}" => string(14) "access_intents"
"{caches}" => string(6) "caches"
"{comments}" => string(8) "comments"
"{digibug_proxies}" => string(15) "digibug_proxies"
"{exif_records}" => string(12) "exif_records"
"{g2_maps}" => string(7) "g2_maps"
"{graphics_rules}" => string(14) "graphics_rules"
"{groups}" => string(6) "groups"
"{groups_users}" => string(12) "groups_users"
"{incoming_translations}" => string(21) "incoming_translations"
"{items}" => string(5) "items"
"{items_tags}" => string(10) "items_tags"
"{logs}" => string(4) "logs"
"{messages}" => string(8) "messages"
"{modules}" => string(7) "modules"
"{nuke_authors}" => string(12) "nuke_authors"
"{nuke_autonews}" => string(13) "nuke_autonews"
"{nuke_banned_ip}" => string(14) "nuke_banned_ip"
"{nuke_banner}" => string(11) "nuke_banner"
"{nuke_banner_clients}" => string(19) "nuke_banner_clients"
"{nuke_banner_plans}" => string(17) "nuke_banner_plans"
"{nuke_banner_positions}" => string(21) "nuke_banner_positions"
"{nuke_banner_terms}" => string(17) "nuke_banner_terms"
"{nuke_bbauth_access}" => string(18) "nuke_bbauth_access"
"{nuke_bbbanlist}" => string(14) "nuke_bbbanlist"
"{nuke_bbcategories}" => string(17) "nuke_bbcategories"
"{nuke_bbconfig}" => string(13) "nuke_bbconfig"
"{nuke_bbdisallow}" => string(15) "nuke_bbdisallow"
"{nuke_bbforum_prune}" => string(18) "nuke_bbforum_prune"
"{nuke_bbforums}" => string(13) "nuke_bbforums"
"{nuke_bbgroups}" => string(13) "nuke_bbgroups"
"{nuke_bbposts}" => string(12) "nuke_bbposts"
"{nuke_bbposts_text}" => string(17) "nuke_bbposts_text"
"{nuke_bbprivmsgs}" => string(15) "nuke_bbprivmsgs"
"{nuke_bbprivmsgs_text}" => string(20) "nuke_bbprivmsgs_text"
"{nuke_bbranks}" => string(12) "nuke_bbranks"
"{nuke_bbsearch_results}" => string(21) "nuke_bbsearch_results"
"{nuke_bbsearch_wordlist}" => string(22) "nuke_bbsearch_wordlist"
"{nuke_bbsearch_wordmatch}" => string(23) "nuke_bbsearch_wordmatch"
"{nuke_bbsessions}" => string(15) "nuke_bbsessions"
"{nuke_bbsmilies}" => string(14) "nuke_bbsmilies"
"{nuke_bbthemes}" => string(13) "nuke_bbthemes"
"{nuke_bbthemes_name}" => string(18) "nuke_bbthemes_name"
"{nuke_bbtopics}" => string(13) "nuke_bbtopics"
"{nuke_bbtopics_watch}" => string(19) "nuke_bbtopics_watch"
"{nuke_bbuser_group}" => string(17) "nuke_bbuser_group"
"{nuke_bbvote_desc}" => string(16) "nuke_bbvote_desc"
"{nuke_bbvote_results}" => string(19) "nuke_bbvote_results"
"{nuke_bbvote_voters}" => string(18) "nuke_bbvote_voters"
"{nuke_bbwords}" => string(12) "nuke_bbwords"
"{nuke_blocks}" => string(11) "nuke_blocks"
"{nuke_cities}" => string(11) "nuke_cities"
"{nuke_comments}" => string(13) "nuke_comments"
"{nuke_comments_moderated}" => string(23) "nuke_comments_moderated"
"{nuke_config}" => string(11) "nuke_config"
"{nuke_confirm}" => string(12) "nuke_confirm"
"{nuke_counter}" => string(12) "nuke_counter"
"{nuke_downloads_categories}" => string(25) "nuke_downloads_categories"
"{nuke_downloads_downloads}" => string(24) "nuke_downloads_downloads"
"{nuke_downloads_editorials}" => string(25) "nuke_downloads_editorials"
"{nuke_downloads_modrequest}" => string(25) "nuke_downloads_modrequest"
"{nuke_downloads_newdownload}" => string(26) "nuke_downloads_newdownload"
"{nuke_downloads_votedata}" => string(23) "nuke_downloads_votedata"
"{nuke_encyclopedia}" => string(17) "nuke_encyclopedia"
"{nuke_encyclopedia_text}" => string(22) "nuke_encyclopedia_text"
"{nuke_faqanswer}" => string(14) "nuke_faqanswer"
"{nuke_faqcategories}" => string(18) "nuke_faqcategories"
"{nuke_groups}" => string(11) "nuke_groups"
"{nuke_groups_points}" => string(18) "nuke_groups_points"
"{nuke_headlines}" => string(14) "nuke_headlines"
"{nuke_journal}" => string(12) "nuke_journal"
"{nuke_journal_comments}" => string(21) "nuke_journal_comments"
"{nuke_journal_stats}" => string(18) "nuke_journal_stats"
"{nuke_links_categories}" => string(21) "nuke_links_categories"
"{nuke_links_editorials}" => string(21) "nuke_links_editorials"
"{nuke_links_links}" => string(16) "nuke_links_links"
"{nuke_links_modrequest}" => string(21) "nuke_links_modrequest"
"{nuke_links_newlink}" => string(18) "nuke_links_newlink"
"{nuke_links_votedata}" => string(19) "nuke_links_votedata"
"{nuke_main}" => string(9) "nuke_main"
"{nuke_message}" => string(12) "nuke_message"
"{nuke_modules}" => string(12) "nuke_modules"
"{nuke_optimize_gain}" => string(18) "nuke_optimize_gain"
"{nuke_pages}" => string(10) "nuke_pages"
"{nuke_pages_categories}" => string(21) "nuke_pages_categories"
"{nuke_poll_check}" => string(15) "nuke_poll_check"
"{nuke_poll_data}" => string(14) "nuke_poll_data"
"{nuke_poll_desc}" => string(14) "nuke_poll_desc"
"{nuke_pollcomments}" => string(17) "nuke_pollcomments"
"{nuke_pollcomments_moderated}" => string(27) "nuke_pollcomments_moderated"
"{nuke_public_messages}" => string(20) "nuke_public_messages"
"{nuke_queue}" => string(10) "nuke_queue"
"{nuke_referer}" => string(12) "nuke_referer"
"{nuke_related}" => string(12) "nuke_related"
"{nuke_reviews}" => string(12) "nuke_reviews"
"{nuke_reviews_add}" => string(16) "nuke_reviews_add"
"{nuke_reviews_comments}" => string(21) "nuke_reviews_comments"
"{nuke_reviews_comments_moderated}" => string(31) "nuke_reviews_comments_moderated"
"{nuke_reviews_main}" => string(17) "nuke_reviews_main"
"{nuke_session}" => string(12) "nuke_session"
"{nuke_stats_date}" => string(15) "nuke_stats_date"
"{nuke_stats_hour}" => string(15) "nuke_stats_hour"
"{nuke_stats_month}" => string(16) "nuke_stats_month"
"{nuke_stats_year}" => string(15) "nuke_stats_year"
"{nuke_stories}" => string(12) "nuke_stories"
"{nuke_stories_cat}" => string(16) "nuke_stories_cat"
"{nuke_subscriptions}" => string(18) "nuke_subscriptions"
"{nuke_topics}" => string(11) "nuke_topics"
"{nuke_users}" => string(10) "nuke_users"
"{nuke_users_temp}" => string(15) "nuke_users_temp"
"{outgoing_translations}" => string(21) "outgoing_translations"
"{pending_notifications}" => string(21) "pending_notifications"
"{permissions}" => string(11) "permissions"
"{search_records}" => string(14) "search_records"
"{server_add_files}" => string(16) "server_add_files"
"{sessions}" => string(8) "sessions"
"{subscriptions}" => string(13) "subscriptions"
"{tags}" => string(4) "tags"
"{tasks}" => string(5) "tasks"
"{themes}" => string(6) "themes"
"{users}" => string(5) "users"
"{vars}" => string(4) "vars"
"{watermarks}" => string(10) "watermarks"
)
protected last_query => string(81) "SELECT `key`, `translation`
FROM `outgoing_translations`
WHERE `locale` = 'en_US'"
protected config => array(8) (
"benchmark" => bool FALSE
"persistent" => bool FALSE
"connection" => array(8) (
"type" => string(6) "mysqli"
"user" => string(13) "nigeriaf_root"
"pass" => string(8) "xud23fon"
"host" => string(9) "localhost"
"port" => bool FALSE
"socket" => bool FALSE
"database" => string(16) "nigeriaf_gallery"
"params" => NULL
)
"character_set" => string(4) "utf8"
"table_prefix" => string(0) ""
"object" => bool TRUE
"cache" => bool FALSE
"escape" => bool TRUE
)
protected config_required => array(0)
protected connection => object mysqli(0) {
}
protected cache => NULL
}
protected select => array(0)
protected from => array(0)
protected join => array(0)
protected where => array(0)
protected group_by => array(0)
protected having => array(0)
protected order_by => array(0)
protected limit => NULL
protected offset => NULL
protected set => array(0)
protected columns => array(0)
protected values => array(0)
protected type => NULL
protected distinct => bool FALSE
protected reset => bool TRUE
protected ttl => bool FALSE
}
protected with_applied => array(0)
}

upgrade_token string(32) "ca42c051a31f4ad8d1cdf1d82bcb4d57"

csrf string(32) "a88874791203495f0c8764ad080c3a91"

can_upgrade bool TRUE

group_ids array(2) (
0 => string(1) "1"
1 => string(1) "2"
)

$_COOKIE
__utma string(56) "268282641.1739499035.1264341951.1264465717.1264465783.15"

__utmz string(70) "268282641.1264341951.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)"

__qca string(26) "P0-210674879-1264341959375"

__utmb string(25) "268282641.1.10.1264465783"

__utmc string(9) "268282641"

nigerianfolks_data string(53) "a:2:{s:11:"autologinid";s:0:"";s:6:"userid";s:1:"2";}"

user string(92) "MjpNYXJ0aW5zd2FyOjQ4ZWQzNGM5MzA3YjFjMjBkZDI2ZTQ4ODRlOTRmNGRhOjEwOjowOjA6MDowOmNocm9tbzo0MDk2"

admin string(64) "TWFydGluc3dhcjo0OGVkMzRjOTMwN2IxYzIwZGQyNmU0ODg0ZTk0ZjRkYTo6MQ=="

g3sid string(73) "f7e823a4ef4ffb72b6115b7048562984b8c428e4~539fa1b323b6c4db2c2073e8798e23ba"

$_SERVER

If you have more tips, please leave it here, I am going to bed now (because I live in Europe and it's past 2 am)but I will reset it to how it was to avoid vulnerabilities and check back here when I wake up to see if there further steps from here.

In between I think I messed all up back when I tried to integrate it to Nuke-Evolution with the integration pack without checking it's compatibility with gallery3. LOL

___________________________________________
Pretenders are people who lack self confidence...

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-01-26 01:15
Quote:
In between I think I messed all up back when I tried to integrate it to Nuke-Evolution with the integration pack without checking it's compatibility with gallery3. LOL

If they have tables named the same, there would be conflicts and you'd have "blown up" both installs. So it's probably best to start over from scratch.

You can re-import your images using the Server Add module:
http://codex.gallery2.org/Gallery3:Modules:serveradd
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Fri, 2010-01-29 01:23

I started all from scratch again, using gallery3 b3 this time, the upgraded to gallery-gallery3-b8fb891 and lost my theme as indicated in the upgrade instructions, I followed to the FAQ I got when upgrade was successful, to solve the theme problem but it was not explainatory enough so, at a point I tried a fresh login and it an error that something was broken... so I could not login
I had no choice but to downgrade back to 3 b3 .

My question now is, is there a link to a fix for themes after upgrading besides the 2 lines of code in the FAQ, like a step by step tutorial, if so, could you please point me to the link?

Thanks in advance.

This is what I I have now.
http://www.nigerianfolks.com/modules/gallery3/index.php/nollywood/

There is something strange about the page, at the move of the mouse.

_____________________________________________
Pretenders are people who lack self confidence...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2010-01-29 01:53

I would just start over with a fresh install from:
http://github.com/gallery/gallery3/archives/master
skipping the install of B3 and upgrade.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Sat, 2010-01-30 22:58

Thanks Dave for your advice, I followed it through by starting over with the .tar from the link you proposed above; the only problem now is activating one of the 2 themes because they cant be clicked on.

______________________________________________
Pretenders are people who lack self confidence...

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2010-01-30 23:33

We only ship with one theme so if you want additional themes you will have to add them manually.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Sun, 2010-01-31 00:37

There is no theme activated, I should have had (wind)like after other installs, I just can't activate it, all I have is a white page with links and text, unlike when I installed, activated and configured b2 and b3.

Maybe something went wrong with the installation?

See for yourself. http://www.nigerianfolks.com/modules/gallery3/

I hope I am not a bore with all this troubleshooting stuff.

______________________________________________
Pretenders are people who lack self confidence...

 
Martinswar
Martinswar's picture

Joined: 2007-10-19
Posts: 18
Posted: Sun, 2010-01-31 22:11

Ok, I eventually got it to work, the problem was that the latest experimental version of gallery3 refused to function correctly in the modules directory of my website.

It is now fully functional at;

http://www.nigerianfolks.com/gallery/

You guys were right, when you indicated that this software was for those willing to live on the edge, I guess I am one of those poeple. LOL

Furthermore, I am using this medium to thank those who sacrificed part of their precious time to reply in regards to my quest.

_____________________________________________
Pretenders are people who lack self confidence...