Code: Select all
Parse error: syntax error, unexpected T_DOUBLE_ARROW in /home/aviador/public_html/pasionracing.com.ar/foros/viewtopic.php on line 970
Code: Select all
// Holding maximum post time for marking topic read
// We need to grab it because we do reverse ordering sometimes
$max_post_time = 0;
'SELECT' => 'u.*, z.friend, z.foe, p.*, gu.personal_album_id, gu.user_images',
'FROM' => array(
USERS_TABLE => 'u',
POSTS_TABLE => 'p',
),
'LEFT_JOIN' => array(
array(
'FROM' => array(ZEBRA_TABLE => 'z'),
'ON' => 'z.user_id = ' . $user->data['user_id'] . ' AND z.zebra_id = p.poster_id'
)
, array(
'FROM' => array(GALLERY_USERS_TABLE => 'gu'),
'ON' => 'gu.user_id = p.poster_id'
)
),
'WHERE' => $db->sql_in_set('p.post_id', $post_list) . '
AND u.user_id = p.poster_id'
));
$result = $db->sql_query($sql);
$now = getdate(time() + $user->timezone + $user->dst - date('Z'));
But that code is not present.$sql = 'UPDATE ' . GALLERY_ALBUMS_TABLE . " SET album_last_user_colour = '" . $db->sql_escape($sql_ary['user_colour']) . "'
WHERE " . $db->sql_in_set('album_last_user_id', $user_id_ary);
$db->sql_query($sql);
$sql = 'UPDATE ' . GALLERY_COMMENTS_TABLE . " SET comment_user_colour = '" . $db->sql_escape($sql_ary['user_colour']) . "'
WHERE " . $db->sql_in_set('comment_user_id', $user_id_ary);
$db->sql_query($sql);
$sql = 'UPDATE ' . GALLERY_IMAGES_TABLE . " SET image_user_colour = '" . $db->sql_escape($sql_ary['user_colour']) . "'
WHERE " . $db->sql_in_set('image_user_id', $user_id_ary);
$db->sql_query($sql);
Took a close look. code_changes.xml show individual changes in the files this mod adds, so if you have modified those files you can use code_changes.xml and not lose those modifications.asinshesq wrote:Hi, NIck. In your contrib folder for people who are upgrading from 1.0.4 to 1.0.5 you have a code_changes.xml file and an upgrade.xml file. I'm sure I can reverse engineer, but I figured I'd just ask since others probably will ahve the same question: what xml should we use to upgrade?
You should fix your cookie/Server-Settings than. To skip the message install/install_update.php find and delete:flosser wrote:Is there a way to run the update without running into the "You must be a "Founder" of this board!" message/error?
Code: Select all
if ($user->data['user_type'] != USER_FOUNDER)
{
trigger_error('FOUNDER_NEEDED', E_USER_ERROR);
}
There is a beautiful README.txt in the contrib!asinshesq wrote:Hi, NIck. In your contrib folder for people who are upgrading from 1.0.4 to 1.0.5 you have a code_changes.xml file and an upgrade.xml file. I'm sure I can reverse engineer, but I figured I'd just ask since others probably will ahve the same question: what xml should we use to upgrade?
Contains full code changes for all files with the root/
You can use this manual to update your gallery-files, when you modified them.
If you do this, you also need to do the stuff from the update.xml,
but do not need to overwrite already existing files.
You read the comment on the edit?panhead wrote:I am upgrading form 1.0.4 to 1.0.5. According to the instructions I must change includes/functions_user.php:
There's an .htaccess file inside the directory to block any direct access. You need to get some random ids from the database and than call the image.php?image_id={YOURNUMBER}dreamfox001 wrote:So my question is: what is done to the pictures so that they are no longer usable by other php's? What can I change so that I can use this same one folder to get "random" pictures out of that for another site?
(i know about the "forum gallery random pictuire, which is great, but still wants it also in some other website)
Sorry, it's a bit more complicated than that. I have three different boards I am installing this on. On two of them I noticed that in phpbb_gallery_config the 'version checkversion' entry is 1.0.4 and the phpbb_gallery version is 1.0.5 while in the third both are 1.0.5. But meanwhile it reports 1.0.4 and out of date in all three versions. What am I missing?asinshesq wrote:Nick, I ran manual coding changes and update using automod, browsed install, selected to update, and successfully finished all the steps for teh db updates. I also cleared general cache and cache for theme/template/imageset.
But when I go the gallery tab in the acp, I am told I am still on version 1.0.4 and am out of date. I couldn't find the db entry where it specifies current version (I looked in config table but couldn't find it there). What am I doing wrong?
Thanks.
the version in the database is cached for 24h so it should be updated latest this night at 23:40 UTC+1asinshesq wrote:Sorry, it's a bit more complicated than that. I have three different boards I am installing this on. On two of them I noticed that in phpbb_gallery_config the 'version checkversion' entry is 1.0.4 and the phpbb_gallery version is 1.0.5 while in the third both are 1.0.5. But meanwhile it reports 1.0.4 and out of date in all three versions. What am I missing?
Ok, but why isn't it the same in all three boards? And why when I manually increment version_check_version doesn't the message that my gallery mod is out of date go away?nickvergessen wrote:the version in the database is cached for 24h so it should be updated latest this night at 23:40 UTC+1asinshesq wrote:Sorry, it's a bit more complicated than that. I have three different boards I am installing this on. On two of them I noticed that in phpbb_gallery_config the 'version checkversion' entry is 1.0.4 and the phpbb_gallery version is 1.0.5 while in the third both are 1.0.5. But meanwhile it reports 1.0.4 and out of date in all three versions. What am I missing?
The other one in the ACP is catched from the server and not from the cache.
Code: Select all
<find><![CDATA['UNINSTALL_FINISHED_EXPLAIN' => '<p>You uninstalled the phpBB Gallery successfully.<br/><br/><strong>Now you only need to undo the steps of the install.xml and delete the files of the gallery. Afterwards your board is completly free from the gallery.</strong></p>',]]></find>
Yes (of coursepanhead wrote:I am upgrading form 1.0.4 to 1.0.5. According to the instructions I must change includes/functions_user.php:
You read the comment on the edit?
. But how can I delete it if it's not there?you need to delete the code.
It is telling you to FIND the quoted code in includes/functions_user.php (it is there) and then replace it with nothing (i.e. delete it).panhead wrote:it says. But how can I delete it if it's not there?you need to delete the code.