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

Mads Phikamphon on "SQL query surveillance"

0
0

Hi,

I need to check how WP/Woocommerce queries the database, so we can make an administrative tool for our shop.

So is there a way to view/log how WP/Woocommerce queries the database?

For example a debugging plugin or a "secret" WP setting.

Thanks,
Mads


spinosa2 on "Link to lightbox with different pictures"

0
0

I am using a portfolio grid plugin to list my projects. It lists small thumbnails that can either link to a regular link or open up a picture in a lightbox. The only problem is that the lightbox contains only one picture per grid item.

Say I have 10 projects in the grid. What I want is that clicking on one item opens up a lightbox with all the pictures related to that project (like a gallery).

This cannot be done with the plugin I am using.

However, there is the possibility of linking to a regular link. There are also fields for the rel and target tags. I was wondering if there was a plugin or a way that would allow me to create galleries, one for each project, and then link to it using that function.

Kind of using a 3rd party lightbox plugin instead of the one inbuilt the portfolio grid plugin.

Is there a way?

Thank you.

_alexsmith1 on "Need help coding a Twitter share button"

0
0

Hello all,

I need a bit of help creating a Twitter share button for my site. The one I'm using via the coding found on Twitter's dev page (https://dev.twitter.com/docs/tweet-button) is very close to what I need, but with one issue: it's using the page's title rather than the post's. The page title includes the name of my site as a prefix "The Original Society | [Post Title]". I want the text of the tweet to be in the format: [Post Title] [url] [via @origsociety1] instead of what I have now: [Page Title] [url] [via @origsociety1] using a share button with a vertical count box above. The code I'm using now is listed below, please help me adjust it as needed, thanks.

Also, here's a link to a post on my site: http://theoriginalsociety.com/eric-bellinger-i-dont-want-her-feat-problem-music-video/ please scroll towards the bottom of the post and click the tweet button to see its current behavior.

<div class='twitter-share share-widget'>
							<a href="https://twitter.com/share" class="twitter-share-button" data-via="origsociety1" data-lang="en" data-count="vertical">Tweet</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
						</div>

5ngua on "is it possible to host wp-content on other sever?"

0
0

Hi,
I am not going to change wp-content, just leave it's path and structure. I just want to host it on an other sever, it that Ok?
Thanks,

terrace_29 on "Thumbs In Front Page Widgets [sticky]"

0
0

I'm using the tribbiani theme http://wpdemo.rohitink.com/, I've made more than several attempts at contacting the author of this theme, however I've heard nothing back and after the amount of time that's past, I do not expect to.

So forgive me as my issue certainly should be something that someone her could give me some insight into.

I'm unable to put the thumbnails into the landing page widgets, the existing themes I use simply require that I set the image using the 'feature image' function found in the posting page. And just like some other themes, I'm unable to load the images due to the error message that 'cannot create directory', and that being the standard /wp-content/uploads/... I'm still not certain how to repair that error.

I've also tried to add the image <img src="...> in the 'excerpt field, but it does not appear in the landing page widget.

I'd like to think I know how to work this out, but the fact is I don't have a clue. I do feel however it is an easy fix, this information doesn't register for me http://codex.wordpress.org/Function_Reference/post_class The fact is I'm simply not learned enough, would someone be kind enough to point me in the direction of finding the method of adding the thumbnails in the landing page widget? Thank you in advance

seyedrezabazyar on "Limit posting by authors"

onirisweb on "wp_is_mobile doesn't work with my theme"

0
0

Hi there,

It seems that I have a conflict with wp_is_mobile function and my theme which is OneStudio.

I would like that some parts appear only in the mobile version, that's why I want to use this function. But nothing happens :(

Here is an example of my code (in case of I haven't programmed it correctly):

if ( wp_is_mobile() ) { ?>
						<header id="logo" class="col grid2<?php if(empty($smof_data['custom_logo'])) echo ' text-version'; if(!empty($smof_data['hide_header_menu'])) echo ' no-menu'; if(!empty($smof_data['logo_expand'])) echo ' expand'; ?>">
		</header>
				<?php  }    ?>

I tried plugins that propose the same kind of option. Same result = no result.

I precise that other conditional tags like if(is_page('mypage')) work.

There's no installed plugin on my site.

I tried to contact the theme author...he says that there is no problem between his theme and the function, which isn't true.

I am sure that there's a function from the theme blocking the mobile detection function.

How can I see that and solve this issue ?

Thanks for your reply

gnarayan on "Inserting the random number generator shortcode properly"

0
0

Probably easy but I'm failing:

I'm using this plugin to say something like "11 people used this information today."

http://wordpress.org/plugins/random-number-generator-shortcode/installation/

But the number renders at the top of the post using shortcode:
[randomnumgen min='' max='' numtogen='']

I obviously want the number to render at a few different places within the post...any ideas how to fix this?

thank yew!


norasp on "Php mistake with plugin"

0
0

Hi there!

I've recently installed a payment module plugin. It seems to be working perfectly except for a little bug that really annoys me.

Just a second before being redirected to the tpv or payment page I get this message:

call_user_func_array() expects parameter 1 to be a valid callback, class'\GFP_Redsys´ does not have a method ´set_entry_meta´in /home/namarga/public_html/wp-includes/plugin.php on line 429.

So, apparently it's a usual problem with this plugin and the support guys in the company tell me to change the variable display_errors to false so the mistake is not shown.

First of all, I don't know where to find this particular variable within all the php files and second, I really don't know if this is the appropriate thing to do since, if there's an error, it would not be displayed hence, I would not be able to fix it if needed.

Could anyone advice me in that matter?

Thank you

Nora

Joe Hesse on "Query from non-wp database"

0
0

I have another database on my server besides the wordpress one.

I want to do a query on a table in this database and have the result of the query appear in a wordpress page.

I know MySQL and can pick up the necessary PHP.

Please point me to some documentation that will help me. I just have to see some examples and will be able to figure it out. Perhaps something like how to write PHP code to create a wordpress page

Thank you,
Joe Hesse

AgilityJeff on "Find a user's ROLE"

0
0

My client has purchased a poorly written Plugin which meets their needs pretty well, but leaves me with needing to do so additional coding.

I have had difficulty finding an answer in the documentation - so I thought I'd just ask the "smart people" here for help. Thanks in advance for your assistance with this!

The plugin was hard-coded to only appear as a menu option for WP users with the "Administrator" role. My clients never get a role higher than Editor as there are a lot of things I don't want them touching. I'm the only Administrator!

So the key to my being able to modify the code is to grab the user's role, then IF ( the role is editor or administrator ) ... include the plugin in to the menu.

They're using:
add_menu_page('PrayBox','PrayBox+','administrator','pb_settings','pb_settings_page',plugins_url().'/praybox-plus/images/favicon.png');

... to display the plugin on the menu. I would like to substitute the user's role for a hard-coded 'administrator' when passing the parameters to this function.

How do I obtain the current user's role?

PLEASE DON'T TELL ME ABOUT A PLUGIN TO ASSIGN USER ROLES / CAPABILITIES. I have already tried several of those without success - the way to fix this is in the plugin code ... period. Thank you!

mschadegg on "Wordpres TinyMCE button, will not open window"

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

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?

tfola on "Help!!! (Plugin) Infinte scroll not working"


FuckGettyImages on "how to avoid getty images in feeds and posts"

0
0

Given the complete douchebaggery of Getty images and their c*nt attorneys, is there a way to refuse to serve getty images on my website?

jasonkwall on "proper syntax for using page_id"

0
0

I have a child theme installed and a custom css file that I am using to make all of my edits. Currently I am trying to reference a certain page... page#825-2, it is a page not a post. I am trying to remove a boarder and a background color for an image on that page only. By default the theme that I am using puts a boarder and a background color within that boarder to surround all images. So far the code that I have is:

.entry img {
	padding: 0px;
	border: 0px solid #e6e6e6;
	background:#ffffff;
}

this code works but it applies itself to the site as a whole. I only want to apply to a certain page. What would the proper syntax be for this?

stiffymcspliff on "Problem with add_feed"

0
0

I'm building a plugin to provide XML feeds for my Roku channel.

I have the custom feeds working fine, but when I create new categories they work fine when I visit them in my browser, but when I use a 3rd party (XML validation service or Roku) I get a 404.

The initial 4 categories are working fine and work like the following:

myUrl.com/feed/customfeed/?cat=1
myUrl.com/feed/customfeed/?cat=2

Feeds 1 - 4 work fine, but 5 & 6 do not work other than if I view them in my browser.

Any ideas?

5ngua on "host wordpress database in an other server"

0
0

Hi,

I wonder if we can host wordpress database (mysql) in an other server which is not the server storing the content (source code, uploads files, plugins, theme...)

Will that make any performance and security improvement? Is there any service specialized in hosting only database?

Thanks

magootim on "FORCE_SSL_ADMIN"

0
0

I'm trying to make my admin section a bit more secure by using define('FORCE_SSL_ADMIN', true);
I've put this line of code in my wp-config.php file fine. I understand that this then tells the browser to look for admin files under https.

My problem is this: my hosting company puts my ssl folder under a completely different domain. Is there an easy way to reroute FORCE_SSL_ADMIN to this domain rather than just https of my existing domain?

Viewing all 8245 articles
Browse latest View live




Latest Images