vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Mini Mods - vBaffiliate Links (https://vborg.vbsupport.ru/showthread.php?t=176355)

briansol 05-11-2008 04:27 AM

how tight is the replacement?

I have dismounted's ebay re-writer.

if i add
ebay -> ebay.com?mycampid
as a rule in this product, will it break the real ebay links?

Alfa1 05-11-2008 11:18 AM

I am experiencing a strange bug that might or might not be caused by a conflict of this hack with Nuwiki. Since I installed this hack, I am getting Nuwiki footnotes in various threads. As said; this may be totally unrelated, but I am mentioning it just in case anyone has the same experience.

EDIT: after disabling this hack and rebuilding post cache, this bug disappears.

nfn: when entering long lists of replacements, it will be easy to loose track. As is now, there are two fields to enter replacements in: one for the words that need to be replaced and one for all the words to replace with. In both fields, each new line separates a value. Imagine using a lot of replacements. Say 100. So the word on line 73 of the first box, will be replaced by line 73 of the second box. If the order of one line is messed up, then all lines under that will be messed up. So if line 6 would be deleted, then line 6 - 100 will be wrong. This means that all mentions of these 94 words in your database will be messed up forever. That is a very large impact. Could you please consider to either put the two boxes side by side or create another way to make sure that the replaced and the replacement are right next to each other?

SimonVlc 06-04-2008 10:49 AM

Installed, great mod ;).

I just want to point that it don?t differentiate blocks of 2+ words from the 1 ones.

For example, if I put these 2 strings:

poker stars
stars

It will do 2 replacements in a imaginary "poker stars" string, one for the complete word, one for the stars one.

I will report any bug in the next days ;).

forumguy 06-05-2008 01:49 PM

Can we customize this so it would actually rewrite urls as wel?

Currently it only allows keywords, however lets say a user posted a link on the forum.

Can we adjust the script so that we can specify a part of the link so the script knows to append my affiliate id to the link?

Thanks

SimonVlc 06-06-2008 06:35 AM

Quote:

Originally Posted by nfn (Post 1515308)
Yes ... this is done when the post it's shown and doesn't changes the default content.
If it doesn't show on older posts, try to clean the cache.

How can I clean the cache?

I have updated the link mask today, but my links still appear with the older one.

Cheers, Simon.

nfn 06-06-2008 07:58 AM

Yes ... I already thought that! In a new release I'll do that.

Quote:

Originally Posted by Alfa1 (Post 1515823)
nfn: when entering long lists of replacements, it will be easy to loose track. As is now, there are two fields to enter replacements in: one for the words that need to be replaced and one for all the words to replace with. In both fields, each new line separates a value. Imagine using a lot of replacements. Say 100. So the word on line 73 of the first box, will be replaced by line 73 of the second box. If the order of one line is messed up, then all lines under that will be messed up. So if line 6 would be deleted, then line 6 - 100 will be wrong. This means that all mentions of these 94 words in your database will be messed up forever. That is a very large impact. Could you please consider to either put the two boxes side by side or create another way to make sure that the replaced and the replacement are right next to each other?


nfn 06-06-2008 08:00 AM

It will just replace ebay word and yes ... that way will break the url.

Quote:

Originally Posted by briansol (Post 1515589)
how tight is the replacement?

I have dismounted's ebay re-writer.

if i add
ebay -> ebay.com?mycampid
as a rule in this product, will it break the real ebay links?


nfn 06-06-2008 08:02 AM

Quote:

Originally Posted by SimonVlc (Post 1540486)
It will do 2 replacements in a imaginary "poker stars" string, one for the complete word, one for the stars one.

Yes ... you should place "starts" first.

nfn 06-06-2008 08:03 AM

If you know the full url you can do that, but this is not optimized for that job.

Quote:

Originally Posted by forumguy (Post 1541541)
Can we customize this so it would actually rewrite urls as wel?

Currently it only allows keywords, however lets say a user posted a link on the forum.

Can we adjust the script so that we can specify a part of the link so the script knows to append my affiliate id to the link?

Thanks


nfn 06-06-2008 08:04 AM

The replacement is done when the page is shown.

Quote:

Originally Posted by SimonVlc (Post 1542098)
How can I clean the cache?

I have updated the link mask today, but my links still appear with the older one.

Cheers, Simon.


SimonVlc 06-06-2008 09:03 AM

Quote:

Originally Posted by nfn (Post 1542157)
The replacement is done when the page is shown.

Mmm, I?m experiencing a strange problem...

My new link mask is not respected (all links appear with the older one).

If I add a new replacement it?s not replaced. If I remove a replacement and then I write a post with the removed replacement, it?s replaced.

If I disable the product via it?s own options, it?s not disabled (I must disable it from the products admin page to do it effectively).

Any idea of what can be the cause? Thanks in advance, Simon.

SimonVlc 06-06-2008 09:18 AM

Quote:

Originally Posted by SimonVlc (Post 1542177)
Mmm, I?m experiencing a strange problem...

My new link mask is not respected (all links appear with the older one).

If I add a new replacement it?s not replaced. If I remove a replacement and then I write a post with the removed replacement, it?s replaced.

If I disable the product via it?s own options, it?s not disabled (I must disable it from the products admin page to do it effectively).

Any idea of what can be the cause? Thanks in advance, Simon.

Solved... it was a problem with datastore filecache setting in config.php.

RobHW 06-06-2008 02:05 PM

This looks like a great mod. I'm surprised it hasn't been downloaded more. Are further modifications planned? In particular, sometimes a user will post a direct link to a product on a site. Since I'm affiliated with the site, I'd like to be able to mod the link such that the link still works, but is updated to include my affiliate information. This is more than a straight-forward text replacment because the product ID is variable. The site I'm thinking of is Newegg, which is very popular with my visitors.

SimonVlc 06-07-2008 07:30 AM

Suggestion: What about an option to make the link conversion only to guest users? I think it will be great ;).

nfn 06-07-2008 07:46 AM

@RobHW: It's on my todo list :)
@SimonVlc: that's a good option.

As soon as I have some free time, i'll try to accomplish that.

Alfa1 06-10-2008 04:41 PM

Quote:

Originally Posted by Alfa1 (Post 1515823)
I am experiencing a strange bug that might or might not be caused by a conflict of this hack with Nuwiki. Since I installed this hack, I am getting Nuwiki footnotes in various threads. As said; this may be totally unrelated, but I am mentioning it just in case anyone has the same experience.

EDIT: after disabling this hack and rebuilding post cache, this bug disappears.

Any idea on this bug? I know there is another hack involved, but since it wrecks my board, it is very important.

SimonVlc 06-17-2008 09:16 AM

Don?t let this mod die, it?s great ;)!

inbrissy 06-24-2008 02:59 AM

I have a great number of members posting URLs with their affiliate links.. What I would like to see is the option to mask out those URLs with my own link UNLESS they are a paid subscriber of my forum.
So that you can give your members the option to become a contributor to the forum and allow them a certain number of banner views and the option to post their own links.

Just a thought.

lilfields10 06-27-2008 12:33 AM

I know you didn't test it with my vBulletin build, but vBulletin® v3.6.7 gets the following error:

Fatal error: Call to undefined function: vbal_msg() in /includes/class_postbit.php(296) : eval()'d code on line 102

I'd appreciate some insight or a fix

Sofia 06-27-2008 01:05 AM

thanks a lot :)

ecrotty 07-27-2008 01:17 AM

It's a shame, but is this mod over with? Is there an alternative?

plusev 08-03-2008 02:17 PM

I would really like to replace words at the beginning of sentences, but I do not want to turn of the "add space before" option.

I have looked at the code and cannot see a quick solution for this problem. Is it something you have looked into yourself? Maybe I can help?

A sollution with regular expression would do it --> preg_replace could be an option perhaps?

Please email me if you wish to persue this option.

Michiel

Soliloquy 08-04-2008 03:57 AM

I installed this on my forum but it caused the following error:
Quote:

Warning: in_array() [function.in-array]: Wrong datatype for second argument in [path]/includes/functions_forumlist.php(393) : eval()'d code on line 55
(That was repeated 19 times on my forumhome, so I had to disable it.)

plusev 08-04-2008 05:56 AM

Quote:

Originally Posted by Soliloquy (Post 1590925)
I installed this on my forum but it caused the following error:

(That was repeated 19 times on my forumhome, so I had to disable it.)

what version of vBulletin are you running?

stevectaylor 08-04-2008 09:50 AM

Idea Good but all I get is the following error,

Fatal error: Call to undefined function: vbal_msg() in /xxxxxxxxx_postbit.php(293) : eval()'d code on line 7

plusev 08-04-2008 10:39 AM

Quote:

Originally Posted by stevectaylor (Post 1591064)
Idea Good but all I get is the following error,


Fatal error: Call to undefined function: vbal_msg() in /xxxxxxxxx_postbit.php(293) : eval()'d code on line 7

what version of vBulletin are you running?

stevectaylor 08-04-2008 11:54 AM

3.7.2 the latest

plusev 08-04-2008 12:44 PM

php says that it cannot find the function the vbaffiliate plugin is trying to use...

I think the plugin did not install correctly. Did you try an uninstall/reinstall?

I use 3.7.2 as well, but have no problems.

are u using any other plugins that influence posts?

stevectaylor 08-04-2008 01:56 PM

Quote:

Originally Posted by plusev (Post 1591146)
php says that it cannot find the function the vbaffiliate plugin is trying to use...

I think the plugin did not install correctly. Did you try an uninstall/reinstall?

I use 3.7.2 as well, but have no problems.

are u using any other plugins that influence posts?

VBSEO

plusev 08-04-2008 04:47 PM

i am using vBSEO too, so I don't think that's it...

ErrorLog 08-04-2008 06:00 PM

Ajax toplist kayboluyor =S

tafSteve 08-06-2008 01:51 PM

This is the perfect plugin, unfortunately, I can't get it to work on 3.7.2 RC1... I have disabled all other products/plugins to ensure it wasn't another modification, to no avail. I get the same error in the postbit hook, like some of the others have had. Here it is below:

Fatal error: Call to undefined function: vbal_msg() in /xxxxxxxxx_postbit.php(293) : eval()'d code on line 7

The error comes from postbit_display_complete... it seems it can't read where the originanl 'vbal_msg' function was declared in the 'global_start' plugin of the product.

I've tried playing around a lot and still can't get rid of the error message. Any help would be nice, although I understand this is a rather old mod that wasn't even made for 3.7.2

Thanks,
steve

plusev 08-06-2008 02:28 PM

Quote:

Originally Posted by tafSteve (Post 1592646)
This is the perfect plugin, unfortunately, I can't get it to work on 3.7.2 RC1... I have disabled all other products/plugins to ensure it wasn't another modification, to no avail. I get the same error in the postbit hook, like some of the others have had. Here it is below:

Fatal error: Call to undefined function: vbal_msg() in /xxxxxxxxx_postbit.php(293) : eval()'d code on line 7

The error comes from postbit_display_complete... it seems it can't read where the originanl 'vbal_msg' function was declared in the 'global_start' plugin of the product.

I've tried playing around a lot and still can't get rid of the error message. Any help would be nice, although I understand this is a rather old mod that wasn't even made for 3.7.2

Thanks,
steve

The strange thing is that I am running 3.7.2 ( http://nl.plusevpokercoaching.com/pokerforum/ ) and the plugin is working fine.....

Can you tell me in what way I can help

tafSteve 08-06-2008 08:57 PM

Thanks for the quick reply plusev.

That is very strange indeed... It must not be any of the additional mods I have installed since I disabled all of them... I'll continue to play around with it tonight, but I am very confused on what the issue can be then. If you think of anything, please let me know... this is all sort of up in the air now. I will report any findings when I try messing with it again later this evening.

thanks again,
steve

CardMafia 08-18-2008 09:34 PM

I like this mod.

I did notice, if one of the words is part of the affiliate link, then it makes the link then breaks it up so the post shows the HTML of the link and links only the word in the affiliate code. anyway around this?

plusev 08-19-2008 06:08 AM

Quote:

Originally Posted by CardMafia (Post 1601799)
I like this mod.

I did notice, if one of the words is part of the affiliate link, then it makes the link then breaks it up so the post shows the HTML of the link and links only the word in the affiliate code. anyway around this?

Let's say you are an affiliate of "Full Tilt Poker" and want to link this text. Your user type things like Full Tilt Poker, Full Tilt, FullTilt, FT

sollution:
- no link mask!
- first replace the one with the most words with a single word (Full Tilt Poker --> ftp)
- replace all other variants with (for instance) ftp
- last, replace ftp with the affiliate link

I hope you can see what I mean, otherwise I can add a screenshot if you like

Greetz,

Michiel

stevectaylor 08-19-2008 06:19 AM

If you have VBSEO you can use the expanded acronym to do the same thing

Keyser Soze 08-21-2008 01:03 PM

How is it possible to highlight a certain word only once per post? If someone is talking about a certain product in his post and he mentions it in every second sentence, the post looks very "spammy" because it contais so many affiliate-links. I think, one link (for the first appearance of the word) would be enough and this would be a good candidate for a new option for this plugin ;)

Ossedis 08-26-2008 08:05 PM

Do you have this for 3.6.8?

OsirisAgain 11-17-2008 09:46 PM

Great job


All times are GMT. The time now is 01:33 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.01279 seconds
  • Memory Usage 1,831KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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