Web

Javascript getElementById Issue in Firefox

July 12, 2008

I'm working on an Javascript code. This web application is retrieving value from a couple of textbox fields and concatenate in result textbox field. I tested the web application in Internet Explorer and it work fine. But when I'm testing in Firefox, the value is not passed to the textbox field. Here is the original [...]

Read the full article →

Displaying Posts Using a Custom Select Query

September 22, 2007

The practical example, outlined below, demonstrates a process of selecting all posts with a particular Custom Field value stored, and displaying them in a Page based on a Page Template. http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query

Read the full article →

Customized Query in Wordpress

September 18, 2007

PLAIN TEXT HTML: <ul> <?php $get_children = $wpdb->get_results('SELECT * FROM your category table WHERE category_parent = "The cat_ID of the parent that you want"'); foreach ($get_children as $child) { echo '<li><a href="./?cat='.$child->cat_ID.'" title="View all posts filed under '.$child->cat_name.'">'.$child->cat_name.'</a></li>'; } ?> </ul>

Read the full article →

SEO URL Rewriting for GARS

August 19, 2007

I discussed the steps to setup the URL rewriting for VBulletin. For those forums using GARS, here are the steps. Edit geek/gars/mods/display/top.php Search: PLAIN TEXT CODE: $bits .= "<tr><td align=\"$stylevar[left]\"><span class=\"smallfont\"><a href=\"showthread.php?t=$value[threadid]\" title=\"$value[title]\">$value[title]</a></span></td></tr>"; Replaced with PLAIN TEXT CODE: $thread['url'] = strtolower(str_replace(" ", "-", $value[title])); $thread['url'] = strtolower(str_replace("'", "", $value[title])); $thread['url'] = ereg_replace("[/?!.$%£()~*@#]+", "", $thread['url']); $bits [...]

Read the full article →

VBulletin SEO URL Rewriting

August 19, 2007

Place the code below in the .htaccess. PLAIN TEXT CODE: RewriteRule ^t([0-9]+)-(.*).html$ showthread.php?t=$1 [L] RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&amp;t=$1 [L] RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&amp;t=$1 [L] RewriteRule ^f([0-9]+)-(.*).html$ forumdisplay.php?forumid=$1 [L] Edit the functions_forumlist.phpSearch for: PLAIN TEXT CODE: $forum['statusicon'] = fetch_forum_lightbulb($forumid, $lastpostinfo, $forum); and below that add PLAIN TEXT CODE: $forum['url'] = strtolower(str_replace(" ", "-",str_replace("/", "-", $forum['title']))); $forum['url'] = strtolower(str_replace("'", [...]

Read the full article →

VBulletin URL Rewriting

August 18, 2007

This discussed how to make the VBulletin URL to a human readable format. Link

Read the full article →

NoSpam! – an alternative to CAPTCHA images

August 18, 2007

This simple hack is meant as a replacement for the default CAPTCHA system in vBulletin. There are two main reasons one might want to do this: firstly, new technology is constantly being developed to crack CAPTCHA images and make spam accounts anyway, and secondly, the more secure the CAPTCHA, the more difficult it is for [...]

Read the full article →

VBulletin Specific Category Icon

August 18, 2007

Find "forumhome_forumbit_level1_nopost" template: Code: <td class="tcat"><img src="/path/to/your/image_$forum[forumid].gif" /></td> Then, when you're naming the images you'd like to display, add a suffix to each one with the Forum ID that you'd like it displayed for. Ex: image.gif for Forum ID 2 becomes - image_2.gif Edit: If you don't want to display an image for all your [...]

Read the full article →

AJAX Tutorials

August 11, 2007

An Introduction to AJAX

Read the full article →

Commonly Asked VBulletin Questions

August 11, 2007

As you hop around vB Forums, help compile listings of the most commonly asked questions (and answers) related to these 14 topic groupings. Goal is to provide a Browse by Topic method of locating frequently requested information, as a companion to Search Mode. An FAQ will be produced from these results. Thanks for your help! [...]

Read the full article →