View RSS Feed

Php

PHP programming related

  1. Forum Stats Signature Generator

    by , 11-15-2007 at 07:30 AM (Danny Bembibre (dbembibre) Crawlability Inc.)
    I make a stupid script to generate forum stats in a image template with GD. This is based in a old plugin that come from the earling times of vBulletin2

    What make this

    Based in a template image


    The script that is executed a scheduled task from the vB adminCP modify the template and put in it your forum stats.
    ...
    Attached Thumbnails Attached Thumbnails sig.jpg   siggenerated.jpg   sigtemplate.jpg  
    Attached Thumbnails Attached Files
  2. Source Compile PHP 5.2.4 for Plesk 8

    by , 11-13-2007 at 11:15 AM (Danny Bembibre (dbembibre) Crawlability Inc.)
    Proceed at yourn risk, if you brake your server this won't be my problem .

    I hate await when a new version of php is released that a packager built it. I prefer has the liberty of compile at any moment.

    This procedure is tested in a Plesk 8.1 and in Plesk 8.2

    Review the rpms installed:
    Code:
    [daniel@srv01 ~]$ rpm -qa | grep php
    php-5.2.3-1.el4.art
    php-common-5.2.3-1.el4.art
    php-mysql-5.2.3-1.el4.art
    php-gd-5.2.3-1.el4.art
    ...

    Updated 11-14-2007 at 05:15 PM by Philipp Herbers

    Categories
    BMW FAQ Club , Php
    Attached Thumbnails Attached Thumbnails plesk.jpg  
  3. Plugin Memcached vBulletin Templates

    by , 11-02-2007 at 07:03 AM (Danny Bembibre (dbembibre) Crawlability Inc.)
    I modify a old plugin of Orban that cached templates at disk and make a modify to put this templates into memcached server (i use as base a memcache wrapper of Jiri Kupiainen).
    Work ok at my forums, but im not a php expertise and i cant guaranteed that is bug free..

    Upload the template_cache.php file to you includes folder and install the xml product.

    Go to AdminCP->Memcached Cache Options and config:

    ...

    Updated 11-05-2007 at 05:45 PM by dbembibre

    Categories
    BMW FAQ Club , Optimization , Php
    Attached Thumbnails Attached Thumbnails mmc2.jpg  
    Attached Thumbnails Attached Files
  4. Plugin restrict search when server load is high

    by , 10-24-2007 at 10:43 AM (Danny Bembibre (dbembibre) Crawlability Inc.)
    This is a old plugin that i make in the earling times of vBulletin 3.5

    This plugin allow to you disable searches when the load average reaches a defined level.
    • Can exclude user groups of the search restriction
    • Users with search restricted can use google integrated search (by the plugin)
    The code
    PHP Code:
     
         $Groupids 
    explode(','$vbulletin->options['Allowed_Groups']);
     
         if(
    is_member_of($vbulletin->userinfo$Groupids))
         { 
    ...
    Categories
    Php , BMW FAQ Club
    Attached Thumbnails Attached Thumbnails plugin1.jpg   plugin2.jpg   plugin3.jpg  
    Attached Thumbnails Attached Files
  5. Create a Custom page link and vBSEO-it

    by , 10-22-2007 at 05:08 AM (Danny Bembibre (dbembibre) Crawlability Inc.)
    Create a archive in your forum root with name links.php

    Copy the following content

    PHP Code:
    <?php
    // ####################### SET PHP ENVIRONMENT ###########################
    error_reporting(E_ALL & ~E_NOTICE);
    // #################### DEFINE IMPORTANT CONSTANTS #######################
    define('THIS_SCRIPT''links'); // change this depending on your filename
    // ################### PRE-CACHE TEMPLATES AND DATA ######################
    ...

    Updated 10-26-2007 at 06:42 AM by dbembibre

    Categories
    BMW FAQ Club , Php
    Attached Thumbnails Attached Files