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

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

0 Members and 1 Guest are viewing this topic.

Offline universal

  • Full Member
  • ***
  • Posts: 213
    • View Profile
    • http://www.funny.lt
Re: [MOD] PMv2 Tutorial Republished here
« Reply #45 on: April 22, 2005, 09:40:33 AM »
1. Can`t post mesage if user name contains *, possible to fix it? If so, how?

2. In image details> comments, when guest posts a comment, his field contains PM image, and link to pm is with -1 id, how to hide it only in guests posts?

Too many questions from me I think... uch  :roll:
Again this addres?!
http://www.funny.lt

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #46 on: April 22, 2005, 02:39:59 PM »
1. Can`t post mesage if user name contains *, possible to fix it? If so, how?

I'll look into it.


2. In image details> comments, when guest posts a comment, his field contains PM image, and link to pm is with -1 id, how to hide it only in guests posts?

Fixed, please redo Step 12.2
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #47 on: April 22, 2005, 04:43:24 PM »
@V@no
{lang_pm}, {comment_user_pm} and {lang_show_user_images} does not work in detials.html, what can I do?

Please!

Gruß
michi-w.

Please!

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #48 on: April 23, 2005, 12:59:20 AM »
{comment_user_pm} have nothing to do with details.html,  {lang_show_user_images} has nothing to do with this mod
as of {lang_pm} - what are you trying to do?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] PMv2 Tutorial Republished here
« Reply #49 on: April 23, 2005, 01:04:28 AM »
Hi V@no! how do you put a welcome private mesaje when a new user register?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #50 on: April 23, 2005, 01:08:15 AM »
that is planned for a new version. (no comments on release date ;))
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline ascanio

  • Hero Member
  • *****
  • Posts: 569
    • View Profile
    • http://www.surfourspace.net
Re: [MOD] PMv2 Tutorial Republished here
« Reply #51 on: April 23, 2005, 01:12:06 AM »
hehehehe ok, :)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #52 on: April 23, 2005, 02:13:08 AM »
Quote
what are you trying to do?
details.html

Now


I would like this

(Is not finished, is an example)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #53 on: April 23, 2005, 02:27:39 AM »
I see now.
in includes/functions.php find:
Code: [Select]
    "user_name" => $user_name,Insert below:
Code: [Select]
    "pm_url" => ($config['pm'] && $user_info['user_level'] > GUEST && $image_row['user_id'] != GUEST && $user_info['user_id'] != $image_row['user_id']) ? $site_sess->url(ROOT_PATH."pm.php?action=new&user_id=".$image_row['user_id']) : "", then in details.html use:
Code: [Select]
{if pm_url}
<a href="{pm_url}"><img src="{template_url}/images/pm.gif"></a>
{endif pm_url}
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #54 on: April 23, 2005, 03:11:52 AM »
Thats great, thank you, but was is with {lang_show_user_images}?

I know, nothing has with that mod ... but only a little thing ... please!

And bbcode2.js from your zip download, in the templates copy?
For the moment was the file in root and templates.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #55 on: April 23, 2005, 04:34:05 AM »
belove the line u inserted in functions.php insert this:
Code: [Select]
      "url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_row['user_name'])),
      "lang_show_user_images" => preg_replace("/".$site_template->start."user_name".$site_template->end."/siU", $user_name, $lang['show_user_images']),
bbcode2.js must be in the root directory (I missed that file in the installation guide. Updated now)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #56 on: April 23, 2005, 12:38:34 PM »
I have the linie insert the function.php,
after
Code: [Select]
$site_template->register_vars(array(
    "image_id" => $image_row['image_id']
but, I dosen`t work.

Here ist my function.php, without the linie:
http://www.web-upload.de/datei/functions.txt

Which is wrong?

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #57 on: April 23, 2005, 04:15:48 PM »
A friend was helping, this is the solution:
Link "Display all images added by xxx" in details.html.
Link "Alle Bilder von xxx anzeigen" in details.html.

includes/functions.php

find
Code: [Select]
$site_template->register_vars(array(
    "image_id" => $image_row['image_id'],
After
Code: [Select]
"lang_show_user_images" => "<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_name))."\">".preg_replace("/".$site_template->start."user_name".$site_template->end."/siU", $user_name, $lang['show_user_images'])."</a>",
templates/default/details.html
insert
Code: [Select]
{lang_show_user_images}
Done


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [MOD] PMv2 Tutorial Republished here
« Reply #58 on: April 23, 2005, 05:49:26 PM »
doh!
instead of using {url_show_user_images} tag, u'd better change the code, eh?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline michi-w.

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
Re: [MOD] PMv2 Tutorial Republished here
« Reply #59 on: April 23, 2005, 08:52:40 PM »
Quote
includes/functions.php

find
Code: [Select]
$site_template->register_vars(array(
    "image_id" => $image_row['image_id'],
After
Code: [Select]
"url_show_user_images" => $site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_row['user_name'])),templates/default/details.html
insert
Code: [Select]
{url_show_user_images}

Result:

Quote
includes/functions.php

find
Code: [Select]
$site_template->register_vars(array(
    "image_id" => $image_row['image_id'],
After
Code: [Select]
"lang_show_user_images" => "<a href=\"".$site_sess->url(ROOT_PATH."search.php?search_user=".urlencode($user_name))."\">".preg_replace("/".$site_template->start."user_name".$site_template->end."/siU", $user_name, $lang['show_user_images'])."</a>",
templates/default/details.html
insert
Code: [Select]
{lang_show_user_images}
Result: