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

Maynard on "Looking for some advice on a filter-gallery functionality"

0
0

Hello!

I've been working with wordpress building sites for clients for a couple of years, and I have a lot of experience with tweaking layouts and their css for the most part. I can code html and css comfortably enough, though I usually use Adobe Muse for non-CMS related projects, and I'm somewhat familiar with php and jquery. I've gotten through a few projects heavily modifying the php of a couple of different layouts, so my confidence in my ability to get the end result is pretty strong.

Now that you know about me, what I'm trying to do is a rather unique image gallery setup. The layout is a fixed sidebar on the left and a responsive gallery to the right. This gallery would be several dozens/hundreds of thumbnails all at a fixed height but varying widths, and all images would be aligned to the left and covered with a 50% black overlay. This would be like an infinite gallery so it loads quickly. There will be a list of several categories on the left hand sidebar, and when you hover over the category the overlay will be removed from those thumbnails in the gallery on the right hand side, giving it a 'highlight' effect. When the category is clicked, it will open a gallery page of just those images on a carousel type setting. This second carousel gallery is not a problem for me to make, but the hover-over-category-name-to-highlight-those-images seems difficult.

I've done a lot of research and found some portfolio gallery plugins I would be glad to purchase that do almost what I want, but none have the "trigger/category name" on the left hand side, always at the top. Most of these plugins require a fixed image width as well. I would like the rows of images to be responsive.

I'm thinking this may be able to be achieved by having a page of posts that are all floated left with no borders or spacing between, but the last piece of the puzzle is that highlight-hover feature. Could somebody please point me in the right direction for this? I know it may be a lot of work, but I've got to get it done and I'll learn anything I need to. I just want the most effective way of doing what I'm talking about. I know this can be done, I just need to have a good idea of how to execute it.

Thanks in advance, and I'm sorry if I'm being super vague. I can make a design mockup if you wish. I could even make the pages from scratch with all the functionality I need, I just need the content to be able to be changed without changing the whole site, so that's why I've come here. Please let me know!


rocke on "Post / Page - Own Page (theme)"

0
0

Hi,

I want to make a page where on each tags :
My page should look alike : http://www.missmalini.com/aamir-khan-2/

Above page is coming from http://www.missmalini.com/celebrity-fan-pages/

this are categories with Tags :

I also know that the patten is like
Big Image is First ( First latest Post of resp. tag )... then 4 image with title are from Second post )and then only title after sixth post .. its means they have divide latest 10-12 post with this structure ,, hence how i can do same .. also if u see on top ( above Ten Latest Aamir Khan Updates ) there is "Aamir Khan Full Bio " which is different for resp. tag.

Hence how i can do this ( means how i can make such code ) can any one let me know.

bdchrist on "Title position on sidebar translator widget."

0
0

So I heavily modified an on-page translator plugin to get the German working (for some reason it wasn't and a few other things)

Now I'm stuck with this:
http://imgur.com/Vcu9DkV

As you can see the sidebar widget title "Translator" is below instead of on top. I tried reorganizing things but can't seem to pinpoint the problem. The text is entered in on the widget page in the title section when I drag and drop it onto my sidebar.

Here is the code:
http://pastebin.com/fZWv9ruA

Christiaan Conover on "TinyMCE not appearing when wp_editor is called (WP 3.9)"

0
0

One of the features of my plugin is to add a TinyMCE editor instance inside a meta box on the Edit Post screen. This has worked great up until 3.9, and I'm not clear as to what's going wrong.

Here are the relevant files containing the code for the meta box editor (links to files inside Github commit):

admin/author-customization-admin.php
admin/assets/js/edit-post.js

What am I missing? This is what I'm given when I load the Edit Post screen:
http://i.imgur.com/6GQUUa9.png

The contents are there though, which you can see when you highlight inside the textarea:
http://i.imgur.com/jTSlgWm.png

On WordPress 3.8.1 the code works just fine:
http://i.imgur.com/i7nTqPb.png

I'm not sure whether it's an issue with the PHP code or the JavaScript. Any help is appreciated.

ukunilus on "How to get during the checkout chosen shipping method"

0
0

Hi
Question regarding WooCommerce
1st question:
Im trying to add function with pickup locations, but i do not know how to get correctly the shipping method ID what has been chosen on billing page for IF eg: if ( $shipping_method == 'flat_rate' ), so how to define the shipping method that this would be TRUE?
2nd question:
I have this code below, could i make it auto refresh if user changes the shipping method?
Thanks in advance!

if ( $shipping_method == 'flat_rate' )
	{
add_filter( 'woocommerce_checkout_fields' , 'custom_store_pickup_field');

function custom_store_pickup_field( $fields ) {
      $fields['billing']['store_pickup'] = array(
     'type'     => 'select',
            'options'  => array(
        'option_1' => 'Option 1 text',
        'option_2' => 'Option 2 text',
        'option_3' => 'Option 3 text'
        ),
     'label'     => __('Store Pick Up Location', 'woocommerce'),
    'required'  => false,
    'class'     => array('store-pickup form-row-wide'),
    'clear'     => true
     );

     return $fields;
}
   }
elseif ( $shipping_method == 'flat_rate_2' )
{
add_filter( 'woocommerce_checkout_fields' , 'custom_store_pickup_field');

function custom_store_pickup_field( $fields ) {
      $fields['billing']['store_pickup'] = array(
     'type'     => 'select',
            'options'  => array(
        'option_4' => 'Option 4 text',
        'option_5' => 'Option 5 text',
        'option_6' => 'Option 6 text'
        ),
     'label'     => __('Store Pick Up Location', 'woocommerce'),
    'required'  => false,
    'class'     => array('store-pickup form-row-wide'),
    'clear'     => true
     );

     return $fields;
}

}

truheart on "Change item order for +Add menu in the admin bar"

0
0

I hope the title makes sense. Basically I would like to know how to change the order of the items a user sees when he clicks on the "Add" button in the admin bar. For instance, say you have a couple of different post-types where a user can add a new post directly from the admin bar. How do you get it to display the post-types in the order you would like? The default post-type and media items are always on top and it would be great to be able to have control over this. Thanks guys.

jpdaboss718 on "Take a theme apart"

0
0

I am building a website for my car sales business. I bought a car sales theme and I like their car management system and how easy it is to add cars to the website it also has a vin decoder which enters all the information with me just tying in the vin number of any vehicle. The problem is that i don't like how the website looks I would like to take the theme apart and take that module out, so i can use it for another theme. I contacted the developers that sold me the theme and they said it can be done however they dont provide information on their site to do so. Can this be done?

Henric Åkesson on "Query post if custom field is greater than"

0
0

Hi!

Im having a query like this:

<?php query_posts(array('category_name' => 'evenemang', 'posts_per_page' => '1', 'meta_key' => 'evenemangsdatum', 'orderby' => 'meta_value_num', 'order' => 'ASC')); while ( have_posts() ) : the_post(); ?>

And then I have a statement to decide if my "Event date" has been or not.

<?php $dateformatstring = "ymd";
$unixtimestamp = strtotime(get_field('evenemangsdatum'));
$evenemangsdatum = date_i18n($dateformatstring, $unixtimestamp); ?>

<?php $dagensdatum = date('ymd'); ?>

<?php if($evenemangsdatum >= $dagensdatum) { ?>

The problem is that I just want to query one post, and as you can see in my query i want to query the one that is closest to the "Event date". Only problem is if I have just one event that has not been, it still looking for old stuff because in the query it don't know that it should not query date that has been.

So what I want is to make this code: "if($evenemangsdatum >= $dagensdatum) {" get into the query in someway, or maybe posts_per_page to -1 and then just show the closest in some other way?


valuesourcer on "Social sharing hard coded without permission"

zayker on "Custom order of selected taxonomies on each post"

0
0

Hi All
I would like to customize the order of selected in each post,
Exemple :
I select A, B, C, D categories, but in the outpu I want the order will be C, D, B, A, there is a plugin which gives me the possibility to custumize the order in post edit?
Excuse me for my english.
Kind Regars
Zak

georgelizos on "Customize Magic Action Box"

0
0

Hello,

I'm trying to customize my optin box, and I need some help with the coding as I have no experience with it.

As you can see in the example in the following link, I would like to have the "First Name" and "Email" written within the form rather than on the top, and I'd like the forms to appear on the right hand side of the box. (You can see my current optin box at the bottom of the article: http://georgelizos.com/?p=1294)

http://i59.photobucket.com/albums/g281/one_star_show/gabby-opt-in.jpg

I would also like to change the font style, but I'm not sure if the font I'm interested in is supported. Is there a way I could upload a new font style?

Thank you in advance for your guidance. I appreciate it.

deprekate on "adding data at approval/Publish"

0
0

I have my Wordpress page set up so that the administrator must approve/Publish a post. As a post is Published I would like to also generate a number and save it along with the post (this only happens when the admin hits Publish). I used "Custom Fields" to create the appropriate data field which is only visible in the administrator edit post page.

Where in the code would I modify it so that only on "Publish" I get the number and then insert it into the databases?

estrava on "Buy fake Passport ,Visa,Driving License,ID CARDS,marriage ..."

0
0

Buy real and fake Passport ,Visa,Driving License,ID CARDS,marriage
certificates,diplomas etc for sell.
Guaranteed 24 hour passport,citizenship,Id cards,driver´s
license,diplomas,degrees,certificates service available. Tourist and
business visa services available to residents of all 50 states and all
nationalities Worldwide. are unique producers of Authentic High
Quality passports, Real Genuine Data Base Registered and unregistered
Passports and other Citizenship documents.I can guarantee you a new
Identity starting from a clean new genuine Birth Certificate, ID card,
Drivers License,Passports, Social security card with ASSN, credit
files, and credit cards, school diplomas, school degrees all in an
entirely new name issued and registered in the government database
system..
We use high quality equipment and materials to produce authentic and
counterfeit documents.All secret features of real passports are
carefully duplicated for our Registered and unregistered documents.we
are unique producer of quality false and Real documents.We offer only
original high-quality Registered and unregistered passports, driver´s
licenses, ID cards, stamps, Visa, school Diplomas and other products
for a number of countries like:USA, Australia, Belgium,Brazil, Canada,
Italian,Finland, France, Germany, Israel, Mexico, Netherlands, South
Africa,Spain, United Kingdom.

UNIVERSAL PAPERS
General support: globaldocument121290@gmail.com
Technical support: globaldocument121290@gmail.com
email : globaldocument121290@gmail.com

Call Toll Free 00237-519-83-661

we are able to produce the following items;

REAL BRITISH PASSPORT.
REAL CANADIAN PASSPORT.
REAL FRENCH PASSPORT.
REAL AMERICAN PASSPORT.
REAL RUSSIAN PASSPORT.
REAL JAPANESES PASSPORT.
REAL CHINESE PASSPORT.
AND REAL PASSPORT FOR COUNTRIES IN THE EUROPEAN UNION.
REAL DRIVERS LICENSE,I.D CARDS,BIRTH CERTIFICATES,DIPLOMATS,MARRIAGE
CERTIFICATES,AND VISAS.
REGISTERED AND UNREGISTERED BRITISH PASSPORT.
REGISTERED AND UNREGISTERED CANADIAN PASSPORT.
REGISTERED AND UNREGISTERED FRENCH PASSPORT.
REGISTERED AND UNREGISTERED AMERICAN PASSPORT.
REGISTERED AND UNREGISTERED RUSSIAN PASSPORT.
REGISTERED AND UNREGISTERED JAPANESES PASSPORT.
REGISTERED AND UNREGISTERED CHINESE PASSPORT.
REGISTERED AND UNREGISTERED PASSPORT PASSPORT FOR COUNTRIES IN THE
EUROPEAN UNION.
Buy Registered and unregistered USA(United States) passports,
Buy Registered and unregistered Australian passports,
Buy Registered and unregistered Belgium passports,
Buy Registered and unregistered Brazilian(Brazil) passports,
Buy Registered and unregistered Canadian(Canada) passports,
Buy Registered and unregistered Finnish(Finland) passports,
Buy Registered and unregistered French(France) passports,
Buy Registered and unregistered German(Germany) passports,
Buy Registered and unregistered Dutch(Netherlands/Holland) passports,
Buy Registered and unregistered Israel passports,
Buy Registered and unregistered UK(United Kingdom) passports,
Buy Registered and unregistered Spanish(Spain) passports,
Buy Registered and unregistered Mexican(Mexico) passports,
Buy Registered and unregistered South African passports.
Buy Registered and unregistered Australian driver licenses,
Buy Registered and unregistered Canadian driver licenses,
Buy Registered and unregistered French(France) driver licenses,
Buy Registered and unregistered Dutch(Netherlands/Holland) driving licenses,
Buy Registered and unregistered German(Germany) driving licenses,
Buy Registered and unregistered UK(United Kingdom) driving licenses,
Buy Registered and unregistered Diplomatic passports,
Buy Registered and unregistered USA(United States) passports,
Buy Registered and unregistered Australian passports,
Buy Registered and unregistered Belgium passports,
Buy Registered and unregistered Brazilian(Brazil) passports,
Buy Registered and unregistered Canadian(Canada) passports,
Buy Registered and unregistered Finnish(Finland) passports,
Buy Registered and unregistered French(France) passports,
Buy Registered and unregistered German(Germany) passports,
Buy Registered and unregistered Dutch(Netherlands/Holland) passports,
Buy Registered and unregistered Israel passports,
Buy Registered and unregistered UK(United Kingdom) passports,
Buy Registered and unregistered Spanish(Spain) passports,
Buy Registered and unregistered Mexican(Mexico) passports,
Buy Registered and unregistered South African passports.
Buy Registered and unregistered Australian driver licenses,
Buy Registered and unregistered Canadian driver licenses,
Buy Registered and unregistered French(France) driver licenses,
Buy Registered and unregistered Dutch(Netherlands/Holland) driving licenses,
Buy Registered and unregistered German(Germany) driving licenses,
Buy Registered and unregistered UK(United Kingdom) driving licenses,
Buy Registered and unregistered Diplomatic passports,
Registered and unregistered Camouflage passports,
Registered and unregistered passport Duplicates,
Registered and unregistered USA(united States) passports for sale,
Registered and unregistered Australian passports for sell,
Registered and unregistered Belgium passports for sell,
Registered and unregistered Brazilian(Brazil) passports for sell,

UNIVERSAL PAPERS

General Support:--------michaelsmith121290@gmail.com
General Support:--------michaelsmith121290@gmail.com
Registered and unregistered passport of all countries.visas,biometric
passport,degrees,drivers license,I.D cards.Training certificates M
GCSE, A-levels, High School Diploma Certificates ,GMAT, CAT, and LSAT
Examination Certificates , Novelty Birth, Marriage, and Death
Certificates , Novelty Passports and New Identity Packages ,
Replicated, False Degrees/Diplomas from most post-secondary
institutions from around the world (we have over 3000 templates on
file) all designed to look 100% identical to the original.Custom
Printing (if we do not already have the template on file - simply
email us a copy and we can make any alterations/modifications as per
your directions)second, citizenship, identity, identification,
documents, diplomatic,nationality, how to, where to, get, obtain, buy,
purchase, make,build, a, passport, i.d,British, Honduras, UK, USA, us,
u.s.,Canada, Canadian, foreign, visa, Swiss, card, ids, document,
getting,visas, cards, foreign .

baltzell on "Nike shoes greece product inside low-profile back heel in addition to plastic ou"

0
0

As period continues, sporting Nike golf ball shoes or boots to try out hockey turn out to be a new habit with regard to hockey enthusiasts. Along with these kinds of cricketing shoes and boots tend to be analyzed underneath extreme situation. Yank for the nike greece will be unprecedented in addition to extreme adaptability whether or not you happen to be using a hillside using a footpath going along or loose steel most of us screened your Nike rubber as well as polymer bonded style that also includes severe flexibility as well as capacity to be gripping. There are your perfect volume of padding you'll take pride in shows good lateral help support. Everyone believes within the A FEW o’clock slump at the job. You’re experience grumpy. The first number donned conventional operating shoes or boots with all the next party being dressed in nike shoes greece plus the 3rd number in the Vibram 5 Hands. He / she possessed a turnaround jumper in that case unique about for you to depart Derek Fisher lurking behind on his / her strategy to your layup, pressing the idea for you to 47-38 having staying. Yet at this point you are sure that what type of arc people walk upon, shopping for your fresh kicks shall be a decreased stress plus really satisfying experience.

Really, these types of Nike Guys Shoes are not simply ideal pertaining to accomplishing sporting activities. After that omkdehot fluctuate sneakers intended for path going, jogging or even running. Backpacking shoes just for this business include higher expectations in this footwear using a nike shoes greece online hemp dietary fiber, straightforward type. Fighting intended for minimalist shoes and boots appeared to be the actual Nike Cost-free V3. 0 while the actual competed for your next to barefoot activity. Due to their stylish look, comfy sense along with superb passion, Nike boots and shoes are viewed as brilliant versions amongst footwear of some other manufacturers. That Nike could be suited to help each and every people today. Eventually, Nike went about getting in the “iron triangle” actually built simply by Adidas, Puma, plus Tiger because gross sales super star. A further superb providing level these sneakers is the fact they will appearance very beneficial. Your current casino shoe can be acquired in a very formidable bluish, ebony reddish colored or maybe glowing blue shade, with a strong observable nike shoes greece shop photo with the part. It's acquired designed some sort of rubberized outsole with regard to correct hold and also on top of that durability.

geoffkb on "Using comments in includes"

0
0

I had some address files which I want to insert using an include. The files contain some <!-- html comments --> which end the file when it's included on a page.

Is there a way I can have comments in the include file without breaking anything?

Thanks


ibragimof on "Edit the header.php"

0
0

I can not edit the file header.php in wp-content\themes\my
my code

$url = 'http://...........';
$start = '<div class="marquee">';
$finish = '<div class="row-fluid" id="content">';
function parser($url,$start,$finish) {
    $content = file_get_contents($url);
    $position1 = strpos($content, $start);
    $position2 = strpos($content, $finish);
    $content = substr($content, $position1, $position2-$position1);
    $content = $content;
    echo ($content);
    return $content;
}

parser($url, $start, $finish);

if i put this code to header.php, my site don't work

bantin on "image in front of page"

0
0

I'm looking for a way to add an image to the front of my website.

I have an image that's like a picture frame with a transparent center. I'd like a way to put it on top of my site such that the site contents (text blocks, images, videos, etc.) scroll behind it. It would be kind of like looking at the site through a window.

The frame would be fixed like a background image, but the content of the page would scroll behind it.

Any ideas?

Thanks

liquid8 on "bingbot causing problems on my site"

0
0

Hi,

I got message from my host provider today that my site is having so much traffi that they had to close it.
I checked apache's log and found a lot of rows like this:

157.55.33.93 - - [01/Apr/2014:19:45:28 +0300] "GET /kalenteri/action~agenda/cat_ids~14/tag_ids~17,37,46,25,64/ HTTP/1.1" 200 13308 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"

66.249.78.51 - - [01/Apr/2014:19:45:29 +0300] "GET /kalenteri/action~posterboard/time_limit~1386453600/tag_ids~81/ HTTP/1.1" 200 10784 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"

157.55.33.93 - - [01/Apr/2014:19:45:33 +0300] "GET /kalenteri/action~agenda/cat_ids~14/tag_ids~17,23,19,24,28,47/ HTTP/1.1" 200 13345 "-" "Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)"

Could somebody tell me what's going on and should I try to block bingbot's requests? Any ideas would be very welcome.

YvonneTaylor on "CSS problems with WP plugin Responsive Flipbook"

0
0

Can someone help woth my css problems please, I have spent 2 weeks trying to get my first flipbook to work.
I understand that the theme has css coding and I need to over ride this to make it work in the flipbook as the text will not change size or style.
I have tried using the following

#content p.page-15{font-family:Times New Roman,Times,serif; font-size: 8px; line-height: 50%; } I put this in page css.

<p class="page-15">lots of text here...........</p> I put this in html page content.
When I preview the page it looks okay, but when uploaded it looks like the css in the theme has taken over again.

The url is http://www.thedogsclub.com/test/#17

Any help would be much appreciated as I as going round in circles here.
Many thanks

magician11 on "Hook suggestion?"

0
0

I've written a plugin that temporarily stores file attachments in a folder for form submissions. I'm writing a function that cleans out that folder if the files are older than a certain date.

I'm wondering what to hook that cleanup function to? Maybe regularly? Like everytime the site gets accessed? I don't know the WP hooks very well yet, so specific suggestions would be awesome. Maybe http://codex.wordpress.org/Plugin_API/Action_Reference/init ?

Ideas?

Thanks.

Viewing all 8245 articles
Browse latest View live




Latest Images