Settings to show image location Settings to show image location
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Settings to show image location

Started by Visitor, August 12, 2011, 02:10:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Visitor

I can see a lot of time has been spent on image theft, and its very good...

I tryed and gave up the phpBB3 bridge, and perhaps it isnt wahat I wanted anyway..

So here is the problem..

Nobody can register in the album, I set up accounts when people want them. I only set up accounts for a special group of people in my phpBB, and these can have personal albums.

Thats all working fine, they can click edit on there photos, and it shows the url and photo, which they can copy and paste in the phpBB... working 100%

However I set up an account in the album called "Forum" where all other members of my forum can login, and upload photos to an album I set up.. All working 100%

Except, since the group in the album has been set not to alow personal albums, they cannot click the edit on there photos, and therfore cannot get the url and photo location to paste in there posts in phpBB

I have the image overlay switched on, this stops the right click, so would like to keep it that way..

Is there any .php file I can edit, so to include the url under the photo, hidden from guests but available to all registerd members..

Thanks

Αndré

Copy the whole function theme_html_picture from themes/sample/theme.php to your theme's theme.php file if it doesn't exist. Then, find
'{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
and replace with
'{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'].(USER_ID ? $CONFIG['ecards_more_pic_target'].$picture_url : ''),

Visitor

Thank you, that works very well, complex when im testing out, but working well...

Just one thing, is it possable to add the [img] [/img] wrapped around it, would make my help files so much easier.. Ive tried the header and footer in the code, the footer puts the [/img] at the start of the line, and the header puts the [img] above the photo ?

Αndré

You need to edit
(USER_ID ? $CONFIG['ecards_more_pic_target'].$picture_url : '')
as this part is responsible for the output. Try to change it to
(USER_ID ? '[img]'.$CONFIG['ecards_more_pic_target'].$picture_url.'[/img]' : '')
and report if it works as expected.

Joe Carver

One version of the plugin Add a Download Link for the full-size image v1.1 - v1.4 might work, it should have the user level setting available in Config.

http://forum.coppermine-gallery.net/index.php/topic,65849.msg327520.html#msg327520


Visitor

Quote from: Αndré on August 13, 2011, 11:31:15 AM
You need to edit
(USER_ID ? $CONFIG['ecards_more_pic_target'].$picture_url : '')
as this part is responsible for the output. Try to change it to
(USER_ID ? '[img]'.$CONFIG['ecards_more_pic_target'].$picture_url.'[/img]' : '')
and report if it works as expected.

Thank you, worked straght away !

Visitor

Thanks for the original mod, at the time I made an account for all normal forum mumbers to login. But for some reason I stopped seeing uploads from guests.

I have

1, registerd memebrs Special forum members also)
2, I have guest's (also normal forum members)

problem now is, when a guest uploads a photo, the image location is hidden (good) but this also now means that normal forum members are hidden.

If I turn on album registrations ( i set them up right now for special forum members) is there a way to restrict those members to the guest album, and special forum members I can edit and let them have personal albums


1, guest (any visitor) must upload to guest album
2, special forum members (have personal albums) (ive been registering these people)
3, normal forum members (no personal album) can register, upload to guest album, or a new album "forum guest"

if i alow registration, can i set (no personal album) but later change this if they become "special forum member"

::)

Αndré

How is this related to the original mod?

Quote from: Visitor on August 12, 2011, 02:10:49 PM
include the url under the photo, hidden from guests but available to all registerd members

Visitor

becuase now i have guest posts made by forum members, but they cannot see the location of the image.

Αndré

So you want to display the link for all users, registered users and guests?

Visitor

Well I dont see any other way..

I am working on setting up one account for all normal forum members can use... but it may not work out, and so I may need to make the location available to all

Visitor

Here is the problem

1, guest (no personal album)
2, normal forum members (no personal album) All members login with same username and password)
3, special forum members, these have personal albums, and have own login

This works, and 2 and 3 above can see location of photo

However now there is a problem with the account (2 above), any one of these normal forum members can login and change password or email address.

so without being able to stop this, I have to show location to all

Αndré

There's already a thread with a tutorial how to prevent
Quote from: Visitor on January 30, 2012, 11:01:05 AM
any one of these normal forum members can login and change password or email address

Αndré

It doesn't seem to be available in English, but it's just a simple "find -> replace" task. You can find it here.

Of course you need to adjust
Quote from: Αndré on January 05, 2011, 10:10:12 AM
$change_pwd = USER_ID == 2
to your user's ID.

Visitor

profile.php

<button type="submit" class="button" name="change_pass" id="change_pass" value="{$lang_register_php['change_pass']}">{$icon_array['password']}{$lang_register_php['change_pass']}</button>

This ? thats what the info say, and this will remove the change password button, however its for all me included :)

Visitor

ah missed to "your user's ID". . But problem is, i want to remove it only on one account, not all members, that one account would be used by many to login

Visitor

Ok, need to let all members change password, except the user ID 201, which would be the username i set up for all standard forum members to use

$change_pwd = USER_ID == 2 ? '' : '<button type="submit" class="button" name="change_pass" id="change_pass" value="'.$lang_register_php['change_pass'].'">'.$icon_array['password'].$lang_register_php['change_pass'].'</button>';
    echo <<< EOT
<tr>
    <td colspan="2" align="center" class="tablef">
        <button type="submit" class="button" name="change_profile" id="change_profile" value="{$lang_common['apply_changes']}">{$icon_array['ok']}{$lang_common['apply_changes']}</button>
        &nbsp;
        $change_pwd
    </td>
</tr>
EOT;


So what would I need to show the button to all except user id 201

$change_pwd = USER_ID <> 201 ? ?

Visitor

getting there, now the above shows change password only to ide 201 :)

Visitor

Is there a cache, im lost, when i first tried this without chaning id, the button didnt show, but now its showing all the time. Restored backup and started again, same problem button is still showing to me (user id -1) and its set as user 2 (as default mod)

Wanted it to go before adding my id...

why did it stop working

Visitor

Ok, I did a ECHO $uid; and it shows my ID as -1

$change_pwd = USER_ID == -1 ? '' :

Wont work

$change_pwd = USER_ID == 10000 ? '' :

wont work

Im loged in as a registerd member testing this (user id 16)

So if I use $change_pwd = USER_ID == 16 ? '' : then I cannot see password, I can see it as admin, so it looks like its working as "I" want, but need to ask another registerd member to login and see if they can see it

Strange it seams to be working opersit to what the code is suppose to do