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

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

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 23 Guests are viewing this topic.

angeldevil

Quote from: Stramm on June 28, 2006, 04:25:19 PM
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.
a

Stramm

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

Quote from: Stramm on June 28, 2006, 06:30:15 PM
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

a

Stramm

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

a

Justttt

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

Justttt

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

Stramm

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

Quote from: Stramm on June 28, 2006, 08:03:01 PM
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
a

Justttt

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

will

Quote from: will on May 09, 2006, 10:08:02 PM
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

Stramm

Quote from: Justttt on June 29, 2006, 12:38:48 PM
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

Quote from: will on June 29, 2006, 04:28:57 PM
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
if (!function_exists('loginForm')) { and one ending }

that's what you need
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

Quote from: angeldevil on June 29, 2006, 12:32:07 PM
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

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

Justttt

Quote from: Stramm on June 29, 2006, 04:53:33 PM
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  ::)
J U S T T T T

Stramm

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

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

justbishop

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?

Stramm

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