m4c3w4n
Forum Replies Created
-
Forum: Plugins
In reply to: best way to compare the_title to user_firstnameDid it as a function in template-functions-author.php with call to function in template-functions-post.php.
Forum: Everything else WordPress
In reply to: php/css editors?thanks for the CSSED recommendation, I’d never heard of it before today
Forum: Plugins
In reply to: best way to compare the_title to user_firstnamethis would be on the default post display post – frontpage.
I’m using a clients first and last name as the title for a post. When being displayed back on the “frontpage” of the blog I would like to compare each postings title (client first & last name) to the registered users which in the case of clients is anyone with user_level of 0 (zero).
So I posting title equals Bob Smith that means that this post is some how related to client Bob Smith who is also a registered user with level = 0. When I see posting title Bob Smith which is an echo of $title – I want to compare $title to $name which will be “$user_firstname $user_lastname”.
I’m not having problem calling users and snatching variables assigned to each particular user. Just in comparing $title == $name.
Thanks for any suggestions or pointers of any sort. I’m reading through the templates now. Extra points for code assistance ?? these are clients of a nonprofit.
Forum: Fixing WordPress
In reply to: Add User Info FieldsI just did this last week for work adding client record numbers, counselors & diagnosis info.
The two pages that I changed were users.php & users-edit.php
** users.php
** top of page added in this way
$user_working8 = wp_specialchars($_POST[‘user_working8’]);
$result = $wpdb->query(user_working8)
VALUES
(‘$user_working8’)”);**in the display section as such
$user_working8 = $user_data->user_working8;
echo “\n<tr $style>
<td align=’center’>$user_data->user_working8</td>**in in add new client section
<tr>
<th scope=”row”><?php _e(‘Working’) ?> </th>
<td>
<select name=”user_working8″>
<option value=”Yes”>Yes</option>
<option value=”No”>No</option>
</select>
</td>
</tr>** users-edit.php
$new_working8 = wp_specialchars($_POST[‘new_working8’]);
$result = $wpdb->query(
user_working8
= ‘$new_working8′”);** down below this section allows changing of value
<tr><th scope=”row”><?php _e(‘question goes here:’) ?></th>
<td>
<select name=”new_working8″><option value=”new_working8″<?php
if ($edituser->user_working8 == ”)
echo ‘ selected=”selected”‘; ?>><?php echo ‘Select’; ?></option><option value=”No”<?php
if ($edituser->user_working8==”No”)
echo ‘ selected=”selected”‘; ?>><?php echo ‘No’; ?></option><option value=”Yes”<?php
if ($edituser->user_working8==”Yes”)
echo ‘ selected=”selected”‘; ?>><?php echo ‘Yes’; ?></option></select>
</td>
</tr>Forum: Fixing WordPress
In reply to: Pages but in a other waywow – thanks for that link
thats going to help with things I’m doing
Forum: Fixing WordPress
In reply to: Head #navigationbar usehttps://ppleyard.org.uk/index.php?p=73
thanks for you comments though. this link may help others also.
Forum: Your WordPress
In reply to: New theme based on kubriknice
Forum: Themes and Templates
In reply to: get_calendar(): What file?wp-includes/template-functions-general.php
On line number 374 by changing $daylength from 1 to 3 you have Mon instead of M listed for the days.
before
function get_calendar($daylength = 1) {after
function get_calendar($daylength = 3) {Forum: Plugins
In reply to: wysiwyg for wordpress 1.5I should say that it is easy to download, upload to server, activate the plugin and then start using. My problem was being able to cut or copy information from OpenOffice.org and then pasting it into the post.
If the cut/paste thing isn’t something you have to mess with then everything else is just fine. Just fix the image upload per his instructions & you’re good to go.
At work I only did:
$ locate all.js
sudo gedit /usr/lib/mozilla-firefox/greprefs/all.json lines 397 & 398 change noAccess to AllAccess:
before:
pref(“capability.policy.default.Clipboard.cutcopy”, “noAccess”);
pref(“capability.policy.default.Clipboard.paste”, “noAccess”);after:
pref(“capability.policy.default.Clipboard.cutcopy”, “AllAccess”);
pref(“capability.policy.default.Clipboard.paste”, “AllAccess”);save the edit – close your browser & wordprocessor. open your browser & wordprocessor and give it a try. again this is for coping text from OpenOffice.org and pasting into Firefox – plus this is on a Linux box.
Forum: Plugins
In reply to: wysiwyg for wordpress 1.5Sorry about the hit and run. I used this particular dot zipped file from mudbomb‘s site. He is listed on the Post_Editing section, currently third from the bottom 3-28-05. No it wasn’t “easy” for me but then again I’m not the smartest guy around. ??
macewan – my last post shows a bit of what I did. I’m using it on Ubuntu Linux Hoary with Epiphany but it works under Mozilla and Firefox.
Forum: Fixing WordPress
In reply to: calendar not viewable – wordpress default .15 themeThanks for that question and answer – I’ve just recently started moving sites to 1.5 and this was one of the questions I had.
Forum: Fixing WordPress
In reply to: Admin Panel headerwp-admin > wp-admin.css you want to change
font-size:
#wphead h1 {
font-size: .5em;
font-weight: normal;
letter-spacing: -.05em;
margin: 0;
}Forum: Everything else WordPress
In reply to: Edit user profilesGood deal, thanks for the reply.
Forum: Plugins
In reply to: Profile edits by another user.Yeah, that is what I do also but I wanted to enable others in the office to make changes to clients records. I’ve turned it into a CMS of sorts. We’re a non-profit and I had to get something in place in a hurry, since I’ve been using wp forever it was my first choice.
??
I’ve made quite a bit of dirty hacks to our wp to suit our needs so I doubt posting my hack in this case with help anyone else. But I will share what I did when I get a chance.
If anyone is remotely interest ask me here – I’ve got this posting rss’d in kontact’s summary at work.
cheers,
macewanForum: Plugins
In reply to: Profile edits by another user.Has this not even been considered by anyone? I find that odd.