Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Rewrite eBay To ShoppingAds Details »»
Rewrite eBay To ShoppingAds
Version: 1.2, by Dismounted Dismounted is offline
Developer Last Online: Apr 2023 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.x Rating:
Released: 04-09-2007 Last Update: 10-09-2008 Installs: 52
Uses Plugins
Additional Files  
No support by the author.

Rewrite eBay To ShoppingAds

*** Please be aware that a member has had his ShoppingAds account deactivated through the use of this modification. (See https://vborg.vbsupport.ru/showpost....&postcount=113) ***

Description:
Adds ShoppingAds prefix to posted eBay links.

Request:
https://vborg.vbsupport.ru/showthread.php?t=144207

Installation:
All the installation information is in the package.

Changes:
2 Plugins
1 File

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #102  
Old 01-26-2009, 04:13 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #103  
Old 01-26-2009, 01:13 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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.
Reply With Quote
  #104  
Old 01-27-2009, 03:30 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #105  
Old 01-27-2009, 01:35 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dismounted View Post
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.
Reply With Quote
  #106  
Old 01-28-2009, 04:45 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ludachris View Post
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 View Post
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).
Reply With Quote
  #107  
Old 01-28-2009, 01:08 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #108  
Old 02-19-2009, 03:48 PM
Reece^B Reece^B is offline
 
Join Date: Jan 2006
Location: Essex
Posts: 406
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #109  
Old 02-19-2009, 07:32 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #110  
Old 02-20-2009, 03:36 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That error occurs when the encoding "doubles up". (I remember I fixed this, but it seems not.)
Reply With Quote
  #111  
Old 03-05-2009, 03:33 AM
DieselMinded's Avatar
DieselMinded DieselMinded is offline
 
Join Date: Mar 2007
Posts: 1,655
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is this going to be updated for vb 3.8+
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05624 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete