vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Rewrite eBay To ShoppingAds (https://vborg.vbsupport.ru/showthread.php?t=144468)

Dismounted 01-26-2009 04:13 AM

The modification should work on everything that uses the vBulletin BB Code Parser. vBAdvanced may cache data that has already been parsed, so you may have to wait for the cache to expire or clear the cache for the modification to come into effect.

ludachris 01-26-2009 01:13 PM

Quote:

Originally Posted by Dismounted (Post 1724861)
The modification should work on everything that uses the vBulletin BB Code Parser. vBAdvanced may cache data that has already been parsed, so you may have to wait for the cache to expire or clear the cache for the modification to come into effect.

So if I have an RSS feed set up on a vBa page, the links should be rewritten? It doesn't seem to be working that way. Could it be because I have it set up as a php module? I tried changing it to a template module and that didn't seem to do it.

Dismounted 01-27-2009 03:30 AM

My guess is that the RSS feed is not passed through the vBulletin BB code parser (with good reason, RSS feed content is in HTML). The links wouldn't be rewritten in this case.

ludachris 01-27-2009 01:35 PM

Quote:

Originally Posted by Dismounted (Post 1725827)
My guess is that the RSS feed is not passed through the vBulletin BB code parser (with good reason, RSS feed content is in HTML). The links wouldn't be rewritten in this case.

Anyway you can think of that I could rig it to work? Would it even be possible to write a hack that would make it work? Maybe I'll attempt my first hack... for example, could I create a custom vb page/script as described here:
https://vborg.vbsupport.ru/showthread.php?t=98009

and then apply an htaccess file for that page to do a rewrite? Or might there be an easier way? Thanks for the replies.

Dismounted 01-28-2009 04:45 AM

Quote:

Originally Posted by ludachris (Post 1726154)
Anyway you can think of that I could rig it to work? Would it even be possible to write a hack that would make it work?

It's possible, but not without some major changes how the RSS feed is imported. (Is there an option to turn the RSS feed's HTML into BB code? vBulletin allows this in its RSS feed manager, I'm not sure about vBAdvanced.)
Quote:

Originally Posted by ludachris (Post 1726154)
Maybe I'll attempt my first hack... for example, could I create a custom vb page/script as described here:
https://vborg.vbsupport.ru/showthread.php?t=98009

and then apply an htaccess file for that page to do a rewrite? Or might there be an easier way? Thanks for the replies.

That would not work. You are looking to modify the display of the URLs (what this modification does), not URLs hitting your server (this is what mod_rewrite does).

ludachris 01-28-2009 01:08 PM

Thanks for the replies. This goes beyond the realm of your hack so I'll not take it anymore off topic. Maybe I'll just post a request if I can't figure it out. Thanks again for answering my questions.

Reece^B 02-19-2009 03:48 PM

Using this mod, love it.

But I get an error each time someone clicks a active link:

This Listing Is Unavailable

This listing () has been removed or is no longer available. Please make sure you entered the right item number.
If the listing was removed by eBay, consider it cancelled. Note: Listings that have ended more than 90 days ago will no longer appear on eBay.

Paul M 02-19-2009 07:32 PM

There is a bug in this, which sometimes screws up the generated url (giving the above error).

To fix it I added a line in functions_rewrite_ebay_auctionads.php

I changed this ;

Code:

        // encode URL
        $encodedlink = urlencode($rightlink);


To this ;

Code:

        // encode URL
        $encodedlink = urlencode($rightlink);
        $encodedlink = str_replace('%26amp%3B','&',$encodedlink); // Paul M Fix, 04/02/2009


Dismounted 02-20-2009 03:36 AM

That error occurs when the encoding "doubles up". (I remember I fixed this, but it seems not.)

DieselMinded 03-05-2009 03:33 AM

Is this going to be updated for vb 3.8+


All times are GMT. The time now is 11:26 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01122 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete