sponsor_list

Post Reply
rax
Posts: 172
Joined: Sat Oct 05, 2013 9:28 pm

sponsor_list

Post by rax »

What is the easiest way to link to this template to display galleries for sponsors?

Example: domain.com/sponsor/Reality-Kings/


And what is the html for pagination for this template
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sponsor_list

Post by admin »

Easiest way is w\o a rewrite

/scj/tube/?sponsor_id=...&force_template=...

there's a default rewrite

RewriteRule ^sponsor_galleries/(.*)/(.*)/$ /scj/tube/?sponsor_slug=$1&page=$2&force_template=sponsor_list [L]

but you can change it as you want.
Don't forget to run script update
rax
Posts: 172
Joined: Sat Oct 05, 2013 9:28 pm

Re: sponsor_list

Post by rax »

I've been trying to get the pagination to work however some of the same galleries are showing up in each of the sponsor pages.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sponsor_list

Post by admin »

Those galleries are thumbs being tested so that's ok

You can add skip_test_thumbs=true to a <thumb tag to avoid it.
Don't forget to run script update
rax
Posts: 172
Joined: Sat Oct 05, 2013 9:28 pm

Re: sponsor_list

Post by rax »

Code: Select all

RewriteRule ^sponsor_galleries/(.*)/(.*)/$ /scj/tube/?sponsor_slug=$1&page=$2&force_template=sponsor_list [L]
what about pagination rewrite rule for custom galleries that contain more than 1 sponsor?
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: sponsor_list

Post by admin »

This rewrite already has a variable for it

&page=..
Don't forget to run script update
Post Reply