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.


Messages - BartAfterDark

Pages: [1] 2 3 4 5 ... 32
1
Discussion & Troubleshooting / Re: Remove Terms of Registration?
« on: July 21, 2009, 04:37:42 PM »
I don't quite know if the last reply was a question or what.

But you need to edit register_form.html in your template file with the code i posted earlier

2
Discussion & Troubleshooting / Re: Remove Terms of Registration?
« on: July 15, 2009, 12:01:51 PM »
It can be done with some JS code :)
Works that way, that the submit button is disabled until the user has checked the terms box.

     
Code: [Select]
<input type="checkbox" name="terms" onclick="this.form.submit.disabled = !this.checked" value="Y">
      I agree to the WEBSITE <strong>Terms of Service</strong> and <strong>Privacy Policy</strong></label>
    <br />
    <label>

3
Anyone has a download link for this mod? :)

4
Discussion & Troubleshooting / Re: Remove Terms of Registration?
« on: June 23, 2009, 10:33:25 AM »
Nope hehe :) Couldn't post a reply to my thread.

But maybe this could get added to the FAQ or something, if anyone else wants to remove the "Terms of Registration" ?

5
Mods & Plugins (Requests & Discussions) / Re: Newsletter - Formular
« on: June 22, 2009, 10:50:33 PM »
Tom, we do like to help people (most of us do)

But sign up for a user on www.mailchimp.com. They do have a simple form that you can customize to your needs and have in your own language. When that is done you simply copy/paste the code to the .html file in your template directory where you want the form to apear

6
Mods & Plugins (Requests & Discussions) / Re: Newsletter - Formular
« on: June 22, 2009, 10:37:34 PM »
I haven't been able to find any easy to use and easy to setup newsletter script. But there is mailchimp. It's free for the first 600 emails you send out :(
But then again, it's the most easy to use and prices are from 10 dollars or 0.03 $ for every mail.
I don't know if you are doing any earnings with your site or?

7
Discussion & Troubleshooting / Remove Terms of Registration?
« on: June 22, 2009, 06:20:57 PM »
How can I remove the terms, so users are forwarded to the register form instead of the Agree to terms ?

Open: Register.php

Find:
Code: [Select]
if ($action == "") {
  $action = "signup";
}
Replace with:
Code: [Select]
if ($action == "") {
  $action = "register";
}

8
Mods & Plugins (Requests & Discussions) / Re: Newsletter - Formular
« on: June 22, 2009, 06:18:50 PM »
Do you already have a newsletter script ?

If yes, then you can use php inside the template files :)

9
Yea, depends on the scale of the project (theme and what mods that needs to be installed)

Could you please post a link to the site, or tell us what the site is about and what mods you need to have installed?

10
Mods & Plugins (Requests & Discussions) / Re: Auto-fill image name
« on: June 07, 2009, 09:24:47 PM »
V@no once posted some code for this, been looking for it also :)

11
Has this been integrated into the latest versions of 4images, or do we still need to add this mod?

12
Mods & Plugins (Releases & Support) / Re: [MOD] Flash Tag Cloud ?
« on: June 04, 2009, 12:28:44 PM »
Not that I know of.

Do you need anything special?

13
Mods & Plugins (Releases & Support) / Re: Flash Tag Cloud?
« on: June 04, 2009, 12:10:50 PM »
This mod was originally posted by KW.
The text/code is from the Arabic topic, but couldn't find the files needed for this mod there.

Backup everything before editing any files.

Also remember to add the .js and .swf to your template directory from the attached zip file.


Open lang/[your_language_folder]/main.php
Find:
Code: [Select]
?>Add Before:
Code: [Select]
//-----------------------------------------------------
//- Mod: Flash-Tag-Clouds by KW -------------------
//-----------------------------------------------------
$lang['flash_keyword_clouds'] = "Tag Cloud";

Open includes/page_header.php
Find:
Code: [Select]
"url_search" => $site_sess->url(ROOT_PATH."search.php"),Add After:
Code: [Select]
//--- Start Mod: Flash-Tag-Clouds by KW ---------------
  "flash_keyword_clouds" => get_flash_keyword_clouds(),
//--- End Mod: Flash-Tag-Clouds by KW -----------------

Open includes/functions.php
Find:
Code: [Select]
?>Add Before:
Code: [Select]
/*---------------------- Start MOD Flash-Tag-Clouds by KW --------------------*/
function get_flash_keyword_clouds() {
global $site_db, $lang, $site_sess, $mode;

/*-----------------------------------------------------------------------------*/
/*--- Start Setting / Einstellungen -------------------------------------------*/
$flash_tag_clouds_width  = "100%";       // Width from the Flash                / Breite der Flashanzeige
$flash_tag_clouds_height = "100";        // height from the Flash               / Höhe der Flashanzeige
$flash_tag_clouds_textcolor = "004C75";  // color from the flashtext            / Farbe des Flashtextes (e.g. 000000 or ffffff ...)
$flash_tag_clouds_textspeed = "200";     // speed from the flying text          / Geschwindigkeite de fliegenden Textes  (e.g. 150 or 200 ...)
$flash_tag_clouds_textlimit = "20";      // Limit- How many searchwords         / Limit- Wie viele Suchworte
$flash_tag_clouds_size_max = "60";       // Max. textsize                       / Max. Textgröße
$flash_tag_clouds_size_min = "20";       // Min. textsize                       / Min. Textgröße
$flash_tag_clouds_transparent = "true";  // Flash transparently: true or false  / Flash transparent: true oder false
$flash_tag_clouds_flashcolor = "ffffff"; // => if false: Bgcolor                / => falls false: Hintergrundfarbe  (e.g. ffffff or 000000 ...)
/*--- End Setting / Einstellungen ---------------------------------------------*/
/*-----------------------------------------------------------------------------*/

        $flash_tag_clouds_text = "var so = new SWFObject(\"".TEMPLATE_PATH."/flash_tag_clouds.swf\", \"tagcloud\", \"".$flash_tag_clouds_width."\", \"".$flash_tag_clouds_height."\", \"7\", \"#".$flash_tag_clouds_flashcolor."\"); \n";
        if ($flash_tag_clouds_transparent == 'true') {
        $flash_tag_clouds_text .= "so.addParam(\"wmode\", \"transparent\"); \n";
        }
        $flash_tag_clouds_text .= "so.addVariable(\"tcolor\", \"0x".$flash_tag_clouds_textcolor."\");\n";
        $flash_tag_clouds_text .= "so.addVariable(\"mode\", \"tags\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"distr\", \"true\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"tspeed\", \"".$flash_tag_clouds_textspeed."\"); \n";
        $flash_tag_clouds_text .= "so.addVariable(\"tagcloud\", \"<tags>";
$sql = "SELECT i.word_id, i.word_text, COUNT(c.word_id) AS quantity
        FROM ".WORDLIST_TABLE." i
        LEFT JOIN ".WORDMATCH_TABLE." c ON i.word_id = c.word_id
        WHERE keys_match > 0
        GROUP BY i.word_text
        ORDER BY  RAND()
        LIMIT $flash_tag_clouds_textlimit";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)) {
$tags[$row['word_text']] = $row['quantity'];
}
        $max_qty = max(array_values($tags));
        $min_qty = min(array_values($tags));

        $spread = $max_qty - $min_qty;
        if ($spread == 0) {
        $spread = 1;
        }
        $step = ($flash_tag_clouds_size_max - $flash_tag_clouds_size_min) / ($spread);
        foreach ($tags as $key => $value) {
        $size = round($flash_tag_clouds_size_min + (($value - $min_qty) * $step));
        // clean keys for flashtext:
        $key2 = $key;
        $key2 = str_replace('"',' ',$key2);
        $key2 = str_replace('&',' ',$key2);
        $key2 = str_replace('%',' ',$key2);
        $key2 = str_replace('>',' ',$key2);
        $key2 = str_replace('<',' ',$key2);
        $key2 = str_replace('+',' ',$key2);
        //
        $flash_tag_clouds_text .= "<a href='".$site_sess->url(ROOT_PATH."search.php?search_keywords=".$key.((!empty($mode)) ? "&amp;mode=".$mode : ""))."' style='".$size."'>".$key2." [".$value."]</a>";
        }
return $flash_tag_clouds_text;
}
/*----------------------- End MOD Flash-Tag-Clouds by KW ---------------------*/

Open templates/[your_template_folder]/home.html

Add this where you want to show the Flash Tag Cloud:
Code: [Select]
                 <!--  Start Mod: Flash-Tag-Clouds by KW  -->
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head2" valign="top">{lang_flash_keyword_clouds}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="row1">
                      <script type="text/javascript" src="{template_url}/swfobject.js"></script>
                      <div id="flashcontent_menue" style="border: 0px solid #000000;">Install flash.</div>
                      <script type="text/javascript">
                      {flash_keyword_clouds}</tags>");
                      so.write("flashcontent_menue");
                     </script>
                     <br />
                    </td>
                   </tr>
                   </table>
                  <!--  End Mod: Flash-Tag-Clouds by KW  -->
And for details.html, search.html, etc. :
Code: [Select]
                 <!--  Start Mod: Flash-Tag-Clouds by KW  -->
                  <table width="100%" border="0" cellspacing="1" cellpadding="0" class="head1">
                    <tr>
                      <td class="head1">
                        <table width="100%" border="0" cellspacing="0" cellpadding="4">
                          <tr>
                            <td class="head1" valign="top">{lang_flash_keyword_clouds}</td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td class="row1">
                      <script type="text/javascript" src="{template_url}/swfobject.js"></script>
                      <div id="flashcontent_page" style="border: 0px solid #000000;">Install flash.</div>
                      <script type="text/javascript">
                      {flash_keyword_clouds}</tags>");
                      so.write("flashcontent_page");
                     </script>
                    </td>
                   </tr>
                   </table>
                   <br />
                  <!--  End Mod: Flash-Tag-Clouds by KW  -->


14
Mods & Plugins (Releases & Support) / Re: Flash Tag Cloud?
« on: June 04, 2009, 11:51:42 AM »
Ohh okay.

I got it to work anyway :)

Would it be okay to post the mod so other people could benefit from it?

15
Mods & Plugins (Releases & Support) / [MOD] Flash Tag Cloud ?
« on: June 04, 2009, 11:34:17 AM »
Anyone knows where it has gone, as I can't seem to find the topic :/

Only some Arabic, but seems like it is missing some files or something

Pages: [1] 2 3 4 5 ... 32
Post your comments here