Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all 8245 articles
Browse latest View live

WP-hamilton on "Avatar doesn't have a link"

0
0

Hi everyone,

I have not found any support for my new avatar url issue.

On my site post users can comment and they have an avatar (no url). How is it possible for anyone to click on any avatar and go to a custom url.

Something like:

$user comment => set_avatar_url= 'http://www.wordpress.org';

Any replies will help. Thank you.


weirdrat on "how to eliminate google-fonts totally"

0
0

hi, can anyone please help a non-scripter like me to get totally rid of google-cloud-fonts in the wordpress-hardcode ? Not only deactivate them - I found several scripts for this - but what do I have to cancel from the wordpress basic code to eliminate any google-connection like if it never had existed .. and other question: are there still enough "normal" self hosted fonts inside ? I saw that even the dashboard now uses this google-crap and want my normal fonts like arial, helvetica, verdana etc back and dont want to leave a trace of this spy-crap google - and please I do not need any advices how useful google fonts are etc - I just want to get rid of them .. thanks a lot in advance .. the rat

waqastahir99 on "I am superuser but I am not superuser..help?"

0
0

I am super user I mean I have access to all things like phpmyadmin hosting account and ftp and all things but there is no super user in wordpress I want to access the network/settings.php but it says you do not have sufficient permission to access this page I want to become super user on my website
I am super user but I am not super user
because I am Then I wanna be Super User

matuh on "Customizing a plugin"

sicktb on "Add a comment field"

0
0

Dear all,

Im trying to ad a custom comment field that works the same as the "Message" field. I found all topics and tutorials. But my php skills are not realy updated.

What did i add? I put 'test'. This is how i now tryed to edit the comment-template.php

add_filter('comment_form_default_fields','add_comment_fields');

function comment_form( $args = array(), $post_id = null ) {
	if ( null === $post_id )
		$post_id = get_the_ID();
	else
		$id = $post_id;

	$commenter = wp_get_current_commenter();
	$user = wp_get_current_user();
	$user_identity = $user->exists() ? $user->display_name : '';

	if ( ! isset( $args['format'] ) )
		$args['format'] = current_theme_supports( 'html5', 'comment-form' ) ? 'html5' : 'xhtml';

	$req      = get_option( 'require_name_email' );
	$aria_req = ( $req ? " aria-required='true'" : '' );
	$html5    = 'html5' === $args['format'];
	$fields   =  array(
		'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Name' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
		            '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',
		'email'  => '<p class="comment-form-email"><label for="email">' . __( 'Email' ) . ( $req ? ' <span class="required">*</span>' : '' ) . '</label> ' .
		            '<input id="email" name="email" ' . ( $html5 ? 'type="email"' : 'type="text"' ) . ' value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' /></p>',
		'url'    => '<p class="comment-form-url"><label for="url">' . __( 'Website' ) . '</label> ' .
		            '<input id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" /></p>',
	);

	$required_text = sprintf( ' ' . __('Required fields are marked %s'), '<span class="required">*</span>' );
	$defaults = array(
		'fields'               => apply_filters( 'comment_form_default_fields', $fields ),
		'comment_field'        => '<p class="comment-form-comment"><label for="comment">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>',
		'test'			=> '<p class="comment-form-comment"><label for="test">' . _x( 'Comment', 'noun' ) . '</label> <textarea id="comment" name="test" cols="45" rows="8" aria-required="true"></textarea></p>',
		'must_log_in'          => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
		'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
		'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
		'comment_notes_after'  => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
		'id_form'              => 'commentform',
		'id_submit'            => 'submit',
		'title_reply'          => __( 'Leave a Reply' ),
		'title_reply_to'       => __( 'Leave a Reply to %s' ),
		'cancel_reply_link'    => __( 'Cancel reply' ),
		'label_submit'         => __( 'Post Comment' ),
		'format'               => 'xhtml',
	);

And here i edit the 'test' in the comments.php from the theme

<?php $comment_args = array( 'title_reply'=>'Got Something To Say:',

'fields' => apply_filters( 'comment_form_default_fields', array(

'author' => '<p class="comment-form-author">' . '<label for="author">' . __( 'Your Good Name' ) . '</label> ' . ( $req ? '<span>*</span>' : '' ) .

        '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' /></p>',  

    'email'  => '<p class="comment-form-email">' .

                '<label for="email">' . __( 'Your Email Please' ) . '</label> ' .

                ( $req ? '<span>*</span>' : '' ) .

                '<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />'.'</p>',

    'url'    => '' ) ),

    'comment_field' => '<p>' .

                '<label for="comment">' . __( 'Let us know what you have to say:' ) . '</label>' .

                '<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>' .

                '</p>',

    'comment_notes_after' => '',

        'test' => '<p>' .

                '<label for="test">' . __( 'Hoe maak je kaas?:' ) . '</label>' .

                '<textarea id="test" name="test" cols="45" rows="8" aria-required="true"></textarea>' .

                '</p>',

    'comment_notes_after' => '',

);

comment_form($comment_args); ?>

zubair.am on "How to modify HTML of posts"

0
0

Hi,

On my blog I've close to 20 posts. I want to modify the <H3> tag that encapsulates headings inside my posts to add a class. For example, in my post I have a heading like <h3>My custom heading</h3>

I want to change the post to add a class to the H3 like <h3 class="H3Heading">My custom heading</h3>

I do not want to manually go and modify each and every post. What is the best way I can modify HTML of all the posts?

Any plugin that can help me?

Tyler on "Plugin suggestions for work order request system"

0
0

Hi, I'm looking for a few suggestions on how to run my site better.

This is how it works now:

- Client registers and is assigned a custom a work order form (Easy Contact Form) and that form is viewed from a Private Page (Customer Area plugin)
- Client requests work order by filling out the form (Easy Contact Forms)
- Email from the form is manually copy and pasted into a new Private File page assigned to the client. (Customer Area plugin)
- Work is performed in field.
- Work crew uploads photos to Dropbox
- Office staff downloads photos from Dropbox, zips them, and uploads them to the Private File page associated with that work order.
- Office staff creates invoice for work order and sends to client. (Web Invoicing and Billing) and links invoice on the Private File page.

What I really want it to do is AUTOMATICALLY create new a Private File with the information from the contact form, so that the office staff doesn't have to manually copy and paste from the email the form generates. Also, I want to streamline the order completion and invoicing process a little more.

I've been looking at WP-Client for a more all inclusive customer portal/private files/crm/invoicing system (right now I use 3 separate plugins for this), however it doesn't seem WP-Client has a front-end ordering system. Are there any good plugins out there for taking form results and creating a post?

baglio on "Plugin request for user subscription"

0
0

Hello,

I'm making a website where I need to let users subscribe (via a form) to various events.
Since the company whose I'm making this website uses CSV files to store users information in its proprietary software, I was looking for a plugin which can export the user data in a CSV file.

I've been looking around with no fortune for now... I wonder if somebody cold help me find such plugin. The best would be if it would come free!

Thank you in advance!


magician11 on "confirm email address"

0
0

Hi,

Where would I begin by customising a form submission that first emails the person who submitted the form a link to check to confirm their email address.

I.e. "click here to confirm your email address"

I'm using Contact Form 7. I'm happy to code something.. but not sure where to start in generating and confirming that link?

cheers,
A

jerryskate on "link javascript and css correct."

0
0

Hi!

Ive been trying to add some javascript and a css-sheet that i at the moment have hardcoded in the header. Something is wrong with my plugin that calls the query twice, or something like this, and i hope correct linking will solve it. Ive tried a bunch of guides to use Enqueue functions, but haven't had any luck, so I'm turning here to see if anyone could give me a idiot-proof way to do it.

The code I'm using at the moment in the header:

<link rel="stylesheet" type="text/css" href="/wp-content/themes/neighborhood/js/jquery.fullPage.css" />

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js"></script>    

<!-- This following line needed in the case of setting the plugin option <code>scrollOverflow</code> to <code>true</code> -->
<script type="text/javascript" src="/wp-content/themes/neighborhood/js/vendors/jquery.slimscroll.min.js"></script>

<script type="text/javascript" src="/wp-content/themes/neighborhood/js/jquery.fullPage.js"></script>

Nagytalp on "Display custom taxonomy part as "label on image" @home"

0
0

Hi!

I have this code:

< ?php
$p_terms = get_the_terms( $post->ID , 'tagportfolio' );
print_r($p_terms);
if ( $p_terms && ! is_wp_error( $p_terms ) ) {
$term_links = array();
foreach ( $p_terms as $p_term ) {
$term_links[] = $p_term->name;
}
$termslinks = join( ", ", $term_links );
echo '
'.$termslinks.'

';
}
?>

I wanna show the name of the custom taxonomy on the featured image on my home page as a clickable label. This code is works and the solution is inside of the but I don't know where.

At this moment the result look like this:

Array ( [6] => stdClass Object ( [term_id] => 6 [name] => Allegro [slug] => allegro [term_group] => 0 [term_taxonomy_id] => 45 [taxonomy] => tagportfolio [description] => Zene-bona [parent] => 0 [count] => 5 [object_id] => 1342 [filter] => raw ) ) Allegro

What I need is the last word! In this case the "Allegro".

And if can anybody tell me the perfect code for the solution then how can I style this label?

Another problem is in this case: When mouse over on this "result" the whole picture flashes extremly fast.

My site is here: http://www.irodalmibableves.hu

Thank You!

alisalem on "Only Admins and the post author can view a post, is it possible?"

0
0

Hello,

I have a site where my clients click on New Order icon then fill up some form (jquery) and this order will be consider as a post so the orders look like this:

http://www.mysite.com/order-1
http://www.mysite.com/order-2
http://www.mysite.com/order-3
http://www.mysite.com/order-3

Now, everyone could see the order details by pasting the links above in their browsers. I want to restrict the post visibility to admins and the client only, I know there's a way to keep posts password restricted by a password, but I wonder if it's possible to have only the admin and logged in client see his/her order for example :
http://www.mysite.com/order-2

I try to find an available plug in but I could not find any. my question is, is it difficult t make? and how much it would usually cost to make a customized plug in like that.

Thanks
A

stevecoy on "Category permalinks with custom post types"

0
0

I have a custom post type, Videos. It uses standard WP taxonomies (categories, tags).

$videoargs = array(
		'labels' => $labels,
		'public' => true,
		'publicly_queryable' => true,
		'show_ui' => true,
		'show_in_menu' => true,
		'query_var' => true,
		'rewrite' => array('slug' => 'video', 'with_front' => 'false'),
		'has_archive' => 'videos',
		'hierarchical' => false,
		'capability_type' => 'post',
		'menu_position' => 20,
		'menu_icon' => $icon,
		'taxonomies' => array('category'),
		'supports' => array('title','thumbnail','excerpt','comments')
	  ); 

	register_post_type( 'li_video', $videoargs);

The archive page for viewing all videos is at mysite.com/videos, using theme file archive-li_videos.php. I would like to be able to view different categories, showing videos only, at a URL like this:

mysite.com/videos/my-category-name
OR
mysite.com/videos/category/my-category-name

I know this is possible, because I've seen a plugin do it, but said plugin has really huge architecture and I can't figure it out.

I know I could easily pass a query string parameter like mysite.com/category/my-category-name?view=videos and alter the query parameters accordingly, but I'd like to avoid this. I also do not want to register a separate taxonomy for my custom post type, because then users will have an extra thing to keep track of. And it seems like this is doable.

Thanks for your help!

sirfwaqas on "Event list -"

0
0

Hi,

I have table of event list for future events and now I created a separate page for showing past events list but I want to use the same table formatting as I have for future events.

Any idea? I am using shortcode for past events list [events_list scope="past" order="DESC"]

Future event
<table cellpadding="0" cellspacing="0" class="events-table" >
<thead>
<tr>
<th class="event-time" width="150">Date/Time</th>
<th class="event-description" width="*">Event.</th>
</tr>
</thead>
<tbody>
<tr>
<td>
#_EVENTDATES
#_EVENTTIMES
</td>
<td>
</tbody></table>

David on "wp-editor wont post content at first"

0
0

I'm using wp-editor in a simple plugin, but I'm having an issue where the first time I hit the submit button the content from it is blank in the database.

<?php
$editor_id = 'mycontent';
wp_editor($content, $editor_id );
?>

So I tried alerting the content using this:

if (j(".wp-content-wrap").hasClass("tmce-active")){
   alert( tinyMCE.activeEditor.getContent());
}else{
   alert( j('#mycontent').val());
}

and the first submit comes up empty. If I switch to the text version before I submit, it works.

What am I doing wrong here that prevents the submit from working?


Pete on "Display a specific level of a category tree"

0
0

I'm trying to find a way to display a specific category level of a post.

For example. I have a post with a hierarchical category tree structure like below...

Parent cat
Child cat A
Child cat B
Child cat C

I'm looking for a nifty piece code I can use within the loop that will allow me to display any of the category levels, not all the levels.

Clear as mud? :)

Thanks heaps - Pete

crdipu on "How to get all registered Post status?"

0
0

All,
I would like to get all post status those registered in WordPress(including custom post status), is there any codex function available for the same?

Thanks in advance

eventkonsulterna on "I want to Toggle Woocommerce Add-on choices"

0
0

Hi.
Im working with WooCommerce and have a lot of add-on's for products.

Example: You can buy a Pizza for X and than add extra toppings/sauces/etc on the side. I would love to be able to toggle the different categories so it looks nice and neat. I just upgraded to the latest woocommerce.
Would love to get this fixed =)
Thnx

jokr on "Permalink for custom feed not found"

0
0

Hi all,

In a plugin I would like to add a custom feed. I have done this as follows:

add_action( 'init' , array($this, 'init_function'));
public function init_function() {
	add_feed( 'custom', array($this, 'get_custom_feed') );
}
public function get_custom_feed($comment) {
	echo 'custom feed'
}

Now the following url is working as expected:
http://www.example.com/?feed=custom

But with permalinks it is not working: http://www.example.com/feed/custom

It works for existing feeds.

get_feed_link( 'custom' ) returns the permalink and there wordpress returns Page not found.

Does anybody have an idea why?

lothsun on "Check for files on page load or specified time each day"

0
0

I am trying to create a custom post type for the sermons on our church website. I want to be able to set something up the will check the folder for new files and if they are found, create a post for them. I have most of it set up except I can't figure out how to go about checking for the new files automatically. I'm making this so all I have to do is upload the file to the folder and walk away.

Viewing all 8245 articles
Browse latest View live




Latest Images