• [MOD] PMv2 Tutorial Republished here 5 0 5 1
Currently:  

Author Topic: [MOD] PMv2 Tutorial Republished here  (Read 774138 times)

0 Members and 2 Guests are viewing this topic.

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #525 on: December 23, 2007, 03:48:24 PM »
Thank you I installed smilies MOD but not works.
But I thought I have to comment out the smilie MOD.
However, PM works without smilies, but the messages are bad:

Notice: Use of undefined constant BBCODE - assumed 'BBCODE' in /homepages/26/d83193504/htdocs/birdgallery/includes/page_header.php on line 204
204 --> "bbcode2" => (BBCODE == "bbcode") ? 0 : 1,

Notice: Undefined index: wrote in /homepages/26/d83193504/htdocs/birdgallery/includes/functions.php on line 1886

Notice: Undefined index: quote in /homepages/26/d83193504/htdocs/birdgallery/includes/functions.php on line 1887

1886 -->"<div class=\"quotehead\"><b>\\1</b> ".$lang['wrote'].":<div class=\"quoteblock\">\\2",
1887 -->"<div class=\"quotehead\"><b>".$lang['quote'].":</b><div class=\"quoteblock\">\\1",


and the emailaddress in Controlcenter is wrong --> I have only changed functions.php and page-header.php

I give up and restore old files. ;-( But I'll wait some hours with restoring. Perhaps it easy to fix the errors?

« Last Edit: December 23, 2007, 04:15:13 PM by skiemor »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #526 on: December 23, 2007, 05:37:27 PM »
For fix - please start read this page:

http://www.4homepages.de/forum/index.php?topic=6692.495

I fix before.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #527 on: December 23, 2007, 05:47:33 PM »
Thank you thunderstrike, but I'm confused and down.  :oops:
I think I make a paid job for checking my sites.
Are you interested in helping me? Please contact me if you like. ;-)

Chris.




Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #528 on: December 23, 2007, 05:49:43 PM »
Quote
I think I make a paid job for checking my sites.

If is for checking - send PM and we deal but read last line in my signature for integrate. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #529 on: December 27, 2007, 01:48:26 AM »
1) did you defined in includes/contants.php SCRIPT_URL constant?
2) in global.php check that this block of code present and is identical:
Code: [Select]
if (defined("SCRIPT_URL") && SCRIPT_URL != "") {
  $script_url = SCRIPT_URL;
}
else {
  $port = (!preg_match("/^(80|443)$/", getenv("SERVER_PORT"), $port_match)) ? ":".getenv("SERVER_PORT") : "";
  $script_url  = ($port_match[1] == 443) ? "https://" : "http://";
  $script_url .= (!empty($HTTP_SERVER_VARS['HTTP_HOST'])) ? $HTTP_SERVER_VARS['HTTP_HOST'] : getenv("SERVER_NAME");
  $script_url .= $port;
  $script_url .= (dirname($PHP_SELF) != "/") ? dirname($PHP_SELF) : "";
}

Hello V@no, I don't get this.  :oops:
How to define SCRIPT_URL in constants.php.
How has it to look exact for "dummies" ;-), with example: http://www.yourdomain.com ?
Can you please post code for constants.php and for global.php?

My files start with:

if (!defined('ROOT_PATH')) {
  die("Security violation");
}


I want to use {site_url} in pm_notify.html


Best Chris.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #530 on: December 27, 2007, 01:57:16 AM »
Quote
I want to use {site_url} in pm_notify.html

If want for use {site_url}, use {self} for self file or {self_full} for full path. Use in pm_notify.html is no problem (page_header.php and page_footer.php file is must include in PHP source file for this). ;)
« Last Edit: December 27, 2007, 02:11:42 AM by thunderstrike »
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #531 on: December 27, 2007, 02:02:17 AM »
My page_header.php and page_footer.php start with:

if (!defined('ROOT_PATH')) {
  die("Security violation");
}

I don't know, what is to do...

Can you explain for a fool like me? ;-)

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #532 on: December 27, 2007, 02:06:52 AM »
You ... no need for edit page_header.php file ... but sorry - I correct post before. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #533 on: December 27, 2007, 02:27:08 AM »
no, it shows "{self}" or "{self_url}". "{site_url}" is not shown.
I have to declare/define my url anywhere, right?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #534 on: December 27, 2007, 02:27:56 AM »
I refix topic before. {self_url} is error - is {self_full} for full path. {self} is for self file. ;)

Quote
I have to declare/define my url anywhere, right?

No. Jan is do in 4images heart before in includes/page_header.php file. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #535 on: December 27, 2007, 02:44:32 AM »
Klicke hier, um die Nachricht zu lesen:
http://www....
---------------------------------------------------------------
Wenn du über den Eingang neuer Privater Nachrichten nicht benachrichtigt
werden möchtest, ändere bitte die Eintellungen in deinem Profil.
 
Liebe Grüße, Chris' birdgallery.
{self_full}  :lol:
 

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #536 on: December 27, 2007, 02:47:38 AM »
If want for use with no SESSION ID in URL,

in includes/page_header.php file,

find:

Code: [Select]
"self_full" => $site_sess->url($script_url."/".$self_url),

add after:

Code: [Select]
"full_url" => format_url($script_url . "/" . $self_url),

Use: {full_url} in HTML (again - is for no SESSION ID include only if need). ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #537 on: December 27, 2007, 03:00:20 AM »
Puuuh, now is right. Thank you again!!

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #538 on: December 27, 2007, 03:01:12 AM »
Thank for posting.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

skiemor

  • Guest
Re: [MOD] PMv2 Tutorial Republished here
« Reply #539 on: December 27, 2007, 11:14:18 AM »
Hi @ all,

if unregistered users klick on "New images" or "All images"  they get the message:

Notice: Undefined variable: pm_inbox in /homepages/26/d83193504/htdocs/birdgallery/includes/page_header.php on line 205

Notice: Undefined variable: pm_outbox in /homepages/26/d83193504/htdocs/birdgallery/includes/page_header.php on line 206

Notice: Undefined variable: pm_sentbox in /homepages/26/d83193504/htdocs/birdgallery/includes/page_header.php on line 207

Notice: Undefined variable: pm_new_count in /homepages/26/d83193504/htdocs/birdgallery/includes/page_header.php on line 208

If registered users klick on  "New images" or "All images" is all right.

What' that?  8O

Can I comment this lines out without any restrictions/crashes? When I do that it no messages. ;-)
Is there a better/right solution?

Best Chris.
« Last Edit: December 27, 2007, 11:26:18 AM by skiemor »