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.
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
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
Thank you-->mulţumesc
(google translate!)
Offline
Hahaha... :-) Cu placere :-)
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
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
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
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
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
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
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
Well its working now for some strange reason
Offline
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
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
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
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
Whats your site's URL. I have the exact same thing in my files and it works for me
Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds
Offline
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
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
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 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
Noticed something else, not even links i added work on pagination page#2 and highier
<a class="Links" href="../../../mypages.php" >
Offline
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
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
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
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
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