monodistortion
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Sandbox 1.6 for WordPress 2.7Ok, after a few hours of combing through the core WordPress
comment-template.php
code and comparing it to Dreamcolor’s Sandbox update I think I figured out all the problems with the threaded comments. The Codex documentation isn’t very complete so I’ll have to try improving it when I have more time.When you click on the “reply” link the comment form should move directly below that comment like in the default (e.g. Kubrick) comment display.
Note that if you change the argument ‘style’ => ‘div’ or ‘style’ => ‘ol’ the comment form moves to the end of that comment chain. I’m not sure why but this is how the default comment threading works.
Here are the two updated files,
comments.php
andfunctions.php
:
https://noisychaos.com/external/wp-work/sandboxv16comments2009-02-27.zipI haven’t tested pings since this has just been on my local machine.
Forum: Themes and Templates
In reply to: Sandbox 1.6 for WordPress 2.7Hmm, this is completely unrelated but now I see that comments.php is also missing the line:
<?php do_action('comment_form', $post->ID); ?>
which is used to as a plugin API hook.
https://codex.www.ads-software.com/Theme_Development#Plugin_API_HooksThis was in Sandbox before so maybe Dreamcolor took it out by mistake instead of taking out:
<input type="hidden" name="comment_post_ID" value="<?php echo $id ?>" />
Forum: Themes and Templates
In reply to: Sandbox 1.6 for WordPress 2.7I just tried out this theme and that small bug doesn’t really affect things. It just gives you two hidden inputs with the same value.
One thing I noticed is that the custom callback function
sandbox_comments
doesn’t quite format the nested comments the same as the default function so when you press the “reply” link the form doesn’t move right below the “reply” link. It looks like there needs to be one more<div>
within each<li>
so that the form knows to move below that<div>
.Forum: Everything else WordPress
In reply to: www.ads-software.com is now using iPhone CSS only?Ok, it looks like the server at https://s.www.ads-software.com/style/wp4.css
isn’t responding so there isn’t any CSS at all.Forum: Themes and Templates
In reply to: Sandbox 1.6 for WordPress 2.7Hi Dreamcolor,
I was updating my theme and I was looking at your code in comments.php.
On this page:
https://codex.www.ads-software.com/Migrating_Plugins_and_Themes_to_2.7/Enhanced_Comment_Displayit says you should remove the section:
<input type="hidden" name="comment_post_ID" value="<?php echo $id ?>" />
because it is replaced by the new function:
<?php comment_id_fields(); ?>
Forum: Plugins
In reply to: [Plugin: WordPress Download Monitor] How do I up the file size limit to 15MB?If you’re using shared web hosting that file is controlled by your host. There may be a way to override it though.
You’ll have to look at your web host’s help files or contact them though.
Hmm, a traceroute shows you on bluehost.com so check out this page:
https://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&root=17&id=124
and
https://helpdesk.bluehost.com/kb/index.php?x=&mod_id=2&root=17Forum: Plugins
In reply to: [Plugin: WordPress Download Monitor] How do I up the file size limit to 15MB?I’m not using this plugin so I don’t know for certain but this is most likely the limit set for php file uploads. This is set in the php.ini file which is the php config file. You may be able to use a custom php.ini file but you’ll have to contact your webhost to find out how.
Otherwise see this post:
https://www.ads-software.com/support/topic/199077?replies=6Forum: Plugins
In reply to: [Plugin: ProPlayer] php short open tagNow that I look at the options-page.php file some more the admin page is still not working right because of a lot of <? and <?= start tags.
See:
https://codex.www.ads-software.com/WordPress_Coding_StandardsForum: Plugins
In reply to: [Plugin: WP-DBManager] Missing Database Icon for WP-Database ManagerMossoffa,
I use Filezilla and I see the .htaccess files. Try this:
https://www.intrepid.com.au/how-to-view-htaccess-with-filezilla/Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Plugin: Slimboxarrg, this BB software is sometimes not showing edits…
Forum: Plugins
In reply to: [Plugin: NextGEN Gallery] Plugin: SlimboxPetehawk,
What Slimbox plugin are you using?
I would recommend the Slimbox2 plugin here:
https://www.ads-software.com/extend/plugins/wp-slimbox2/Greg has done a great job adding new features and keeping it up to date recently. It uses the jQuery library that comes with WordPress.
Your code should look something like this:
<a href="https://localhost:8888/rocks/wp-content/gallery/company/horse.jpg" title="" rel="lightbox-company"> <img title="horse.jpg" alt="horse.jpg" src="https://localhost:8888/rocks/wp-content/gallery/company/thumbs/thumbs_horse.jpg" width="100" height="75"> </a>
If that still doesn’t work we’ll have to see the code on the rest of your page.
Forum: Plugins
In reply to: [Plugin: WP-DBManager] Missing Database Icon for WP-Database ManagerYou mean under the Installation tab?
I would change the wording to:
4. The script will automatically create a folder calledbackup-db
in thewp-content
folder if that folder is writable. If it is not created, please create it and CHMOD it to 777.5. Move the
.htaccess
file from:
wp-content/plugins/wp-dbmanager/.htaccess
to:
wp-content/backup-db/.htaccess
On Apache servers this prevents access to any files in the
backup-db
folder for your security.Forum: Plugins
In reply to: [Plugin: WP-DBManager] Missing Database Icon for WP-Database ManagerI just had this problem too. The installation instructions aren’t entirely clear but you need to move the
.htaccess
file fromwp-content/plugins/wp-dbmanager/.htaccess
towp-content/backup-db/.htaccess
The
.htaccess
file in the plugin folder blocks all access to that folder with apache. You’ll get a 403 Forbidden error if you don’t move it.Forum: Plugins
In reply to: [Plugin: Live Comment Preview] any updates for WP 2.6 and 2.7?I may have almost figured out #2 after finding the right functions in wp-includes/pluggable.php
I just wish these functions were documented somewhere.I ended up changing a few lines and adding a new variable, $gravatar_show. Here are the relevant lines of code:
// Gravatar settings $gravatar_size = 64; $gravatar_show = get_option('show_avatars'); // showing or hiding avatars can be set in the admin panel under Settings - Discussion $gravatar_default = get_option('avatar_default'); // The default avatar style can be chosen under Settings - Discussion // $gravatar_default = 'https://www.gravatar.com/avatar/ad516503a11cd5ca435acc9bb6523536'; // or put a URI to your custom default image here $gravatar_rating = get_option('avatar_rating'); // Customize this string if you want to modify the preview output // %1 - author's name (as hyperlink if available) // %2 - comment text // %3 - gravatar image url $previewFormat = ' <ol class="commentlist" style="clear: both; margin-top: 3em;"> <li id="comment-preview" class="alt" style="overflow: hidden;"> <div class="comment-author vcard">'; if ($gravatar_show) { $previewFormat .= ' <img src="%3" alt="" class="avatar avatar-' . $gravatar_size . '" width="' . $gravatar_size . '" height="' . $gravatar_size . '"/>'; } $previewFormat .= ' <span class="fn n">%1</span> </div> <div class="comment-meta">Posted (date) at (time) <span class="meta-sep">| Permalink</div> %2 ';
The preview format is sort-of customized to my Sandbox theme.
// You shouldn't need to edit anything else. ob_start ("ob_gzhandler"); //compress with gzip if possible header('Content-type: text/javascript');
<?php if ($gravatar_show) : ?> var user_gravatar = '<?php echo addslashes($user_gravatar); ?>'; var gravatar = '<?php echo addslashes($gravatar_default); ?>?'; if (eml != '') { gravatar = 'https://www.gravatar.com/avatar/' + hex_md5(eml) + '?d=<?php echo urlencode($gravatar_default); ?>&'; } else if (user_gravatar != '') { gravatar = user_gravatar + '?d=<?php echo urlencode($gravatar_default); ?>&'; } gravatar += 's=<?php echo $gravatar_size; ?>'; <?php if (!empty($gravatar_rating)) { ?> gravatar += '&r=<?php echo urlencode($gravatar_rating) ?>'; <?php } endif; $previewFormat = str_replace("\r", "", $previewFormat); $previewFormat = str_replace("\n", "", $previewFormat); $previewFormat = str_replace("'", "\'", $previewFormat); $previewFormat = str_replace("%1", "' + name + '", $previewFormat); $previewFormat = str_replace("%2", "' + cmnt + '", $previewFormat); if ($gravatar_show) { $previewFormat = str_replace("%3", "' + gravatar + '", $previewFormat); } $previewFormat = "'" . $previewFormat . "';\n"; ?>
Sorry for the mess… I’ll post a link as soon as I upload it to my server.
https://noisychaos.com/external/wp-work/live-comment-preview.zipForum: Plugins
In reply to: Opening a gallery using just a single imageI don’t think I understand your question. If you just want to click on an image and open a gallery thickbox doesn’t have to be involved at all.
Can you explain what you want to do again?