Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
gbp_permanent_links: pageby is making my SWF disappear
Refer to this link
Clicking the “more vids” link under the list on the right goes to page 2 – and the SWF on the left side vanishes. Going back using the “previous vids” link – still gone. But re-clicking media in the top nav “reloads” the SWF…
Maybe it’s something I don’t understand about the way pagination works, but I simply cannot figure out why this is happening.
The template code:
<div id="thecols" class="clearfix">
<div class="onecol">
<txp:if_section name="media">
<div id="flashcontent">
<p><strong>You need to upgrade your Flash Player</strong><br />
Please visit <a href="http://www.adobe.com/products/flashplayer/" target="_blank">Adobe</a> for the latest version.</p>
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("<txp:link_to_home />gallery.swf", "gallery", "640", "452", "8", "#ca0088");
so.write("flashcontent");
// ]]>
</script>
</div><!-- end onecol -->
<div class="oneofthree" id="pink">
<txp:article limit="3" pageby="3" form="vids_we_like" />
<div class="moreshows"><span class="prevbatch"><txp:newer showalways="0">previous vids</txp:newer></span><span
class="nextbatch"><txp:older showalways="0">more vids</txp:older></span></div>
<txp:output_form form="sidebar_ad_unit" />
</div><!-- end oneofthree (3) -->
</div><!-- end thecols -->
This code places the SWF via swfobject.js in the left side of the page, then places a article list in the right. The vids_we_like form is just title and body and the videos are embedded using the plugin the_video in the article body.
The video links are the only articles on the page. No categories are being used. I need the pagination so I can’t use article_custom…
Some debugging/troubleshooting that I’ve tried:
1. adding <txp:if_article_list> around the article statement – no change
2. I’m using gbp_permanent_links but disabling it – no change
3. placing the SWF stuff in it’s own form – no change
4. replacing the embeded videos with text (thinking the embed was screwing things up) – no change
I’m really just flat out stumped. Help?!?
(Edit: updated discussion topic. -Mary)
Last edited by Mary (2008-03-02 04:28:49)
Offline
#2 2008-02-29 03:48:45
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: gbp_permanent_links: pageby is making my SWF disappear
Offline
Re: gbp_permanent_links: pageby is making my SWF disappear
Here is the trace from the media page once I’ve clicked the “more vids” link. URL:http://s32787.gridserver.com/media/2/
<!-- Runtime: 0.2542 -->
<!-- Query time: 0.203506 -->
<!-- Queries: 28 -->
<!-- Memory: 3222Kb, <txp:the_video from="y" id="eqPPJ2bVjns" w="300" h="252" /> -->
<!-- txp tag trace:
[SQL (0.000659): select name from txp_lang where lang='en-us' limit 1]
[SQL (0.002491): select name, data from txp_lang where lang='en-us' AND ( event='public' OR event='common')]
[SQL (0.017308): select name, code, version from txp_plugin where status = 1]
[SQL (0.065008): update textpattern set Status=2 where ID in (select article_id from md_articles_expirations where active=1 and expiration_date <= now())]
[SQL (0.000619): update md_articles_expirations set active=0 where active=1 and expiration_date <= now()]
[SQL (0.000601): select name, html as type from txp_prefs where event = 'permlinks' AND html <> 'gbp_partial']
[SQL (0.000594): select ID,Section from textpattern where url_title like '2' AND Section='media' and Status >= 4 limit 1]
[SQL (0.001791): select * from txp_section where name = '' limit 1]
[SQL (0.003526): select REPLACE(name, 'gbp_permanent_links_', '') AS id from txp_prefs where `event` = 'permlinks' AND `name` REGEXP '^gbp_permanent_links_.{13}$']
[SQL (0.004935): select name from txp_section where (`name` like 'media' or `name` like 'media') limit 1]
[SQL (0.006149): select name from txp_category where (`name` like '2' or `name` like '2') and `type` = 'article' limit 1]
[SQL (0.008673): select ID from textpattern where `url_title` like '2' and `Section` = 'media' and `Status` >= 4 limit 1]
[SQL (0.009144): select name from txp_section where (`name` like 'media' or `name` like 'media') limit 1]
[SQL (0.005209): select page from txp_section where name = 'media' limit 1]
[SQL (0.012821): select host from txp_log where ip='66.108.20.214' limit 1]
[SQL (0.054947): insert into txp_log set `time`=now(),page='/media/2/',ip='66.108.20.214',host='cpe-66-108-20-214.nyc.res.rr.com',refer='',status='200',method='GET']
[SQL (0.001384): select user_html from txp_page where name='sub1col']
[Page: sub1col]
<txp:output_form form="the_head" />
[SQL (0.001612): select Form from txp_form where name='the_head']
[Form: the_head]
<txp:page_title/>
[SQL (0.000218): select title from txp_section where name='media']
<txp:link_to_home/>
<txp:if_section name="default,media">
[<txp:if_section name="default,media">: true]
<txp:link_to_home/>
</txp:if_section>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:section/>
<txp:if_section name="default">
[<txp:if_section name="default">: false]
</txp:if_section>
<txp:link_to_home>
<txp:link_to_home/>
</txp:link_to_home>
<txp:output_form form="top_banner" />
[SQL (0.000233): select Form from txp_form where name='top_banner']
[Form: top_banner]
<txp:link_to_home/>
<txp:output_form form="the_nav" />
[SQL (0.000321): select Form from txp_form where name='the_nav']
[Form: the_nav]
<txp:link_to_home>
</txp:link_to_home>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:link_to_home/>
<txp:output_form form="subcolumn_tops" />
[SQL (0.000328): select Form from txp_form where name='subcolumn_tops']
[Form: subcolumn_tops]
<txp:if_section name="upstairs">
[<txp:if_section name="upstairs">: false]
</txp:if_section>
<txp:if_section name="showroom">
[<txp:if_section name="showroom">: false]
</txp:if_section>
<txp:if_section name="news">
[<txp:if_section name="news">: false]
</txp:if_section>
<txp:if_section name="media">
[<txp:if_section name="media">: true]
<txp:link_to_home/>
</txp:if_section>
<txp:if_section name="about">
[<txp:if_section name="about">: false]
</txp:if_section>
<txp:if_section name="contact">
[<txp:if_section name="contact">: false]
</txp:if_section>
<txp:if_section name="media">
[<txp:if_section name="media">: true]
<txp:link_to_home/>
<txp:article limit="3" pageby="3" form="vids_we_like" />
[SQL (0.000980): select count(*) from textpattern where 1 and Status = 4 and Posted <= now() and Section = 'media']
[SQL (0.001447): select *, unix_timestamp(Posted) as uPosted from textpattern where 1 and Status = 4 and Posted <= now() and Section = 'media' order by Posted desc limit 3, 3]
[article 17]
[SQL (0.000311): select Form from txp_form where name='vids_we_like']
[Form: vids_we_like]
<txp:title/>
<txp:body/>
<txp:the_video from="y" id="eqPPJ2bVjns" w="300" h="252" />
<txp:newer showalways="0">
</txp:newer>
<txp:older showalways="0">
</txp:older>
<txp:output_form form="sidebar_ad_unit" />
[SQL (0.000270): select Form from txp_form where name='sidebar_ad_unit']
[Form: sidebar_ad_unit]
<txp:link_to_home/>
</txp:if_section>
<txp:if_section name="contact">
[<txp:if_section name="contact">: false]
</txp:if_section>
<txp:if_section name="about">
[<txp:if_section name="about">: false]
</txp:if_section>
<txp:output_form form="the_footer" />
[SQL (0.000260): select Form from txp_form where name='the_footer']
[Form: the_footer]
<txp:link_to_home/>
[ ~~~ secondpass ~~~ ]
-->
should I also post the tag trace from the initial media page to compare?
Offline
#4 2008-02-29 21:33:01
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: gbp_permanent_links: pageby is making my SWF disappear
Works: http://s32787.gridserver.com/media?pg=2
What are you using to generate the /2/
?
Offline
Re: gbp_permanent_links: pageby is making my SWF disappear
Hi Mary,
I’m using gbp_permanent_links
But I turned off the plugin and the page was still not working.
I need to use it or something similar in order for the “about” sub-sections of the site (which use categories for a sub-section) to have clean URLS.
Perhaps I can skip all this mess and simply install a rule in the htaccess file? I don’t know enough about htaccess to write my own rules, but I’m certainly familiar with it…
and thanks Mary!!!
Offline
#6 2008-03-02 04:28:22
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: gbp_permanent_links: pageby is making my SWF disappear
But I turned off the plugin and the page was still not working.
What URL were you trying to use though? if you were still trying /media/2
, Textpattern wouldn’t have a clue what you were looking for.
My guess is that this is to do with the plugin itself (how it “explains” to Textpattern what URL you’re looking for). So I would recommend that you ask the plugin developer about it.
Offline