Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Acidgod

Pages: [1]
1
Plugins / [PLUGIN] Massmailer/Batch Mailer
« on: January 03, 2008, 10:30:42 PM »
Save it as email.php, massmailer.php or what ever and put it into your /admin/plugins/ folder...

Code: [Select]
<?php // PLUGIN_TITLE: Massmailer
/**************************************************************************
*                                                                        *
*    4images - A Web Based Image Gallery Management System               *
*    ----------------------------------------------------------------    *
*                                                                        *
*             File: email.php                                            *
*        Copyright: (C) 2002 Jan Sorgalla                                *
*            Email: jan@4homepages.de                                    *
*              Web: http://www.4homepages.de                             *
*    Scriptversion: 1.7.1                                                *
*                                                                        *
*    Never released without support from: Nicky (http://www.nicky.net)   *
*                                                                        *
**************************************************************************
*                                                                        *
*    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
*    bedingungen (Lizenz.txt) fr weitere Informationen.                 *
*    ---------------------------------------------------------------     *
*    This script is NOT freeware! Please read the Copyright Notice       *
*    (Licence.txt) for further information.                              *
*                                                                        *
*************************************************************************/

$nozip 1;
define('IN_CP'1);

$PHP_SELF = (isset($PHP_SELF)) ? $PHP_SELF $_SERVER['PHP_SELF'];
$root_path = (eregi("\/plugins\/"$PHP_SELF)) ? "./../../" "./../";
define('ROOT_PATH'$root_path);
require(
ROOT_PATH.'admin/admin_global.php');

// TEXT
define('MASSMAIL_TITEL'"Emails an User versenden");
define('MASSMAIL_MAXMAILS'"Anzahl der Mails die verschickt werden sollen");
define('MASSMAIL_BREAK'"Pause (sec.)");
define('MASSMAIL_AUTOREDIRECT'"Automatische Weiterleitung");
define('MASSMAIL_USERLEVEL'"Userlevel");
define('MASSMAIL_SUBJECT'"Betreff");
define('MASSMAIL_MESSAGE'"Nachricht");
define('MASSMAIL_BUTTON_SEND'"E-Mails an User versenden");
define('MASSMAIL_SUBJECT2'"Betreff (%=wildcard)");
define('MASSMAIL_MESSAGE2'"Nachricht (%=wildcard)");
define('MASSMAIL_LIMITFROM'"Starte bei:");
define('MASSMAIL_SENDTO'"<b>Mail an folgende User: </b>");
define('MASSMAIL_DONE'"<b>Alle Mails dieser Usergruppe wurden erfolgreich versendet... </b>");

// CONFIG
$config_break 3;
$config_maxemails 2;
$config_default_subject "Betreff...";
$config_default_message "Nachricht...";

if (
$action == "") {
    
$action "emailusers";
}

show_admin_header();

if (
$action == "sendemails") {
    
$error = array();
    
$maxemails stripslashes(trim($_REQUEST['maxemails']));
    
$break stripslashes(trim($_REQUEST['break']));
    
$autoredirect stripslashes(trim($_REQUEST['autoredirect']));
    
$user_level $_REQUEST['user_level'];
    
$subject stripslashes(trim($_REQUEST['subject']));
    
$message stripslashes(trim($_REQUEST['message']));

    if (
$maxemails == "") {
        
$error['maxemails'] = 1;
    }
    if (
$break == "") {
        
$error['break'] = 1;
    }
    if (
$user_level <= || $user_level == "") {
        
$error['user_level'] = 1;
    }
    if (
$subject == "") {
        
$error['subject'] = 1;
    }
    if (
$message == "") {
        
$error['message'] = 1;
    }
    if (empty(
$error)) {

        
// SQL Limit
        
if (isset($_REQUEST['limitfrom'])) {
            
$limitfrom $_REQUEST['limitfrom'];
            
$limitfrom $limitfrom $maxemails;
        }else{
            
$limitfrom 0;
        }
        if (isset(
$_REQUEST['i'])) {
            
$i $_REQUEST['i'];
        }else {
            
$i 0;
        }
        
define("PM_LIMIT""DESC LIMIT ".$limitfrom." , ".$maxemails);
        
// SQL Limit Ende

        //Where definieren
        
define('WHERE_ID'"WHERE user_level = '".$user_level."'");

        
// Mailaddi aus der Datenbank holen
        
global $site_db;
        
$sql "SELECT user_email, user_name
FROM "
.USERS_TABLE."
"
.WHERE_ID." AND ".get_user_table_field("""user_allowemails")." = 1
ORDER BY user_id
"
.PM_LIMIT;
        
$result $site_db->query($sql);
        
$num_of_rows mysql_num_rows($result);
        
//SQL Debug
        //echo $sql."<br>";

        //Empfnger
        
$emails = array();
        echo 
MASSMAIL_SENDTO."<br>";
        while(
$row $site_db->fetch_array($result)){
            
// Username (E-Mail) ausgeben
            
echo " ".$i++." - ".$row["user_name"]." (".$row["user_email"].")<br>";
            
array_push($emails$row["user_email"]);
        }
        
//Empfnger Ende

        //E-Mail
        
include(ROOT_PATH.'includes/email.php');
        
$site_email = new Email();
        
$site_email->set_to($config['site_email']);
        
$site_email->set_subject($subject);
        
$site_email->register_vars(array(
        
"message" => $message,
        
"site_email" => $config['site_email'],
        
"site_name" => $config['site_name']
        ));
        
$site_email->set_body("admin_email"$config['language_dir']);
        
$site_email->set_bcc($emails);
        echo (
$site_email->send_email()) ? $lang['send_emails_success'] : $lang['send_emails_error'];
        unset(
$site_email);
        
//E-Mail Ende

        //Alle Mails versendet
        
if ($num_of_rows $maxemails) {
            
$autoredirectfalse;
            echo 
"<br><br>".MASSMAIL_DONE."<br><br>";
        }

        
//Formular ausgeben
        
show_form_header("email.php""sendemails");
        
show_table_header(MASSMAIL_TITEL2);
        
show_input_row(MASSMAIL_LIMITFROM"limitfrom"$limitfrom3);
        
show_input_row(MASSMAIL_MAXMAILS"maxemails"$maxemails5);
        
show_input_row(MASSMAIL_BREAK"break"$break5);
        
show_radio_row(MASSMAIL_AUTOREDIRECT"autoredirect"1);
        
show_userlevel_select_row(MASSMAIL_USERLEVEL"user_level"$user_level);
        
show_input_row(MASSMAIL_SUBJECT"subject"$subject45);
        
show_textarea_row(MASSMAIL_MESSAGE"message"$message6020);
        
show_form_footer(MASSMAIL_BUTTON_SEND""2);


        if (
$autoredirect) {
            
$page $site_sess->url($_SERVER['PHP_SELF']."?action=sendemails&limitfrom=".$limitfrom."&maxemails=".$maxemails."&break=".$break."&user_level=".$user_level."&i=".$i."&autoredirect=".$autoredirect."&subject=".$subject."&message=".$message);
?>

<script language="javascript">
myvar = "";
timeout = <?php echo $break ?>;
function dorefresh() {
    window.status="Redirecting"+myvar;
    myvar = myvar + " .";
    timerID = setTimeout("dorefresh();", 1000);
    if (timeout > 0) {
        timeout -= 1;
    }
    else {
        clearTimeout(timerID);
        //document.formular.submit()
        window.status="";
        window.location="<?php echo $page?>";
    }
}
dorefresh();
</script>
<?php

        
}
    }else {
        
$msg sprintf("<span class=\"marktext\">%s</span>"$lang['lostfield_error']);
        
$action "emailusers";

    }

}

if (
$action == "emailusers") {
    if (
$msg != "") {
        
printf("<b>%s</b>\n"$msg);
    }
    
show_form_header("email.php""sendemails");
    
show_table_header(MASSMAIL_TITEL2);
    
show_input_row(MASSMAIL_MAXMAILS"maxemails"$config_maxemails5);
    
show_input_row(MASSMAIL_BREAK"break"$config_break5);
    
show_radio_row(MASSMAIL_AUTOREDIRECT"autoredirect"1);
    
show_userlevel_select_row(MASSMAIL_USERLEVEL"user_level"$user_row['user_level']);
    
show_input_row(MASSMAIL_SUBJECT"subject"$config_default_subject45);
    
show_textarea_row(MASSMAIL_MESSAGE"message"$config_default_message6020);
    
show_form_footer(MASSMAIL_BUTTON_SEND""2);
}

show_admin_footer();
?>

Please try it and give me Feedback...
I have not enough Users in on my Test System... (o:

2
Mods & Plugins (Releases & Support) / [MOD] Custom Search Template
« on: December 01, 2005, 04:39:17 PM »
Just a littel and simple MOD but it works and can be useful... (o:

Open the search.php

serach for:
Quote
$main_template = 'search';

replace with:
Quote
$mode = $HTTP_GET_VARS['mode'];
 if ($mode==""){
 $main_template = 'search';
 } else {
 $main_template = 'search_'.$mode;
 }

search for:
Quote
$content = $site_template->parse_template("search_form");

replace with:
Quote
if ($mode==""){
 $content = $site_template->parse_template("search_form");
} else {
 $content = $site_template->parse_template("search_form_".$mode);
}

make a Copy of the seach_form.html and name it for Example seach_form_colorsearch.html
And also make a Copy of the search.html and name it search_colorsearch.html

Open the seach_form_colorsearch.html

search for:
Quote
<form method="post" action="{url_search}">

replace with:
Quote
<form method="post" action="{url_search}?mode=colorsearch">

Now when you are call the Search like this /search.php?mode=colorsearch the new search_colorsearch.html & search_form_colorsearch.html Template will be used... (o:

Now, for Example, you kann make a Dropdown like this one:
Quote
<select name="search_keywords" id="search_keywords">
                <option value="red">red</option>
                <option value="blue">blue</option>
                <option value="black">black</option>
</select>

Open the search_form_colorsearch.html  and replace the search inputfield:
Quote
<input type="text" name="search_keywords" size="40" value="{search_keywords}" class="input" />
with the Dropdown.

Now call the /search.php?mode=colorsearch and there is a Search where the User can only search for the three Colors in the Dropdown... (o:

Another Example:
you will make a other search, that they can only search for the Words Animal, Building, Nature and Ocean...

make a Copy of the seach_form.html and name it for Example seach_form_group.html
And also make a Copy of the search.html and name it search_group.html

Open the seach_form_group.html

search for:
Quote
<form method="post" action="{url_search}">

replace with:
Quote
<form method="post" action="{url_search}?mode=group">

Now when you are call the Search like this /search.php?mode=group the new search_group.html & search_form_group.html Template will be used... (o:

Now, for Example, you kann make a Dropdown like this one:
Quote
<select name="search_keywords" id="search_keywords">
                <option value="animal">animal</option>
                <option value="building">building</option>
                <option value="nature ">nature </option>
                <option value="ocean">ocean</option>
</select>

Open the search_form_group.html  and replace the search inputfield:
Quote
<input type="text" name="search_keywords" size="40" value="{search_keywords}" class="input" />
with the Dropdown.

Now call the /search.php?mode=group and there is a Search where the User can only search for the Keywords in the Dropdown... (o:

3
Mods & Plugins (Releases & Support) / [MOD] User online as Dropdown or List
« on: November 27, 2005, 03:35:11 AM »
Version 1:
Simple HTML Dropdown/Multiselect List.

code for the header.html
Code: [Select]
<script type="text/JavaScript">
<!--
function jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<style type="text/css">
<!--
.whosonline{ font-size: 9px; width:100%; border:1px black solid; color:#000000; margin:1px; }
-->
</style>

code for the session.php
search:
Code: [Select]
while ($row = $site_db->fetch_array($result)) {
replace with:
Code: [Select]
$user_online_list .= "<form name=\"whosonline\"><select name=\"whosonline\" size=\"3\" onchange=\"jumpMenu('parent',this,0)\" class=\"whosonline\">";
while ($row = $site_db->fetch_array($result)) {
if you remove the size it will show as a Dropdown!


search:
Code: [Select]
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['session_user_id'];
$user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;

replace with:
Code: [Select]
$user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&;".URL_USER_ID."=".$row['session_user_id'];
$user_online_list .= "<option value=\"".$site_sess->url($user_profile_link)."\">".$username."".$invisibleuser."</option>";


search:
Code: [Select]
$num_total_online = $num_registered_online + $num_guests_online;
replace with:
Code: [Select]
$user_online_list .= "</select></form>";
$num_total_online = $num_registered_online + $num_guests_online;



Version 2:
Advance List with Smilies or another Images in front of the Username.

code for the header.html
Code: [Select]
<script type="text/JavaScript">
<!--
function init_listbox_checkbox(el)
{
el.runtimeStyle.behavior="none";
if(window.navigator.userAgent.indexOf("MSIE 7")>=0){rerutn;};/*IE7 should be compatible with CSS2.0*/

if(el.id=="")
{
el.id = "listbox_label" + el.sourceIndex +Math.ceil (Math.random() * 10000 )
}

el.parentNode.htmlFor = el.id;

el.onpropertychange = function()
{
var span = this.parentNode.all.tags("span")[0];
span.className = this.checked?"checked":"";

}
el.parentNode.onmouseover = function(){this.className="hover";window.event.returnValue=false;window.event.cancelBubble=true;return false;}
el.parentNode.onmouseout = function(){this.className="";window.event.returnValue=false;window.event.cancelBubble=true;return false;}
}

function goToURL() { //v3.0
  var i, args=goToURL.arguments; document.returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
<style type="text/css">
<!--
/*Breite festlegen*/
form.whosonline{background:buttonface;width:100%;border:solid 0px #aaaaaa;}

/*Hhe festlegen*/
div.listbox {height:50px;margin:0px;}

/*Zeilenhhe und Rahmen festlegen*/
div.listbox span{height:20px;padding:3px 3px 3px 3px;white-space:nowrap;display:block;cursor:hand;cursor:pointer;}

/* IE Hintergund&Schrift */
div.listbox label.hover{background-color:#EAEAEA;color:white;}

/* Nestcape Hintergund&Schrift */
div.listbox[id] label:hover{background-color:#EAEAEA;color:white;}

/*generic rules*/
div.listbox{background:white; font-size:12px; padding:0; list-style:none; overflow:auto; border:solid 1px #666666; scrollbar-face-color:#cccccc; scrollbar-highlight-color: #eeeeee; scrollbar-shadow-color: buttonface; scrollbar-3dlight-color: #aaaaaa; scrollbar-arrow-color: #ffffff; scrollbar-track-color: #eeeeee; scrollbar-darkshadow-color: #aaaaaa; }
div.listbox label input{float:left;}
div.listbox label{display:block;clear:both;}

/*For CSS3 ompatible browsers (ie:FireFox) */
div.listbox label input:not([Hedger]){display:none;_display:block;_float:left;_width:0;behavior:expression(void(init_listbox_checkbox(this)));}
div.listbox span:not([Hedger]){padding-left:22px;background:url({template_image_url}/user_online.png) left center no-repeat;border:solid 1px white;border-bottom-color:#f0f0f0;border-left:solid 0px #dedede;}

/*for IE*/
* html div.listbox label input{display:block;float:left;width:0;behavior:expression(void(init_listbox_checkbox(this)));}
* html div.listbox span{padding-left:22px;background:url({template_image_url}/user_online.png) left center no-repeat;border:solid 1px white;border-bottom-color:#f0f0f0;border-left:solid 0px #dedede;}

-->
</style>
You must change the Path to the images in the CSS Part to your own! (two times!) Also you can change the Layout in the CSS Part

search:
Code: [Select]
$result = $site_db->query($sql);
replace with:
Code: [Select]
$result = $site_db->query($sql);
$user_online_list .= "<form class=\"whosonline\"><div class=\"listbox\" id=\"foo\">";
$i="";


search:
Code: [Select]
if (!$is_invisible || $user_info['user_level'] == ADMIN) {
  $user_online_list .= ($user_online_list != "") ? ", " : "";
  $user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&amp;".URL_USER_ID."=".$row['session_user_id'];
  $user_online_list .= "<a href=\"".$site_sess->url($user_profile_link)."\">".$username."</a>".$invisibleuser;
}

replace with:
Code: [Select]
if (!$is_invisible || $user_info['user_level'] == ADMIN) {
  $i++;
  $user_profile_link = (!empty($url_show_profile)) ? preg_replace("/{user_id}/", $row['session_user_id'], $url_show_profile) : ROOT_PATH."member.php?action=showprofile&".URL_USER_ID."=".$row['session_user_id'];
  $user_online_list .= "<label><input type=\"radio\"  name=\"ck[]\" value=\"".$i."\" onClick=\"goToURL('parent','".$site_sess->url($user_profile_link)."');return document.MM_returnValue\" /><span>".$username."</span> </label>";
}

search:
Code: [Select]
$num_total_online = $num_registered_online + $num_guests_online;
replace with:
Code: [Select]
$user_online_list .= "</select></form>";
$num_total_online = $num_registered_online + $num_guests_online;

I give no CSS/JavaScript Support for this Mod!
And i have tested it only with 1.7.1....

Dont ask for a Demo try it out, i will go to sleep yet... (o:

And remember you must only install one and not both Versions!

Enjoy...

4
This is a littel Tutorial to use the PMv2 Mod (http://www.4homepages.de/forum/index.php?topic=6692.0) to inform Image owner over new Comments.

1. Open details.php and find
Code: [Select]
      $site_db->query($sql);
     $commentid = $site_db->get_insert_id();
     update_comment_count($id, $user_info['user_id']);

2. Add below
Code: [Select]
$sql = "SELECT 'user_id', 'image_thumb_file', 'cat_id' FROM ".IMAGES_TABLE." WHERE image_id = $id";
$user_id = $site_db->query($sql);
$user_id = $image_row['user_id'];
if ($image_row['user_id'] != $user_info['user_id']) {
$image_url = $script_url."/details.php?".URL_IMAGE_ID."=".$id."";
$image_name_url = "[url=".$image_url."]".$image_name."[/url]";

if (!empty($image_row['image_thumb_file'])) {
$cat_id = $image_row['cat_id'];
$image_thumb_file = $image_row['image_thumb_file'];
$thumb = $site_sess->url(ROOT_PATH."data/thumbnails/".$cat_id."/".$image_thumb_file);
$thumb = "[url=".$image_url."][img]".$thumb."[/img][/url]";
} else {
$thumb = "";
}

$pm_from = 0; //Hier bitte die user_id vom Absender angeben
$pm_type = 5;
$pm_bbcode = 1;
$pm_smiles = 1;
$pm_sig = "-- \n Mit freundlichen Gren, \n euer Picsforfree.de Team";

$pm_message = "Das folgende Bild hat ein Kommentar von ".$user_name." erhalten: \n\n [B]Bild:[/B] ".$image_name_url."\n".$thumb." \n\n [B]berschrift:[/B] ".$comment_headline." \n [B]Kommentar:[/B] ".$comment_text."\n\n".$pm_sig;
$pm_subject = "\"".$image_name."\" hat ein Kommentar von ".$user_name." erhalten";

$sql = "INSERT INTO ".PM_TABLE."
(pm_date, pm_to, pm_from, pm_subject, pm_type, pm_text, pm_bbcode, pm_html, pm_ip, pm_smiles)
VALUES
('".time()."', $user_id, $pm_from, '".$pm_subject."', $pm_type, '".$pm_message."', $pm_bbcode, 0, '".$session_info['session_ip']."', $pm_smiles)";
$result = $site_db->query($sql);
}

Thats all... (o:

5
Discussion & Troubleshooting / Is this a Bug in the download.php?
« on: October 11, 2005, 01:26:42 PM »
I have a Problem with the remote_url and then i try to find out whats going wrong.
I make a few debug logs and found out that the following if give me always $remote_url=0 back.
Then i put the red line in the Code and now it works fine.


Quote
if (!empty($image_row['image_download_url'])) {
    if (is_remote_file($image_row['image_download_url']) || is_local_file($image_row['image_download_url'])) {
      ereg("(.+)\.(.+)", basename($image_row['image_download_url']), $regs);
      $file_name = $regs[1];
      $file_extension = $regs[2];

      $file['file_name'] = $file_name.(($size) ? "_".$size : "").".".$file_extension;
      $file['file_path'] = dirname($image_row['image_download_url'])."/".$file['file_name'];
      $remote_url = 1;
    }
    else {
      $file['file_path'] = $image_row['image_download_url'];
      $remote_url = 1;
    }
  }

Is this a Bug?  :?

6
Chit Chat / Problem with downloading MP3 Files
« on: October 10, 2005, 10:09:57 PM »
Some of my MP3 Files will not downloading correct and the Browser is opening the File and shows the Code:


Code: [Select]
vTIT2%Kriek_Live_at_Tresor-04-17-LINE-2005TPE1Tresor Berlin Closing PartyTALBKriek Live @ Tresor-LINETRCK1TYER2005TCONTechnoCOMM engTeam XDSTENC Lame v3.93TLANGerman@Info) 25 !$&),.0358;=@CEHJLORTWZ\_acfiknqsvyz}9LAME3.96r4$M 25m)@ ^&NRR&$ S3 y% FG&s골̌&NL6?a?b^2wCtQJ@,@ݧ@ P }ib @0?rzf_MɓMa v 'b޳{b><;lM=ɧ&z6lQ4WfPh2H d%q[idRB"Tt5^MӥC6l/JMZ弰! ))'l; EX:qZp|ZZ Q)" (䷘,cI* Ohh(CÍ]XJH!((!~=d;*.PwYUЊq}|%h*.]ꑌ"$).PiSBY C$ ܈R E闧?gB A Īv5U4 k;CXii]Yzb LjLON<HNws1Po(u( d"F0؄]@B !*i2x`@ Իg&Krm^R5 O`;p4KU mZN8e=dB'Re<JPi+.eEJř̚f,Z@oQHL62 Qva20U|V݋EW& {!PڝLI׆7% bj5ge9dX"L`9jϒ&^F'Tu%1Fާ1k&V2ų şvErR$F0ϓIFb ޛxXYC.|Cm) (H@j/DfSZi+ ʊJ)s.HoNTfF3e?7"3mgەy:cC = l>+/ݱgdHYc 7;홑292{O_b3d^2eBjzfsQp@I(K"=HpD^pe`> 8=%h2. bsEqRDBgۼ^mf؄aW/z %L%z5QWD$VLC%Dc:@Tf-+zmT$9L7#K(@bFe %̤= P: KSXp$X.h0ko*  Yon#:/+,SѭZPr(1UIZ!KڄThQV>$mxBVC#ujYjԋ1B`%W8Adw&wlݷXB5 "Z[HgItRNVwL(%:JL^-Ih(#MRQvjzш:z[rR֌[ jNfova(gUhT$V[:K1 l8hs\"n\ `V0\^)r竞pCdɛƙN{ȯ=sU[sĿCXR{$ha#)xر ]6""i#FJTO0P\LmZ)B@/٦< Zx3BÑaqq9H!A29 4sc%SR "|WQM}}Ϥ ~" t&qFyVx8mm߷;OLĘ;5E<vC]eps  Q![@ԗg,2,=&|R,I`E(%ygi\18/!M1V+ to=˷ji&ʚǙ=+-Qriѕ.^O-c }y FLxBb3_SbW.\ =J R^4RE`$13LSr4,~sUSGZRѯ((20~B40s!؅R'4vy= G tXv0A9$<GI,LcrFC^l.U&XIfcKmx*Y"bfY1~wĊTwyT;-[@oT q|, qQ!oWKJ3\е8r>>瑵TC/]h=[}|x$ozty?Yw =XDpqf^_'9,Iww?>w3=V`stJw mB؅]? x#HEG`hꭗDer}ҔkƄ0Za{eqêFSRR_8Y$.9J1I{W9G +Rsb eOU ‡3X0kuEÙڱ1(L!$'#$I @eDi  `̤= Va*4 Ź>VvJILPڦrRۄlUZ P}QB}d}F(xu<#V2ILz&JbI4El89W1[uJiU_i4e< }BIlƥqjEحگ[9td!}w. #XG~eM- ʄ&8{p-@>+_S iSܸ{/-[7<\{ pgݨx׃J]73[lqW,[ݪ5qf)3Tכӏy{KgO}nۼ׵K3ɉ.8Y']%Bz-$O$ ADM-Cfy-m*\K'Pg&42hvnDg[-xiՑ7}b#3HTCLWjHPqޤe@Cei%1|` ԬbÓL3r Qi# - ቖ F+°*-zQ 㔕N]L@zВGU D&V[<Fs^Z_2?z8DFmхz]YC C׷|=زt5@TVdl[Vʶ6WT}ϕ\852aM#Et$um? S8:Y zzrMB2Aʼn2a\0M|r&0[f  _:,Щ%} {ݘ@[ Wc]x'cTЈ*A8dY9>tb
Any Idea what is going on there?

7
I just want to make a littel MP3 Database, local I use Sampel MP3 Files with a low quality and this works fine...
The high quality Files (>80 MB) are hosted on a another Server and I use the Download URL in the ACP for linking the remote Files, but the download doesn't work... )o:

Is this even possibel to realize it?

8
If you want to use this Mod, you must install the PM V2 Mod bevor:
http://www.4homepages.de/forum/index.php?topic=6692.0

detail.php
search
Code: [Select]
$site_template->register_vars(array(
"lang_bbcode" => $lang['bbcode'],
"lang_tag_prompt" => $lang['tag_prompt'],
"lang_link_text_prompt" => $lang['link_text_prompt'],
"lang_link_url_prompt" => $lang['link_url_prompt'],
"lang_link_email_prompt" => $lang['link_email_prompt'],
"lang_list_type_prompt" => $lang['list_type_prompt'],
"lang_list_item_prompt" => $lang['list_item_prompt']
));
replace with
Code: [Select]
$site_template->register_vars(array(
"lang_bbcode" => $lang['bbcode'],
"lang_tag_prompt" => $lang['tag_prompt'],
"lang_link_text_prompt" => $lang['link_text_prompt'],
"lang_link_url_prompt" => $lang['link_url_prompt'],
"lang_link_email_prompt" => $lang['link_email_prompt'],
"lang_list_type_prompt" => $lang['list_type_prompt'],
"lang_list_item_prompt" => $lang['list_item_prompt'],
//BBCODE 2
"lang_close_tags" => $lang['close_tags'],
"lang_all" => $lang['all'],
"smiles_text" => get_smiles_text(),
"bbc_help" => $bbc_help
////BBCODE"
));

bbcode.html
replace
Code: [Select]
<br />
<script language="JavaScript" type="text/javascript" src="bbcode.js"></script>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="head1">
<table border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="head1">{lang_bbcode}</td>
</tr>
<tr>
<td class="row1">
<table border="0" cellspacing="0" cellpadding="1" width="300">
<tr>
<td>
{smiles_text}&nbsp;<a href="smiles.php" onclick="window.open('smiles.php', '_4imagessmilies', 'resizable=yes,scrollbars=yes,WIDTH=225, HEIGHT=310');return false;" target="_4imagessmilies">{lang_all}</a>
</td>
</tr>
            </table>
<table border="0" cellspacing="0" cellpadding="1" width="305">
<tr>
<td>
<input type="button" class="bbcbutton" accesskey="b" name="addbbcode0" value="B" style="font-weight:bold; width: 30px" onClick="bbstyle(0)"/>
</td>
<td>
<input type="button" class="bbcbutton" accesskey="i" name="addbbcode2" value="i" style="font-style:italic; width: 30px" onClick="bbstyle(2)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="u" name="addbbcode4" value="u" style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode6" value="S" style="text-decoration: line-through; width: 30px" onClick="bbstyle(6)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode8" value="Sub" style="width: 40px" onClick="bbstyle(8)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode10" value="Sup" style="width: 40px" onClick="bbstyle(10)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode12" value="Shadow" style="width: 55px" onClick="bbstyle(12)" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="1" width="300">
<tr>
<td>
<input type="button" class="bbcbutton" accesskey="w" name="addbbcode27" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(27)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="e" name="addbbcode29" value="Email" style="width: 50px" onClick="bbstyle(29)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="q" name="addbbcode21" value="Quote" style="width: 50px" onClick="bbstyle(21)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode14" value="Glow" style="width: 40px" onClick="bbstyle(14)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="" name="addbbcode31" value="Flash" style="width: 50px" onClick="bbstyle(31)" />
</td>
<td>
<input type="button" class="bbcbutton" accesskey="p" name="addbbcode25" value="Img" style="width: 40px"  onClick="bbstyle(25)" />
</td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<td nowrap>
<select class="select" name="addbbcode34" onChange="bbfontstyle('[color=' + this.form.addbbcode34.options[this.form.addbbcode34.selectedIndex].value + ']','[/color]');this.form.addbbcode34.selectedIndex=0;">
<option style="color:black; background-color: #FAFAFA" value="black" >Font colour</option>
<option style="color:black; background-color: #FAFAFA" value="#444444" >Default</option>
<option style="color:darkred; background-color: #FAFAFA" value="darkred" >Dark Red</option>
<option style="color:red; background-color: #FAFAFA" value="red" >Red</option>
<option style="color:orange; background-color: #FAFAFA" value="orange" >Orange</option>
<option style="color:brown; background-color: #FAFAFA" value="brown" >Brown</option>
<option style="color:yellow; background-color: #FAFAFA" value="yellow" >Yellow</option>
<option style="color:green; background-color: #FAFAFA" value="green" >Green</option>
<option style="color:olive; background-color: #FAFAFA" value="olive" >Olive</option>
<option style="color:cyan; background-color: #FAFAFA" value="cyan" >Cyan</option>
<option style="color:blue; background-color: #FAFAFA" value="blue" >Blue</option>
<option style="color:darkblue; background-color: #FAFAFA" value="darkblue" >Dark Blue</option>
<option style="color:indigo; background-color: #FAFAFA" value="indigo" >Indigo</option>
<option style="color:violet; background-color: #FAFAFA" value="violet" >Violet</option>
<option style="color:white; background-color: #FAFAFA" value="white" >White</option>
<option style="color:black; background-color: #FAFAFA" value="black" >Black</option>
</select>
<select class="select" name="addbbcode35" onChange="bbfontstyle('[size=' + this.form.addbbcode35.options[this.form.addbbcode35.selectedIndex].value + ']','[/size]');this.form.addbbcode35.selectedIndex=0;">
<option value="" >Font size</option>
<option value="7" >Tiny (7px)</option>
<option value="9" >Small (9px)</option>
<option value="10" >Medium (10px)</option>
<option value="12" >Normal (12px)</option>
<option value="16" >X-Large (16px)</option>
<option value="18" >Large (18px)</option>
<option  value="24" >Huge (24px)</option>
</select>
<select class="select" name="addbbcode36" onChange="bbfontstyle('[font=' + this.form.addbbcode36.options[this.form.addbbcode36.selectedIndex].value + ']','[/font]');this.form.addbbcode36.selectedIndex=0;">
<option value="" >Font face</option>
<option value="Arial" >Arial</option>
<option value="Courier New" >Courier New</option>
<option value="Helvetica" >Helvetica</option>
<option value="Impact" >Impact</option>
<option value="sans-serif" >sans-serif</option>
<option value="Tahoma" >Tahoma</option>
<option value="Times New Roman" >Times New Roman</option>
<option value="Verdana" >Verdana</option>
</select>
</td>
</tr><tr>  <td>
&nbsp;<a href="javascript:bbstyle(-1)" onMouseOver="helpline('a')">{lang_close_tags}</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>

Then download the bbcode.js (bbcode.zip below) and copy it in your root directory.

Enjoy... (o:

Pages: [1]