cogmios
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: undefined pages, tags etcYES. I found it, pheeeeeeeeeeew!
It is actually the “round” styling of the dynamic HTML menu I took from http://www.mycssmenu.com/ … without the rounding of the boxes it does not add the invisible divs (they are not visible when viewing the source of the page only in the DOM).
Ok… time for another DHTML menu… You don’t want to know how much money this has cost me the past months in terms of traffic over GPU usage…. but Im glad that I found it.
Forum: Fixing WordPress
In reply to: undefined pages, tags etcIm closer to the problem.
When I run firebug on http://farmville.aweblog.net and view the dom I see that four times :
<div style="display: none;"> <img width="1" height="1" src="undefined"/> </div>is appended after the footer before the closing body tag.
the strange thing is that I have made a setup of the same 15 plugins on another blog which does not have the problem.
So… the problem is now easy: WHAT appends this code to the bottom of my blog?
Close… very close…
Forum: Fixing WordPress
In reply to: undefined pages, tags etc, I've got 42 pages worth of replies in my profile so I find these 'nobody here ever answers' posts damned annoying.I appreciate the replies you post however I have posted questions here since 3 years so i can basically statically prove that almost no-one answers … ever. This is not “emotion” but basically a statistical fact (for me at least) see http://edward.de.leau.net/where-can-i-really-find-help-to-wordpress-problems-20100103.html
Don’t take it personal but if a lot of people indicate that this is the case then probably there is a truth in there. For me… on the posts of the last 3 years about 95% got no answer at all even on simple questions like http://wordpress.org/support/topic/211065?replies=5 or even http://wordpress.org/support/topic/232386?replies=1 etc…
Forum: Fixing WordPress
In reply to: undefined pages, tags etcOk… I created a test blog on http://wordpress.aweblog.net and installed the same 15 plugins as on http://farmville.aweblog.net
To no avail the error is independent of the plugins … the quest continues…
Forum: Fixing WordPress
In reply to: How do I find my API URL & Key for my existing siteor… go to <your site>/wp-admin/options.php
and look up the key π
Forum: Fixing WordPress
In reply to: How do i add a 2nd navigation barKeith, after some time I have just installed a DHTML pull down menu that reads my db and then fills it with the pages. e.g. see my private blog http://edward.de.leau.net.
Its pretty easy e.g.
1) go to: http://www.mycssmenu.com/ and generate your menu. (i like this one best but there are trillions see http://populair.eu/webdesign/
2) Then copy and paste it in your header.php
3) Now you need to make the entries (the XML in this case) dynamic. This takes a bit of php coding to query your database and then automatically generate the menu with the correct entries.(step 3 is only needed when you want have full automation)
Forum: Fixing WordPress
In reply to: How do I find my API URL & Key for my existing siteIf you can access the database of WordPress, then open the table “wp_options” and look for the option_name “wordpress_api_key” you will find the key in there.
Forum: Fixing WordPress
In reply to: xmlrpc Password ErrorI changed it to
$output_options = array( "output_type" => "xml", "verbosity" => "newlines_only", "escaping" => array("cdata", "non-ascii", "non-print"), "version" => "xmlrpc", "encoding" => "utf-8" );which already helps a lot but still not the password problem.
Forum: Fixing WordPress
In reply to: 50 lines php execution limitNoone ever answers on these forums. But probably its a good remedy to post my issues here anyway as a todolist.
I’m still in the dark on this one.
I have many many php pages that work well. I have a couple now that display this behaviour, somehow the length of it generates an absolutely blank page. By randomly taking out some parts it displays.
I scanned the serverlogs but those, including the error logs give nothing, i tried setting memory php, to no avail.
I reformatted my php code, taking out all possible weird queries except for simple assignments but to no avail.
Its not really the length of the page. It’s something somewhere with amount of php statements or really something completely different.
E.g. if I add $a=1; extra it displays nothing if I comment it out, it displays the page. Just that one statement is somehow to much.
Forum: Fixing WordPress
In reply to: xmlrpc Password ErrorThe problem is really the escaping I have two problems resulting out of that:
1) My password is not accepted because it contains escaped characters:
4uzBRCh2T7iWj83Nd3A21nN2bBXD2$@zmIBFOxtx86o%7S8YF!SvVxkG5Y#u3jAO*q%t$8QnNFge#q1KZalLk4LKdRhOe#ZwGBdxttRN^1@1&XYUeGmMyHrhBgC9ZfXYtP*%nsOYINLYGSpi%bvArHBka50@JSBDWPyVwgvEqy%7EADK2I&6SmzXsB3*s8crYzUsiIx27D7&a%#geKf8LwSWuF!f75xLpEgCKbpelGPCow00moLCL$TeiNoE$K*c2) the PHP code I want to include becomes escaped instead of the php code I want to have on the page e.g. the page contents look like:
<?php = "instead of the php code ( this is after I have changed my password to “helloworld” to test if it really was the escaping).
What should I do to prevent this in my php code? I already added the CDATA option:
$output_options = array( "output_type" => "xml", "verbosity" => "pretty", "escaping" => array("cdata", "markup", "non-ascii", "non-print"), "version" => "xmlrpc", "encoding" => "utf-8" );but that did not change anything in the tags itself besides placing cdata tags around everything.
Forum: Plugins
In reply to: data searchJust download any php addressbook mysql application, install it and then either use an iframe to load it into a wp page or use wp-exec as plugin to query the db directly e.g. for searches or other things.
So: download XAMP , create a mysql db, create the db at your host, export/import the data and then create a WP page queering it:
ini_set('display_errors',0); error_reporting(E_ALL|E_STRICT); $dbname = 'YOURDBNAME'; $mysql_link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die (mysql_error() . 'Error connecting to mysql'); mysql_select_db($dbname, $mysql_link) or die (mysql_error() . 'problem connecting with database'); $sql ="SELECT * from names"; $result = mysql_query($sql, $mysql_link) or die('Failed Query of '. $sql . ' ' . mysql_error());you can now use e.g.
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "<tr>"; echo "<TD>$i</TD>"; echo "<TD>{$row['NAME']}</td>"; echo "<TD>{$row['PRODUCT']}</td>"; echo "</tr>"; }to walk through your db and display it.
don’t forget to change the db back if you query the wp db e.g. if you further down query it for categories:
<?php mysql_select_db(DB_NAME, $mysql_link) or die (mysql_error() . 'problem connecting with database'); wp_list_categories('sort_column=name&number=10&title_li=&depth=10'); ?>Pretty easy. So start by downloading XAMP and then read the XAMP documentation on how to use phpmyadmin to create the database, fill it and export it.
cheers!
Forum: Plugins
In reply to: [Plugin: Stealth Login] – Lost passwordAs far as i remember:
– ftp/telnet to your host
– edit your .htaccess file in the root remove everything between # STEALTH-LOGIN and # END STEALTH-LOGINyou should now end up in your regular admin login screen (wp-admin) etc…
Forum: Plugins
In reply to: Newbie needs Help – Photo Gallery PluginsThere is a plugin on here called “photo contest” it allows for users uploading, scoring, etc… maybe with some rework that is handy
Forum: Plugins
In reply to: Twitter Tools not updatinganyway if you need to post your RSS feeds content to Twitter (without duplication) just use magpie, read the rss feed and write the lastdate to prevent duplication then crontab it = NICE SIMPLE WORKAROUND:
require_once 'magpierss/rss_fetch.inc'; $rss = fetch_rss('http://farmville.aweblog.net/feed'); $filename = "/yourphysicalpath/ld.txt" ; $fp = fopen($filename, 'r'); $lastdate = fread($fp, filesize($filename)); fclose($fp); $wroteLastDate = false; // read feed foreach ($rss->items as $item) { $published = $item['date_timestamp']; if ($published > $lastdate) { if ($wroteLastDate == false) { $fp = fopen($filename, 'w'); fwrite($fp, $published); fclose($fp); $wroteLastDate = true; } $title = $item[title]; $url = $item[link]; $guid = $item[guid]; $description = $item[description]; $TwitterString = "$guid:$title:$description"; $url = "http://twitter.com/statuses/update.json"; $data = array('status' => $TwitterString); $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_USERPWD, 'USERNAME:PASSWORD'); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $body = curl_exec($ch); curl_close($ch); } }Forum: Plugins
In reply to: Twitter Tools not updatingidem, while this still works:
<?php $url = "http://twitter.com/statuses/update.json"; $data = array('status' => "test hello world"); $ch = curl_init(); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); curl_setopt($ch, CURLOPT_USERPWD, 'USERNAME:PASSWORD'); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); $body = curl_exec($ch); curl_close($ch); ?>