Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs... - Page 21 Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs... - Page 21
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...

Started by Stramm, February 24, 2006, 01:34:35 PM

Previous topic - Next topic

0 Members and 4 Guests are viewing this topic.

Stramm

Quote from: Vargha on June 23, 2006, 04:00:43 AM
when i go to my theme.php
to add somelines so users cant edit their comments
the function 'Send PM' will disappear, i dont know what to do

cause the modpack already uses a modified version of $template_image_comments, if you modify an original version of it then you overwrite the modpack changes. Don't copy it from themes/sample/theme.php but from include/themes.inc.php and without the leading if (!isset($template_image_comments)) { and the ending }

or from the oranje or tentacle theme

Stramm

Quote from: Justttt on June 23, 2006, 09:11:14 AM

hi stramm,
when i do what you say it says error at the top of the page :S

can you help please

you haven't defined the uid... means you haven't told your script what users avatar you want to display

Vargha

Haalaa Boro Ye Chayi Vasam Dorost Kon Ta Man Ye Fekri Be Halet Bokonam ;) Ye Hendooneye Shotoriham Biyar Bizahmat :)
Visit My Site www.Rangarang.co.nr
Check Out My Gallery
www.Rangarang.co.nr/buddies
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg157.imageshack.us%2Fimg157%2F838%2Frangarang4xn.jpg&hash=48b4c3087515cafe09fc6d3f7ee19dce86328d8e)

ymca

O...
i see, but if i disabled the original backup?
Quote from: Stramm on June 23, 2006, 09:10:20 AM
the original still has that size (that file that got uploaded and exists as backup on the server). The watermarked image gets processed by either GD2 or ImageMagick and therefore gets recompressed. Check the orig file and you'll see

Stramm

Quote from: ymca on June 23, 2006, 09:21:34 AM
O...
i see, but if i disabled the original backup?
there's no option for that. Of course you could write that feature

ymca

your talking to me like i'm a programmer (i wish)
in the Admin utilities i can delete original pics but not as they upload, so will it still stay the size of the original or change to the other?
Quote from: Stramm on June 23, 2006, 09:23:00 AM
there's no option for that. Of course you could write that feature

Justttt

it dose not show no avatar :S

<?
define('IN_COPPERMINE', true);
include('include/init.inc.php');
pageheader('User Panel');

starttable("100%", "Avatar",2);

$user_data = $cpg_udb->get_user_infos(1);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";

endtable();



pagefooter();

?>


and user 1 (me) has an avatar uploaded any ideas what i am doing wrong ?.
J U S T T T T

Stramm

Quote from: ymca on June 23, 2006, 09:44:06 AM
your talking to me like i'm a programmer (i wish)
in the Admin utilities i can delete original pics but not as they upload, so will it still stay the size of the original or change to the other?

please post a link to your gallery and give me some more details.
- do you auto resize uploaded images
- exists a normal and fullsized image

Stramm

Quote from: Justttt on June 23, 2006, 09:45:58 AM
it dose not show no avatar :S

and user 1 (me) has an avatar uploaded any ideas what i am doing wrong ?.

of course you would need to tell your script to also output what you just calculated and not only hold it in a variable
echo $avatar_url;

ymca

just to click the cpg_notify link & press empty & thats it or to press at the left of cpg_notify?
Quote from: Stramm on June 23, 2006, 09:08:39 AM
it's difficult cause the pics already have been deleted and you don't know the ids of them. So best would be to empty the notify table (only empty that table and don't delete it). All notifications would be gone afterwards and your users would have to subscribe again

Of course you could write a lil proggy that checks if a notifiocation pid is existing in the pictures table and if not deletes that entry


Stramm

Quote from: ymca on June 23, 2006, 09:59:10 AM
just to click the cpg_notify link & press empty & thats it or to press at the left of cpg_notify?
click cpg_notify and then 'Empty' in the top menu (the one you've marked red)
Note that all subscribtions for all users will be gone

Justttt

sorry for being a pain stramm but i did what u sed and still no look  ???
J U S T T T T

Stramm

Quote from: Justttt on June 23, 2006, 10:06:36 AM
sorry for being a pain stramm but i did what u sed and still no look  ???

hehehe.... Ok, Ok
<?
define('IN_COPPERMINE', true);
include('include/init.inc.php');
pageheader('User Panel');

starttable("100%", "Avatar",2);
$uid = isset($_GET['uid']) ? (int)$_GET['uid'] : -1;
$user_data = $cpg_udb->get_user_infos($uid);
$avatar_url = $user_data['avatar_url'];
if ($avatar_url !="") $avatar_url = "<img src='".AVATAR_PATH.$avatar_url."' class=\"image\">";
echo $avatar_url;
endtable();

pagefooter();
?>

I assume you save this as test.php in your CPG main dir.
Call it with domain.com/CPG_path/test.php?uid=xxx
where xxx is the uid of the user who's avatar you want to display

Justttt

ohhh lol sorry i forgot to call the script (?uid=1) yeah works thanks and you where saying about to vew your own avatar what would you do for that
J U S T T T T

Stramm

Quote from: Justttt on June 23, 2006, 10:41:17 AM
ohhh lol sorry i forgot to call the script (?uid=1) yeah works thanks and you where saying about to vew your own avatar what would you do for that

I've added that for you in my last post (the ?uid=1 functionality), you just forgot to echo

the logged in users avatar you display simply with
echo AVATAR_PATH.AVATAR_URL;

Justttt

J U S T T T T

Justttt

on your oranje theme i would like to change the style.ccs on the index page where it has who is online and last comments last additions etc. what ccs what i change .
J U S T T T T

Stramm


Justttt

i cant see that in the css stramm  ::) what i want to do is make the font bold , on header text such as, who is online etc..
J U S T T T T

Stramm