![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Programmers: can you do this in Wordpress?
Right now the sidebars in my Wordpress blog are all static.
So if someone is on the anal page, they'll see the exact same side bars as if theyre on the cumshot page, the tranny page, the ebony page, etc. Is there any way I can make it dynamic? So when someone is on the ebony page it shows some ebony banners in my sidebars? And when someone is on the anal page it shows anal banners on the sidebars? In the url it does say www.mysite.com/anal, www.mysite.com/ebony etc. So maybe theres a way to pull the category name from the url and have it so that whatever category is showing in the url, will show the approriate banner in the url. Anyone know how to do this? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,229
|
Im not sure how wordpress passes in its categories but you could put something along the lines of this in your template
Code:
<? $category = $_GET[category]; //not sure about this part, might need to explode(); the url and use the last value in the array, as i said i dont know how this is put together in wordpress exactly. if($category == 'anal') { echo "html code for anal banner"; } elseif($category == 'ebony') { echo "html code for ebony"; } else { echo "no matches, generic banner html"; } ?>
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Quote:
Thank you! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
FBOP Class Of 2013
Industry Role:
Join Date: Jan 2004
Location: bumfuck, ky
Posts: 35,562
|
yup, what he said above, just tell wordpress to check the category before it pulls the sidebar, then it loads a certain sidebar for that category
you can tell it multiple sidebar.php file, and then just duplicate the sidebar.php in your ftp for each sidebar you need |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
see you later, I'm gone
Industry Role:
Join Date: Oct 2002
Posts: 14,111
|
Quote:
Next question please ![]()
__________________
All cookies cleared! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
I cant get that to work correctly.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
this is some serious business
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Nov 2004
Location: scv
Posts: 2,299
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
www.creationcrew.com
Industry Role:
Join Date: Feb 2005
Location: CREATIONCREW.COM CREATIONCREW.COM CREATIONCREW.COM CREATIONCREW.COM CREATIONCREW.COM CREATIONCREW.COM
Posts: 12,110
|
serious ....
![]() ![]() ![]()
__________________
![]() ++ Adult and Mainstream Websites Designs | 10 banners for only $50 | html5 Banners ++ email : [email protected] Telegram : https://t.me/creationcrew | HTML5/Responsive Site - Div/CSS - ElevatedX - NATs - Wordpress |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Mar 2003
Location: Sweden
Posts: 30,069
|
I want wordpress to load niche specific link trades in the side bar for each category and full list of link trades on main page, can it do that?
__________________
gfynicky @ gmail.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Rock 'n Roll Baby!
Join Date: Sep 2004
Location: USA, temporarly
Posts: 22,562
|
you can use is_category() function and the combine it with conditional tag....for example if(is_category('teen')) { whatever; }
__________________
Sig for sale. Affordable prices. Contact me and get a great deal ;) My contact: ICQ: 944-320-46 e-mail: manca {AT} HotFreeSex4All.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
I just can't code.
How much would it cost to hire a programmer to do this for me? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
marketer.
Industry Role:
Join Date: Aug 2006
Location: bcn
Posts: 2,280
|
ok, lets say you've got 3 categories,
babe lesbian black this is untested, but should work ... ![]() PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 | |
Confirmed User
Industry Role:
Join Date: Mar 2004
Posts: 4,027
|
Quote:
It works!! Thank you! btw, I have a LOT of categories, would this slow down the page to have like 50 categories listed inthis code? is there a way to make it so I dont slow down the page processing? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |