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

derekbeck on "hook to end of a page or post?"

$
0
0

What hook or process is being used for Jetpack Sharing to hook to the end of a post or page? I'm trying to duplicate this in my own tinkering for a child theme. Thanks!


holyxiaoxin on "Embedding PHP dictionaries in Post"

$
0
0

Problem: I have a complex dictionary
eg: {"numberOfQuestions":"5", "question1":{"question":"how many oranges are there?","questionType":"multiple","option1":"1","option2":"2","option3":"3"},......} (you get what i mean)

that i need to store in the database.

I was thinking of using postmeta to piggieback posts that would be stored in the database. But since postmeta only allow only key=>value pairs, and dictionaries are more complicated, how should i go about it? Or is there any way to send my complex dictionaries over to the database? I would love to explore any options. Thank you.

TLDR: How to embed complex dictionaries into key=>value post meta?

rocke on "Get all Post as per Category and Tag ( from url parameter)"

$
0
0

I want a custom page where i can get all post as per Url Parameter ( cat and tag )

<a href="localhost/celeb_page.php?cat=38&tag=aamir-khan" >View All Photo of Aamir</a>

hence if some one click above link then the post related to aamir khan will be seen as per its cat id and tag

can any one help me?

note its not any custom post and nor custom taxonomy

TheOwlLady on "Contact7"

$
0
0

I am trying to update emails using Contact7. I am getting a page not found error message. The forms that I have created in the past are working fine. I am using twenty-ten theme. Don't know the PHP version.
I have used copy and paste to copy the short code, and used a hyperlink to attach the short code to the persons name.
The website is caloosabirdclub.org and the contact page is under the "about us" drop down.

Saurabh Jain on "How to check who created a user"

$
0
0

Hi all,

In my WordPress site many users have rights to create other user.

Is it possible to check which user is created by whom?

pasqualino7 on "Delay\schedule user activation email"

$
0
0

Hi,

how can I delay the email sent out by Wordpress after a user registration?

For example: user register and notification email goes out after 1 hour.

stylishjm on "Fetch Feed - unable to change feed cache time from default 12 hours"

$
0
0

So I'm using WordPress's fetch feed function to display an RSS feed of latest posts from our vBulletin forum on our home page (see function reference here)

Here is what I've currently implemented (minus unrequired divs etc.)

<?php
include_once( ABSPATH . WPINC . '/feed.php' );
//Url for forum rss feed
$rss = fetch_feed( 'http://www.grimeforum.com/forum/external.php?type=RSS2&forumids=2&lastpost=1' );
if ( ! is_wp_error( $rss ) ) :
// quantity of posts to display
$maxitems = $rss->get_item_quantity( 4 );
$rss_items = $rss->get_items( 0, $maxitems );
endif;
?>

<?php if ( $maxitems == 0 ) : ?>
<?php _e( 'No items', 'grimeforum' ); ?>
<?php else : ?>
<?php foreach ( $rss_items as $item ) : ?>
<div class="forum-post">

<img src="<?php bloginfo('template_directory'); ?>/img/unknown.gif" alt="<?php echo esc_html( $item->get_title() ); ?>" width="35" height="35" />

<a href="<?php echo esc_url( $item->get_permalink() ); ?>" target="_blank" title="View thread on the forum">
<?php echo esc_html( $item->get_title() ); ?>
</a>

Posted by
<?php if ($author = $item->get_author()){
echo $author->get_name();} ?>
<?php printf( __( 'on %s', 'grimeforum' ), $item->get_date('g:i a') ); ?>

Now that display fine, however it is caching every 12 hours. I need this to be more often (every 30 minutes to be exact).

I've tried adding the following to functions.php as described here.

function return_7200( $seconds )
{
  return 1800;
}

add_filter( 'wp_feed_cache_transient_lifetime' , 'return_7200' );
$feed = fetch_feed( $feed_url );
remove_filter( 'wp_feed_cache_transient_lifetime' , 'return_7200' );

It's still caching every 12 hours. Is there something I'm misunderstanding?

krautcomputing on "Plugin tags don't show up"

$
0
0

Not sure if this is the right place to ask, but I'm the author of the ProductWidgets plugin and if you look at the plugin description you will notice the tags don't show up at the bottom. The plugin also doesn't appear on any of the tag pages.

The tags in the readme.txt of the plugin are: affiliate widget, affiliate widgets, affiliate, affiliate plugin, affiliate plugins, affiliate marketing, amazon affiliate, amazon affiliates, amazon associate, amazon associates

The only rules for tags I could find is that there should be at most 12 of them, I have 10, so that should be okay.

Can anyone think of another reason why they don't show up?
Thanks!


JLocke17 on "Index.php getting replaced."

$
0
0

Hello,

For last 24+ hours, some guy is automatically changing my index.php content. I replaced it and fixed it many times, but this guy keeps doing it somehow.

I even changed file permission and changed all credentials. But he even changed the permission of files and edited the index.php.

The site has lot of posts and comments. I don't want to lose anything.

Please help. How do I fix it?

Thank you.

TellStevens on "Easily upload data from a spreadsheet to custom post"

$
0
0

This may not be the right place to post this but I thought it might work. What I'm trying to accomplish is upload a large amount of results for an event after the fact. My customer keeps the results in a spreadsheet and it would be very simple for them if I can make to so that they can upload the information and have it display beautifully. I've looked around and I can't find anything that looks like it would work quite the way I'd like.

My plan is to create a custom post type, enter some event data, add pictures of the winners and then upload all of the results.

Here's an example of the type of data I'm displaying.

Any advice?

Saurabh Jain on "How to hide status counts of post"

$
0
0

Hi all, i have site where different users can post data.

1)When i view the list of Posts, it give me option of "Mine(2) All(7) Draft(1)" i want to hide all other option except "Mine(2)".

2)I updated function.php to show only logged in users posts. It works fine but now the problem is, in output it show 3 posts and in status list count it shows "All(7)" which should be "All(3)".

mme on "Hiding Elements for other admins"

$
0
0

Hi,

I am trying to hide certain admin elements for other administrator users as I am trying to get rid of any items they should not need to simplify the backend

This what i have so far but its not working

global $current_user;
if($current_user->user_login != 'webmaster')
{
  // Do stuff here

}

This is put into a custom plugin it hides everything I need but it seems to ignore the user 'webmaster' is well and also hides the elements.

Any suggestions on why this is not working?

Thanks in advance

Med_Admin on "Potential Website Hack"

$
0
0

Hello, I am the webmaster for the Triangle Chapter of the Case Management Society of America. While performing maintenance on the site, I found that someone has been inserting links to spam websites into our website's code. I have already changed the admin password for our site and have installed the "Anti-Malware (Get Off Malicious Scripts)" plug-in for our website. I am including a copy of the code found on our website:

[ Hacked spammy content deleted, please do not post that in these forums ]

If anyone has any ideas how to make this stop, please let me know. Thank you very much for your help.

anjanphukan on "Fetch content from an external link"

$
0
0

Hi,

If I post an external link in a blog post is it possible to fetch thumbnail, content/excerpt from that link?

Please help.

dubcznic on "WP_EDITOR on Frontend in bootstrap modal doesnt work properly"

$
0
0

im stacked on one problem. in my plugin, i open a bootstrap modal and inside it i want to display the defaul WP editor, called by the function wp_editor(). What i get is the textarea with buttons and the button ADD MEDIA, like it displays in admin section. but i cant put focus on the textarea, and its giving me JS error in console when clicking the ADD MEDIA button, or trying to put focus. it acts like an input with "disabled" attribute. When i display the editor with the same code but NOT IN MODAL, its works well.

the code i use is:

$settings = array(
    'textarea_rows' => 20,
);
wp_editor('<p>Some more content</p>', 'textareasaaaaaaa', $settings);

and the HTML structure of bootstrap modal (not iframe):

<div style="display: none">
    <div id="designizer_ajax_dialog_confirm_delete" class="modal fade dialogWindowWrapper">
        <div class="modal-header">
        </div>
        <div class="modal-body">
        ...

i made a video here for better inside view: http://screencast.com/t/Lyc3ANzqu
here you can see that it works when not in modal: http://screencast.com/t/yA2CvLFTAM

Do you have an idea how to make it works? maybe some DOM problem with initialization? Thanks for any info.

// i use bootstrap modal for its multi-modal open, which allows me to have 3 modal open f.e.


lhandey on "POP UPS"

$
0
0

My site is getting pop ups how do I get rid of them? I think it might of been a plugin that was updated on my site. Please help me this is such a pain!

muadem1 on "View pass when login WP in my LAN"

$
0
0

Hi all,

I have Big broplem with security. When i or hacker in lan in company use cain&abel

they can give my password. You can see it in my video! Can you fix this error for me!! I think it very and very important

I have my LINK : http://goo.gl/3WLaji
and pass: 1123

I test same error in wp 4.0

My site i view in my server!!

Thanks

pescadito01 on "Comment with feature like 'Seen at hh:mm' in Facebook for P2"

$
0
0

I'm searching for a plugin or P2 feature like Facebook that let me kwow who has 'Seen' each comment or if it's for a private message the other user has 'Seen' that message and at the time he viewed it?

Could anybody help me pointing some link or information?

Best Regards, Pescadito

photocurio on "Can menu items get custom field values from the post they link to?"

$
0
0

Wordpress' menu system loads objects called $item for every menu link. The $item object contains the title from the post or page it links to. I'm wondering if I can make the $item contain other stuff, like a value from a custom field on the post?

I realize that I can enter a value in the 'description' field on the link, when I edit the menu. But it would save much repetitive editing if I could enter a value on custom field on the page or post, and have that value display on the menu?

bradical911 on "Search not displaying results for multiple word queries"

$
0
0

Hi,

My search is not displaying results for multiple word queries.

For example if you type in one word from a title into search it'll find the posts with that title but if you have a combination using that same word and another from the body text then I get page not found.

Eg: search "dogs" works
search "dogs everywhere" wont show any results.

My search.php page is quite simple with a loop containing page title, excerpt and thumbnail if there is one

Viewing all 8245 articles
Browse latest View live




Latest Images