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

ehsandondiego on "update option in shortcode"

$
0
0

Hi

I'm developing a theme and I need to store some of my shortcode atts every time it loads.

The question is here .. Can this "storing information over and over" make me problems in future ?!


markgeorge714 on "dubai EScoT gils, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ"

$
0
0

dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ
dubai ESco𝓡T gi𝓡ls, +971557385468 ℐnDℐan In ℰScoℛT dubaℐ

2olive on "Select a post by post title, then select corrisponding post meta, then update"

$
0
0

Hi all. A lot of problems in this plugin I'm trying to develop.
A bit of information first.
The plugin is about swimming competitions. I've created two custom post types: swimmers and competitions. Let's focus on competitions because for swimmers is the same thing (actually in my mind).
The name of the competition is the title of the CPT. Competition has got 2 post meta: the date and the pool length.
I've also created a custom table in the database to report the timings each athlete has in each competition.
For the custom table I followed this tutorial
And here are the issues:
1) replace the input box for the competition with a select box, so the user can select among the competitions already inserted
2) once the competition has been selected, update two readonly input boxes with its corresponding post metas
3) hoping to save all this
In pastebin the two versions of the plugin (relevant parts only):
a) the first version of the admin table (it works!!!)
b) the second version of the admin table :(((((

In this last attempt my problems are
- storing the competition selected in the select box (aka the CPT post title) because I'm always getting the last one inserted
- I can't access this post title with $_POST[$item[name]]
- I can't retrieve the post metas

If I change the variables literally with the name of the competition, I can get the post meta but I'm not able to update the infos in the table (JavaScript needed but I can't take it anymore)

I hope I have explained myself. Any help would be greatly appreciated.

PS There are typos in the code due to copy and paste. Sorry for that.

nickyb713 on "Help me kill wpautop!"

$
0
0

Wpautop is driving me crazy. I'm trying to add some sprite buttons on a page, but it keeps placing <p> tags around my closing anchor tags. This breaks my button links and throws off the flow.

Link to my page: chump

I'm at a loss. I've tried changing wpautop to false in wordpress, and I have tried changing wpautop and tinymce to false in my theme as well. I have tried a number of plugins, and even tried passing the html through shortcodes and php. Any help would be greatly appreciated.

Twangy on "My Wordpress site was hacked"

$
0
0

First post. This probably isn't what the 'Hack' forum is for but I'm not sure where to start. Mods: please move to the appropriate forum. Anyway...

Click here for the site that was hacked. I was working on this a few months ago as a mirrored site of my main website. When I went back, I found that it had been hacked. I've had a couple of people look at it but they could not locate the hack. I know I can upload backups which I will do.

Does anybody have experience with this? Is there a file(s) I could upload that someone could take a look at?

Also, what measures would you recommend to prevent this from re-occurring?

Thanks for any help you can provide...

rahyrs on "change url"

$
0
0

Hi,

In woocommerce plugin:
Is there any way to change the link / URL of the product title in the order table on Order Received page ?
Or, simply add a button to each line (corresponding to each product ordered) which is linked to a custom page?

Thank you
ps: I'm not a programmer nor a developer so please be precise and specific.

Rio

amovingstory on "error message in top left hand corner, white screen"

$
0
0

Hello. I logged into my account this morning to update my password and check my security. When I updated my password, I received a white screen with an error message in the top left hand corner.

I am assuming that my whole (or most of) site was erased. I am SICK. Can anyone tell me what to even begin to do?

My site is: http://amovingstory.com

When I visit most pages give me the error message. A few, like my last post appear but most are corrupt. I can't even log in which is what worries me.

Thanks

Collleen Griffin on "403 error Forbidden"

$
0
0

I keep getting this code. When I try to login in the admin i get the sane thing. Please help!

Thanks, colleen


shokydada on "wp-config file permission changes automatically"

$
0
0

hi everyone,
on my wordpress site thedigitalrealstate is showing fatarl error for automatic change in wp-config.php file permissions to 600. when i change the file permission with filezilla to 644 and after some days it change back to 600. I don't know why file permissions change automatically.
Some please help to solve this problem.
Thanks in advance

Lucien Taylor on "How to modify additional profile contact values?"

$
0
0

I am trying to modify/sanitize values returned from additional profile fields which I have added using the user_contactmethods filter. I am able to validate and throw errors using the user_profile_update_errors action, but I can't find a way to filter/modify/sanitize values.

Another way of putting it: how do I take a value like Twitter Name, and add a '@' character if there isn't one - I don't need the regex, I am looking for the hook to enable me to run the function against the $_POST['twitter'] before the meta update. The order of things is quite confusing.

kenjox on "[Plugin: Custom Taxonomies] Custom post type and custom taxonomies"

$
0
0

Hi guys.
Am a newbie to wordpress and I would like to display custom post type which is has two custom taxonomies. I would like to group those posts in relation to those two taxonomies it belongs to. From the codex I came across "tax_query" and i have come up with something like this

$args = array(
			'post_type' => 'ved',
			'tax_query' => array(
				'relation' => 'AND',
				array(
					'taxonomy' => 'ved_brand',
					'field' => 'slug',
					'terms' => array('stuv','hwam','metalfire')
				),
				array(
					'taxonomy' => 'ved_type',
					'field' => 'slug',
					'terms' => array('braskaminer','spisinsatser','oppna-spisar')
				)
			)
		);

		$query =  new WP_Query($args);

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

So how can I sought those custom posts using the code I have. My goal is to group them as shown in this image https://dl.dropboxusercontent.com/u/21316108/Screen%20Shot%202013-09-09%20at%206.51.43%20PM.png I will really appreciate if anyone can help me out

http://wordpress.org/plugins/custom-taxonomies/

benjholl on "add dynamic category introduction"

$
0
0

Hello,

on my blog i have a couple of categories (each representing a specific country i have traveled). For each of these main categories, there are a couple of child categories (for each city/place i have traveled).
There are no posts assigned to the parent categories, all posts are included in child categories only.

Now when i am browsing the categories page of one of the parent categories i will recieve all posts of the child categories (i.e. http://garnienicht.de/category/thailand/ will show all posts from subcategories like http://garnienicht.de/category/thailand/bangkok/)
All these Categories pages just display one post per page, to make the archive readable a little bit like a book.
Thats exactly what i want the categories pages to be, just with one small issue, so here my question:
i want to add a dynamic page in front of all these posts, just like a sticky entry which is genereated dynamically and introduces the parent category. More specific:
on http://garnienicht.de/category/thailand/ there are now 23 posts/pages, whilch are correctly displayed in the wp-pagenavi.
I want to add a dynamic entry as page 1, so the new count will be 24 pages, where the first post will be displayed on page 2.
Oh, because i will add categories "on the road" with limited internet access, its essential for me that i dont have to "hard-code" anything like a sticky post for each new category.

The dynamic introducion could be either a php condition in the category.php of my twenty eleven child theme, or speacial content template which will display dynamic content instead of a real post from the database.
I just dont have any idea how to change the query to add this "first page" on each category, or if there is even a better way to do realize this.

WillBontrager on "How to reverse effect of wpautop() and wptexturize() on multi-line shortcode"

$
0
0

I have a short code with multi-line content.

Functions wpautop() and wptexturize() are applied to the shortcode content before my plugin gets a copy of it. The content of this shortcode:

[shortcode]
His name is "Able."
The ball's shape is spherical.
[/shortcode]

Becomes:

<br />
His name is & #8220;Able.& #8221;<br />
The ball& #8217;s shape is spherical.<br />

(Sorry, had to put a space between & and # for entities code to publish.)

How do I reverse the effect of wpautop() and wptexturize()?

For the nonce, I'm putting the shortcode content into pre tags with the plugin stripping out the pre tags before using it.

The content of this shortcode:

[shortcode]
<pre>
His name is "Able."
The ball's shape is spherical.
</pre>
[/shortcode]

Becomes:

His name is "Able."
The ball's shape is spherical.

I don't like the "use pre tag" solution. It seems so inelegant and there may be issues with it I have not yet encountered.

Does anyone know how to reverse the effects wpautop() and wptexturize() have on shortcode content?

Will

altalhi on "I need search engine for more than site"

$
0
0

hi
I have more than a WordPress site and look for the code or Plugin to the work of a search engine in these locations so that the first field of the second word and me the name of the site so that puts the word and choose the location you want to search

Thank you

cbonwp on "get_row associative array not working"

$
0
0

can anyone spare a minute to solve this as i'm going spare?
I call this function from within a template file. The db table is set up correctly but after the get_row the associative array $record fields ID and nrecords return the debug notice "undefined index" and field pflag contains 2 instead of 1.
thanks in advance

function x( $dbstring, $user_id )

{
	global $wpdb;
	global $table_prefix;

	$tablename = $table_prefix . $dbstring;
	$admin = ADMINRECORD;

	$record = $wpdb->get_row("SELECT * FROM $tablename WHERE ID = '$admin'", ARRAY_A);

	if(( $record = false ) OR ( $record = null ))
	{
		return 'dberror';}

	if( $record['pflag'] = ITEMISFREE )
	{
		$msg = 'db = ' . $tablename . ' user = ' . $user_id . ' admin record free item contents = ';
		$msg = $msg . $record['ID'] . ',' . $record['nrecords'] . ',' . $record['pflag'];
		return $msg;}

	return 'ok';
}

[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]


akreuzkamp on "Media Upload to Sharehoster"

$
0
0

Hi,

Our wordpress installation is running on a server, that has a quite slow Internet-connection.
Because of that I'm trying to write a plugin that automatically uploads any image a user wants to insert into a blog post to a specific sharehoster and insert the image from the sharehoster instead of a local file.
I want the user to use the normal media upload dialog of wordpress.

Therefore I somehow need to interfere in the process of uploading and saving the image and inserting it to the blog post.
I need to access the uploaded image and need to be able to manipulate the piece of markup-code the uploader adds to the blog post, but I have no clue how to interfere in that process. How can I achieve this?

Thank you.

GuillaumeS on "Automatically generate username number - Instead of default Username"

$
0
0

How can I automatically generate username number, instead of leaving the choice to the user to take any username ?

First user would be #1000, second #1001, 1003, etc...

I am working on a project where each user have an ID number. I would like to use the default Wordpress username field for this ID number.

So, the user use is ID number + password to connect to the site.

** I will also install a ‘login with e-mail’ plugin so user will be easily abble to connect if he do not remember is number, perfect for brand new member **

biellebrunner on "jQuery x theme incompatibility?"

$
0
0

Not sure if I should be posting this here, or on the "Themes" forum, so I apologize if it's the wrong place.

I recently changed themes, and ever since then some things haven't been working properly, like tabber tabs, a poll plugin, a chat plugin. They worked well with the other theme, but not with the new one. I did some searching, and it seems like it's some sort of jQuery incompatibility, except the jQuery is up to date.

Could anyone take a look at my site for me, and see if that's really the case, or if it's something else? - http://castlefanatic.com.br/
If needed, my ccs: http://pastebin.com/AF7UibQY , header.php: http://pastebin.com/BTq4wAzw and functions.php: http://pastebin.com/XsMSfMSf
Thanks.

Websiteguy on "Submit Button"

$
0
0

How do I make a submit button that works in wordpress?

Thanks
Websiteguy

slyphidine on "[Plugin: Simple Events Calendar] Changing event sort order"

$
0
0

I saw a few questions about this. I answered it on the original question, but thought it might be hard to find. So here it is:

I was able to change the sort order by adding some code to the php file. Within the simple-events-calendar.php file find the following block:

function eventquery($label,$age,$range,$limit) {
	global $wpdb;
	$table_name = $wpdb->prefix . "simple_events";
	if(!is_null($age) && !is_null($label)) {
		$conditions = "WHERE event_label = '$label' AND $range ORDER BY event_start $limit ";
	} elseif(!is_null($age)) {
		$conditions = "WHERE $range ORDER BY event_start $limit";
	} elseif(!is_null($label)) {
		$currentTime = time();
		$conditions = "WHERE event_label = '$label' AND event_end >= $currentTime ORDER BY event_start $limit ";
	} else {
		$currentTime = time();
		$conditions = "WHERE event_end >= $currentTime ORDER BY event_start $limit ";
	}

In the four places after the $limit" part, add DESC. So the first instance would change from:

$conditions = "WHERE event_label = '$label' AND $range ORDER BY event_start $limit ";

to

$conditions = "WHERE event_label = '$label' AND $range ORDER BY event_start $limit DESC";

The 4 separate lines are for when there are limiters placed in the events tag (such as [events age=expired]. With this, I was able to just place it on the limiter for age. That made my upcoming events in ascending date order, and my past events (the ones that used the age limiter) in descending order.

Hope that helps!

http://wordpress.org/plugins/simple-events-calendar/

Viewing all 8245 articles
Browse latest View live




Latest Images