injate
Forum Replies Created
-
Forum: Plugins
In reply to: made a widget, it works! – now what?Look at some other wordpress widgets and see how they’re doing it.
I have no experience making but I have plenty installing components into open source php apps. This is how they’re usually done.
If it’s not already separated I assume you could put your widget code in it’s own file. That way you don’t hurt any other mods people might have made to stock WP files. If you made mods to the stock WP files then I would document which areas (lines/functions) were changed in the read me so people with existing modifications can copy only those sections which are required to make your widget work.
Put only the required files (and maybe folder structure to make copying over easier) with some documentation (install, readme) in side of a archive (rar, zip, tar.gz, whatever) Then share.
Forum: Fixing WordPress
In reply to: Chinese characters not showing up correctlyAre the fonts installed in windows (or whatever OS you’re running)?
or do they display on other web sites as plain text (non images)?
https://seba.studentenweb.org/thesis/howto-winxp.php (You need your windows XP cd to do this)
If you’re sure you’re not just missing the fonts on your computer then you might have made a mistake setting the blog up for Chinese.
Forum: Installing WordPress
In reply to: memory exhaustedphp.ini would be accessible by someone with root/administrator access. they should be able to find it by searching (find / -name ‘php.ini’ in linux) for it. This makes the change global to all php ran on the server. the 2 methods mentioned below the php.ini one would be better for a shared server environment. Try the .htaccess one.
Forum: Installing WordPress
In reply to: memory exhaustedThat would seem to indicate that Php ran out of memory…which I think is odd but I supposed it’s possible.
Configure it’s memory_limit to something higher using one of the methods mentioned in the link.
Forum: Fixing WordPress
In reply to: Can’t Delete PagesDoes the SQL user you’re using have delete privileges?
Forum: Fixing WordPress
In reply to: Only title of post on front pageThere may be an easier way but if you go to your template’s index.php and take
the_content('');
out of thewhile (have_posts()) : the_post();
loop then that should do the trick.Forum: Fixing WordPress
In reply to: Page with multiple editable text blocks (seperated)Found these two functions to be a big help.
I figured adding more pages would add them to the menu. Not so if I do this for my pages list:
<?php wp_list_pages('include=12,6,7,8,10,11' ); ?>
Then I just grab the 2nd text block I need from a new page like so and add a second the_post to my template:
query_posts('page_id=15'); if (have_posts()) : while (have_posts()) : the_post();
hacky solution but it works.
Forum: Fixing WordPress
In reply to: Page with multiple editable text blocks (seperated)bump, I’m going to try to solve this today.
Forum: Fixing WordPress
In reply to: Embedding Websites Into WordPress Pageshttps://www.bundesliga.de/en/rss_info.php
Their RSS feed would be your best bet. I don’t think wordpress has a default RSS reader though so you’d be on your own to find one for it.
It looks like you’re looking at a specific sub category of news though? RSS feeds usually don’t support categories out of the box…check with their site web master if it does.
Otherwise you’re screwed. I would suggest page scrapping but that looks like it’s populated by javascript (my JS is disabled by default and I didn’t see any news until I turned it on) so I doubt it would even work. ??
Forum: Plugins
In reply to: Embedding Flash in Category Images PluginI saw two places that probably need it: Line 104 and 143 of the unmodified category-images.php.
This line:
$category_display = '<img class="catimage" alt="' . $category->cat_name . '" src="' . $image_url . '" />';
needs to be:
if(preg_match("/$.swf/", $image_url)) { $category_display = '<object type="flash/swf" alt="' . $category->cat_name . '" src="' . $image_url . '" />'; } else { $category_display = '<img class="catimage" alt="' . $category->cat_name . '" src="' . $image_url . '" />'; }
That may not be flawless code and changing those 2 lines to this may not be everything needed but this is a start.
Forum: Plugins
In reply to: Embedding Flash in Category Images PluginSorry, I wasn’t thinking. You nailed what I was trying to sya…I was thinking logic like this:
// Regex /$.swf/ means if it ends in .swf
if(preg_match(“/$.swf/”, $img_path)) {
echo “<object type=’swf/flash’ src=’$img_path’ />”; // example, probably bad tag
} else {
// Images logic (original)
echo “<img src=’$img_path’ />”;
}Forum: Installing WordPress
In reply to: can’t import xml to new blogchmod is a command to change file permissions. You had me convinced you were running a home linux server and would understand ??
You can do chmod through command shell with the command I posted or through FTP, usually be right clicking on folder/files and choosing properties or permissions in there…
more on that here: https://www.stadtaus.com/en/tutorials/chmod-ftp-file-permissions.php
Chmod 777 is full permissions (read/write/execute for all).
Forum: Installing WordPress
In reply to: can’t import xml to new blogSorry if you just didn’t mention this because it’s so obvious…but did you try this: ?
chmod 0777 /home/www/web223/html/wordpress/wp-content /home/www/web223/html/wordpress
Forum: Plugins
In reply to: Embedding Flash in Category Images PluginI have no experience with said plugin but I’d imagine it’d be as simple as finding the code that outputs the <img> tag and replacing it with a flash object tag with the variables in the appropriate positions. Is this what you tried?
Forum: Fixing WordPress
In reply to: draft vs. published, need helpDid you try manually changing the page status from draft to manual (on the right, in the javascript pop open menu)?
Does it act normal when you hit the publish button? Do changes save when you change something and save?