attachment ext[Rezolvat]
Moderators: Moderatori ajutatori, Moderatori
- Kryme
- Membru, skill +4
- Posts: 1922
- Joined: 31 Dec 2008, 12:45
- Detinator Steam: Da
- SteamID: PM si il dau.
- Reputatie: Ban 1 luna
Ban 2 luni - Location: Zalău
- Has thanked: 132 times
- Been thanked: 69 times
Nu stiti exista ceva extensie phpbb 3.1.x care sa te faca sa poti descarca un atasament de ex. doar daca ai 50 de mesaje pe respectivul forum.
Last edited by Kryme on 12 Sep 2016, 22:12, edited 1 time in total.
-
- Membru, skill 0
- Posts: 33
- Joined: 03 Sep 2016, 15:45
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
happy hour
- Kryme
- Membru, skill +4
- Posts: 1922
- Joined: 31 Dec 2008, 12:45
- Detinator Steam: Da
- SteamID: PM si il dau.
- Reputatie: Ban 1 luna
Ban 2 luni - Location: Zalău
- Has thanked: 132 times
- Been thanked: 69 times
Nu stiu ce te bagi in seama aiurea.WeeRox wrote:Nu stiu de ce va deschideti forumuri cand nu sunteti in stare sa copiati 30 de linii
Ai report.
-
- Membru, skill 0
- Posts: 33
- Joined: 03 Sep 2016, 15:45
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Code: Select all
<?php
// fisier: post.php
// Attachment Preview
if (sizeof($message_parser->attachment_data))
{
$template->assign_var('S_HAS_ATTACHMENTS', true);
$update_count = array();
$attachment_data = $message_parser->attachment_data;
parse_attachments($forum_id, $preview_message, $attachment_data, $update_count, true);
//utilizatorul are peste 50 posturi?
if ( $user->data['posts'] > 50 ){
foreach ($attachment_data as $i => $attachment)
{
$template->assign_block_vars('attachment', array(
'DISPLAY_ATTACHMENT' => $attachment)
);
}
} else {
trigger_error('You can not download nor view attachments until you reach 50 posts!');
}
unset($attachment_data);
}
?>
-
- Membru, skill 0
- Posts: 33
- Joined: 03 Sep 2016, 15:45
- Detinator Steam: Nu
- CS Status: Citesc forumul eXtreamCS.com...!
- Fond eXtream: 0
- Contact:
Nu ai pentru ce.
-
- Information
-
Who is online
Users browsing this forum: A k c 3 n 7, Bing [Bot], csredstars, Dot [Bot], renegade and 428 guests