GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   plugrush.com on wordpress (https://gfy.com/showthread.php?t=1038270)

esham 09-15-2011 04:48 PM

plugrush.com on wordpress
 
Im trying to add the widget but its not working. Does anyone use plugrush on wordpress. If so what plugins do I need. I got it to show on pages by adding [ And ] to end of html. How can i get it to show in sidebar?

nextri 09-15-2011 05:04 PM

It''s easy. Just go to widgets in wordpress and use the Text widget. Drag it to the sidebar, and paste your plugrush code there.
http://www.camelmedia.net/jing/2011-09-16_0202.png

esham 09-15-2011 05:13 PM

Quote:

Originally Posted by nextri (Post 18430423)
It''s easy. Just go to widgets in wordpress and use the Text widget. Drag it to the sidebar, and paste your plugrush code there.
http://www.camelmedia.net/jing/2011-09-16_0202.png

Did that the html disapears after I click save.

harvey 09-15-2011 05:20 PM

Quote:

Originally Posted by esham (Post 18430437)
Did that the html disapears after I click save.

AFAIK, WP "sanitizes" code and kills iframe code by default. You can use iframes on post or pages as long as you use the html editor and save it (and never edit) the post, otherwise anything in an iframe will disappear. Not sure about widgets, but for what you say, it seems it's the case. While annoying, it's one of the best features of WP

19teenporn 09-15-2011 05:24 PM

Just add it straight in the file you want it to be. For example sidebar.php or single.php from your cpanel.

I do it like that and it works...

esham 09-15-2011 05:30 PM

Im using freehost at moment. I can get any wordpress plugins installed that i need. I got it showing in pages. Is there a plugin to turn page post into sidebar.

Where is this? WP "sanitizes" code and kills iframe code by default. So I can try and have host turn it off.

19teenporn 09-15-2011 05:34 PM

Quote:

Originally Posted by esham (Post 18430480)
Im using freehost at moment. I can get any wordpress plugins installed that i need. I got it showing in pages. Is there a plugin to turn page post into sidebar.

Where is this? AFAIK, WP "sanitizes" code and kills iframe code by default. So I can try and have host turn it off.

Nope, you're doomed...

esham 09-16-2011 12:52 AM

bumpfdfd

Plugrush 09-16-2011 11:43 AM

Frustrated with implementing an iframe code on your site because it keeps disappearing when you save it? WordPress strips iframes because of security concerns, but you can still use an iframe on your WordPress site by entering the code in the HTML editor instead of the visual editor.

http://springsbargains.com/wp-conten...ordPress-1.png

To add an iframe code, create a new post or page and click the tab for HTML edit. Paste your iframe code and click publish and you?re all set!

But, if you try to go back and edit that post or page in the Visual editor, you?ll find that editing the post will remove the iframe code. Argh! You?ll need to open it in the HTML editor, and only the HTML editor to keep the code intact.

WordPress decides which editor to use based on which editor you last used when saving a post or a page. It usually defaults to the Visual editor because that?s what most of us use when writing. To get it to open a post in the HTML editor, create a different post draft and save it with the HTML editor open.

Then, open that post or page with iframe code and it will open to the HTML editor, preventing your iframe code from being stripped. Make your edits, then update the post or page without switching over to the Visual editor. Your iframe code will stay intact!



Hope that helps, copied from here: http://savvyblogging.net/prevent-wor...r-iframe-code/

vdbucks 09-16-2011 11:49 AM

Better still... just disable the annoying visual editor ^^

rogueteens 09-16-2011 11:59 AM

try http://www.daikos.net/widgets/daikos-text-widget/ it allows code thats not normally allowed in a standard text widget

vdbucks 09-16-2011 12:01 PM

Quote:

Originally Posted by rogueteens (Post 18432053)
try http://www.daikos.net/widgets/daikos-text-widget/ it allows code thats not normally allowed in a standard text widget

IMHO... if it's not listed on wordpress.org then I wouldn't trust, nor use it.

fris 09-16-2011 12:31 PM

if someone can send me sample of ads i will develop a plugin

esham 09-16-2011 12:35 PM

Quote:

Originally Posted by rogueteens (Post 18432053)
try http://www.daikos.net/widgets/daikos-text-widget/ it allows code thats not normally allowed in a standard text widget


Have you used this? Or has anyone used this.

esham 09-16-2011 12:47 PM

Quote:

Originally Posted by fris (Post 18432118)
if someone can send me sample of ads i will develop a plugin

<iframe allowtransparency="1" frameborder="0" height="580" id="plwpl198854e710c2faff2e2.61439219" scrolling="no" src="http://widget.plugrush.com/smutties.com/dsw" width="182"></iframe>

heres the html
If i change <iframe allow to [iframe allow and </iframe> to [/iframe> it will show in posts but i need it on my sidebar- txt widget

fris 09-16-2011 01:02 PM

Quote:

Originally Posted by esham (Post 18430399)
Im trying to add the widget but its not working. Does anyone use plugrush on wordpress. If so what plugins do I need. I got it to show on pages by adding [ And ] to end of html. How can i get it to show in sidebar?

this should do it

Code:


<?php

class PlugRush_Widget extends WP_Widget
{
    public function __construct()
    {
        $widgetname = apply_filters( 'plugrush_widget', 'PlugRush Widget' );
        parent::__construct(
            'unfiltered_text'
        ,  $widgetname
        ,  array( 'description' => 'Plug Rush Iframe Text Widget' )
        ,  array( 'width' => 300, 'height' => 150 )
        );
    }

    public function widget( $args, $instance )
    {
        echo $instance['text'];
    }

    public function update( $new_instance, $old_instance )
    {
        return $new_instance;
    }

    public function form( $instance )
    {
        $instance = wp_parse_args( (array) $instance, array( 'text' => '' ) );
        $text    = format_to_edit($instance['text']);
?>
        <textarea class="widefat" rows="7" cols="20" id="<?php
            echo $this->get_field_id( 'text' );
        ?>" name="<?php
            echo $this->get_field_name( 'text' );
        ?>"><?php
            echo $text;
        ?></textarea>
<?php
    }
}

add_action( 'widgets_init', 'register_unfiltered_text_widget', 20 );

function register_unfiltered_text_widget()
{
    register_widget( 'PlugRush_Widget' );
}


fris 09-16-2011 01:06 PM

also if you are using an iframe shortcode, you could prob get away with just doing

Code:

add_filter('widget_text','do_shortcode');

esham 09-16-2011 01:06 PM

Im using a freehost at moment. Where should i have him install this?

vdbucks 09-16-2011 01:14 PM

fris to the rescue! good job ^^

esham 09-16-2011 01:21 PM

Quote:

Originally Posted by fris (Post 18432199)
also if you are using an iframe shortcode, you could prob get away with just doing

Code:

add_filter('widget_text','do_shortcode');

Thanks i sent him this thread hope it works.

iwantchixx 09-16-2011 01:52 PM

This is all I have ever used:


http://wordpress.org/extend/plugins/embed-iframe/

esham 09-16-2011 03:55 PM

Quote:

Originally Posted by iwantchixx (Post 18432304)

didn't work for sidebar txt widget

esham 09-16-2011 03:57 PM

Quote:

Originally Posted by rogueteens (Post 18432053)
try http://www.daikos.net/widgets/daikos-text-widget/ it allows code thats not normally allowed in a standard text widget

added php code before my iframe html didnt work

esham 09-17-2011 09:26 PM

where do i put this? can someone tell me?

Quote:

Originally Posted by fris (Post 18432190)
this should do it

Code:


<?php

class PlugRush_Widget extends WP_Widget
{
    public function __construct()
    {
        $widgetname = apply_filters( 'plugrush_widget', 'PlugRush Widget' );
        parent::__construct(
            'unfiltered_text'
        ,  $widgetname
        ,  array( 'description' => 'Plug Rush Iframe Text Widget' )
        ,  array( 'width' => 300, 'height' => 150 )
        );
    }

    public function widget( $args, $instance )
    {
        echo $instance['text'];
    }

    public function update( $new_instance, $old_instance )
    {
        return $new_instance;
    }

    public function form( $instance )
    {
        $instance = wp_parse_args( (array) $instance, array( 'text' => '' ) );
        $text    = format_to_edit($instance['text']);
?>
        <textarea class="widefat" rows="7" cols="20" id="<?php
            echo $this->get_field_id( 'text' );
        ?>" name="<?php
            echo $this->get_field_name( 'text' );
        ?>"><?php
            echo $text;
        ?></textarea>
<?php
    }
}

add_action( 'widgets_init', 'register_unfiltered_text_widget', 20 );

function register_unfiltered_text_widget()
{
    register_widget( 'PlugRush_Widget' );
}



TheSenator 09-17-2011 09:31 PM

WordPress sucks....

Use Drupal

SEO, Canonicals, Taxonomy, Links all suck on WordPress!

Use Drupal...

harvey 09-17-2011 10:46 PM

Quote:

Originally Posted by esham (Post 18432155)
<iframe allowtransparency="1" frameborder="0" height="580" id="plwpl198854e710c2faff2e2.61439219" scrolling="no" src="http://widget.plugrush.com/smutties.com/dsw" width="182"></iframe>

heres the html
If i change <iframe allow to [iframe allow and </iframe> to [/iframe> it will show in posts but i need it on my sidebar- txt widget

you're doing something wrong. I used the exact same code you posted and look at the result here, it works without an issue using the text widget

esham 09-17-2011 11:42 PM

I need to install a script or change a setting. Iframes is disabled i've read it everywhere. I copyied that code into txt widget.

harvey 09-17-2011 11:56 PM

Quote:

Originally Posted by esham (Post 18434546)
I need to install a script or change a setting. Iframes is disabled i've read it everywhere. I copyied that code into txt widget.

Man, I was the one that told you that at first, but seeing that none of the options work for you (and at least one should) the only explanations are: a) you're doing something wrong or b) your host sucks balls and has some kind of code protection. So, the only solutions I can see are:
a) really check twice what you're doing. I'd bet money the problem is in your side
or
b) ask your host what's going on and change host if needed
or
c) drop plugrush

there isn't really much options :2 cents:

candyflip 09-18-2011 05:33 AM

I have it set up, but use it in hook within my theme (Thesis).

esham 09-18-2011 05:04 PM

Quote:

Originally Posted by esham (Post 18434455)
where do i put this? can someone tell me?

Quote:

Originally Posted by esham (Post 18434455)
where do i put this? can someone tell me?

Quote:

Originally Posted by esham (Post 18434455)
where do i put this? can someone tell me?

wp-content/plugins/widgets do i just name it and put in folder? Do i need to install it somehow?

Dappz 09-18-2011 05:41 PM

ummmmmmmmmmmm this is a good help to me also thanks...

Lace 09-18-2011 05:55 PM

Your free host is probably blocking iframes.

fris 09-18-2011 06:22 PM

Quote:

Originally Posted by esham (Post 18435906)
wp-content/plugins/widgets do i just name it and put in folder? Do i need to install it somehow?

add it to your themes functions.php file or make it a plugin

esham 09-18-2011 08:20 PM

Quote:

Originally Posted by fris (Post 18436006)
add it to your themes functions.php file or make it a plugin

he added it as a plugin. i went to it, it shows for a second auto saves and txt box disapears. So I cant enter html.

fris 09-19-2011 06:21 AM

Quote:

Originally Posted by esham (Post 18436180)
he added it as a plugin. i went to it, it shows for a second auto saves and txt box disapears. So I cant enter html.

show how he added as a plugin, you cant simply place a file in the plugin directory and it will be a plugin.

esham 09-19-2011 12:38 PM

I don't know how he did it. How should he of done it? I will email him it. The placeing it in plugin directory was my idea. Id imagine he did it the correct way. I'm new to wordpress. What ever happend some of the other widgets now disapear even with a brand new subdomain

esham 09-22-2011 04:19 PM

bump PPp


All times are GMT -7. The time now is 09:28 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123