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)
-   -   Is this possible in wordpress? (https://gfy.com/showthread.php?t=998022)

rogueteens 11-17-2010 06:19 PM

Is this possible in wordpress?
 
I'm trying to make a tour using wordpress and so far so good but is it possible in wordpress to make a person go to a special page on the 4th next post link?

EG: The surfer starts off on the home page but if they click on the Previous Posts" link more than a couple of time then they get sent to a Join page (made from a WP page post).

I hope this makes sense!

I'm wondering if there is a way to make the site say "if ?paged=4 then goto ?paged=join"

I think i'm gibbering on a bit now.

FlexxAeon 11-17-2010 06:39 PM

could pretty easily pass a variable around that keeps count

rogueteens 11-17-2010 07:03 PM

And how do i do that, please?

StinkyPink 11-17-2010 07:05 PM

Just write your posts backwards. Post 1=Join Now! Post 4=Welcome to my new paysite!

stocktrader23 11-17-2010 07:08 PM

Why not put your own links in the post, that way they can be more prominent and say what you want?

ArsewithClass 11-17-2010 07:11 PM

Quote:

Originally Posted by rogueteens (Post 17707587)
I'm trying to make a tour using wordpress and so far so good but is it possible in wordpress to make a person go to a special page on the 4th next post link?

EG: The surfer starts off on the home page but if they click on the Previous Posts" link more than a couple of time then they get sent to a Join page (made from a WP page post).

I hope this makes sense!

I'm wondering if there is a way to make the site say "if ?paged=4 then goto ?paged=join"

I think i'm gibbering on a bit now.

I see that you are wanting to force a join page to the surfer, but truthfully, a join button on the side, at the bottom & at the top is going to be more affective considering you may lose the surfer altogether as he could think, this is all he is going to see.

unless I have jumped the gun & considering that 4 posts later is the definate number. I would have really thought that 10 maybe 15 posts later could be more affective. Obviously you still have the same problem.

Just my thoughts if I was surfing your great website & get a join here after a set time, I would leave to enjoy looking through some others before joining, maybe theirs :2 cents:

Hoping you get someone posting, that knows WP rogue :thumbsup

ArsewithClass 11-17-2010 07:13 PM

Quote:

Originally Posted by stocktrader23 (Post 17707736)
Why not put your own links in the post, that way they can be more prominent and say what you want?

This way, the post would have to have the join here link from the start, which personally would certainly not be any good...

I can consider what Rogue is trying to create, of which it could be affective. But most people prefer to buy when they feel right & not feel pressured into a sale as said in my previous post :2 cents:

stocktrader23 11-17-2010 07:24 PM

Quote:

Originally Posted by ArsewithClass (Post 17707748)
This way, the post would have to have the join here link from the start, which personally would certainly not be any good...

I can consider what Rogue is trying to create, of which it could be affective. But most people prefer to buy when they feel right & not feel pressured into a sale as said in my previous post :2 cents:

If he's trying to make the entire blog content protected after page 4 he's going to have a lot more problems than the join prompt.

rogueteens 11-17-2010 07:44 PM

Quote:

Originally Posted by stocktrader23 (Post 17707785)
If he's trying to make the entire blog content protected after page 4 he's going to have a lot more problems than the join prompt.

No, just the tour.

rogueteens 11-17-2010 07:48 PM

Quote:

Originally Posted by ArsewithClass (Post 17707743)
I see that you are wanting to force a join page to the surfer, but truthfully, a join button on the side, at the bottom & at the top is going to be more affective considering you may lose the surfer altogether as he could think, this is all he is going to see.

The idea is that my blog/tour will show a page of three or so randomly generated posts (using a random post plugin), the same with page 2 and 3 then page 4 shows the join. Much like a "reality tour". Going to a join page at the end is a pretty much accepted way of doing it, I think its a better way of ending the tour than just a sudden stop.

ArsewithClass 11-17-2010 08:25 PM

Quote:

Originally Posted by rogueteens (Post 17707832)
The idea is that my blog/tour will show a page of three or so randomly generated posts (using a random post plugin), the same with page 2 and 3 then page 4 shows the join. Much like a "reality tour". Going to a join page at the end is a pretty much accepted way of doing it, I think its a better way of ending the tour than just a sudden stop.

I can see your idea, but considering it would only be blog posts & only 3 maybe 4, this wouldnt be much material to show what you have to offer.

I do like the idea of each post using a random plugin, at least everytime the surfer looks, they would see new material all the time :thumbsup

harvey 11-17-2010 08:42 PM

I don't think the way you're doing it is the best, but well, you can try something like this, didn't test it since I'd never do it that way, but just try it and see if it works:

Code:

<?php wp_reset_query();
if (is_page('4') )
{
echo "action you want to perform";
}
?>


BSleazy 11-17-2010 09:01 PM

Not exactly what you're looking for but you might be able to mod this or use it somehow

http://wordpress.org/extend/plugins/page-links-to/

rogueteens 11-17-2010 09:12 PM

Quote:

Originally Posted by ArsewithClass (Post 17707892)
I can see your idea, but considering it would only be blog posts & only 3 maybe 4, this wouldnt be much material to show what you have to offer.

I do like the idea of each post using a random plugin, at least everytime the surfer looks, they would see new material all the time :thumbsup

No, there will be three or four posts per page (i havent decided how many yet) and 3 pages of posts. so the surfer will see at least nine posts before going to the join. I plan on having 20 or so posts in the blog database so that if the surfer returns, the chances are he'll see different posts


Quote:

Originally Posted by harvey (Post 17707912)
I don't think the way you're doing it is the best, but well, you can try something like this, didn't test it since I'd never do it that way, but just try it and see if it works:

Code:

<?php wp_reset_query();
if (is_page('4') )
{
echo "action you want to perform";
}
?>


Cheers, :thumbsup it works, as in i get it to show up "action you want to perform" on the desired page. I just dont know the code needed to redirect to the desired page - I havent programmed anything in almost 20 years!

FlexxAeon 11-17-2010 09:23 PM

using "if is_page 4", if they go back to page 3 it will show them the previous page still.

sounded to me like you wanted them to be sent to join after they viewed 4 pages, no matter what. if so, that means you gotta store that tally somewhere.

or did i misunderstand?

ArsewithClass 11-17-2010 09:46 PM

Quote:

Originally Posted by rogueteens (Post 17707965)

Cheers, :thumbsup it works, as in i get it to show up "action you want to perform" on the desired page. I just dont know the code needed to redirect to the desired page - I havent programmed anything in almost 20 years!

I think, in the "action you want to perform" you place in
Code:

<a href="http://blablabla.com/blabla">
Ill look at wp but this should be the place you want the viewer to goto.

rogueteens 11-17-2010 10:02 PM

Quote:

Originally Posted by ArsewithClass (Post 17708023)
I think, in the "action you want to perform" you place in
Code:

<a href="http://blablabla.com/blabla">

I'll shoot myself if that works!



I'm pretty sure its something like get_page-{id} but i'll be damned if i can get it to work, harvey's code works great, it finds page 4, i just cannot get it to redirect to my "join" page after its found it :(

LOL, if Wordpress was in BASIC or COBOL i'd be able to do it, hell, i'd proberbly manage to do it in DBase!

ArsewithClass 11-17-2010 10:10 PM

Quote:

Originally Posted by rogueteens (Post 17708043)
I'll shoot myself if that works!



I'm pretty sure its something like get_page-{id} but i'll be damned if i can get it to work, harvey's code works great, it finds page 4, i just cannot get it to redirect to my "join" page after its found it :(

LOL, if Wordpress was in BASIC or COBOL i'd be able to do it, hell, i'd proberbly manage to do it in DBase!

you maybe right.. i was thinking html Doh!

luck with it Rogue :)

Brujah 11-17-2010 10:10 PM

Best way would be to code the page to display the join page contents inside the conditional, but you could try some javascript since it's easier.

Code:

if (is_page('4') )
{
?>
<script>
window.location="http://domain.com/page";
</script>
<?php
}


Brujah 11-17-2010 10:14 PM

If the url is always the same, ie... yoursite.com/page/4, you might just .htaccess it.

Redirect 302 /page/4 http://yoursite.com/joinpage

bjlover 11-18-2010 02:29 AM

Quote:

Originally Posted by ArsewithClass (Post 17708023)
I think, in the "action you want to perform" you place in
Code:

<a href="http://blablabla.com/blabla">
Ill look at wp but this should be the place you want the viewer to goto.

fucking hell you are stupid.

why not keep your ugly mouth shit so you dont keep reminding people how retarded you are :2 cents:

DamianJ 11-18-2010 05:57 AM

Quote:

Originally Posted by ArsewithClass (Post 17708023)
I think, in the "action you want to perform" you place in
Code:

<a href="http://blablabla.com/blabla">
Ill look at wp but this should be the place you want the viewer to goto.

Fucking LOL.

rogueteens 11-18-2010 06:39 AM

bump ....

Brujah 11-18-2010 06:53 AM

Quote:

Originally Posted by rogueteens (Post 17708719)
bump ....

did you try any of my ideas?

rogueteens 11-18-2010 07:03 AM

Quote:

Originally Posted by Brujah (Post 17708752)
did you try any of my ideas?

i did but no success, it came up with errors (the javascript one). Also, in all honesty, i dont really want to jump languages if i can help it.

The page i want to jump to is called http://www.myself.com/?page_id=2 so i've been trying variations of get_?page_id=2 but i'm shooting in the dark as i dont know the first thing about php!

Brujah 11-18-2010 07:31 AM

Quote:

Originally Posted by rogueteens (Post 17708770)
i did but no success, it came up with errors (the javascript one). Also, in all honesty, i dont really want to jump languages if i can help it.

The page i want to jump to is called http://www.myself.com/?page_id=2 so i've been trying variations of get_?page_id=2 but i'm shooting in the dark as i dont know the first thing about php!

What about the .htaccess tip? I think this one is the easiest to implement.

The problem with php redirection it needs to happen before anything is output, so you'd want to put it in your header at the very top. Maybe in the header.php file of your theme at the very top. Some code like this:

Code:

<?php
if ($_SERVER['REQUEST_URI']=='/?page_id=4')
{
  header("Location: http://www.myself.com/?page_id=2");
  exit();
}
?>

Is it "?page_id=4" ?

Code:

if ($_GET['page_id']=='4')
{
  header("Location: http://www.myself.com/?page_id=2");
  exit();
}


rogueteens 11-18-2010 07:47 AM

thanks, Brujah! your advice (as well as Harvey's) as well as someone on another forum solved this for me :)
Many thanks

HowlingWulf 11-18-2010 08:10 AM

Have you tried any of the membership plugins for wordpress?

harvey 11-18-2010 12:35 PM

Sorry, didn't see it yesterday. Anyway, the idea behind conditionals is that under certain condition you need to do something different. In your case, when they get to page 4. So, you need to have both required actions: the one you want to regularly perform and the conditional one. In your case, it would be something like this:

Code:

<?php wp_reset_query();
if (is_page('4') )
{
echo '<a href="YOUR_JOIN_PAGE">Next Page </a>';
} else {
          echo 'YOUR_REGULAR_CODE';
    };
}
?>



All times are GMT -7. The time now is 02:20 PM.

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