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 ... 20 21 22 23 [24] 25 26 27 28 ... 30   Go Down

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

0 Members and 1 Guest are viewing this topic.

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107

they probably don't use the english language file

I use english usa, but only some my users have this problem. Others normally receive them complete of text and link to the pic.
Logged
a

Stramm

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

yup, as said, these users probably don't use the english lang file. You'll need to translate the emails and update all language files

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107

yup, as said, these users probably don't use the english lang file. You'll need to translate the emails and update all language files

Thanks stramm, but I used English language usa like only choice and I have disabled autodetect from admin tool. the users cannot choose other languages. is it possible that some of they still visualize the old language for a cookies problem?

I have the same problem when I receive the notify email from some of they

Logged
a

Stramm

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

I guess so. If you do not use and your users shouldn't use any other language than english (us), you can delete all the other lang files.

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107

Thanks stramm. this is a good idea.  will try to make it

Hi
Logged
a

Justttt

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

stramm everything on your modd is now working great but having problem with the watermarking, it works fine but when i upload from batch add files it dont add no watermark image is i doing somthing wrong ?.
Logged
J U S T T T T

Justttt

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

sorry about posting again its just i cant modify my post, i would like to no if you could help me out i would like to show the users usergroup undernieth the users avatar in there comments.


thanks ,justttt
Logged
J U S T T T T

Stramm

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

copy function theme_html_comments from themes.inc.php to your theme.php if it's not already there
USER_GROUP holds the usres group name. Add it where you need it. You even can define a new placeholder but you have to modify then $template_image_comments also

angeldevil

  • Translator
  • Coppermine frequent poster
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 107

I guess so. If you do not use and your users shouldn't use any other language than english (us), you can delete all the other lang files.

Hi Stramm

I have made as you have said and now works all  ;D. Some my old users conserved the cookie before your mod has been applied. Only leaving the english (us) language the problem is resolved

Sorry for my bad english...  :(

Many TNX
Logged
a

Justttt

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

hmmm i done what you sed stramm and it still dose not users user group under the avatar in posted comments :S
Logged
J U S T T T T

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263

Hi Stramm

Is there anyway of adding any additional profile info to the top left corner where the welcome, pm & buddies is ;D

Hi Stramm

Going back to my earlier post (see above) I want to add the users pic count to the LOGIN_FORM but when I take the loginForm info from themes.inc.php and place it into my theme.php I get a parse error ???

Just wanted to see if you know a way of making this work ;D

Thanks, will
Logged

Stramm

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

hmmm i done what you sed stramm and it still dose not users user group under the avatar in posted comments :S

works exactly as I told you... just verified

Stramm

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

Hi Stramm

Going back to my earlier post (see above) I want to add the users pic count to the LOGIN_FORM but when I take the loginForm info from themes.inc.php and place it into my theme.php I get a parse error ???

Just wanted to see if you know a way of making this work ;D

Thanks, will

don't copy the starting
Code: [Select]
if (!function_exists('loginForm')) { and one ending
Code: [Select]
}
that's what you need
Code: [Select]
function loginForm($logged=1) {

global $CONFIG, $lang_loginform, $REFERER;

//if (!$CONFIG['enable_loginform']) return $loginFormHtml = "";

if (!USER_ID && $CONFIG['enable_loginform']) {
  $loginFormHtml = <<<EOT
<ins>
    <form action="login.php?referer=$REFERER" method="post" name="loginbox" style="margin:0; padding:0;">
        <table cellpadding="0" cellspacing="3" border="0">
        <tr>
            <td><input type="text" class="textinput" name="username" size="10" /></td>
            <td><input type="password" class="textinput" name="password" size="10" /></td>
            <td><input name="submitted" type="submit" value="Login" />
            <input name="remember_me" type="hidden" class="checkbox" value="1" checked="checked" /></td>
        </tr>
        <tr>
        <td class="smallfont">$lang_loginform[user]</td>
        <td class="smallfont">$lang_loginform[pass]</td>
        <td></td>
</tr>
        </table>
        </form>
</ins>
EOT;
}

if (USER_ID) {

$loginFormHtml = "<div align=\"right\" class=\"smallfont\">".$lang_loginform['welcome']." <strong>".(USER_NAME)."</strong><br />";

if ($CONFIG['display_pms_status']){
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_PMS']} WHERE owner=".(USER_ID));
list($tot_all_messages) = @mysql_fetch_array($result);
mysql_free_result($result);
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_PMS']} WHERE owner=".(USER_ID)." AND showed='0'");
list($tot_new_messages) = @mysql_fetch_array($result);
mysql_free_result($result);

if ($CONFIG['pms_enabled']) {
$loginFormHtml .= "<a href='pms.php'>".$lang_loginform['pms']."</a> ".$tot_new_messages.$lang_loginform['unread_total'].$tot_all_messages."</div>";
}
}

if ($CONFIG['display_buddy_status']){
// get some buddy data
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_BUDDY']} WHERE user_id=".(USER_ID));
list($tot_all_buddies) = @mysql_fetch_array($result);
mysql_free_result($result);
$result = cpg_db_query("SELECT count(*) FROM  {$CONFIG['TABLE_BUDDY_REQ']} WHERE buddy_to=".(USER_ID));
list($tot_new_buddies) = @mysql_fetch_array($result);
mysql_free_result($result); 

if ($CONFIG['enable_buddy']){
$loginFormHtml .= "<div align=\"right\" class=\"smallfont\"><a href='buddy_manage.php'>".$lang_loginform['friends'].":</a> ".$tot_new_buddies." ".$lang_loginform['request'].", ".$lang_loginform['active']." ".$tot_all_buddies."</div>";
}
}

}
  return $loginFormHtml;
}

Stramm

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

Hi Stramm

I have made as you have said and now works all  ;D. Some my old users conserved the cookie before your mod has been applied. Only leaving the english (us) language the problem is resolved

Sorry for my bad english...  :(

Many TNX

good to hear ;)

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263

Thanks Stramm

Worked fine, where would I get the pic count info to place in the loginForm function, I've tried profile & user manager bt couldn't find it ???

Thanks, will ;D
Logged

Justttt

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

works exactly as I told you... just verified

i edited the themes.php and next to  {AVATAR} put echo USER_GORUP 
and nothing shows when i post a comment  ::)
Logged
J U S T T T T

Stramm

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

read again.. I told you to edit function theme_html_comments. Or, if you want to work with a placeholder in $template_image_comments you need to modify then you need to define that. Just adding USER_GROUP here won't work

also this is the modpack support thread and isn't ment for general theming and template help

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263

Sorry Stramm, I'll post on the relevant forum, thanks for your help again ;D
Logged

justbishop

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 20
    • a-pathetic.net/ashley

Stramm, thanks for the help, but I've updated everything several times, and am still not getting watermarks on the original sized images in the popup.  I don't know what else to do aside from deleting and reuploading all of the pictures that are already in the gallery, which I'm not going to do. 

We've actually been talking about disabling the large size image viewing altogether (clicking on the intermediate pic wouldn't do anything.)  Since we're not having a problem watermarking the intermediate pictures, and there's no need for anyone to need to see them bigger than that, that seems like it's going to be the easiest route.  Anyone know how to do that?
Logged

Stramm

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

justbishop, wasn't everything working when I tried?? At least http upload.

So where exactly do you still have problems. To watermark already uploaded images you'll have to run the admin tools. Sometimes (especially if you once upgraded from 1.3) you'll need to chmod all fiiles/ folders to what you use now

Same for batch add... chmoding is necessary for certain setups
Pages: 1 ... 20 21 22 23 [24] 25 26 27 28 ... 30   Go Up
 

Page created in 0.024 seconds with 20 queries.