Again /var directory
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
Hello!, i need to change var directory in a gallery instalation in use. 1) I copied /var to the new location: (/homepages/8/d495792104/htdocs/home/wp-content/uploads/var) Quote:
define("VARPATH", realpath("/homepages/8/d495792104/htdocs/home/wp-content/uploads/var") . "/"); 3) I rename my original Gallery "/var" to /"delete_var" 4) go to my gallery and and gallery try to make a new installation!! 5) Change my index to original file and create a local.php : Quote:
<? 6) Runs Gallery ... and try to make a new installation again! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Quote:
Hello!, i need to change var directory in a gallery instalation in use. Why? Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
I ever upload photos which Lrgallery3 plugin... I can work Lightroom and Raw files, and automatics update the gallery... it´s a clean and faster way to administrate and maintain a mirrow. I realized to a good way to use the same photos in Gallery3 and in a Wordpress-plugin slide was used a WPplugin that only can take images of a local directory: /home/wp-content/uploads . And believed that Gallery3 was more flexible in the location of his /var directory. I hope I explained well, It is a bit tricky.... better see your self: http://paseapase.com/ |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
I'm doing something wrong... But... what?! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Adding items to the var directory will not auto add them to G3. I'm still confused as to what you want to do. Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
I have a gallery installation, and need to change the location of /var directory. |
|
spags
Joined: 2010-03-26
Posts: 120 |
![]() |
Is it possible that the permissions on your new var folder are wrong? Would that make Gallery think you want to start a new installation? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
In addition to the index.php change from the FAQ you need to edit a couple of functions in the items model. Edit gallery3/modules/gallery/models/item.php public function file_url($full_uri=false) { $relative_path = "var/albums/" . $this->relative_path(); and change var/albums/ as needed. find: public function thumb_url($full_uri=false) { $cache_buster = $this->_cache_buster($this->thumb_path()); $relative_path = "var/thumbs/" . $this->relative_path(); and change var/thumbs/ as needed. find: public function resize_url($full_uri=false) { $relative_path = "var/resizes/" . $this->relative_path(); and change var/resizes/ as needed. Dave _____________________________________________ |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
All OK!!! .... But. "http://paseapase.com/wp-content/uploads/var" BUT Gallery start a new installation again.... > But then revising again the "index.php" and found at the end of a file this: Quote:
default: then edited Quote:
define("VARPATH",realpath("my/new/realpath/var")."/"); an all works FINE!!! thanks to all |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
ok this folder has 777 permissions, but i changed permissions to root folders too ... |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
Only two bugs... neither cooliris presentation, nor Photowidget works.... can't see any error menage, but not work! :-S thanks for help! |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Your RSS feeds don't work either. Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
sorry.. don´t understand. this... |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
What do you have for public function thumb_url($full_uri=false) { $cache_buster = $this->_cache_buster($this->thumb_path()); $relative_path = "var/thumbs/" . $this->relative_path();
Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
Quote:
public function thumb_url($full_uri=false) { |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Does changing Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
nope... Quote:
<images> |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
I tried to type the internal path: Quote:
$relative_path = "/homepages/8/d495792104/htdocs/home/wp-content/uploads/var/thumbs/" . $this->relative_path(); and same error: Thumbs are lost. and in widget link: http://galeria.paseapase.com/photowidget/recent_xml Quote:
This XML file does not appear to have any style information associated with it. The document tree is shown below. the thumbs must be in "paseapase.com/wp-content/uploads/var/thumbs/" |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Must be something about the sub-domain. It might be something that was not accounted for. I bet it might work if your gallery was not installed in a sub-domain. Post back if you can sort it out for others to benefit. Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
ok |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
i just translate a copy of installation to a new folder: Quote:
http://paseapase.com/galeria and again rss has a duplicate domain.... :-S any suggestion? |
|
floridave
![]()
Joined: 2003-12-22
Posts: 27300 |
![]() |
Do other aspects work? If so then I suggested editing the RSS module. Dave |
|
otografias
Joined: 2011-10-20
Posts: 41 |
![]() |
glubs... i read codes.... but not very sure what are looking for! but... ... I´ts very funny!! i have two gallerys and only One Var directory :-S um... I can think of several uses for this. |
|