901

(37 replies, posted in PunBB 1.2 show off)

adsbb, send me an email i got a nice little script for you to put ur ads on other sites.
it might need a mod designed but it will be verysimple to do so..

in other words people can add this script to there site and it will rotate the banner and links from ur site for your customers.

Q

just edit the install_mod and add the 1.2.15 to the array...

i got an error when i tried to import the sql
but when i went back to look at the db it was there.
and i went to a test site that i use all the fiiles and db informations was there.
that db.txt was an export that i did on that store.

Q

do have msn yim or aim?
scot405583@passport.com
scot405583 for yim and aim

try now.. http://modelcrowd.com/store.rar
if not send me an email

i got this link..
http://www.dyn-web.com/scripts/orderform/

here is the files..
http://modelcrowd.com/uploaded/store.rar
the db is in a folder called db..lol. u will have to import the string.

Q

ill try to put all the files in one place and give a link this morning.. for everything that i got.

Q

downliner that kewl. sorry about that i forgot about that mod a long time ago. i had someone do some work on it. adding a ap mod for the admin and some other stuff.
if you want me to port it over i can try with what i got.


Q

i had a few people work on it til the main people gave up on the idea...

lol. now it just emails you a copy of the reciept.

Q

http://nalan.org/store.php the closes thing that been done... and still it is not finished..


Q

thanks alanb, i just got the thread...lol...

912

(25 replies, posted in General discussion)

the best Cms is the one you make. so u will understand the functions and how everything works. and you know what and how to do the modding.


Q

http://www.punres.org/viewtopic.php?pid=15865#p15865
there the link and the info that i changed..
im not running that much mods..
just did a 3 column and portalnews.php.
about 4 mods that it.


Q

im working on a portal page.
http://bunpai.com/portal.php

just to play around with til 1.3 comes out...


Q

i just took a standard css template copied it to portal.tpl
added the header info into the header.php
made a blank page then pulled the template inside of the portal.php
if ya need more info let me know ill post the files on my site in the forum.


Q

go look at http://bunpai.com
i have the link to the mod rss feed in full use in my frontpage and forum.

Q

anytime
im working on a front portal page right now.

http://bunpai.com/portal.php

let me know what you think...

Q

this is my fa_cron.php
line 48 and 55 was modded to take out the yahoo news or any title site.

line 48. $username = "Bunpai";
line 55. $subject = ( $item->get_title() ? $item->get_title() : basename( $item->get_permalink() ) );

Q

<?php

// manuel@ortega.cl

define( 'PUN_ROOT', '../' );
require PUN_ROOT.'include/common.php';
require PUN_ROOT.'include/search_idx.php';
include( 'simplepie.inc' );


$ip = '127.0.0.1';

$feed = new SimplePie();
$feed->cache_max_minutes(30);
$feed->cache_location( PUN_ROOT.'cache/' );

$result = $db->query('SELECT url, max, closed, forum_id FROM '.$db->prefix.'feeds') or error('Unable to search feeds', __FILE__, __LINE__, $db->error());

print 'date: '.date( 'Y-m-d H:i:s' )."\n";

while( $row = $db->fetch_assoc( $result ) ) {
    $url = $row['url'];
    $max = $row['max'];
    $closed = intval( $row['closed'] );
    $fid = $row['forum_id'];

    $feed->feed_url( $url );
    $feed->output_encoding( $lang_common['lang_encoding'] );
    $feed->init();
    $feed->handle_content_type();

    if( ! $feed->data ) continue;

    $title = $feed->get_feed_title();

    $cont = 0;
    $max_time = 0;
    for( $i = 0; ( $max <= 0 || $i < $max ) && $item = $feed->get_item($i); $i++ ) {
        $time = $item->get_date('Y-m-d H:i:s');
        $time = $time ? strtotime( $time ) : time();

        $author = $item->get_author(0);
        if( $author ) {
            $username = $db->escape( $author->get_name() );
            $email = $author->get_email();
            if( empty( $username ) ) $username = $email;
        } else {
            $username = "Bunpai";
        }

        $username = iconv( $feed->get_encoding(), $lang_common['lang_encoding'], $username );
        $username = $db->escape( $username );
        $email = $db->escape( $email );

        $subject = ( $item->get_title() ? $item->get_title() : basename( $item->get_permalink() ) );
        $subject = $db->escape( fa_cleanup( $subject, $feed->get_encoding(), $lang_common['lang_encoding'] ) );

        $message = $item->get_description()."\n\n[url]".$item->get_permalink()."[/url]";
        $message = $db->escape( fa_cleanup( $message, $feed->get_encoding(), $lang_common['lang_encoding'] ) );

        $result2 = $db->query('SELECT 1 FROM '.$db->prefix.'topics WHERE poster = \''.$username.'\' AND subject = \''.$subject.'\' AND forum_id = '.$fid) or error('Unable to search topic', __FILE__, __LINE__, $db->error());

        if( $db->num_rows( $result2 ) > 0 ) continue;

        // Create the topic
        $db->query('INSERT INTO '.$db->prefix.'topics (poster, subject, posted, last_post, last_poster, closed, forum_id) VALUES(\''.$username.'\', \''.$subject.'\', '.$time.', '.$time.', \''.$username.'\', '.$closed.', '.$fid.')') or error('Unable to create topic', __FILE__, __LINE__, $db->error());
        $new_tid = $db->insert_id();

        // Insert the new post
        $db->query('INSERT INTO '.$db->prefix.'posts (poster, poster_ip, poster_email, message, hide_smilies, posted, topic_id) VALUES(\''.$username.'\', \''.$ip.'\', \''.$email.'\', \''.$message.'\', \'0\', '.$time.', '.$new_tid.')') or error('Unable to create post', __FILE__, __LINE__, $db->error());
        $new_pid = $db->insert_id();

        // Update the topic with last_post_id
        $db->query('UPDATE '.$db->prefix.'topics SET last_post_id='.$new_pid.' WHERE id='.$new_tid) or error('Unable to update topic', __FILE__, __LINE__, $db->error());

        update_search_index('post', $new_pid, $message, $subject);

        $max_time = max( $max_time, $time );
        $cont++;
    }

    if( $cont > 0 ) {
        $db->query('UPDATE '.$db->prefix.'feeds SET last_post='.$max_time.', num_posts = num_posts + '.$cont.' WHERE url=\''.$url.'\'') or error('Unable to update feeds', __FILE__, __LINE__, $db->error());

        update_forum($fid);
    }

    print "feed: $url -> $cont / $max\n";
}

list($usec, $sec) = explode(' ', microtime());
$time_diff = sprintf('%.3f', ((float)$usec + (float)$sec) - $pun_start);

die( 'time: '.$time_diff."\n\n" );


function fa_cleanup( $str, $enc_from, $enc_to ) {
    $str = iconv( $enc_from, $enc_to, $str );
    $str = str_replace(
        array( "</p>\n\n", "</p>\n", "<br>\n", "<br>", "<br />\n", "<br />" ),
        array( "\n\n", "\n\n", "\n", "\n", "\n", "\n" ),
        $str
    );
    $str = preg_replace( '#<img.*?src="([^"]+)"[^>]*>#i', "[img]$1[/img]", $str );
    $str = preg_replace( '#<a.*?href="([^"]+)"[^>]*>([^<]+?)</a>#ie', "'[url=\\1]'.strtr('\\2',\"\n\r\",'  ').'[/url]\n\n'", $str );
    $str = html_entity_decode( $str, ENT_QUOTES, $enc_to );
    $str = strip_tags( $str );
    return $str;
}

bunpai.com is my own version of punportal and miniportal mixed....
evil giggles....
check the latest version with punbb rss new feeds..
also i did
http://modelcrowd.com

Q

920

(8 replies, posted in PunBB 1.2 discussion)

frontpage mod is a good one but it needs alot of updates.... from version 1.2.10 to 1.2.15

im just playing around with 1.2.14 til 1.3 comes out....



Q

i did that style last yr.. i do need to redo it maybe release a version 2.... looks good....
i need to fix the footer image.so that it ends..

lol

Q

922

(13 replies, posted in PunBB 1.2 show off)

hcgtv, it was ur fault...lol... i got some new feeds going... i fount a few new sites.....lmao....
http://bunpai.com


Q

how is that? i added the #brdtitle H1 SPAN {DISPLAY: none} to it.

924

(2 replies, posted in PunBB 1.2 troubleshooting)

i have had issue with zend on my hosting company.. after several tries... i read a forum.. somewhere... if they created a php.ini rename it if it is in the root directory that somehow zend started working....
Q

gaiscus, do u got a link?

Q