Advanced search  

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

Pages: 1 ... 17 18 19 20 [21] 22 23 24 25 ... 30   Go Down

Author Topic: Modpack with bridge support: PM, avatar, watermark, cropped/ sharpened thumbs...  (Read 1354571 times)

0 Members and 2 Guests are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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
Code: [Select]
if (!isset($template_image_comments)) { and the ending
Code: [Select]
}
or from the oranje or tentacle theme

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt


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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 223
  • Persian Soldier
    • Rangarang

oh yeah thnx problem solved  ;)
Logged
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
(http://img157.imageshack.us/img157/838/rangarang4xn.jpg)

ymca

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 79

O...
i see, but if i disabled the original backup?
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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

O...
i see, but if i disabled the original backup?
there's no option for that. Of course you could write that feature

ymca

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 79

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?
there's no option for that. Of course you could write that feature
Logged

Justttt

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk

it dose not show no avatar :S

Code: [Select]
<?
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 ?.
Logged
J U S T T T T

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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
Code: [Select]
echo $avatar_url;

ymca

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 79

just to click the cpg_notify link & press empty & thats it or to press at the left of cpg_notify?
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

Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk

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

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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

hehehe.... Ok, Ok
Code: [Select]
<?
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

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk

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
Logged
J U S T T T T

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

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
Code: [Select]
echo AVATAR_PATH.AVATAR_URL;

Justttt

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk

thanks very much stramm . you have sorted all i need   ;D
Logged
J U S T T T T

Justttt

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk

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 .
Logged
J U S T T T T

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

tableh1

Justttt

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 170
    • Trippy-ILLusion.Co.Uk

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..
Logged
J U S T T T T

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt

yup, sorry, for oranje it's 'h2_nomargin'
Pages: 1 ... 17 18 19 20 [21] 22 23 24 25 ... 30   Go Up
 

Page created in 0.031 seconds with 20 queries.