Posted: May 11 | Filed under: General
I have noticed that it’s sometimes better not to define a width for a td because the IE and the FF interprete it differently. This might help if you try to arrange a sidebar and wonder why the IE is displaying it in another position.
Posted: May 11 | Filed under: General
Sometimes the IE will expand a td or any other box without a reason.
This is due to a small bug. If it’s pure text then try using “word-wrap: break-word” inside your css file. To get it working for graphics and other things use style=”overflow:hidden”. Note that this might clip some of the data inside the td/box.
Source:Adobe.com
Posted: May 11 | Filed under: General
If you wonder how to use the new adsense authorization for your vbulletin forum then follow this example:
Auth URL: http://www.mysite.com/forums/login.php?do=login
Auth method: POST
Parameters:
vb_login_username =
do = login
vb_login_md5password =
vb_login_md5password_utf =
Source: VBulletin.org
Posted: May 10 | Filed under: General
I will soon add a new design for this blog, since this is just horrible and was only a temporary solution.Also there is going to be a forum where you will be able to talk about webmaster related things.
Posted: May 10 | Filed under: General
If you want to add a new superadmin to your vbulletin forums then you will have to edit the config.php.
Edit $config['SpecialUsers']['superadministrators'] = '1'; and add the id’s of the users (seperated by a comma) you want to be a superadmin. If you only edit the usergroupsid in the database the user won’t have superadmin rights.
Be very carefull although who you give superadmin rights.
Posted: May 08 | Filed under: General
If you got an image inside a td using the img html tag and you want to center the table in firefox it will sometimes not do it properly.
It helps to add style=”text-align:center;width:xxx;” to the img tag.
Posted: May 06 | Filed under: Wordpress
get_highest_rated is defined at postrating-stats.php and is responsible for displaying the content as well.
Posted: May 05 | Filed under: General
Today I have found this little snippet to retrieve a page to save it in a variable e.g. $content.
$handle = fopen($location, "r"); if($handle) { $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle);
You want to know what the 8192 does? It’s the byte data the browser retrieves before saving it into $contents.
Posted: May 04 | Filed under: General
It’s strange but a lot of elements like active-x controls are always on top of other div’s even if you defined a z-index:0 for that element and the div has a z-index:1.
An easy solution would be to hide the objects while the menu is active, this can be realized with a “getElementsByClass. ” functions, which I have found here webdesignblog.de.
Without a getelementbyclass it’s sometimes difficult to hide your navigation with javascript. This little script will help you to realize just that.
function hide() { var allElems = document.getElementsByTagName('*'); for (var i = 0; i < allElems.length; i++) { var thisElem = allElems[i]; if (thisElem.className && thisElem.className == 'CLASSNAME') { thisElem.style.display = 'none'; } } } function show() { var allElems = document.getElementsByTagName('*'); for (var i = 0; i < allElems.length; i++) { var thisElem = allElems[i]; if (thisElem.className && thisElem.className == 'CLASSNAME') { thisElem.style.display = 'block'; } } }
Replace CLASSNAME with the name of your nav class.
Then simply call the script like that:
<li onmouseover=hide(); onmouseout=show();> navigation</li>
This is of course not a solution for embed window media player streams, because it will reload the stream everytime.
I’m currently trying to find a solution for the embed wmp.
Update:
Here is a solution for the embed wmp, I hope that can help you.
asp.net
Posted: Apr 23 | Filed under: Wordpress
If you should come in the situation that you always need the same post over and over again, e.g. if you use wordpress as a CMS then I have a useful trick for you.
We have to edit the function “the_editor“, which is defined at general-template.php!
Open the file and find the function; now inside the function find
textarea class='mceEditor' $rows cols='40' name='$id' tabindex='2' id='$id'>%s
Straight after the %s add the text that is supposed to be your default post. If it’s a complex string you can safe the text in a variable e.g. $defaulttext = “here goes my php code”; and simply add $defaulttext after %s, but before the closing textarea tag!