<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[vldPersonals Forum - Extensions and Mods]]></title>
		<link>http://www.vldpersonals.com/forum/</link>
		<description><![CDATA[The most recent topics at vldPersonals Forum.]]></description>
		<lastBuildDate>Fri, 03 Feb 2012 01:34:01 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Free woman paid account]]></title>
			<link>http://www.vldpersonals.com/forum/topic/9126/free-woman-paid-account/new/posts/</link>
			<description><![CDATA[<p>Hi, for those who need it, i have made a Hack, so womans have after register a free paid account...(Not the best way, but it works)</p><p>So, in file includes/lib/lib.account_register.php</p><p>around line 255 you will see:</p><p>save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields);</p><p>change it to:</p><p>save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields, $_POST[&#039;gender1&#039;]);<br />// $_POST[&#039;gender1&#039;] is the sex type of the user... be carefull with this you may have to change to your own.</p><p>next, around line 361</p><p>//------------------------------------------------<br />// Save registration form<br />//------------------------------------------------<br />function save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields)</p><p>change to:</p><p>//------------------------------------------------<br />// Save registration form<br />//------------------------------------------------<br />function save_register($type_id, $index_type_id, $username, $password, $password_confirm, $email, $email_confirm, $photo, $tos, $captcha, $fields, $default_fields, $type_sex)<br />// $type_sex is the value passed to the function (in my case Womans value = 2 )</p><p>Next, around line 961 you will see:</p><p>$DB-&gt;query(&quot;INSERT INTO &quot; . DB_PREFIX . &quot;members (group_id, type_id, username, password, email, ipaddress, picture, picture_active, picture_date, ..........................</p><br /><p>Change to:</p><p>if($type_sex==&#039;2&#039;){ <br />&nbsp; &nbsp; $group = &#039;5&#039;; (Group_id -&gt; Paid members) (You may have to chenge to your own)<br />}else{<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $group = ($PREFS-&gt;conf[&#039;activation_type&#039;] == 1 ? $PREFS-&gt;conf[&#039;regular_member_group&#039;] : $PREFS-&gt;conf[&#039;pending_member_group&#039;]);&nbsp; &nbsp; <br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; $DB-&gt;query(&quot;INSERT INTO &quot; . DB_PREFIX . &quot;members (group_id, type_id, username, password, email, ipaddress, picture, picture_active, picture_date,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; joindate, expirationdate, active, totalfavorites, totalaguestbooks, totalimessages, newmessages, totalalbums, referral_id, totalcredits)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VALUES (&#039;&quot; . $group . &quot;&#039;, &#039;$type_id&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;$username&#039;, &#039;&quot; . md5($password) . &quot;&#039;, &#039;$email&#039;, &#039;$ipaddress&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot; . ( isset($picname) &amp;&amp; $picname ? &quot;&#039;&quot;.substr($picname, 6).&quot;&#039;&quot; : &quot;&#039;&#039;&quot; ) . &quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot; . ( isset($picname) &amp;&amp; $picname &amp;&amp; $actpic ? 1 : 0 ). &quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot; . ( isset($picname) &amp;&amp; $picname ? time() : 0 ). &quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;&quot; . $joindate . &quot;&#039;, &#039;$expiration&#039;, &#039;1&#039;, &#039;$totalfavorites&#039;, &#039;$totalaguestbooks&#039;, &#039;$totalimessages&#039;, &#039;$newmessages&#039;, &#039;$totalalbums&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;$refid&#039;, &#039;&quot;.$PREFS-&gt;conf[&#039;trial_member_credits&#039;].&quot;&#039;)&quot;);</p><br /><p>Thats it, hope this helps someone</p>]]></description>
			<author><![CDATA[dummy@example.com (zdate)]]></author>
			<pubDate>Fri, 03 Feb 2012 01:34:01 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/9126/free-woman-paid-account/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Simple chat / IM log viewer script]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10391/simple-chat-im-log-viewer-script/new/posts/</link>
			<description><![CDATA[<p>Hi folks,<br />I wanted to have a tool that displays the current log history of the private chat (instant messenger), depending on the user in chronological order.<br />So today I hacked a short and very stupid PHP script which just does ... that. It&#039;s neither perfect nor complete, only reads out the vld_chats table and displays simple HTML text. <img src="http://www.vldpersonals.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />Copy &amp; paste the following code to a file like &quot;vld_chats.php&quot;, fill in your DB data and upload it to your community server.</p><div class="codebox"><pre><code>&lt;?php

    $dbcfg = array( &quot;db&quot;=&gt;&quot;dbname&quot;,&quot;user&quot;=&gt;&quot;dbuser&quot;,&quot;password&quot;=&gt;&quot;dbpassword&quot;,&quot;host&quot;=&gt;&quot;dbhost&quot; );
    $tz = 0; /* hours, e.g. +8 */


    $dbhandle = @mysql_connect($dbcfg[&quot;host&quot;], $dbcfg[&quot;user&quot;], $dbcfg[&quot;password&quot;]);
    if ($dbhandle) {
    $exists = mysql_select_db($dbcfg[&quot;db&quot;], $dbhandle);

    echo(&quot;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;vld_chats viewer&lt;/TITLE&gt;&lt;/HEAD&gt;&lt;BODY&gt;&quot;);

    if ($_GET[&quot;username&quot;]) {
        $sql = &quot;SELECT mid1 FROM vld_chats WHERE username = &#039;&quot; .$_GET[&quot;username&quot;]. &quot;&#039; LIMIT 1&quot;;
        $result = mysql_query($sql, $dbhandle);
        $row = mysql_fetch_array($result, MYSQL_ASSOC);

        $sql = &quot;SELECT message_id, username, body, timeposted, unread FROM vld_chats WHERE mid1 = &#039;&quot; . $row[&quot;mid1&quot;] . &quot;&#039; OR mid2 = &#039;&quot; .  $row[&quot;mid1&quot;] . &quot;&#039; ORDER BY timeposted ASC&quot;;
        $result = mysql_query($sql, $dbhandle);
        $count = mysql_num_rows($result);

        if($count) {
            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                $msg = $row[&quot;body&quot;];
                if ($row[&quot;unread&quot;]) $msg = &#039;&lt;I&gt;&#039; . $msg . &#039;&lt;/I&gt;&#039;;
                echo(&quot;&lt;B&gt;&quot; . $row[&quot;username&quot;] . &quot; (&quot; . date(&#039;Y-m-d H:i:s&#039;, $row[&quot;timeposted&quot;]+$tz*3600) . &quot;, #&quot; . $row[&quot;message_id&quot;] . &quot;):&lt;/B&gt;&lt;BR&gt;&quot; . $msg . &quot;&lt;BR&gt;\n&quot;);
            }
        }
    } else {
        $sql = &quot;SELECT distinct username FROM vld_chats ORDER BY username ASC&quot;;
        $result = mysql_query($sql, $dbhandle);
        $count = mysql_num_rows($result);

        if($count) {
            while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
                echo(&quot;&lt;A HREF=\&quot;&quot; . $_SERVER[&quot;SCRIPT_NAME&quot;] . &quot;?username=&quot;.$row[&quot;username&quot;].&quot;\&quot;&gt;&quot; . $row[&quot;username&quot;] . &quot;&lt;/A&gt;&lt;BR&gt;\n&quot;);
            }
        }
    }

    echo(&quot;&lt;/BODY&gt;&quot;);
    } else {
    die (&quot;Error: Could not connect to MySQL-Server!&quot; . mysql_error());
    }

    mysql_close($dbhandle);
?&gt;</code></pre></div><p>It shows a list of all users that have sent a message, and when clicking on a username it shows all conversations (sent and received) top down including date/time and message id. An italic text means unread message. At the moment only the sender name is shown.</p><p>Feel free to copy or edit it ... whatever you like.</p>]]></description>
			<author><![CDATA[dummy@example.com (jensrenner)]]></author>
			<pubDate>Thu, 02 Feb 2012 14:49:49 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10391/simple-chat-im-log-viewer-script/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[phpBB3 language]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10376/phpbb3-language/new/posts/</link>
			<description><![CDATA[<p>Hello all.</p><p>Does anybody know if it&#039;s possible (simple) to mod phpBB3 to integrate with the language session from vldPersonals?</p>]]></description>
			<author><![CDATA[dummy@example.com (Nordica)]]></author>
			<pubDate>Sun, 29 Jan 2012 01:43:25 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10376/phpbb3-language/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[show members avatar on phpbb3]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10369/show-members-avatar-on-phpbb3/new/posts/</link>
			<description><![CDATA[<p>I search the forum and can&#039;t find any information on how to include members avatar on phpbb3 using vld 2.7</p>]]></description>
			<author><![CDATA[dummy@example.com (thejackal)]]></author>
			<pubDate>Sat, 28 Jan 2012 18:25:15 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10369/show-members-avatar-on-phpbb3/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Phpbb3 latest posts on your homepage. Customizable.]]></title>
			<link>http://www.vldpersonals.com/forum/topic/9106/phpbb3-latest-posts-on-your-homepage-customizable/new/posts/</link>
			<description><![CDATA[<p>Hello.</p><p>This modification shows phpbb3 latest post on your homepage.</p><p>It&#039;s working very fine on my site since I added it in september 2010.</p><p>(Another modification you may be interested in is here: <a href="http://www.vldpersonals.com/forum/topic/7957/perfect-integration-of-phpbb3-on-vldpersonals/">&gt;&gt;&gt; MODIFICATION TO PERFECTLY INTEGRATE A PHPBB3 FORUM INTO VLDPERSONALS &lt;&lt;&lt;</a>).</p><p>This modification allows you to set:<br />a) how many latest posts to display<br />b) how many characters of each post to display<br />c) the forums you want to exlude from showing in home page using forum IDs (useful for private/hidden/moderators sections of your forum)</p><p>NOTE: This has been created for vldpersonals 2.5.6 and for template REDLOVE. It worked on phpBB 3.0.7 PL1 and it&#039;s working on 3.0.8.<br />I don&#039;t know if it works on newest vldp versions and maybe you have to customize it to fit your own template.</p><p>IMPORTANT: I don&#039;t want to be responsible for any damage to your website and database.<br />So, REMEMBER TO BACKUP BEFORE YOU TRY.</p><p>After you try, please post your feedback to say if it works with vldpersonal versions after 2.5.6 and other templates than RedLove.<br />This will help other people to use and customize it.</p><p>1) Create a new file and name it latest_posts.php</p><p>2) Copy and paste into it the following code:</p><div class="codebox"><pre><code>&lt;?php
//    error_reporting(0);
    define(&#039;IN_PHPBB&#039;, true);

include_once (&#039;&#039;);            //Path to phpBB Config File. Due to some restrictions by PHP, you have to provide complete physical path
$urlPath = &quot;&quot;;                //phpBB URL with respect to root
$topicnumber = ;            //Total Post Count to Display
$posttext = ;                //Number of Characters to display in Post Text
$excludedforums = &quot;&quot;;        //Forum ids to exclude. Each forum id should be seprated with Comma
$completeurl = &quot;&quot;;

    $table_topics = $table_prefix. &quot;topics&quot;;    //Usually you don&#039;t have to change below 4 variables
    $table_forums = $table_prefix. &quot;forums&quot;;
    $table_posts = $table_prefix. &quot;posts&quot;;
    $table_users = $table_prefix. &quot;users&quot;;

function stripBBCode($text_to_search) {
     $pattern = &#039;|[[\/\!]*?[^\[\]]*?]|si&#039;;
     $replace = &#039;&#039;;
     return preg_replace($pattern, $replace, $text_to_search);
}



    $link = mysql_connect(&quot;$dbhost&quot;, &quot;$dbuser&quot;, &quot;$dbpasswd&quot;) or die(&quot;Could not connect&quot;);
    mysql_select_db(&quot;$dbname&quot;) or die(&quot;Could not select database&quot;);
    $sub_query = &#039;&#039;;
    if(strlen($excludedforums) &gt; 0) {
        $pieces = explode(&quot;,&quot;, $excludedforums);
        foreach ($pieces as $exforumid) {
            $sub_query .= &quot; t.forum_id != &quot; . $exforumid . &#039; AND &#039;;
            }
    }

    $query = &quot;SELECT t.topic_id, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.poster_id, p.post_time, u.user_id, u.username, f.forum_name, p.post_text, p.bbcode_uid, p.bbcode_bitfield, f.forum_desc_options
    FROM $table_topics t, $table_forums f, $table_posts p, $table_users u
    WHERE t.topic_id = p.topic_id AND
    f.forum_id = t.forum_id AND &quot;;

    if(strlen($sub_query) &gt; 0) {
        $query .=  $sub_query ;
    }

    $query .= &quot; t.topic_status &lt;&gt; 2 AND
    p.post_id = t.topic_last_post_id AND
    p.poster_id = u.user_id
    ORDER BY p.post_id DESC LIMIT $topicnumber&quot;;
    //echo $query;
    $result = mysql_query($query) or die(&quot;Query failed&quot; . mysql_error($link));

    print &quot;&lt;div class=\&quot;typecontent\&quot;&gt;&quot;;
    if($topicnumber % 2) {
        $x=&quot;even&quot;;
    } else {
        $x=&quot;odd&quot;;
    }
    $y=0;
 while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
    ++$y;
    if ($y==$topicnumber) {
        $x= $x .  &quot; dataitemlast&quot;;
    }
    print &quot;&lt;div class=\&quot;dataitem $x \&quot;&gt;
                &lt;table class=\&quot;plain\&quot;&gt;
                    &lt;tr&gt;
                        &lt;td class=\&quot;data\&quot;&gt;
                                &lt;div class=\&quot;itemheader\&quot;&gt;
                                    &lt;h2 class=\&quot;inner\&quot;&gt;&quot; .  $row[&quot;topic_title&quot;] . &quot;&lt;/h2&gt;
                                        &lt;ul class=\&quot;itemheader\&quot;&gt;
                                            &lt;li&gt;Posted at: &quot; . date(&#039;F j, Y, g:i a&#039;, $row[&quot;post_time&quot;])  . &quot;&lt;/li&gt;
                                            &lt;li&gt;By: &lt;a href=\&quot;$completeurl/$row[username]\&quot;&gt;&quot; .
                                            $row[&quot;username&quot;]  . &quot;&lt;/a&gt;&lt;/li&gt; &lt;li&gt;In Forum: &quot; . $row[&quot;forum_name&quot;] . &quot; &lt;/li&gt;
                                        &lt;/ul&gt;
                                &lt;/div&gt;
                            &lt;div class=\&quot;entry\&quot;&gt;&quot; .
                                substr(stripBBCode($row[&quot;post_text&quot;]),0,$posttext) . &quot;&lt;a href=\&quot;$urlPath/viewtopic.php?f=$row[forum_id]&amp;t=$row[topic_id]&amp;p=$row[post_id]#p$row[post_id]\&quot; style=\&quot;text-decoration:none;font-weight:bold\&quot;&gt; Read more...&lt;/a&gt;
                            &lt;/div&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;/table&gt;
                &lt;/div&gt;&quot;;

                if ($x==&quot;odd&quot;) {
                    $x=&quot;even&quot;;
                } else {
                    $x=&quot;odd&quot;;
                }

}
print &quot;&lt;div class=\&quot;clear\&quot;&gt;&lt;/div&gt;&lt;/div&gt;&quot;;
    mysql_free_result($result);
//  mysql_close($link);
?&gt;</code></pre></div><p>3) Customize the file latest_posts.php this way:</p><p>&gt;&gt;&gt; Set the following rows (from #5 to #10)</p><p>include_once (&#039;&#039;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Path to phpBB Config File. Due to some restrictions by PHP, you have to provide complete physical path.<br />$urlPath = &quot;&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //phpBB URL with respect to root<br />$topicnumber = ;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Total Post Count to Display<br />$posttext = ;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Number of Characters to display in Post Text<br />$excludedforums = &quot;&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Forum ids to exclude. Each forum id should be separated with Comma<br />$completeurl = &quot;&quot;;</p><br /><p>&gt;&gt;&gt; EXAMPLE<br />include_once (&#039;/home/mysite.com/public/phpbb3/config.php&#039;);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Path to phpBB Config File. Due to some restrictions by PHP, you have to provide complete physical path<br />$urlPath = &quot;/phpbb3&quot;;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //phpBB URL with respect to root<br />$topicnumber = 5;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Total Post Count to Display<br />$posttext = 200;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Number of Characters to display in Post Text<br />$excludedforums = &quot;1,3,8,14&quot;;&nbsp; &nbsp; &nbsp; &nbsp; //Forum ids to exclude. Each forum id should be separated with Comma<br />$completeurl = &quot;<a href="http://www.mysite.com">http://www.mysite.com</a>&quot;;</p><p>&gt;&gt;&gt; NOTE: For the correct fisical path to phpBB config file, check to your web host.</p><p>4) upload the file latest_posts.php into your template folder (e.g.: /templates/webby2/)</p><p>5) open templates/YOURTEMPLATE/homepage.tpl (e.g.: /templates/webby2/homepage.tpl)</p><p>6) add the following script where you want to add latest forum posts</p><p>&lt;h3 class=&quot;blogs&quot;&gt;Latest Forum Posts&lt;/h3&gt;<br />&lt;div class=&quot;block blogs&quot;&gt;<br />&nbsp; &nbsp; &lt;!-- INCLUDE latest_posts.php --&gt;<br />&lt;/div&gt;</p><p>7) ENJOY!</p><p>8) Remember to add your feedback into this forum. (Does this modification work on your vldpersonals version and within your template?)</p>]]></description>
			<author><![CDATA[dummy@example.com (Nordica)]]></author>
			<pubDate>Sat, 28 Jan 2012 17:11:31 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/9106/phpbb3-latest-posts-on-your-homepage-customizable/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[create field username field]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10372/create-field-username-field/new/posts/</link>
			<description><![CDATA[<p>hi all . how i can create field like username i want to user session variable for this <br />session.newfield<br />i don&#039;t want to create field from cp <br />how i can ?</p>]]></description>
			<author><![CDATA[dummy@example.com (saeidtahan)]]></author>
			<pubDate>Tue, 24 Jan 2012 20:11:41 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10372/create-field-username-field/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[phpBB3 - Please help]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10365/phpbb3-please-help/new/posts/</link>
			<description><![CDATA[<p>HI</p><p>I am about to give up now.<br />I installed phpBB3 on my server, using same database as the Vld script.<br />All installed correctly, database updated and works - and here it stops for my knowledge.</p><p>I am totally lost. I am no programmer (but starting to realize we have to be to use this script) :-(<br />I use Nightluv design/template, and now, i need someone who can help me to make the forum run Inside the site, and not as a separate site.<br />I need help to all settings, and to make sure the forum runs 100% correctly with right set permissions, and integrated as its suppose to be.</p><p>Of course i am willing to pay for your help, cause the alternative is to throw the whole crap out and find a day job :-)<br />Let me know if you can help, and at what cost.</p><p>I hope for some replies from someone who is willing to help, cause sending me a lot of codes how to do, will result in me messing up the whole site :-).</p><p>Thanks, and happy weekend...</p>]]></description>
			<author><![CDATA[dummy@example.com (orange_slice)]]></author>
			<pubDate>Sun, 22 Jan 2012 21:45:16 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10365/phpbb3-please-help/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Country/State/City mod]]></title>
			<link>http://www.vldpersonals.com/forum/topic/9907/countrystatecity-mod/new/posts/</link>
			<description><![CDATA[<p>I do have all languages fully function. <br />How can I have the new members to be able,<br />to signup say in the Chinese language<br />Showing All Counties in Chinese like: 慡<br />And then the State/Province in Chinese like: 遏阻<br />And then the City on Chinese like: 遨姑長</p><p>Can this be done easily?<br />Pummetje.</p>]]></description>
			<author><![CDATA[dummy@example.com (gugu)]]></author>
			<pubDate>Thu, 12 Jan 2012 00:18:34 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/9907/countrystatecity-mod/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Tilviewer gallery mod in 2.7 ?]]></title>
			<link>http://www.vldpersonals.com/forum/topic/9951/tilviewer-gallery-mod-in-27/new/posts/</link>
			<description><![CDATA[<p>Ramil made for us the fantastic Tiltviewer mod.<br /><a href="http://www.vldcrowd.com/member/1/blog/view/91/">http://www.vldcrowd.com/member/1/blog/view/91/</a></p><p>But on 2.7 it doesn&#039;t show the pictures.<br />Anybody knows how to fix the variables ?<br />I&#039;m sure it&#039;s just some small code</p>]]></description>
			<author><![CDATA[dummy@example.com (fatlizard)]]></author>
			<pubDate>Fri, 06 Jan 2012 15:34:53 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/9951/tilviewer-gallery-mod-in-27/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Stats online member + 15]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10317/stats-online-member-15/new/posts/</link>
			<description><![CDATA[<p>how i can change the code so the member online stats show online member plus 15 more by example this would help to bring more traffic on the site</p><p>thank you</p>]]></description>
			<author><![CDATA[dummy@example.com (radioact)]]></author>
			<pubDate>Fri, 06 Jan 2012 15:06:53 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10317/stats-online-member-15/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Embed adultism.com, xhamster.com videos]]></title>
			<link>http://www.vldpersonals.com/forum/topic/9985/embed-adultismcom-xhamstercom-videos/new/posts/</link>
			<description><![CDATA[<p>For embedding adultism.com videos, 3 files have to be modded plus adding another swf-player.<br />Most changes are in ext.metavideo.php:<br />In function vldext_metavideo(), append<br /></p><div class="codebox"><pre><code>    elseif ( $params[&#039;type&#039;] == &#039;adultism&#039; )
    {
        $width = ( isset($params[&#039;width&#039;]) ? $params[&#039;width&#039;] : 550 );
        $height = ( isset($params[&#039;height&#039;]) ? $params[&#039;height&#039;] : 432 );

        if ( $media == &#039;preview&#039; )
        {
            return $preview;
        }
        else
        {
            return &#039;&lt;script type=&quot;text/javascript&quot;&gt;swfobject.embedSWF(&quot;/media/utils/jw_player.swf&quot;, &quot;flashcontent&quot;, &quot;&#039; . $width . &#039;&quot;, &quot;&#039; . $height . &#039;&quot;, &quot;10&quot;, false, {file: &quot;&#039; . $video_id . &#039;&quot;, image: &quot;&#039; . $preview . &#039;&quot;}, {allowfullscreen: &quot;true&quot;}, false);&lt;/script&gt;&lt;div id=&quot;flashcontent&quot;&gt;Embed Fail&lt;/div&gt;&#039;;
        }
    }</code></pre></div><p>In function vld_parse_video_url() append<br /></p><div class="codebox"><pre><code>    elseif ( $type == &#039;adultism&#039; )
    {
        preg_match(&#039;/\/watch\/([\d]+)\//&#039;, $url, $matches);
        if ( $matches )
        {
            $data = send_remote_request(&#039;http://www.adultism.com&#039;, &#039;/watch/&#039;.$matches[1].&#039;/&#039;);
            if (preg_match(&quot;/file:\s*\&quot;(http.*)\&quot;/siU&quot;, $data, $fmatches)) {
                preg_match(&quot;/image:\s*\&quot;(http.*)\&quot;/siU&quot;, $data, $tmatches);
                return array($fmatches[1], $tmatches[1]);
            }
        }
        else
        {
            return &#039;http://www.adultism.com/watch/123456/&#039;;
        }
    }</code></pre></div><p>In function vld_vendors_list() add<br /></p><div class="codebox"><pre><code>        &#039;adultism&#039; =&gt; &#039;Adultism&#039;,</code></pre></div><p>To have the preview picture showing also in the player (before starting the video), change in member_videos_view.tpl<br /></p><div class="codebox"><pre><code>{metavideo:video_id=meta_id,type=video_type}</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>{metavideo:video_id=meta_id,type=video_type,media=&quot;&quot;,preview=video_preview}</code></pre></div><p>Since the video_preview variable is not assigned there, change in file lib.member_videos.php in function show_video()<br /></p><div class="codebox"><pre><code>        if ( !$obj-&gt;type )
        {
            $TEMPLATE-&gt;assign(&quot;video_filename&quot;, &#039;video_&#039; . $obj-&gt;filename);
        }
        else
        {
            $TEMPLATE-&gt;assign(&quot;meta_id&quot;, $obj-&gt;meta_id);
            $TEMPLATE-&gt;assign(&quot;meta_url&quot;, $obj-&gt;meta_url);
        }</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>        if ( !$obj-&gt;type )
        {
            $TEMPLATE-&gt;assign(&quot;video_filename&quot;, &#039;video_&#039; . $obj-&gt;filename);
        }
        else
        {
            $TEMPLATE-&gt;assign(&quot;video_preview&quot;, &#039;video_preview_&#039; . $obj-&gt;preview);
            $TEMPLATE-&gt;assign(&quot;meta_id&quot;, $obj-&gt;meta_id);
            $TEMPLATE-&gt;assign(&quot;meta_url&quot;, $obj-&gt;meta_url);
        }</code></pre></div><p>Last, get jw_player.swf from <a href="http://www.adultism.com/flash/jw_player.swf">http://www.adultism.com/flash/jw_player.swf</a> and upload it to your /media/utils directory. (Existing mediaplayer.swf seems to have some problems with the code ...)<br />For me, it works like a charm!<br />You can see an example (not x-rated <img src="http://www.vldpersonals.com/forum/img/smilies/smile.png" width="15" height="15" alt="smile" /> ) here: <a href="http://www.dehnsucht.info/v2/member/2/videos/view/32-Test/">http://www.dehnsucht.info/v2/member/2/v &#133; w/32-Test/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (jucks721)]]></author>
			<pubDate>Tue, 27 Dec 2011 15:37:34 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/9985/embed-adultismcom-xhamstercom-videos/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Latest friends on the memer_profile page]]></title>
			<link>http://www.vldpersonals.com/forum/topic/1876/latest-friends-on-the-memerprofile-page/new/posts/</link>
			<description><![CDATA[<p>does anyone have the extension on the&nbsp; 5 latest friend&nbsp; &nbsp;i tried this code.... but it does not work </p><br /><p>ext.latest_friends.php:</p><div class="codebox"><pre><code>&lt;?php
/*
=====================================================
vldPersonals - by VLD Interactive
----------------------------------------------------
http://www.vldpersonals.com/
http://www.vldinteractive.com/
-----------------------------------------------------
Copyright (c) 2005-2007 VLD Interactive
=====================================================
THIS IS COPYRIGHTED SOFTWARE
PLEASE READ THE LICENSE AGREEMENT
http://www.vldpersonals.com/agreement/
=====================================================
*/

$data = array(
    &#039;name&#039; =&gt; &#039;Latest friends entries&#039;,
    &#039;about&#039; =&gt; &#039;Display the most recent guestbook entries of a selected member.&#039;,
    &#039;author&#039; =&gt; &#039;VLD Interactive&#039;,
    &#039;email&#039; =&gt; &#039;support@vldpersonals.com&#039;,
    &#039;help&#039; =&gt; &#039;http://www.vldpersonals.com/downloads/extensions/&#039;,
    &#039;website&#039; =&gt; &#039;http://www.vldpersonals.com&#039;,
);

function vldext_latest_friends ($params = array())
{
    global $DB, $SESSION, $PREFS, $TEMPLATE, $CACHE;

    $limit = isset($params[&#039;limit&#039;]) &amp;&amp; $params[&#039;limit&#039;] ? intval($params[&#039;limit&#039;]) : 4;
    $member_id = isset($params[&#039;member_id&#039;]) &amp;&amp; $params[&#039;member_id&#039;] ? mysql_real_escape_string($params[&#039;member_id&#039;]) : 0;
    $comments_form = isset($params[&#039;comments_form&#039;]) &amp;&amp; $params[&#039;comments_form&#039;] ? 1 : 0;
    $cache_time = isset($params[&#039;cache_time&#039;]) &amp;&amp; $params[&#039;cache_time&#039;] ? intval($params[&#039;cache_time&#039;]) : 5;
    $cache_name = isset($params[&#039;cache_name&#039;]) &amp;&amp; $params[&#039;cache_name&#039;] ? &quot;_&quot;.$params[&#039;cache_name&#039;] : &quot;&quot;;
    $cache = isset($params[&#039;cache&#039;]) ? intval($params[&#039;cache&#039;]) : 1;

    $fields = array();
    if ( !$cache || ($fields = $CACHE-&gt;get(&quot;ext&quot;, &quot;latest_friends_$member_id&quot;.$cache_name)) === false ) {

    $result = $DB-&gt;query(&quot;SELECT f.friend_id, m.* $sqlquery
                          FROM &quot; . DB_PREFIX . &quot;members AS m, &quot; . DB_PREFIX . &quot;members_data AS d, &quot; . DB_PREFIX . &quot;friends AS f
                          WHERE ( (f.member_id=&#039;$id&#039; AND f.friend_id=m.member_id) OR (f.friend_id=&#039;$id&#039; AND f.member_id=m.member_id) )
                                  AND m.member_id=d.data_id AND f.pending=0
                          ORDER BY m.screenname ASC&quot;);


        if ( $DB-&gt;num_rows($result) )
        {
            $i = 0;
            while( $entries_obj = $DB-&gt;fetch_object($result) )
            {
                $fields[$i][&#039;member_id&#039;] = $entries_obj-&gt;poster_id;
                $fields[$i][&#039;member_group_id&#039;] = $entries_obj-&gt;group_id;
                $fields[$i][&#039;member_username&#039;] = $entries_obj-&gt;username;
                $fields[$i][&#039;member_email&#039;] = $entries_obj-&gt;email;
                $fields[$i][&#039;member_screenname&#039;] = htmlentities2utf8($entries_obj-&gt;screenname);
                $fields[$i][&#039;member_total_visits&#039;] = $entries_obj-&gt;totalvisits;
                $fields[$i][&#039;member_total_visitors&#039;] = $entries_obj-&gt;totalvisitors;
                $fields[$i][&#039;member_total_pictures&#039;] = $entries_obj-&gt;totalactivepictures;
                $fields[$i][&#039;member_total_videos&#039;] = $entries_obj-&gt;totalactivevideos;
                $fields[$i][&#039;member_total_favorites&#039;] = $entries_obj-&gt;totalfavorites;
                $fields[$i][&#039;member_total_blocked&#039;] = $entries_obj-&gt;totalblocked;
                $fields[$i][&#039;member_total_messages&#039;] = ($entries_obj-&gt;totalimessages+$entries_obj-&gt;totalsmessages);
                $fields[$i][&#039;member_new_messages&#039;] = $entries_obj-&gt;newmessages;
                $fields[$i][&#039;member_time_zone&#039;] = $entries_obj-&gt;timezone;
                $fields[$i][&#039;member_active&#039;] = $entries_obj-&gt;active;
                $fields[$i][&#039;member_ip_address&#039;] = $entries_obj-&gt;ipaddress;
                $fields[$i][&#039;member_total_guestbook_entries&#039;] = $entries_obj-&gt;totalactiveguestbooks;
                $fields[$i][&#039;member_total_blog_entries&#039;] = $entries_obj-&gt;totalblogs;
                $fields[$i][&#039;member_join_date&#039;] = $SESSION-&gt;conf[&#039;timeformat&#039;] ? date(&quot;m/d/Y h:i A&quot;, get_date($entries_obj-&gt;joindate, $SESSION-&gt;conf[&#039;timezone&#039;]*60)) : date(&quot;d/m/Y H:i&quot;, get_date($entries_obj-&gt;joindate, $SESSION-&gt;conf[&#039;timezone&#039;]*60));
                $fields[$i][&#039;member_last_visit&#039;] = $entries_obj-&gt;lastvisit ? ($SESSION-&gt;conf[&#039;timeformat&#039;] ? date(&quot;m/d/Y h:i A&quot;, get_date($entries_obj-&gt;lastvisit, $SESSION-&gt;conf[&#039;timezone&#039;]*60)) : date(&quot;d/m/Y H:i&quot;, get_date($entries_obj-&gt;lastvisit, $SESSION-&gt;conf[&#039;timezone&#039;]*60))) : 0;
                $fields[$i][&#039;member_expiration_date&#039;] = $entries_obj-&gt;expirationdate ? ($SESSION-&gt;conf[&#039;timeformat&#039;] ? date(&quot;m/d/Y h:i A&quot;, get_date($entries_obj-&gt;expirationdate, $SESSION-&gt;conf[&#039;timezone&#039;]*60)) : date(&quot;d/m/Y H:i&quot;, get_date($entries_obj-&gt;expirationdate, $SESSION-&gt;conf[&#039;timezone&#039;]*60))) : 0;
                $fields[$i][&#039;member_online&#039;] = ((time() - $entries_obj-&gt;lastvisit) &lt; $PREFS-&gt;conf[&#039;user_timeout&#039;]*60) ? 1 : 0;
                $fields[$i][&#039;member_profile_link&#039;] = $PREFS-&gt;conf[&#039;fancy_urls&#039;] ? ($PREFS-&gt;conf[&#039;fancy_homepages&#039;] ? $entries_obj-&gt;username : &quot;member/&quot;.$entries_obj-&gt;poster_id).&quot;/&quot; : &quot;index.php?m=member_profile&amp;p=profile&amp;id=&quot; . $entries_obj-&gt;poster_id;
                $fields[$i][&#039;entry_id&#039;] = $entries_obj-&gt;entry_id;
                $fields[$i][&#039;member_friends_link&#039;] = $PREFS-&gt;conf[&#039;fancy_urls&#039;] ? &quot;member/$id/friends/&quot; : &quot;index.php?m=member_friends&amp;p=friends&amp;id=$id&quot;);
                $fields[$i][&#039;entry_body&#039;] = nl2br(htmlentities2utf8($entries_obj-&gt;body));
                $fields[$i][&#039;entry_post_date&#039;] = $SESSION-&gt;conf[&#039;timeformat&#039;] ? date(&quot;m/d/Y h:i A&quot;, get_date($entries_obj-&gt;postdate, $SESSION-&gt;conf[&#039;timezone&#039;]*60)) : date(&quot;d/m/Y H:i&quot;, get_date($entries_obj-&gt;postdate, $SESSION-&gt;conf[&#039;timezone&#039;]*60));
                $fields[$i][&#039;member_picture_pending&#039;] = $entries_obj-&gt;pending;
                $fields[$i][&#039;member_picture_adult&#039;] = $entries_obj-&gt;adult;
                $fields[$i][&#039;member_picture_preview&#039;] = $entries_obj-&gt;picture ? $PREFS-&gt;conf[&#039;thumbnail_prefix&#039;] . &#039;picture_&#039; . $entries_obj-&gt;picture : &#039;&#039;;
                $fields[$i][&#039;member_picture_filename&#039;] = $entries_obj-&gt;picture ? &#039;picture_&#039; . $entries_obj-&gt;picture : &#039;&#039;;
                $i++;
            }
        }

        if ( $cache ) {
            $CACHE-&gt;put(&quot;ext&quot;, &quot;latest_friends_$member_id&quot;.$cache_name, $cache_time, $fields);
        }
    }

    $_SESSION[&#039;captcha&#039;] = random_string(5);

    $TEMPLATE-&gt;assign(&quot;ext_latest_freinds_entries&quot;, $fields);



    $TEMPLATE-&gt;output(&#039;ext.latest_friends.tpl&#039;);
}

?&gt;</code></pre></div><p>ext.latest_friends.tpl:</p><div class="codebox"><pre><code>&lt;div class=&quot;ext_thumbnails&quot;&gt;

    &lt;div class=&quot;flatheader&quot;&gt;
        &lt;h3 class=&quot;visitors&quot;&gt;Latest Blogs&lt;/h3&gt;
    &lt;/div&gt;
    &lt;div class=&quot;flatgrid&quot;&gt;
        &lt;div class=&quot;single&quot;&gt;
            &lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;flatgrid&quot;&gt;
                &lt;!-- BEGIN ext_latest_friends --&gt;
                    &lt;tr&gt;
                        &lt;td class=&quot;item&quot; align=&quot;center&quot;&gt;
                            &lt;div class=&quot;image&quot;&gt;
                                &lt;!-- IF member_picture --&gt;
                                    &lt;a href=&quot;{top.virtual_path}{member_profile_link}&quot;&gt;&lt;img src=&quot;{top.virtual_pic_path}{member_picture}&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;/a&gt;
                                &lt;!-- ELSE --&gt;
                                    &lt;a href=&quot;{top.virtual_path}{member_profile_link}&quot;&gt;&lt;img src=&quot;{top.virtual_tpl_path}{top.loggedin_template}/media/user_picture_none.gif&quot; alt=&quot;&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;&lt;/a&gt;
                                &lt;!-- ENDIF --&gt;
                                &lt;h4&gt;&lt;a href=&quot;{top.virtual_path}{member_profile_link}&quot;&gt;{trim:member_username,10,&quot;&quot;}&lt;/a&gt;&lt;/h4&gt;
                            &lt;/div&gt;
                        &lt;/td&gt;
                    &lt;/tr&gt;
                &lt;!-- END ext_latest_friends --&gt;
            &lt;/table&gt;
        &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

&lt;/div&gt;</code></pre></div><p>{latest_friends:member_id=member_id,limit=1,comments_form=1,cache=0}</p>]]></description>
			<author><![CDATA[dummy@example.com (gugu)]]></author>
			<pubDate>Mon, 26 Dec 2011 12:27:37 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/1876/latest-friends-on-the-memerprofile-page/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[{session.total_favorites} and {session.total_fans}]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10285/sessiontotalfavorites-and-sessiontotalfans/new/posts/</link>
			<description><![CDATA[<p>I already checked for answers, and in 2006 you did not have session.total_fans</p><p>It&#039;s almost 2012.... do we have session.total_fans? If not, why not or if it&#039;s under different name, please let me know.</p><p>Any ways to set up total fans?</p>]]></description>
			<author><![CDATA[dummy@example.com (gugu)]]></author>
			<pubDate>Mon, 26 Dec 2011 11:44:52 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10285/sessiontotalfavorites-and-sessiontotalfans/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Mutual friends mod?]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10057/mutual-friends-mod/new/posts/</link>
			<description><![CDATA[<p>I know I have seen this mod somewhere. Anybody knows if it exists?</p>]]></description>
			<author><![CDATA[dummy@example.com (radioact)]]></author>
			<pubDate>Thu, 22 Dec 2011 08:03:58 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10057/mutual-friends-mod/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[vldPersonals is compatible with punBB 1.4.X?]]></title>
			<link>http://www.vldpersonals.com/forum/topic/10256/vldpersonals-is-compatible-with-punbb-14x/new/posts/</link>
			<description><![CDATA[<p>Hello,<br />Now I use PunBB forum (1.3.x) with the integration module of vldPersonals.<br />But I wonder if it is compatible with the latest version of punBB 1.4.x.<br />Thank you.</p>]]></description>
			<author><![CDATA[dummy@example.com (gugu)]]></author>
			<pubDate>Sun, 11 Dec 2011 12:50:21 +0000</pubDate>
			<guid>http://www.vldpersonals.com/forum/topic/10256/vldpersonals-is-compatible-with-punbb-14x/new/posts/</guid>
		</item>
	</channel>
</rss>

