Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification - Page 4 Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification - Page 4
 

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

Mod Pack: Watermark, better thumbs, avatar, buddy, PM, notification

Started by Stramm, November 29, 2005, 05:05:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stramm

Quote from: MavricK on December 09, 2005, 08:13:34 AM
Hey Stramm, I'm using the Igames theme, I'm not sure which functions to edit to be able to use the PM system mod, i can't figure it out, what to put where.... a link to my gallery is www.thebeerrun.com/gallery         

that should work out of the box. Except maybe you use a modified theme...
if you can't get it  to work zip the theme folder and attach it to your next post

pslawinski... I'll have a look


MavricK

Quote from: Stramm on December 10, 2005, 11:25:48 AM
that should work out of the box. Except maybe you use a modified theme...
if you can't get it  to work zip the theme folder and attach it to your next post

pslawinski... I'll have a look



Thanks Stramm, i attached my igames theme folder, i customized it a bit with my header and some adsense boxes, other then that, i cant find anywhere to send a message in a persons profile. I saw it in the classic view, but not in my igames theme, which is the set theme.

MavricK

also my avatars no longer work, it just shows  {AVATAR}        next to the name... everything worked fine in my last version before i upgraded to 1.4 , could that be a sql problem? even tho it seems to be the same sql code for the avatars as the 1.3.x version mod.      ???

MavricK

Quote from: MavricK on December 10, 2005, 10:30:20 PM
Thanks Stramm, i attached my igames theme folder, i customized it a bit with my header and some adsense boxes, other then that, i cant find anywhere to send a message in a persons profile. I saw it in the classic view, but not in my igames theme, which is the set theme.

lol... i found the problem, turns out the images just weren't in the images folder for the PM send, and PM reply... not sure if its in everyones, or i messed something up. Anyways, i still can't get the {avatar} to display properly, in the comments, it shows up fine in the "friends" page.

MavricK

lol also in my PM system, now that i got it working... when it emails you a message... it gives a porn link? is that built in.... ?

Hello FrankyJ, You have received a new private message at The Beer Run Dot Com from devo. Please click here to log in and read it: http://www.myporntal.com/vote/pms.php If you don't want to receive these notification emails anymore just update your profile and unmark the 'Notify me on new private messages' checkbox. {ADMIN}     

the "myporntal.com"  part lolol is that a spam attack on me? or is that a built in message for the PM system... just curious hahah

Stramm

sorry, I'll fix that with the next version. This mods were custom work that got the permission to get published here on the mods board. I've tried to remove all hard links and all hardoced language stuff. Still it's possible that some stuff remained.

Anyways, if that 'porn link' (it's a 404 cause the site doesn't exist anymore) gives you a spam attack???? (how would it do that?? Does this link have your email addy??) then check your computer for spyware. I've set this site up myself and it's clean (was clean) of any disgusting stuff you can think off.

To get rid of that hardcoded link change in pms_send.php
            '{LINK}' => "http://www.myporntal.com/vote/pms.php"
to your own pms.php

as said... I'll make it an auto thingie with the next mod update


Cause of the avatar problem... It should work with the original theme.php that ships with 1.4.2. If you've changed that file you'll have to modify the functions you've added (I've listed them somewhere in this thread)

MavricK

no i didn't get spam attacked or anything, I was just wondering if something took over the link, or it was hardcoded. I fixed it now tho thank you. The new PM system is great. Now i'm going to work on fixing the Avatars thank you Stramm.

MavricK

Changes in the theme file...
function assemble_template_buttons, function theme_main_menu -- > here I've added the above mentioned My friends link. So if your theme soesn't use this standard functionm you'll have to chaneg your themes function

$template_thumbnail_view, function theme_display_thumbnails  -- > some lil changes to be able to move some thumb descripton from below the thumb to it's right side

$template_image_comments, function theme_html_comments  -- > to make the commenters name clickable and if PM is enabled display a PM button next to teh commenter name and to display the avatar

$template_add_your_comment, function theme_html_comments -- > subscribe / unsubscribe links

function theme_html_picinfo  -- > changes to display a clickable link to download the movie (if the displayed media is a movie) in picinfo

function theme_html_img_nav_menu -- > prepared so that it'S possible to display the owners name, id, pic title above a picture (just the tags need to be added to $template_img_navbar and it's rocking)

new function -- > function loginForm  -- > to display the loginform and the PM, buddy quick stats
-------------------------------------------------------------------------------------------------------------------------------------------------

I don't have a problem with any of those functions, those are the only modifications i can find to theme.php, which function would be for the avatar? everything else works.  The avatar works fine in some spots, just not in the comment spot. but profile, and my buddies page they all show up. Only things i've modifed on themes.php was "@" to Options, and commented out Home ont he links.  ???

Stramm

$template_image_comments
check that variable

and have a look at the one in themes.inc.php to see how to add the avatar
basically {AVATAR} {MSG_BODY} would spit out the avatar (if set) and the comment

MavricK

Quote from: Stramm on December 15, 2005, 07:09:56 PM
$template_image_comments
check that variable

and have a look at the one in themes.inc.php to see how to add the avatar
basically {AVATAR} {MSG_BODY} would spit out the avatar (if set) and the comment

okay, i checked out those, in my themes.php file, $template_image_comments doesn't exist, only in themes.inc.php      also, in the themes.inc.php  {AVATAR} {MSG_BODY}    is set, but in the gallery, you only see "{AVATAR}"  next to the persons name, the text.

Stramm


MavricK

Quote from: Stramm on December 15, 2005, 07:40:38 PM
in the classic theme too?

yeah in the classic theme, $template_image_comments doesn't exist either. its version 1.4.2  says in the theme.php file even.

Stramm

Quote from: MavricK on December 15, 2005, 07:44:04 PM
yeah in the classic theme, $template_image_comments doesn't exist either. its version 1.4.2  says in the theme.php file even.

yup,cause it's in themes.inc.php. If you want a different design for a certain theme you put that in the themes file and rewrite it
I wanted to know if the classic theme doesn't show the avatar too and instead displays {AVATAR}

ganeshcp

I think there should be a note regarding the extra copyright line "Modded by Stramm" that is added to coppermine while installing this mod. I know the original author has taken great effort and time to make this mod but is that line without a link truly necessary? Then we should have such credits for all mods we install.

MavricK

Quote from: Stramm on December 16, 2005, 08:41:56 AM
yup,cause it's in themes.inc.php. If you want a different design for a certain theme you put that in the themes file and rewrite it
I wanted to know if the classic theme doesn't show the avatar too and instead displays {AVATAR}

The classic theme doesn't show the avatar either, just displays {AVATAR} , how can i fix this to work on my igames theme! :(

MavricK

Quote from: ganeshcp on December 17, 2005, 05:32:02 PM
I think there should be a note regarding the extra copyright line "Modded by Stramm" that is added to coppermine while installing this mod. I know the original author has taken great effort and time to make this mod but is that line without a link truly necessary? Then we should have such credits for all mods we install.

Since its free, open soruce software, a line that gives credit to the author isn't asking much at all. You could pay lots of $ for software like this. If you spent the time making mods, im sure you would want credit. I don't see any problem with his credit line at all. I'd do the same thing if i could make mods. Other mods have the same thing actually, i've seen a couple. Not a big deal, or related to this help topic really? 

Stramm

try toi reupload the themes.inc.php from the modpack to your include directory. If it doesn't show the avatar then this should fix it.

MavricK

Quote from: Stramm on December 18, 2005, 12:21:57 PM
try toi reupload the themes.inc.php from the modpack to your include directory. If it doesn't show the avatar then this should fix it.

ok, i re installed the mod pack, the latest one even to make sure again.... tried to re input the SQL for the avatar SQL and its already set, and i updated the  database with the admin tool.  Checked the comments and it still shows "{avatar}" instead of the image, also i think the PM sign next to the authors name is broken too,  only on the comments page though, ever works on everything else... so the only time their is problems is when you view an image and it displays the comments section.  Should i reinstall a file that contains the comments section or something? I have no clue how it used to work and now it doesn't just doesn't make sense to me! I'm trying everything, the avatar and pm system is my favorite part of the mod!   ???  :'(

Stramm

please zip the file your_cpg_dir/include/themes.inc.php and attach it to your next post

MavricK

Quote from: Stramm on December 19, 2005, 09:10:30 AM
please zip the file your_cpg_dir/include/themes.inc.php and attach it to your next post


okay, i attached it, if you need anything else let me know. thanks a lot for lookin at the file. I don't know what could be wrong with it, if its the same one everyone else has, all i changed was the order of links so the Upload file link is first, and commented out Home because i have a flash header that has a home link.