Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-05-14 15:28:09

asko
Member
Registered: 2011-05-11
Posts: 138

Where are files to modify search results & video play templates ?

Just like the frontpage.tpl.php can modify index page, where are the files to modify the search results page and  video play page ?

Offline

#2 2011-05-14 18:00:37

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

templates/your-template/video_search.tpl.php
templates/your-template/video_view.tpl.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#3 2011-05-14 19:48:06

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

Thank you-->mulţumesc
(google translate!)

Offline

#4 2011-05-15 09:11:30

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

Hahaha... :-) Cu placere :-)


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2011-07-30 05:16:45

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

Can you please tell me what pages are:
1)video_browse.tlp is used for?
2)video_search.tlp-->results from search box?
3)video_category.tlp ?

Last edited by asko (2011-07-30 05:17:12)

Offline

#6 2011-07-30 08:19:12

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

1. Video Browse (Recent, Popular, Most Viewed.... Videos)
2. Video Search Results
3. Video Browse in a specific category (/amateur/recent/3/ for example)


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#7 2011-08-14 01:45:55

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

On video_view.tpl, if i click one of the 'related' videos under the video that is playing the new video that starts to play(chosen from 'related videos') is using another style than the original video_view.tpl page, which .tpl is it using?

Offline

#8 2011-08-14 07:03:54

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

That is impossible. It should use the same template, so it can't be different.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#9 2011-08-14 13:58:41

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

I modified the style.css for video_view.tlp   yesterday and when ever i clicked a thumb under 'related videos'  it was not showing the same style.
Today it is working, it is not doing that, maybe it has something to do with the browser or server cache memory or whatever, its a mysterious tech thing !!!

Last edited by asko (2011-08-15 01:41:17)

Offline

#10 2011-08-14 15:06:15

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

The related videos have a additional class on the view video page, however once you click on a related video everything should be the same (actually i cant even think how it can be different, because the page is the same). I'm pretty sure its actually a misunderstanding, either you dont know how to explain or i dont understand what you want to say.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#11 2011-08-15 01:21:53

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

Well its working now for some strange reason

Offline

#12 2011-08-15 01:40:39

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

The categories <ul><li>... list on side of site shows 'All' as first option this links to
http://www.website.com/recent/ (it uses the video_browse.tlp.)
On this page pagination works normally going from first page to last page, and gives url
http://www.website.com.com/recent/2/

The rest of the categories when clicked  use video_category.tlp and show a url such as
http://www.website.com/amateur(whatever category)/
The --> 'Recent' 'Popular' 'Being watched'... upper options all work fine also with my new css.

The problem is the pagination on this page(video_category.tlp) shows the next page as
http://www.website.com/recent/2/  but  css missing so i suppose it is using another .tlp which one?, otherwise why doesn't it follow the style ???

The pagination also does this same thing after i go to second page of the tags page (video_tag.tpl)

Last edited by asko (2011-08-15 13:53:27)

Offline

#13 2011-08-15 07:41:55

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

There is a error for the pagination. It was fixed in recent versions. Please paste the pagination line from the tpl file so i can see where the error is and post the fix here.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#14 2011-08-15 13:50:53

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

Not sure exactly which line so here is code mentioning 'pagination' with surrounding lines

video_category.tlp:

<div class="clear-left">
</div>
<?php echo p('adv_category', 'video-category-bottom', array($this->cat_id)); ?>
<div class="pagination">
<ul>
<?php echo p('pagination', $this->pagination, build_url($this->order, $this->timeline, $this->slug, true)); ?>
</ul>
</div>
<?php else: ?>
<div class="none"><?php echo __('no-videos'); ?>
</div>
<?php endif; ?>

video_tag.tlp:

<?php endforeach; ?>
<div class="clear-left">
</div>
<div class="pagination">
<ul>
<?php echo p('pagination', $this->pagination, RELATIVE_URL.'/tag/'.$this->tag.'/#PAGE#/'); ?>
</ul>
</div>
<?php else: ?>
<div class="none"><?php echo __('no-tag', array($this->tag)); ?>
</div>
<?php endif; ?>

Last edited by asko (2011-08-15 13:55:48)

Offline

#15 2011-08-15 14:01:19

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

In case it helps here is code for video_browse.tlp that has no pagination problem and is working perfect

<div class="clear-left">
</div>
<?php echo p('adv', 'video-browse-bottom'); ?>
<div class="pagination">
<ul>
<?php echo p('pagination', $this->pagination, build_url($this->order, $this->timeline, '', true)); ?>
</ul>
</div>
<?php else: ?>
<div class="none">
<?php echo __('no-videos'); ?>
</div>
<?php endif; ?>

Last edited by asko (2011-08-15 14:02:29)

Offline

#16 2011-08-15 18:28:16

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

Whats your site's URL. I have the exact same thing in my files and it works for me sad


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#17 2011-08-15 21:26:45

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

The actual adultscriptpro script is in a sub-folder of the main site.

From what i am observing the original  style.css sheet from www.mysite.com/adultscriptpro/templates/default-pink/css is linking fine
-> the css in header.tpl goes as follow:<link rel="stylesheet" href="/adultscriptpro/templates/default-pink/css/style.css?v3" type="text/css" media="all" />

The css styles that dont work are the ones i added that are in my site root folders, exterior to adultscriptpro
-> the css in header.tpl link go as follow:<link rel="stylesheet" type="text/css" href="../../../mycssfolder/myStyles.css" />
you see the-> ../../../  i added for styles to link into adultscriptpro template, it works for all other pages except pagination after page1 for video_tag.tlp and video_category.tlp.

i think that somehow it is not connecting because of the ../../../ folder hierarchy, so i must wonder if the pagination after page1 is not in another folder hierarchy??? or maybe it reloads with another header ??? There is a disconnection at that point.
My firebug console even says "This element has no style rules." for those parts.

Last edited by asko (2011-08-15 21:39:36)

Offline

#18 2011-08-16 07:24:45

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

Try to use absolute urls (or actually relative to /). So basically you load the css file like this: /subfolder-where-aspro-is-installed/templates/default-pink/css/style.css


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#19 2011-08-17 19:38:51

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

My set up worked for ALL other scriptpro pages, so WHY IS IT DOING THAT,where is the logic?


---->SOMETHING IN THE PAGINATION AJAX CODE ?,
where is the code that creates this pagination for video_category.tlp & video_tag.tlp?
Maybe i can modify that code, that part that just seems to be pointing to the css folders in adultscript?
(/adultscriptpro/templates/default-pink/css/style.css?v3") It's not magic that doing this smile there is a logic.


----->This is one of the last things i have to do and  project will be finished. You will have peace and many thank you's

Last edited by asko (2011-08-18 02:10:09)

Offline

#20 2011-08-18 02:14:51

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

Noticed something else, not even  links i added work on pagination page#2 and highier
<a class="Links" href="../../../mypages.php" >

Offline

#21 2011-08-18 06:21:05

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

The plugin for the pagination in templates/your-template/extend/plugins/pagination.plugin.php. I sincerly dont know what you are doing, however i can tell you that if you are on page 1, eg: http://www.domain.com/recent/ and then you go on page 2, http://www.domain.com/recent/2/, then your url "../style/style.css" (for example), wont work anymore.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#22 2011-08-18 12:00:55

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

LOL i know it doesn't work by this time
Can you tell me why it starts not work on page 2? Its working on page1! there is a logic.

Last edited by asko (2011-08-18 12:30:15)

Offline

#23 2011-08-18 15:58:13

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Where are files to modify search results & video play templates ?

Because its a relative url so its relative to the current URL, so domain.com/recent/ you have ../ and domain.com/recent/2/ you have ../../ and domain.com/amateur/recent/3/ you have ../../../

You need to use absolute urls like /css/style.css or whatever you use.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#24 2011-08-19 02:12:55

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

This is chinese, incomprehensible, so i will forget about it, and use absolute url's with http://.........
And thats the end of that! QUICK FIX

Last edited by asko (2011-08-19 02:13:24)

Offline

#25 2011-08-19 02:20:54

asko
Member
Registered: 2011-05-11
Posts: 138

Re: Where are files to modify search results & video play templates ?

Where is page .tpl that indicates:

We're sorry, the page you requested cannot be found!
...

Last edited by asko (2011-08-19 02:21:53)

Offline

Board footer

Powered by FluxBB