Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Diego Andrés on December 04, 2008, 07:29:28 AM

Title: SMF Affiliates System
Post by: Diego Andrés on December 04, 2008, 07:29:28 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1511)

Mod will be updated soon for SMF 2.1!
Late 2019 - Early 2020


smf affiliates

demo

http://sa-mods.info/index.php?action=affiliates

demo on forum

http://sa-mods.info

Features:

o You can create unlimited affiliates and forum banners.
o Set Permissions for view affiliates,add affiliates, affiliates auto approve, rate affiliates,edit afflinks,edit afflinks any,delete afflinks any,approve affiliates,report affiliates,veiwreport affiliates.

o Simple and friendly admin panel for all Affiliates Settings.
o You can enable/disable every affiliate with just one click.
o Support for the Who is online list , 'Viewing the Affiliates'.
o Nice layout for the Affiliates index and Admin Panel.
o Support Affiliates on BoardIndex with options based on marquee.
o SSI Functions with Affiliates 'ssi_affiliates()' and random affiliate 'ssi_random_affiliate()'.
o Easy manual installation , you can manually install the db with the Affiliates Install.php
o You will have an empty error log.
o Integration with all the portal systems using the SSI Functions.
o Google PageRank Support.
o Vote the Affiliates with +1 or -1.
o Affiliates Stats with all the information of you need.
o will send pm if affilites waiting approvl
o will send pm to users when there affiliat is approved
o will send pm if affiiiatn repoted

A big thanks To these people for helping with beta testing
Özgür´  (http://www.simplemachines.org/community/index.php?action=profile;u=124605)
Kindred  (http://www.simplemachines.org/community/index.php?action=profile;u=1261)
mrtrc266 (http://www.simplemachines.org/community/index.php?action=profile;u=178448)

SA Affiliates is released under the Mozilla Public License v1.1


Title: Re: smf affiliates
Post by: kizer on December 04, 2008, 12:54:46 PM
I was looking for something sorta like this, but I was going to call it vendors, but this will work. Is there a way to make the box that displays the affliates larger and remove the scroll? Not that its not nice, but doesn't really fit what I'm trying to accomplish.
Title: Re: smf affiliates
Post by: kizer on December 04, 2008, 12:58:14 PM
Ok, I'm an idiot. I didn't see the enable up marquee. Hahahaha
Title: Re: smf affiliates
Post by: SA™ on December 04, 2008, 12:59:01 PM
lol i was just about to say it all in admin

Title: Re: smf affiliates
Post by: Ryan on December 04, 2008, 05:10:47 PM
I think its cool, i reckon it should tell them a step by step process when they add there site, to add the affiliate code to there own site first..
 
And there positions relate to clicked links..
 
Anyy affiliates that dont click thru to ur forum should be warned of being removed form list..  if they have 0 click throughs its obvious they didnt add the code to there own site..
 
Then i would use this script hehe  :D
Title: Re: smf affiliates
Post by: manixless on December 04, 2008, 06:11:10 PM
what a nice mod!!!! really nice wolk!!
i changed the affiliates web version for this one, it works really cool!!!!!!
thanks
Title: Re: smf affiliates
Post by: dwd2000 on December 05, 2008, 12:00:42 AM
For those who wish to use the code on SimplePortal:

Using a "php" block:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
   if (!empty($modSettings['enable_marquee']) && (!empty($modSettings['affiliates'])))
                     echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';


It will use whatever code you have in the "Board" box.
You can use this with the board enabled or not.
Title: Re: smf affiliates
Post by: Rafferty on December 05, 2008, 06:18:41 AM
OK installation problems... sources/ModSettings.php failed package installation so I went ahead and installed anyhow making the manual changes to ModSettings.php

All seems ok by appearances however any changes in set up I make are not saved after clicking the save button and I'm redirected back to Features & Options. Any Ideas.

Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 11:46:47 AM
you probalh missed an edit can you post up you ModSettings.php  please
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 12:15:09 PM
Hi,
installed manually but sorry I did not understand how does it work...
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 12:20:26 PM
its pretty simple what version did you use ???
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 12:27:47 PM
advanced
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 12:41:29 PM
i see you kinda worked it out

see where you put your banner that for your site right??

this is where you should put it

Enter the URL to your affiliate Banner1: [ your banner1 url here]

Enter the URL to your affiliate Banner2: [ your banner2 url here]

Enter the URL to your affiliate Banner3:[ your banner3 url here]

Enter the URL to your affiliate Banner4:[ your banner4 url here]


now where you have you banner at the mo is where you put the banners of people who affiliate with you

im finding this hard to explain so please forgive me for not going into too much detail with it
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 12:46:14 PM
For those who wish to use the code on SimplePortal:

Using a "php" block:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
   if (!empty($modSettings['enable_marquee']) && (!empty($modSettings['affiliates'])))
                     echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';


It will use whatever code you have in the "Board" box.
You can use this with the board enabled or not.


thanks dwd2000
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 01:03:03 PM
Okay,
but how affiliates (your site for example) are included in my site and mine in yours?
I add my site in Addlink tab.  What does it mean?  You received the information and then it will be available?
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 01:08:36 PM
no my affiliates are mine and your are yours :P


what you added your site and my afffilliates??? if so yes i get and email sent to my email addresse then i add them


same if i where to add a link on your site then you would get an email

basicly when someone send a request it send the request to the webmasters email addressse

kinda like the contact mod
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 01:16:46 PM
Okay,
but do you think people will find the Affiliate tab (menu tab) to send their request to affiliate?
After you have one Affiliate the box in bottom is shown, okay.  But until now it isn't... and so it does not call attention...
Yes of course I can search and start asking for an affiliation...
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 01:58:11 PM
I also note that Addlink verification picture does not change!
Title: Re: smf affiliates
Post by: dwd2000 on December 05, 2008, 04:31:26 PM
I also note that Addlink verification picture does not change!

Yes. Mine is the same.
I remember seeing something, somewhere, about fixing this.
I think it has something to do with caching.

EDIT:
Using NotePad++
Line 431 of smf_affiliates.template is showing an error (by the comments and stuff not being the right colour)
I think it's a simple punctuation thing.
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 05:37:22 PM
verification picture does change it not supposed to change on every refresh

it Only generate a new code if one hasn't been set yet


Line 431 of smf_affiliates.template no error there :)
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 06:11:57 PM
verification picture does change it not supposed to change on every refresh

it Only generate a new code if one hasn't been set yet


Okay.
Another question: Affiliate box is not showing to guest.  Is there  permissions to see it?
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 06:26:23 PM
nope theres no permissions for this maybe in the futre

do you mean the affiliates on boardindex aint showing to guest i notice your info center isnt there eaither that probaly why
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 06:32:05 PM
nope theres no permissions for this maybe in the futre

do you mean the affiliates on boardindex aint showing to guest i notice your info center isnt there eaither that probaly why
Yes, I use a mod to not show info center to guest...
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 06:37:01 PM
then tha is why cos the affiliates is in the info center funtion if you post up you boardindex.template.php i can move it for you if you want
Title: Re: smf affiliates
Post by: jossanaijr on December 05, 2008, 06:40:10 PM
Okay, thanks but I cannot do it today. I'll post it tomorrow.
Title: Re: smf affiliates
Post by: Rafferty on December 05, 2008, 06:52:38 PM
OK installation problems... sources/ModSettings.php failed package installation so I went ahead and installed anyhow making the manual changes to ModSettings.php

All seems ok by appearances however any changes in set up I make are not saved after clicking the save button and I'm redirected back to Features & Options. Any Ideas.



Attached, thanks.
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 07:07:37 PM
try this

Title: Re: smf affiliates
Post by: Rafferty on December 05, 2008, 07:20:32 PM
Perfect I appreciate your help and mod thank you
Title: Re: smf affiliates
Post by: SA™ on December 05, 2008, 07:23:31 PM
your welcome  ;)
Title: Re: smf affiliates
Post by: tyhgdgh on December 06, 2008, 12:54:14 AM
OK installation problems... sources/ModSettings.php failed package installation so I went ahead and installed anyhow making the manual changes to ModSettings.php

All seems ok by appearances however any changes in set up I make are not saved after clicking the save button and I'm redirected back to Features & Options. Any Ideas.

do you have another Afffiliate mod installed?
Title: Re: smf affiliates
Post by: Rafferty on December 06, 2008, 04:23:28 AM
i did but uninstalled it before attempting to install this one
Title: Re: smf affiliates
Post by: tyhgdgh on December 06, 2008, 04:30:39 AM
I still have both installed, did the modsettings when uninstalling failed, or manual edits?
Title: Re: smf affiliates
Post by: Rafferty on December 06, 2008, 04:54:11 AM
I uninstalled completely first but then had the ModSettings fail on installing this. Not sure what wdm2005 did to the file but it worked.
Title: Re: smf affiliates
Post by: SA™ on December 06, 2008, 01:49:15 PM
@ Nfanthr33  you need to uninstall the other affiliates mod to use this one or the other not both:)


@ Rafferty all i done was add the missing edit

'affiliates' => 'ModifyAffiliatesSettings',
Title: Re: smf affiliates
Post by: tyhgdgh on December 06, 2008, 04:43:56 PM
@ Nfanthr33  you need to uninstall the other affiliates mod to use this one or the other not both:)


@ Rafferty all i done was add the missing edit

'affiliates' => 'ModifyAffiliatesSettings',

I found that out earlier, I just replace Functionaffiliate, wth yours.
thanks for this mod too!
Title: Re: smf affiliates
Post by: Tokzu on December 07, 2008, 03:18:50 PM
Hi, great Mod. I have a problem, the code for TP doesn't work. I'm using TP 0.9.8
Title: Re: smf affiliates
Post by: SA™ on December 07, 2008, 04:21:38 PM
make sure you have affiliates in the boardindex block in admin
Title: Re: smf affiliates
Post by: Tokzu on December 07, 2008, 05:58:22 PM
ok, it works. I had forgotten to enable that the members were shown in the forum.  My mistake. :-[
Title: TEst fail
Post by: taha116 on December 07, 2008, 08:42:55 PM
    Basicly MY problem is a fail in the test run. The "add after" phase of the modification is were the problem is

Its in the executions for:
./Sources/ManageSettings.php

Here is exatly what it should do
Find

Code: [Select]
function ModifyLayoutSettings($return_config = false)
{
global $txt, $scripturl, $context, $settings, $sc;

$config_vars = array(
// Compact pages?
array('check', 'compactTopicPagesEnable'),
array('int', 'compactTopicPagesContiguous', null, $txt['contiguous_page_display'] . '<div class="smalltext">' . str_replace(' ', '&nbsp;', '"3" ' . $txt['to_display'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', '&nbsp;', '"5" ' . $txt['to_display'] . ': <b>1 ... 3 4 [5] 6 7 ... 9</b>') . '</div>'),
'',
// Stuff that just is everywhere - today, search, online, etc.
array('select', 'todayMod', array(&$txt['today_disabled'], &$txt['today_only'], &$txt['yesterday_today'])),
array('check', 'topbottomEnable'),
array('check', 'onlineEnable'),
array('check', 'enableVBStyleLogin'),
'',
// Pagination stuff.
array('int', 'defaultMaxMembers'),
'',
// This is like debugging sorta.
array('check', 'timeLoadPageEnable'),
array('check', 'disableHostnameLookup'),
'',
// Meta.
array('text', 'meta_keywords', 'size' => 50),
'',
// Who's online.
array('check', 'who_enabled'),
);

if ($return_config)
return $config_vars;

// Saving?
if (isset($_GET['save']))
{
checkSession();

saveDBSettings($config_vars);
writeLog();

redirectexit('action=admin;area=featuresettings;sa=layout');
}

$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=layout';
$context['settings_title'] = $txt['mods_cat_layout'];

prepareDBSettingContext($config_vars);
}


Add after

Code: [Select]
function ModifyAffiliatesSettings()
{
global $context, $txt, $scripturl, $modSettings, $db_prefix, $helptxt;

$config_vars = array(
    

'',
array('check', 'enable_up_marquee'),
array('large_text', 'actionaffiliates', '8', &$txt['action=affiliates_description'], 'actionaffiliates'),
'',
array('check', 'enable_affiliates_board'),
array('check', 'enable_marquee'),
array('text', 'smf_affiliates_title', '30', &$txt['smf_affiliates_title'], 'smf_affiliates_title'),
array('large_text', 'affiliates', '8', &$txt['affiliates_description'], 'affiliates'),
'',
array('large_text', 'smf_affiliates_reqirments', '8', &$txt['smf_affiliates_reqirments'], 'smf_affiliates_reqirments'),
'',
array('text', 'affiliatebanner', '30'),
array('text', 'affiliatebanner1', '30'),
    array('text', 'affiliatebanner2', '30'),
    array('text', 'affiliatebanner3', '30'),
'',
);

// Saving?
if (isset($_GET['save']))
{

saveDBSettings($config_vars);
writeLog();

redirectexit('action=admin;area=featuresettings;sa=affiliates');
}

$context['post_url'] = $scripturl . '?action=admin;area=featuresettings;save;sa=affiliates';
$context['settings_title'] = $txt['smf_affiliates'];
prepareDBSettingContext($config_vars);

}

Thats were it has trouble, I really really want this mod so im adding more details

All mods on my site details

Code: [Select]
1.  SMF Affiliates  1.0  [ Apply Mod ]  [ List Files ]  [ Delete ]
2. Auto Merge Double Post 1.0 [ Uninstall ] [ List Files ] [ Delete ]
3. Irritate lurkers with 0 posts 0.1 [ Uninstall ] [ List Files ] [ Delete ]
4. Order Stickied Topics 1.01 [ Uninstall ] [ List Files ] [ Delete ]
5. Spoiler Tag 0.6 [ Uninstall ] [ List Files ] [ Delete ]
6. Member Color Link 3.0.5a [ Uninstall ] [ List Files ] [ Delete ]
7. SMF Staff Page 1.6 [ Uninstall ] [ List Files ] [ Delete ]
8. No More Ugly Avatar Scrollbars 1.0 [ Uninstall ] [ List Files ] [ Delete ]
9. BoardHover Mod 1.3.1 [ Apply Mod ] [ List Files ] [ Delete ]
10. Rateit in Topics 1.0 [ Uninstall ] [ List Files ] [ Delete ]
11. Permissions_Info 1.2 [ Uninstall ] [ List Files ] [ Delete ]
12. SMF Media Gallery 1.5 [ Uninstall ] [ List Files ] [ Delete ]
13. Hide SMF Version 1.0.3a [ Uninstall ] [ List Files ] [ Delete ]
14. Registration redirection 0.1 [ Uninstall ] [ List Files ] [ Delete ]
15. BBC [you] 1.2 [ Uninstall ] [ List Files ] [ Delete ]
16. script.js Jump Fix 1.0 [ Uninstall ] [ List Files ] [ Delete ]
17. The Rules 1.2 [ Uninstall ] [ List Files ] [ Delete ]
18. Aeva ~ Auto-Embed Video & Audio 5.0 b1 [ Uninstall ] [ List Files ] [ Delete ]
19. PM to New Members 1.0 [ Uninstall ] [ List Files ] [ Delete ]

And my theme is Midnight Sun 2b4 (BTW im using 2.0 beta 4)

If you need more then say so and i will add it, do you need my ManageSettings.php file to look at?

~Thanks Ive been looking for this mod for a long time and gave up. Now my hope is back, yay!

Any solutions?
Title: Re: smf affiliates
Post by: tyhgdgh on December 08, 2008, 03:42:13 AM
you need to edit your ~ Boardindex.template.php in the themes folder
Title: Re: smf affiliates
Post by: SA™ on December 08, 2008, 11:12:31 AM
@taha116
go ahead and install it and post up you
ManageSettings.php please
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 12:23:04 PM
Ok guys im trusting you.... HERE i Goooo.....

Actually give me a little time ill backuo evrything... lol

Backup complte installing now and then i will carry on with posting the file

will take 2-3 minutes
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 12:43:22 PM
Ok Done, just wondering what about the  managesettings.php file that ends with this symbol ~ because i saw alot of files that end with that? Do you need that 2?

I couldn copy paste it exceded maximum lenth limit so you must download the attacment

BTW when it redirected me after instilation this is wat happened

I love this thing (If this was your idea it was awesoem I hate looking for the location of a mods settings the first time)
Code: [Select]
Redirecting...
Congratulations! The Affiliates modification was installed successfully. You will now be taken to the page where the settings for the modification are located.

Redirect Now | Return to Package Manager

and then it took me to: http://dubanime.co.cc/index.php?action=admin;area=featuresettings;sa=affiliates

Code: [Select]
Fatal error: Call to undefined function ModifyAffiliatesSettings() in /home/playnow/public_html/Sources/ManageSettings.php on line 152
Title: Re: smf affiliates
Post by: SA™ on December 09, 2008, 12:46:57 PM
files with ~ at the end are back ups ever time you install a mods and it edits a files it makes a backup
Title: Re: smf affiliates
Post by: SA™ on December 09, 2008, 12:50:23 PM
try this
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 12:50:28 PM
Thats what i suspected too, Thats Smart

One othe off topic question
Why does SMF require so little resourses, i used to use worpress and it killed resourses like crazy.... Espacially the Mods for it, they really really killed it and got me suspended on my host (I lost my increasingly succesful site because of it  :'( )
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 12:50:46 PM
ok doing it! Should i just copy paste it into it or delete and upload (I know i ask stupid questions)
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 12:58:58 PM
Looks like a succes... Im gona test out evrything....

Isnt there a reptation system or sumthing cuz i really want to add to yours if there is. Or anything else that i can do without money? other than the linkback that im sure is already on the package pages by default
Title: Re: smf affiliates
Post by: SA™ on December 09, 2008, 01:02:15 PM
not that i know of there isnt if you use this mod then your linking to my site therw the copyrigts that good enought for me  ;)
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 01:18:11 PM
Ok, Then i guess that the best i can do.

I have one more problem i just want to know if it might have anything to do with the php code you gave me conflicting with some settings that i had set previously. I use simpleportal and i use the top posters block.  I have set certain boards to not increase psot count but it seemes to count those ones anyways... Do u think its the code u just gave me or is it a flaw in simpleportal?

Do you think i should contact the simpleportal creators about this?
Title: Re: smf affiliates
Post by: SA™ on December 09, 2008, 01:28:07 PM
ill look into that one but you can ask sp still i guess
Title: Re: smf affiliates
Post by: taha116 on December 09, 2008, 06:24:23 PM
Ok Thanks for your help. And BTW you seem like a skilled Mod Maker for SMF so i wanted to make some suggestions

Y dont you take affilates to another level, Make it better. Like an approval system for affiliates integrated with smf instead of just e-mail. So when people submit thier site you can check and press accept/decline. ETC

But still this is still an awesome mod
Title: Re: smf affiliates
Post by: cleanfiles on December 13, 2008, 08:11:03 PM
Anybody have any idea how to add it to a block in MKPortal?
I tried the code for Simple Portal, but it doesn't work.
Title: Re: smf affiliates
Post by: SA™ on December 13, 2008, 08:13:29 PM
hmm im not sure bout that i dont use mk portal what happens when you add it to mk portal ??
Title: Re: smf affiliates
Post by: cleanfiles on December 13, 2008, 08:22:20 PM
The block is just empty.
Here is what it says to do when creating a php block.
Code: [Select]
<?php 
/*
Write code inserting output inside
variable $content as in following example.
You have DB connection, all global vars
and all MKPortal and Forum functions at your availability
*/

$nome $mkportals->member['name'];
$content="Hi $nome";

?>

Title: Re: smf affiliates
Post by: SA™ on December 13, 2008, 09:05:10 PM
did you have affiliates in board index block there two boxes affiliates page and affiliates on boardindex
Title: Re: smf affiliates
Post by: cleanfiles on December 13, 2008, 09:25:03 PM
Every part of the mod works fine, no errors. I just would like to add it to MKPortal.
The Affiliates block displays just nice on the forum index, and when you click on affiliates.
To answer your question, yes i have the same code added to both boxes.
Title: Re: smf affiliates
Post by: SA™ on December 13, 2008, 09:28:32 PM
hmm im not yo shore then with out setting up mk portal wich i cant at the moment dont have ftp acess soon as ftp comes back on ill set up another test site for mk portal
Title: Re: smf affiliates
Post by: cleanfiles on December 13, 2008, 09:31:20 PM
No worries, I will keep this thread bookmarked. :)
Title: Re: smf affiliates
Post by: SA™ on December 13, 2008, 09:32:55 PM
ok bump this to morrow night to remind me case i forget lol ;)
Title: Re: smf affiliates
Post by: cleanfiles on December 14, 2008, 07:45:40 PM
Hey wdm2005 have you had a chance to look at this yet?
Title: Re: smf affiliates
Post by: ke4obt on December 15, 2008, 08:56:04 AM
I don't know if I missed it, since I'm half asleep. When adding an affiliate link, if you don't put in a banner url, it comes back with an error "An Error Has Occurred!
You need to enter a message."
The questions I have are: can I disable it being required to have a banner url?? if not, where can I change the text of the error message to remind the user to put in the url to a banner?  Also, does the url have to be to a banner specifically (if so, I have no clue how to do that) or a url that shows up as a banner on MY site?

Thanks in advance,
Flip
Title: Re: smf affiliates
Post by: SA™ on December 15, 2008, 01:04:00 PM

@cleanfiles no i havent yet

@ke4obt that fixed in the next version
Title: Re: smf affiliates
Post by: ke4obt on December 20, 2008, 12:25:47 PM
@wdm2005 - ok. thanks.

Another question, when I add my image and create a link for someone to grab and put on their site back to my site - in the code, there is an "alt" area for text that is blank. Where or how do I put the text into that "alt"?? We have a large number of visually impaired/blind users that use screen readers. The screen readers "read" the "alt" tag for the icons and images in a website.
Hope that makes sense. :D

Thanks again,
Flip
Title: Re: smf affiliates
Post by: SA™ on December 20, 2008, 04:51:20 PM
do you mean where your affiliates banners are ??

if so smf_affiliates.template.php

find

Code: [Select]
<a href="', $scripturl, '"><img src="', $modSettings['affiliatebanner'], '"alt=""/></a>
and see where the alt is

inbetween the these "" put whatever you want

there is 4 instances of that

affiliatebanner

affiliatebanner1

affiliatebanner2

affiliatebanner3

Title: Re: smf affiliates
Post by: Mick. on December 24, 2008, 12:11:07 AM
Great mod,thanx!!

http://www.chevyavalancheclub.com/index.php?action=affiliates
Title: Re: smf affiliates
Post by: scenerip2k on January 04, 2009, 08:36:29 PM
I tried to do a test so i tried adding a link and a banner and at the end it says "We received your website information!. Your website will soon be added by an Admin.
In the meantime please add our banner to your website. Thank You " now how do i as the admin approve the links?
Title: Re: smf affiliates
Post by: Mick. on January 04, 2009, 08:46:59 PM
I tried to do a test so i tried adding a link and a banner and at the end it says "We received your website information!. Your website will soon be added by an Admin.
In the meantime please add our banner to your website. Thank You " now how do i as the admin approve the links?

Whenever you get the email with the details from whoever.   You add the details manually.
Title: Re: smf affiliates
Post by: scenerip2k on January 04, 2009, 09:00:13 PM
i didnt get no e-mail  it would be nice if a message [PM] gets send to moderator about the new affiliate
Title: Re: smf affiliates
Post by: Mick. on January 04, 2009, 09:06:01 PM
i didnt get no e-mail  it would be nice if a message [PM] gets send to moderator about the new affiliate

make sure the email youre expecting to, is the one you use to administer your forum.

I tested it and it works.  I sent myself an email with blah,blah blah with a a fake email and i recieved it.


the PM sure is a good idea.
Title: Re: smf affiliates
Post by: scenerip2k on January 04, 2009, 09:11:52 PM
Thanks BlueDevil! the servers e-mail was fake i changed it to my real one and it worked fine....yeah the PM would be much better, maybe the author can modify that somehow
Title: Re: smf affiliates
Post by: SA™ on January 05, 2009, 01:20:34 PM
pm was planned but i didnt know how so i went for sopmthing easyer :) maybe in the futre ill do more to it my gaol was to have to links auto
added type things but im still learbinh as i go
Title: Re: smf affiliates
Post by: qubbah on January 05, 2009, 07:06:59 PM
My user have add their affilates in my forum. But i dont see ay place to approve that. Where can i find the right place/submission waiting for approval?
Title: Re: smf affiliates
Post by: taha116 on January 05, 2009, 07:35:41 PM
Ok Thanks for your help. And BTW you seem like a skilled Mod Maker for SMF so i wanted to make some suggestions

Y dont you take affilates to another level, Make it better. Like an approval system for affiliates integrated with smf instead of just e-mail. So when people submit thier site you can check and press accept/decline. ETC

But still this is still an awesome mod

BUMP
Title: Re: smf affiliates
Post by: manixless on January 05, 2009, 10:56:55 PM
hi!!

thanks for the mod. Well, i am working in a cms, so i want to show the affiliates in some place, so, is there a place where a could take the stored informacion about teh links?

Thanks again

 
Title: Re: smf affiliates
Post by: SA™ on January 06, 2009, 04:53:16 PM
@qubbah  it sends an emial to your email addresse


@taha116  i maybe skilled but im not that skilled im learning as i go :)

@manfred what cms are you using
Title: Re: smf affiliates
Post by: manixless on January 07, 2009, 03:19:00 AM
it's a cms made by me, so i think that i could bring the links or affiliates information from the db for example, but i can't find that informacion in the db

Thanks again
Title: Re: smf affiliates
Post by: SA™ on January 07, 2009, 03:58:56 AM
haveyou tryed this block code


Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
   if (!empty($modSettings['enable_marquee']) && (!empty($modSettings['affiliates'])))
                     echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';
Title: Re: smf affiliates
Post by: SA™ on January 08, 2009, 01:09:40 AM
new package added  ;) now affiliates are 100 times easyer to add

smf_affiliates 2.0 beta 2

o now affiliates are esyer to add via admin
o new configarable options such as
o How many Affiliates?   = how many affiliates you want
o Links/Line:   = how many affiliates perline
o View Banners:  = enable disable banner
o Lines in Index: = not yet implemented but the optionis there
o Auto-Confirmation: not yet implemented but the optionis there will auto confirm link when added in the futer


o imput boxes for afiliates

o ID:   = the id of the affiliate ie if it just the one affiliat it will be id 1 and id 2 for next and so on
 o Website Name:   = name of affilit site
o  Website URL:   =affiliat url
o  Description:   = affiliat desciption
 o URL of Banner:   = affiliates banner
 o Contact EMAIL:   = affiliates email
 o Confirmed:   = set whaether the affiliates are active


o How many Affiliates?   = how many affiliates you want
is tied to the above boxes ie if you put 2 for how many affiliates you will get

o ID:   = the id of the affiliate ie if it just the one affiliat it will be id 1 and id 2 for next and so on
 o Website Name:   = name of affilit site
o  Website URL:   =affiliat url
 o Description:   = affiliat desciption
 o URL of Banner:   = affiliates banner
 o Contact EMAIL:   = affiliates email
 o Confirmed:   = set whaether the affiliates are active

twice and so on

more gonna be aaded in the next few releses
Title: Re: smf affiliates
Post by: ke4obt on January 08, 2009, 02:03:31 PM
HEY wdm,

Just one thing to ask, will it do dishes? 
No realy will it upgrade or do I need to do this mannuly.

Here's a big Pat on back"THUMP, THUMP, THUMP", work well done.
Title: Re: smf affiliates
Post by: SA™ on January 08, 2009, 04:18:59 PM
lol i wished i coukld make it do the disheshell ill make it do everything  hehe

unimstall old one then install this but i woul;d hang on for a bit the admin seems to be a bit bugged at mo ill ad beta 4 in a bit

it might be a good idea to take note of of the affiliates you have cos this wont upgrade the old one so youb will loose anuy affiliates you have


/me has a sore back now :P
Title: Re: smf affiliates
Post by: SA™ on January 08, 2009, 04:53:34 PM
baeta 4 added
Title: Re: smf affiliates
Post by: ke4obt on January 08, 2009, 05:35:00 PM
Hey WDM, 
looks great in my test site buuttt, is there any way to make it cross compatable with 1.1.7 as there are several mods that are not ready for SMF2.0 release :(  :'( ...
Realy sucks
 :(
  .
If not no big deal.

Um, well didn't mean to pat you on the back so hard  :D   :-[  ...
Title: Re: smf affiliates
Post by: SA™ on January 08, 2009, 05:49:09 PM
it is compatable with 1.1.7
Title: Re: smf affiliates
Post by: ke4obt on January 09, 2009, 08:47:05 AM
Just wondering, if an affiliate that wants to add themselves to your affiliates list does not have a banner, is there a way to not have the banner required? Maybe a check box to say "banner required" or "do not require banner" in the admin?
As of right now, (at least from what I've seen) the banner is required and most of my affiliates don't have banners. So, what to do??
By the way, this is Mickey - Flip's wife. He said to mention that I thump backs even harder than he does. :D (I accidentally broke a rib on him once)

Thanks,
Mickey
Title: Re: smf affiliates
Post by: ke4obt on January 09, 2009, 08:54:45 AM
it is compatable with 1.1.7

So, which version of the mod should we use for 1.1.7?
Are you updating both packages? the 1.1 etc. or the rc etc.??
Title: Re: smf affiliates
Post by: SA™ on January 09, 2009, 01:47:19 PM
theres an option to enable disable banners in admin

noth packages work with 1.1.7 the rc one is the new version :P)
Title: Re: smf affiliates
Post by: ke4obt on January 09, 2009, 10:10:23 PM
OK, I got some sleep and installed the newest version of SMF Affiliates.
A couple of suggestions:
1 - I don't see the marquee any more :(  miss that! Would like to see it with 2 check boxes, 1st would marquee from right to left, the other would scroll from bottom to top (like in a movie). You can choose which one you'd like it to do. And if neither is checked, it just sits there (like it does now). Also, is it possible to add a field that shows the speed of the scroll/marquee? That way the user could set the speed of it?
2 - being able to name the affiliates block on the index. Used to be that you could rename it from "affiliates" to whatever you wanted without having to mod code.
3 - in the old version, in the admin panel, you had 2 areas for putting in links. 1st was for the affiliates page, the other was for the affiliates block. This would be nice to have back. This way, I could put my site sponsors in the block on the index page and our affiliates on the affiliates page.

Geez I hope that makes sense. :)
If we need to clarify anything, please let us know. Stick with us, we'll have you ALL confused and discombobulated. :D


Thanks again,
Mickey

ps - clicked the link at the bottom of the block on the index page and registered on your site. nice site, too bad games like the ones you've got don't work too well for blind computer users. :)  Flip
Title: Re: smf affiliates
Post by: SA™ on January 10, 2009, 06:25:25 PM
hmmm the maque wont be added to this one and i dont think ill add the two boxes for affilistes if you want that why not use the old version it still supported the whole point of this one was to make it easyer to actulay add the affiliates

being able to change the name of affiliates on boad will be added in the next relese
Title: Re: smf affiliates
Post by: Özgür on January 15, 2009, 12:22:55 PM
im used 2.0

8: Undefined index: affiliatesid11
File: /home/rockayse/public_html/rk/Themes/rockayseri/BoardIndex.template.php
Satır: 464

8: Undefined index: affiliatesid12
File:  /home/rockayse/public_html/rk/Themes/rockayseri/BoardIndex.template.php

8: Undefined index: affiliatesid13
File:  /home/rockayse/public_html/rk/Themes/rockayseri/BoardIndex.template.php


Same error affiliatesid14 and affiliatesid15.
Title: Re: smf affiliates
Post by: SA™ on January 15, 2009, 01:39:04 PM
in admin how many affiliates did you set it to if you have 4 affioliate put 4 in the box if you put more say 6 and you only use 4 of them theb you will get them errors
Title: Re: smf affiliates
Post by: Özgür on January 15, 2009, 01:59:39 PM
in admin how many affiliates did you set it to if you have 4 affioliate put 4 in the box if you put more say 6 and you only use 4 of them theb you will get them errors

Thanks. I have 10 affiliates but i selected 15 affiliates. thanks =)
Title: Re: smf affiliates
Post by: ke4obt on January 17, 2009, 10:26:03 PM
hmmm the maque wont be added to this one and i dont think ill add the two boxes for affilistes if you want that why not use the old version it still supported the whole point of this one was to make it easyer to actulay add the affiliates

being able to change the name of affiliates on boad will be added in the next relese

ok. sounds good. Of course, the problem I have is that both versions each have their own positive extras. Not very nice!!!   :)
Now, another question - I copied the code you placed a bit back to put the Affiliates into a block in a Portal. It does them as a marquee - right to left - how can I change it to scroll - bottom to top - and still have the on mouse over stop?? This will hopefully be my last question to bug you with. He He.

Thanks again for your patience,
Mickey
Title: Re: smf affiliates
Post by: SA™ on January 18, 2009, 04:03:10 AM
try this

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
                      echo '<marquee direction="up" loop="true" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';
Title: Re: smf affiliates
Post by: ke4obt on January 18, 2009, 01:34:06 PM
Thank you, Thank you, Thank you!!!!!!!!!!!!!
Tis working wonderfully!
I think it looks better on the home portal page going up instead of sideways.

I could almost hug you. :)  (just not as strong as Flip's pat on the back - he he)

Thanks again,
Mickey

ps - as soon as we get the site up the way we want and off the test server, we'll send you link so you can see how it looks. Also, you can use that link as a screen shot if you want. :)
Title: Re: smf affiliates
Post by: SA™ on January 18, 2009, 02:05:13 PM
your welcome plaeas no thumps lol
Title: Re: smf affiliates
Post by: the_bay_mafi on January 22, 2009, 01:08:00 AM
hey if you would goto my website www.flat4tx.com and as you can see when you hover the mouse over the affiliate banner the URL is: http://flat4tx.com/forums/www.treasuretrooper.com/158646 instead of: www.treasuretrooper.com/158646 I entered it in that way (www.treasuretrooper.com/158646) under smf affiliates tab but for some reason it ends up adding "http://flat4tx.com/forums/" to every affiliate link....do you know the problem?
Title: Re: smf affiliates
Post by: SA™ on January 22, 2009, 01:38:46 AM
its a but hard to see anything when guest dont have permissions


Title: Re: smf affiliates
Post by: the_bay_mafi on January 22, 2009, 01:41:04 AM
lol my bad! let me try to fix you up...have you thought of signing up ;).....ok you should be good to go
Title: Re: smf affiliates
Post by: the_bay_mafi on January 22, 2009, 02:01:07 AM
hey nm forget about it...im nuking my site and putting SMF 2.0 on it
Title: Re: smf affiliates
Post by: SA™ on January 22, 2009, 02:06:44 AM
lol ok have fun nuking 1.1.7 heheh
Title: Re: smf affiliates
Post by: ahikmahin on January 22, 2009, 09:47:32 AM
hallo...

i am using smf 2.0beta4 and installed add link it says in verification fied - "Types the letter shown in picture"

but.. no picture shown!!!

so, if i blank that field it says error...

why verification picture isnt coming??

any help please??  :)

thankx in advence...
Title: Re: smf affiliates
Post by: SA™ on January 22, 2009, 04:07:41 PM
does it work with registration page ?? any errors in error logs

is it enaled in admin/Security and Moderation/Anti-Spam
Title: Re: smf affiliates
Post by: crazygirlsdesign on January 22, 2009, 05:43:45 PM
I just installed this on SMF version 1.1.7 an i cannot see where i approve the added affiliates .... i see where i can add them manually  , i also do not see where i can have more than 4 ? please help thank you very much .
Title: Re: smf affiliates
Post by: SA™ on January 23, 2009, 12:32:54 AM
in admin/smf affiliates

look for

Number of Affiliates? then put the number of affilites you want

then click affiliates and add your affiliates

im guiessing you where putting you affiliates in Your banners that for your affiliates banners for other people to use

alos when some one request affiliation all there deatil get sent to the webmasters email addresse
Title: Re: smf affiliates
Post by: crazygirlsdesign on January 23, 2009, 08:59:26 AM
I do not have a spot for that though - to put the number and I do not get them at the email that is for my webmaster , I checked all that and I have not received one .
Here is a screenshot of what it looks like in my admin panel
thanks for your help
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrazygirlsdesign.com%2Fpspboard%2Fgallery%2F1_23_01_09_6_57_19.jpg&hash=c41a89b0308adfce608037a451bbf530)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrazygirlsdesign.com%2Fpspboard%2Fgallery%2F1_23_01_09_6_57_38.jpg&hash=e2fb4b5a25fb7da98e2dbd4f82b6fb24)
Title: Re: smf affiliates
Post by: SA™ on January 23, 2009, 05:45:30 PM
ah i see your using v1 you should use v2  realy v2 is a lot easyer to add affiliates

as far as the email is concerned in smf admin have you put in your email addresse or a fake one
Title: Re: smf affiliates
Post by: crazygirlsdesign on January 24, 2009, 01:27:28 PM
ok thanks , i did find the email problem and correct it
I have thought of the updating  ... but i have heard and read that alot
of the mods to not work well , so I will just settle with what i have.
thank you very much for your time
and i love the mod how it runs now anyhow
Title: Re: smf affiliates
Post by: ke4obt on January 25, 2009, 03:25:13 PM
ok, I'm back with another quick (?) question.
Here's the code you gave to get the block to scroll up instead of sideways:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
                      echo '<marquee direction="up" loop="true" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';

Now, the question is - is there a way to change the speed of the scroll? I'm a speed reader and it goes too fast for me (by a little). I'm SURE that the other users have a problem reading it. Now, I know that the scroll stops on mouseover, but it's actually a bit distracting to see the words and links go whipping by.   :D

Thanks again,
Mickey
Title: Re: smf affiliates
Post by: SA™ on January 25, 2009, 06:26:49 PM
Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
                      echo '<marquee direction="up" loop="true" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"  scrolldelay="90"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';


i havent tryed this yet i just google html maquee tag but try the avouve code

just play around with

scrolldelay="90"

in that code abouve the higher the number the slower itll go i think
Title: Re: smf affiliates
Post by: coucnilhomeswap on January 27, 2009, 08:07:53 AM
is there a way i can stop this code from scrolling.

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
                      echo '<marquee direction="up" loop="true" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"  scrolldelay="90"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';
Title: Re: smf affiliates
Post by: SA™ on January 27, 2009, 12:07:37 PM
Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
                      echo '<span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span>';


try that
Title: Re: smf affiliates
Post by: qubbah on February 11, 2009, 11:08:19 AM
i having this error:

Forbidden

You don't have permission to access /forum/index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: smf affiliates
Post by: SA™ on February 11, 2009, 01:32:53 PM
hmm idk whats causing that maybe a server issue ??
Title: Re: smf affiliates
Post by: ~Killer~ on February 12, 2009, 04:52:14 PM
Nooo! What has happened? I've used it before, but now it isn't working :'(

I can use it fine, well, not exactly. I can add pretty much everything, except affiliates. I can't view affiliate requests, nor add affiliates manually via the Admin CP... Help :'(
Title: Re: smf affiliates
Post by: Kindred on February 12, 2009, 07:30:47 PM
hmmm... on 2.0RC1, several errors:

Code: [Select]
When attempting to edit the affilates config:

 http://SITE/index.php?action=affiliatesadmin;save;sa=config
8: Undefined index: admin_menu_name
File: /SITE/Sources/smf_affiliates_admin_2.php
Line: 18

when attempting to view the affiliates page:

 http://SITE/index.php?action=affiliates
8: Undefined index: affiliatesid3
File: /SITE/Themes/default/smf_affiliates_2.template.php
Line: 8

 http://SITE/index.php?action=affiliates
8: Undefined index: affiliatesid2
File: /SITE/Themes/default/smf_affiliates_2.template.php
Line: 8

[code]
Title: Re: smf affiliates
Post by: SA™ on February 13, 2009, 02:17:43 PM
http://SITE/index.php?action=affiliates
8: Undefined index: affiliatesid3
File: /SITE/Themes/default/smf_affiliates_2.template.php
Line: 8

 http://SITE/index.php?action=affiliates
8: Undefined index: affiliatesid2
File: /SITE/Themes/default/smf_affiliates_2.template.php
Line: 8


how many affiluiates have you got ??


http://SITE/index.php?action=affiliatesadmin;save;sa=config
8: Undefined index: admin_menu_name
File: /SITE/Sources/smf_affiliates_admin_2.php
Line: 18

 ill look into that one

there is also a newer version in development here

http://sleepy-arcade.ath.cx/sleepy/index.php?action=Affiliates


features
links no auto maticly go to the db when submitted
can rate links
clikcs out
clikcs in
shows date added
shows last updated
shows added by who
 
fetures to come
users able to edit there own links

that one will only support smf 2


Title: Re: smf affiliates
Post by: Kindred on February 13, 2009, 11:52:36 PM
I have no current affiliates. Before I allow affiliates to start entering, I wanted to make sure that the bugs were worked out.

However, I just attempted to add an affiliate and, while the screen said that the submission was a success, pending approval, I can not find the submission anywhere for me to actually approve it!

I then manually added one into the admin interface and checked off "Approve", but again, the affiliate banner/link does not actually appear anywhere on the affiliates page.   :(

(edit- ok...   I had the height and width set to "0", thinking that this means no max.  It appears that I was incorrect... seeting it to 50/100 allows the banner that I manually enterer to be displayed, but it is forced to 100x50.   Is there any way to have it just use whatever banner was included, up to a maximum?


Also, the "Configuration" and "Permissions" tab in the mod admin bring up the exact same screen (which is the config screen)
 
Title: Re: smf affiliates
Post by: SA™ on February 14, 2009, 12:26:33 AM
well the submissions get sent to the web masters email then you as admin add them threw admin panel


the check box approve needs to be ticked not unticked for the affiliates to show


 Is there any way to have it just use whatever banner was included, up to a maximum?

not too shore what you mean by that


yeah i should remove that Permissions tab it dont do nothing
Title: Re: smf affiliates
Post by: Kindred on February 14, 2009, 01:15:51 AM
nope...  no email was sent, and the submission never appeared in the admin tool.

What I mean is:   If I enter a value into the height and width fields, it foreces the banner to that height and width.

So, I se this to 200 wide by 100 hight
However, The banner I added is 80x30.
The system now forces the image to be 200x100, hus deforming the image.

Most implementations require a MAXIMUM size, but allow the image to be used, "as is", if the image is smaller than the maximum.
Also, most implementations only resize one value (whichever needs to be resized to pull it under the max) in order to keep the original ratio of height to width.


Now that I have added on affiliate, I am  still getting errors on affiliatesid2 and affiliatesid3.
From your statements, I assume that I will cotninue to receive errors until I have at least 3 affiliates? what happens when I get more than 3?
Title: Re: smf affiliates
Post by: SA™ on February 14, 2009, 01:31:20 AM
if youv filled in all the info for affiliates and configard it properly there should be no error

in admin see where it says

Number of Affiliates?

how many have you put in the box

ie if you have three affiliates you put 3 and just increas it each time you add affiliates

if you have 3 affiliates and you put say 6 in the box you will get error cos there not defined untill you add them
Title: Re: smf affiliates
Post by: Kindred on February 14, 2009, 07:40:45 AM
hmmmm.... so the system doesn't do a count of the approved list and then automatically determine how many?   I have to manually set the number each time I approve a new one?


Side note: $txt['cannot_affiliate_view'] needs to be added to the text strings. (Guests can not add affiliates)

Recommendations for updates:
1- have the system automatically determine the number of affiliates based on the number entered where approved=true

2- Have the height and/or width values be set for the MAX sizes, not the forced sizes.
3- Add code to use the SMF standard - If field is set to "0" it means "no limit"
4- Add code to determine if value is set rather than assuming value is set (currently, if value=0, it pops an error in the log)

5- somehow, $context[$context['admin_menu_name']]['tab_data']
(admin_menu_name) is not being set... It looks like that is related to the empty permissions tab
Title: Re: smf affiliates
Post by: SA™ on February 14, 2009, 01:51:36 PM
Quote
Side note: $txt['cannot_affiliate_view'] needs to be added to the text strings. (Guests can not add affiliates)

thaks ill add that in the next update


1 there is an aproval system in v3 admin can set permission wheather to auto approve links or have them apoproved via admin

2 in v3 there banners will come out he sixe they should be

3 not used in v3

4 noty used in v3

5 some left over code from smf 1 recoded the admin in v3

Title: Re: smf affiliates
Post by: Özgür on February 14, 2009, 02:08:46 PM
Quote
1 there is an aproval system in v3 admin can set permission wheather to auto approve links or have them apoproved via admin

Great! =|
Title: Re: smf affiliates
Post by: Kindred on February 14, 2009, 04:26:37 PM
most excellent!
Title: Re: smf affiliates
Post by: qubbah on February 15, 2009, 01:33:07 PM
For those who wish to use the code on SimplePortal:

Using a "php" block:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
   if (!empty($modSettings['enable_marquee']) && (!empty($modSettings['affiliates'])))
                     echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';


It will use whatever code you have in the "Board" box.
You can use this with the board enabled or not.

can we call it randomly?
Title: Re: smf affiliates
Post by: SA™ on February 15, 2009, 03:11:00 PM
sry not this version
Title: Re: smf affiliates
Post by: assam_siddibapa on February 16, 2009, 07:54:31 AM
One small help .
I was wondering if i could remove the marque of /index.php?action=affiliates and make the inner layout not a fixed size
Title: Re: smf affiliates
Post by: SA™ on February 17, 2009, 06:05:20 AM
you can remove the marque in smf_affiliates.template.php


and make the inner layout not a fixed size

not shore wht you mean by that one sry
Title: Re: smf affiliates
Post by: Özgür on February 17, 2009, 02:49:51 PM
I want to add web site desc and web site name in affiliates section (action=affi..)
Etc : please look attachment

How can i do this ?
Title: Re: smf affiliates
Post by: Kindred on February 17, 2009, 07:38:35 PM
wait for the next version
Title: Re: smf affiliates
Post by: SA™ on February 18, 2009, 12:51:24 AM
i have the first package of v3 ready anyone wanna test it for me ?? pm me and ill send them the package
Title: Re: smf affiliates
Post by: assam_siddibapa on February 18, 2009, 03:58:50 AM
you can remove the marque in smf_affiliates.template.php


and make the inner layout not a fixed size

not shore wht you mean by that one sry
I guess u are right ... but i am confiused because there are alot of codes in that .... whihc code should i remove ....
Title: Re: smf affiliates
Post by: SA™ on February 18, 2009, 06:00:15 PM
sry in admin you can disalbe the marque feature
Title: Re: smf affiliates
Post by: assam_siddibapa on February 20, 2009, 12:38:06 PM
sry in admin you can disalbe the marque feature
Thanks worked ...
chears
Title: Re: smf affiliates
Post by: ysNoi on February 22, 2009, 10:55:30 AM
Hello..! Thanks for this mod..! Great works...!

Anyway, may I know where should I paste the code that you are talking about...?

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
                      echo '<marquee direction="up" loop="true" behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';

One more thing, is there a way I could enable this mod to my outline theme..?

Thanks in advanced...!  :) :)

Edit : Index.template.php attached for my  OutlineBlue and OutlineOmega themes.
Title: Re: smf affiliates
Post by: SA™ on February 22, 2009, 01:38:05 PM
that code is for a block maybe tp block portamx block simle portal block


if you can post up you inderx.template.php from the outline theme i can add the tab for you if you want
Title: Re: smf affiliates
Post by: ysNoi on February 22, 2009, 11:14:23 PM
Thanks bro wmd5002...! Files attached on my previous post...! Thanks...!
Title: Re: smf affiliates
Post by: Kindred on February 22, 2009, 11:55:55 PM
ysNoi...  Just a side note:   You really should learn how to manage and install mods in your own system/files.
Title: Re: smf affiliates
Post by: ysNoi on February 23, 2009, 12:11:53 AM
ysNoi...  Just a side note:   You really should learn how to manage and install mods in your own system/files.

Yes bro..! Thanks...! Just want to observe how it will be added on the template between different themes..!
Title: Re: smf affiliates
Post by: SA™ on February 23, 2009, 01:56:51 PM
try these
Title: Re: smf affiliates
Post by: ysNoi on February 23, 2009, 11:08:40 PM
I tried the and uploaded the file to both of my themes but the same result I got bro...!

Thank you so much...!
Title: Re: smf affiliates
Post by: SA™ on February 24, 2009, 11:05:12 AM
so did they work or not ??
Title: Re: smf affiliates
Post by: ysNoi on February 24, 2009, 11:11:27 AM
so did they work or not ??

It didn't work bro....!
Title: Re: smf affiliates
Post by: SA™ on February 24, 2009, 11:24:12 AM
any errors what didnt work
Title: Re: smf affiliates
Post by: ysNoi on February 24, 2009, 12:23:32 PM
There is no error on my forum so far...! It's perfectly working on my SMF Default Theme - Core

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi249.photobucket.com%2Falbums%2Fgg226%2Fysnoi_lacroxste%2FpHF%2FAffiliate_1.png&hash=aa5f00dee9205dd518070410b3c30380)

but won't work on the Outline_Omega

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi249.photobucket.com%2Falbums%2Fgg226%2Fysnoi_lacroxste%2FpHF%2FAffiliate_2.png&hash=51f5c87f702e4ee99b437ea5467cfec8)
Title: Re: smf affiliates
Post by: SA™ on February 24, 2009, 12:37:17 PM
oh i see that theme has it own boardindex.template.php


can you post it up and ill make the edits for you ??
Title: Re: smf affiliates
Post by: ysNoi on February 24, 2009, 01:58:09 PM
Bro, I attached two files.

For Outline_Omega and Outline_Blue respectively.

Thank you very much...!  :) :)
Title: Re: smf affiliates
Post by: SA™ on February 26, 2009, 01:58:18 AM
try
Title: Re: smf affiliates
Post by: ysNoi on February 26, 2009, 08:56:52 AM
Done bro and it's really working now...! Thanks in a million wayne83...!

How can I set it to appear on each page then...?  :) :)

Edit : wayne83, it's not showing to guests and to any member of my forum...! How do I set it..?

I can only see on my Admin account...!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi249.photobucket.com%2Falbums%2Fgg226%2Fysnoi_lacroxste%2FPCF%2Faffiliate_PCF.jpg&hash=05bf944da0967a36865b89741ec0c941)
 
Title: Re: smf affiliates
Post by: SA™ on February 26, 2009, 01:08:58 PM
you have to set the permissions


making it show on all pages will mean moving the code around from boardindex.template.php to index.template.php
Title: Re: smf affiliates
Post by: ysNoi on February 26, 2009, 07:57:40 PM
you have to set the permissions

DoNe bro...!

making it show on all pages will mean moving the code around from boardindex.template.php to index.template.php

What code in boardindex.template.php do I have to move on index.template.php...! I'll try to edit bro...!
Title: Re: smf affiliates
Post by: SA™ on February 28, 2009, 02:02:09 PM
boardindex.template.php


Code: [Select]
global $txt, $context, $modSettings, $scripturl, $boardurl, $affiliates;
if (allowedTo('affiliate_viewF'))
if (!empty($modSettings['enable_affiliates_board']) )
{
for ($cnum = 1; $cnum <= $modSettings['naffiliatessn']; $cnum++)
$affiliatesord[$modSettings['affiliatesid'.$cnum.'']] = array('affiliates' => $cnum);

echo ' <div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="catbg">
<td align="left">' , $txt['affiliathome'] , '</td>
</tr>';
echo ' <tr>
  <td align="center" class="windowbg2" width="85%"><table border="0" width="100%">
<tr>';
$lkline = 1; $nline = 0;
foreach ($affiliatesord as $temp)
if (!empty($modSettings['affiliatesurl'.$temp['affiliates'].'']) && !empty($modSettings['affiliatesname'.$temp['affiliates'].'']) && $modSettings['affiliatesconfir'.$temp['affiliates'].''] == 1)
{
echo ' <td class="normaltext" align="center" valign="bottom">
<a href="'.$modSettings['affiliatesurl'.$temp['affiliates'].''].'" target="_blank">'.((!empty($modSettings['affiliatesurlbann'.$temp['affiliates'].'']) && $modSettings['affiliatesshowbn'] == 1) ? '<img src="'.$modSettings['affiliatesurlbann'.$temp['affiliates'].''].'" alt="'.$modSettings['affiliatesname'.$temp['affiliates'].''].((!empty($modSettings['affiliatesurldesc'.$temp['affiliates'].''])) ? '&#10;'.$modSettings['affiliatesurldesc'.$temp['affiliates'].''] : '').'" width="'.$modSettings['affiliate_widthF'].'" height="'.$modSettings['affiliate_heightF'].'" border="0" />' : '<b>'.$modSettings['affiliatesname'.$temp['affiliates'].''].'</b>').'</a>';
echo '</td>';

if ($lkline == $modSettings['affiliatesnlin'])
{
echo ' </tr><tr>';
$lkline = 1;
$nline = $nline + 1;
}
else
$lkline = $lkline + 1;
if (empty($affiliates['ins']) && $nline == $modSettings['affiliatesnlindex'])
break;
}
echo ' </tr>
</table></td></tr><tr>
<td class="catbg" align="center" style="font-size: xx-small;"><a href="', $scripturl, '?action=affiliates;sa=addlink"><span>Add Link</span></a><br />' , $txt['smf_affiliates_copy'] , '</td> </tr>
</table></div>
';
}


and move it to index.template.php
Title: Re: smf affiliates
Post by: romper on March 08, 2009, 02:24:29 PM
Can I get some help with dilber Mc theme...otherwise, in core theme it worsk perfectly...I attached files from DilberMC!
THX!
Title: Re: smf affiliates
Post by: SA™ on March 08, 2009, 03:06:56 PM
try these
Title: Re: smf affiliates
Post by: Smoky "Rider" Blue on March 08, 2009, 04:06:03 PM
hey proveit!! lol.. ok check this out.. i uploaded the mod package, but yet when i apply it i get:

An Error Has Occurred!
Unable to find package file!


hmmm i can see it, the package is chmoded right, no errors in the log?? me is lost!!  :P

smf rc.. ;)
Title: Re: smf affiliates
Post by: SA™ on March 08, 2009, 04:16:24 PM
you trying the beta one on i posted on your site or the one here ??
Title: Re: smf affiliates
Post by: Smoky "Rider" Blue on March 08, 2009, 04:25:25 PM
here.. lol..  >:( ;)
Title: Re: smf affiliates
Post by: SA™ on March 08, 2009, 04:34:49 PM
hmm strange i just tested the package it works for rc

An Error Has Occurred!
Unable to find package file!

never come accross that one

why not try the one i posted on your site that should work better with rc
Title: Re: smf affiliates
Post by: Smoky "Rider" Blue on March 08, 2009, 04:58:19 PM
will do proveit.. lol.. working on the site now.. trying to..  :P
Title: Re: smf affiliates
Post by: SA™ on March 08, 2009, 05:01:55 PM
yeah i see
Title: Re: smf affiliates
Post by: Angie on Dialysis on March 10, 2009, 10:44:18 PM
Hmm.. I was playing on sleepy's arcade and noticed the affiliates code so I came here. Tried it on my forum but can't seem to get it working (could with time but then decided that since it also adds a button and didn't know that at first that I won't use it). I was interested in how configurable your code is but just wanted simply the affiliate banners on the front page and not a button to a special page or anything.. is there anything in the works for a "lite" version ?
Title: Re: smf affiliates
Post by: Smoky "Rider" Blue on March 10, 2009, 10:51:00 PM
if you had a portal, you could add the affiliates tags in a side block  ;)
Title: Re: smf affiliates
Post by: Sandmansa on March 10, 2009, 11:00:30 PM
Nope, no portal.

But she is using smf 1.1.8 with the DilberMC theme and has yshout mod.  I got the affiliates mod to install perfectly but for some reason, the yshout mod minimizes and can't open it.  There seems to be some form of conflict there somewhere.  Any ideas?
Title: Re: smf affiliates
Post by: Angie on Dialysis on March 10, 2009, 11:04:03 PM
Yeah Sandman is my coder (I only maintain my forums and Sandman does all the modifications).
Title: Re: smf affiliates
Post by: SA™ on March 11, 2009, 03:15:05 PM
hmm strange i was using this and yshout befor had no problems like that


SMF Affiliates System 3 RC1 For SMF2 Only relesed
Title: Re: SMF Affiliates System 3 RC1 relesed
Post by: mrtrc266 on March 11, 2009, 05:29:05 PM
Absolutely amazing Bro, this has come a long way and I can't think of a better system for affiliates than what you have some up with.

You truly are a "MAD Coder"  ;)

Thank you for all your contributions
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 15, 2009, 06:34:58 AM
thansk bro :)

SMF Affiliates System RC2 relesed
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Sandmansa on March 15, 2009, 08:36:08 PM
Have you completely dropped all support for SMF 1.1?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: ysNoi on March 15, 2009, 09:20:37 PM
It's all working on my SMF 1.1.8..!

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi249.photobucket.com%2Falbums%2Fgg226%2Fysnoi_lacroxste%2FpHF%2FSMF_Affiliates.jpg&hash=ad93940d0258295fa107dda6a4c06c79)

Thanks to MAD Coder..! I love it..!
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Sandmansa on March 15, 2009, 09:31:57 PM
It's all working on my SMF 1.1.8..!

If I might ask, what version of this mod are you using?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 15, 2009, 10:42:52 PM
theres two packages there v2 wich works with smf 2 and smf1


3rc2 i only working with smf 2 for now
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: ysNoi on March 16, 2009, 11:25:45 PM
If I might ask, what version of this mod are you using?

SMF Affiliates v2...
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: forty4420 on March 17, 2009, 10:19:43 AM
Can some one please tell me how to make this show up in a custom theme. It works fine in admin & default theme. I attach both index/board.

SMF 1.18
TP v1.0 B3
Theme SMF_Grunge

Thanks in advance.
Title: Re: smf affiliates
Post by: romper on March 17, 2009, 10:20:32 AM
try these

I forgot to thank you....works!!!
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 17, 2009, 11:50:02 PM
Can some one please tell me how to make this show up in a custom theme. It works fine in admin & default theme. I attach both index/board.

SMF 1.18
TP v1.0 B3
Theme SMF_Grunge

Thanks in advance.


try these
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: forty4420 on March 18, 2009, 12:09:20 AM
Thanks so much it is now working but only on the index page. How can I make it show on all site pages. Like as part of the footer. I'm sure this is a dumb "?" but I know crap about php..Learning as I go..
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 18, 2009, 12:15:26 AM
try these plaese backup befor hande cos i dont know how it gonna turn out
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: forty4420 on March 18, 2009, 12:36:42 AM
Wow your great man. It is working just as I need it. One thing, that I'm not sure is a resault of this or not. Look at the affilitate area next to the footer. The footer is now uncentered below it.. for all I know it might have been like this before hand lol..

See what I mean?
http://comradesincombat.com/

I'm sure I just need a <center> somewhere.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 18, 2009, 12:47:00 AM
looks ok to me ?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: forty4420 on March 18, 2009, 06:39:03 AM
I added some colored lines to show you what I mean.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg23.imageshack.us%2Fimg23%2F5675%2Fimagetyj.jpg&hash=a40654bfe5d6f05abf58583d801e7ef6)
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 18, 2009, 04:19:23 PM
i see what you mean now try this
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: forty4420 on March 18, 2009, 05:59:12 PM
hmm no change
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 18, 2009, 06:39:53 PM
its to do with that theme just tryed it on a test site and it does it with out the affiliates mod installed
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: forty4420 on March 18, 2009, 07:33:19 PM
Thanks for all your help man. I'll go bug the coder Lil...
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 18, 2009, 07:37:04 PM
np
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: 73lue73oy on March 20, 2009, 10:54:56 PM
call me a idiot but its not showng up at the top if it helps my site uses cpanel
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 21, 2009, 06:55:07 PM
hmm not showing up the top ?? i dont understand ??
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on March 22, 2009, 01:26:33 PM
call me a idiot but its not showng up at the top if it helps my site uses cpanel

SMF version?  If you are using a 1.1.x version with a custom theme, you will have to manually add the affiliates button in the topnav.,,, and possibly manually add the other parts.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 22, 2009, 05:17:10 PM
Your vers.2 is giving me errors on my 1.1.8 which has several other mods. It works great on my test 1.1.8, maybe a mod conflict?

I really like the mod it's great and it would be an asset to my site, can you help me get it straight?

Here are some pics of the errors.

There are also 2 pages of errors in the form of .txt files posted. Thanks for looking.
TD

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 23, 2009, 07:25:44 PM
Wanted to post the errors so they're easier to read, I have a default core vers. 1.1.8, there is more info in the post above this one. I think the structure of Sources /Modsettings.php or BoardIndex template is screwed up and I'm missing some code somewhere. Any help would be appreciated.
Here are the errors
Code: [Select]
Apply Filter: Only show the error messages of this member  TD    Yesterday at 04:54:38 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagedestroy(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1655

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:38 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagegif(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1646

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagerectangle(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1601

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1437

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1432

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagefilledrectangle(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1423

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1422

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
2: imagecreate() [<a href='function.imagecreate'>function.imagecreate</a>]: Invalid image dimensions
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1419

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:37 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=9225cd99c4ad06363b7e8d862d9ad669
Apply Filter: Only show the errors with the same message
8: Undefined index: visual_fake_verification_code
File: /home/icefishr/public_html/Sources/Register.php
Line: 605

Apply Filter: Only show the error messages of this member TD Yesterday at 04:54:32 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: affiliatesid1
File: /home/icefishr/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 498

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:18 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: affiliatesid1
File: /home/icefishr/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 498

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:06 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagedestroy(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1655

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:06 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagegif(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1646

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagerectangle(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1601

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
8: Undefined index: polygonCAPT
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1442

Code: [Select]
Apply Filter: Only show the error messages of this member  TD    Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
8: Undefined index: polygonCAPT
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1441

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
8: Undefined index: polygonCAPT
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1440

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
8: Undefined index: polygonCAPT
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1439

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1437

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1432

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagefilledrectangle(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1423

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagecolorallocate(): supplied argument is not a valid Image resource
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1422

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
2: imagecreate() [<a href='function.imagecreate'>function.imagecreate</a>]: Invalid image dimensions
File: /home/icefishr/public_html/Sources/Subs-Graphics.php
Line: 1419

Apply Filter: Only show the error messages of this member TD Yesterday at 04:48:05 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php?action=verificationcode;rand=604f2cdf43677b0bc093248bbb64f46c
Apply Filter: Only show the errors with the same message
8: Undefined index: visual_fake_verification_code
File: /home/icefishr/public_html/Sources/Register.php
Line: 605

Apply Filter: Only show the error messages of this member TD Yesterday at 04:47:59 PM
Apply Filter: Only show the error messages of this IP address 74.73.160.17    Apply Filter: Only show the error messages of this session 795c85b7642f1e774abaf4982592719a
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined index: affiliatesid1
File: /home/icefishr/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 498

If I need to attach the 2 boards please let me know how to do that I can't find where that info is and I see athers attach their boards but I'm sorry I'm brand new at this just learning Thanks so much.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 11:50:13 AM
tr admin/registarion/seting

what you got capacha set to ?? you shoudent get those error
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 02:13:56 PM
I have it set to "as medium with shapes", I read that was the best anti-bot setting.  I'll change that and see if it makes a difference.n Thanks for the response to my problem.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 02:29:22 PM
hmm i just tryed changing the setting myself on a test site it didnt make no difference does capacha actualy work on reg page ? may i have a link to you site please?


do you have any other capacha mods installed?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 02:32:04 PM
I changed the captcha registration to simple/ overlapping letters and downloaded the mod. downloaded no problems no errors no tests failed, thanks!

It's down to giving only 2 errors now, but I get the 2 errors every visit to the main page of the site.

Here are the 2 errors I'm getting.
Code: [Select]
Apply Filter: Only show the error messages of this URL  http://treasuredigging.com/index.php
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
File: /home/icefishr/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 509

Apply Filter: Only show the error messages of this member TD Today at 02:22:24 PM
Apply Filter: Only show the error messages of this IP address    Apply Filter: Only show the error messages of this session cb8636f273b0a95918765f6c662c8e82
Apply Filter: Only show the error messages of this URL http://treasuredigging.com/index.php
Apply Filter: Only show the errors with the same message
8: Undefined variable: affiliatesord
File: /home/icefishr/public_html/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 509

Anything I can do on this just let me know, can't wait til this mod is squared away, thanks for the time.

TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 02:34:04 PM
The site is www.treasuredigging.com  I have no other captcha mods
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 02:36:04 PM
1: Invalid argument supplied for foreach()

add affiliates and itll go

2: Undefined variable: affiliatesord
you have no affiliates so theres no affiliates to ordder

add affiliates and itll go
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 02:39:04 PM
1: Invalid argument supplied for foreach()

add affiliates and itll go

2: Undefined variable: affiliatesord
you have no affiliates so theres no affiliates to ordder

add affiliates and itll go

So I need to add an affiliate and the errors will go away?

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 03:21:00 PM
thats correct yes
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 03:25:11 PM
Thanks for this great mod, can you swing by my site and take a look at  the main page? small problem, I have some extra text showing up next to the affiliates banners. I don't know what adjustments to make in regards to banner size and width, seems those settings show up as alt text.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 03:35:34 PM
what did you put in the banners url feild?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 03:38:47 PM
The url field just has the ad code, that stray text is coming from the configure page with width and ht. info, I can take a screen shot for you.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 03:45:42 PM
the add code? it should just be somthing like

http://somebannerurl.gif

wellfor the widht and height it simple if you want you images height and width  88x31 then you would put the 88 in height and 33 in width and save

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 04:00:20 PM
The banner url is way longer than what you posted, I think this guy has his pics posted on another site so it's like double the length of a regular code. I'll get you the screen shots too because the text from the affilliates page description box is showing.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 04:22:50 PM
here are the screenshots, I add text in these fields and they show up as alt text next to the banners
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 04:50:41 PM


your banner url is incorect just use

http://www.nyfirestore.com/banners/nyf468x60flag.gif
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 05:31:40 PM
Changed the code on that and the extra text went away, thanks.

 Great mod and support.

I cleared out the errors and all looks good. Thanks so much for the help!

TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 06:03:11 PM
you welcome :)
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 06:31:15 PM
Just noticed that since I changed that ad code it no longer takes you to the affiliates web site. I guess I need the whole code. Any way to make the text entry fields on your mod bigger to hold more text so it doesn't spill over?
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 08:23:16 PM
the url you want the bnner to pint to goes in the url feild
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 24, 2009, 08:50:33 PM
the url you want the bnner to pint to goes in the url feild

So this isn't a deal where one of my members can click on an affiliate pic and be taken to that site? It's just for banner pics?

When I enter the whole code like I have it set up now it doesn't take you to the site and the text spills over somehow. If I cut the length of the code down I get the banner to show without the text spill over and when you click it it doesn't take you to the site.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: qubbah on March 24, 2009, 11:21:17 PM
can we change affiliate user form sent to anothe email, not an admin?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 24, 2009, 11:58:35 PM
@TDNY post p you code yes it is the deal people click the affilita
s link and get taken to the site you are usuing it wrong


@qubbah no you cant sry
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 25, 2009, 07:29:44 AM
@TDNY post p you code yes it is the deal people click the affilita
s link and get taken to the site you are usuing it wrong


Ok got it now 8) You have to put the correct website url in the website url box and instead of putting the whole banner code in the banner url field, you just put the http/banner.gif part in the banner url field box.

Great mod, thanks a ton for the support and patience with this new computer user. ;)

TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 25, 2009, 02:31:08 PM
thats it you got it  :)
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 25, 2009, 03:40:24 PM
thats it you got it  :)

Thanks again, great mod, great support.

TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 25, 2009, 03:49:04 PM
your welcome hopfully ill have v3 rc3 ready for 118 by the end of the weekend
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on March 29, 2009, 05:21:47 PM

SMF Affiliates System RC3 Relesed



still no 118 support having problems with one funtion lol
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on March 31, 2009, 05:51:37 AM

SMF Affiliates System RC3 Relesed



still no 118 support having problems with one funtion lol

Good luck, I'm sure you'll figure it out now that I've mastered the current version I use on my 1.1.8 LOL
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 02, 2009, 04:08:46 AM
lol thanks it nearly there now one more db query to sort :)
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on April 02, 2009, 06:15:55 AM
lol thanks it nearly there now one more db query to sort :)

Cool, can't wait. Saw the new version on Sleepy Arcade, I like it.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TheListener on April 25, 2009, 05:46:31 PM
Can lbanners with javascript be used?

Been having problems adding some to my site.

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 26, 2009, 06:02:20 AM
I am having trouble getting this mod to work on my site.

Installation goes fine but when i try to enter the forum again there is an error showing.

Unknown column 'a.id_affiliates' in 'field list'
File: /usr/home/alltkul/domains/aggma.com/public_html/forum/Sources/BoardIndex.php
Line: 166

When I try to add an affiliate this error is showing.

Unknown column 'id_affiliates' in 'order clause'
File: /usr/home/alltkul/domains/aggma.com/public_html/forum/Sources/Affiliates db.php
Line: 958

What is wrong and what do I do to get it working?

Someone please help and also explain in plain language how it works.

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on April 26, 2009, 08:37:30 AM
it looks like the SQL portion of the install was not run.

did you istall it via the package manager or manually?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 26, 2009, 01:35:04 PM
I installed via the packet manager.
I run SMF 2.0 RC1 with a theme called DRAB

Look at www.aggma.com (http://www.aggma.com)

I would appreciate all help I can get.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 26, 2009, 03:41:02 PM
@ TheListener 
 i dont know nver tryed it


@ buckshot you shore the database got installed?


try running
Affiliates Install.php

inyou brouser just upload it to the root of your forum [same place as you forum ssi.php]and your site.com/Affiliates Install.php
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 27, 2009, 03:01:58 AM
Still No luck.

What is suposed to happen when I run the file Affiliates Install.php file?
All that IS happening is that I get a white screen.

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 27, 2009, 03:53:43 AM
have you check you data base for the affiliates tables there is 4 of them

affiliates
affiliates_rating
affiliates_banners
affiliate_report
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 27, 2009, 05:17:07 AM
They are all there

Should something be modified in the theme?
Should something be set to 777
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on April 27, 2009, 07:50:27 AM
in those affiliates tables, what columns exist?

The error is very obviously a database error and hence has nothing at all to do with files or permissions.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 27, 2009, 08:38:18 AM
Table smf_affiliate_report

Field name       Type                          Allow nulls?       Key       Default value       Extras   
id                    int(11)                           No                  Primary    NULL                 auto_increment
id_affiliates    int(11)                           No                    None    NULL    
id_member    mediumint(8)unsigned    No                    None    0    
comment     text                                   Yes                     None    NULL    
date            int(10) unsigned           No                    None    0    

Table smf_affiliates

Field name       Type                       Allow nulls?       Key       Default value       Extras   
id_affiliate     int(11)                    No                  Primary    NULL    auto_increment
enable             tinytext                    Yes                  None            NULL    
author             tinytext                    Yes                  None            NULL    
date             int(10)unsigned    No                  None            0    
title                     tinytext                    Yes                  None            NULL    
description     longtext                    Yes                  None            NULL    
views             int(10)                    No                  None            0    
url                     text                    Yes                  None            NULL    
image             text                    Yes                  None            NULL    
email             text                    Yes                  None            NULL

Table smf_affiliates_banners

Field name       Type       Allow nulls?       Key       Default value       Extras   
image            tinytext    Yes                    None    NULL    
id_banner    int(11)    No                    Primary    NULL               auto_increment

Table smf_affiliates_rating

Field name       Type                               Allow nulls?       Key       Default value       Extras   
id                    int(11)                            No                    Primary    NULL               auto_increment
id_affiliates    int(11)                            No                    None    NULL    
id_member    mediumint(8) unsigned    No                    None    0    
value            tinyint(1)                            No                    None    NULL
   


That's it

Any suggestions how I solve it?
Could you do more if I let you look at the admin section or files?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on April 27, 2009, 02:58:12 PM
right...

I suspect
Unknown column 'a.id_affiliates' in 'field list'
File: /usr/home/alltkul/domains/aggma.com/public_html/forum/Sources/BoardIndex.php
Line: 166

is because you have
Table smf_affiliates

Field name       Type                       Allow nulls?       Key       Default value       Extras   
id_affiliate     int(11)                    No                  Primary    NULL    auto_increment


where, in every other table, it is id_affiliates (with an S)
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 27, 2009, 04:09:30 PM
OK..That might be it...

But NOT... I changed the name.. applied the mod...

And still the same errors

So how do I do it then?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 27, 2009, 05:47:52 PM
id_affiliate should be id_affiliates


did you have the other affiliates mod installed that proberly why delete all affiliates tables and reinstall
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 27, 2009, 06:14:56 PM
Fantastic!

Now it works.
Thanks guys!

Now all I have to do is figure out how to use it.  ;)
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 28, 2009, 03:20:22 AM
OK..
Some problems.
I am really struggling to figuring out how this works.
Could someone please tell me in plain language how it works?
I have tried the ways I thought were how it should be done and now I have "affiliates" that I want to delete.
How do I delete affiliates??

Also, I used the custom block code in my SP but the crap i have tried does not show up there, just an empty block.

My site.
www.aggma.com
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 28, 2009, 04:37:39 AM
for staters that block code is not for this version this one is for your version

Code: [Select]
global $smcFunc, $context, $settings, $modSettings, $txt, $scripturl;

$result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC'
);

$affiliates = array();
while ($row = $smcFunc['db_fetch_assoc']($result))
{
$affiliates[] = array(
'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
);
}
$smcFunc['db_free_result']($result);

echo '
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

foreach ($affiliates as $item)
echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $item['id'],'" target="_blank">
<img src="', $item['image'],'"  onload="ImageResizer.createOn(this);"  title="', $item['description'],'" alt="', $item['description'],'" /></a>';

echo '
</marquee>';


as for deleting affiliates it pretty simple you clikc the delete icon ever on affiliates page or affiliates admin

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 28, 2009, 05:08:48 AM
OK..

Code added..Nothing in the custom block..

If it were that simple I would have found it.
The problem is that I don't have any delete button. It has something to do with my Theme I think

I think I am doing something really wrong when I am adding affiliates.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 28, 2009, 05:54:13 AM
add these images to your theme and you will see them tyhey go in your theme images

nothing will show if theres no affiliates


i onestly dont know how your getting confused with this it easy if you was usaing the last version i would understand but i dont undersdtand what is so hard


it couldent be more simple to manage / add addiliates


when you add affiliates

name = name of the site
url of banner = www.somebannerurl.gif
URL for link = www.somelink.com
Description = description of the site

Verification:
Type the letters shown in the picture = type the letters shown [this bit isnt in admin]
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 28, 2009, 06:06:42 AM
OK..
Now it is better.

when you add affiliates

name = name of the site
url of banner = www.somebannerurl.gif
URL for link = www.somelink.com
Description = description of the site


url of banner: Could this be a picture stored locally?
Or does it have to be a banner on the affiliate site?

And where do I put my own banner?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on April 28, 2009, 06:49:07 AM
no it dont have to be affiliates site

sya you banner is uploaded on your server in a file name aff

you will link to it like

yoursite.com/aff/banner.gif

you own banners go in

you banners in admin

just pop you rbanner url in the box and save
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: buckshot on April 28, 2009, 07:50:06 AM
Cool...
Now it works with the exception of the SP Custom block where the banner just flashes one time for a milli second.

Any suggestion?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: ArkServer on May 02, 2009, 09:45:05 AM
When i install this on my 1.1.x forum i get an "Unable to find package file!" error. any help?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 02, 2009, 09:59:32 AM
hmm try it now
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: ArkServer on May 02, 2009, 12:18:09 PM
hmm try it now

I'm not sure what you have changed but it works. thanks!  :D
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on May 11, 2009, 07:25:44 PM
Hey Mate,
Small problem with the affiliates tab. I have affiliates version 2 on a default core vers. 1.1.8 and when I click on the affiliates tab it goes to the affiliates page but the "home" button lights up.  How do I get the affiliates tab to light up? I also don't know how to enable the marquee.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 12, 2009, 01:23:32 PM
can you post up your index.template.php please?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on May 12, 2009, 05:06:22 PM
can you post up your index.template.php please?

Here you go, thanks for looking.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 12, 2009, 06:48:24 PM
in that file find

Code: [Select]
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

replace with

Code: [Select]
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'affiliates')))
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on May 12, 2009, 07:20:45 PM
in that file find

Code: [Select]
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))

replace with

Code: [Select]
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'affiliates')))

Worked like a charm, thanks a lot. Am I supposed to be able to have a marquee effect? Compleat Affiliates vers.2 SMF 1.1.8 Default Core thanks again.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 12, 2009, 07:23:07 PM
no not on that version sry
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on May 12, 2009, 07:33:12 PM
no not on that version sry

No worries, I must have misread something in the first few pages of this thread here.

Are you still working on the new version to be 1.1.8 compatible?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 12, 2009, 07:43:16 PM
hmm yes and no i habent worked on the 118 version for some time now
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: TDNY on May 12, 2009, 07:47:05 PM
hmm yes and no i habent worked on the 118 version for some time now

Alright then, thanks for the support on this problem, good luck to you too.
TD
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 14, 2009, 08:27:07 AM
SMF Affiliates System 3.1 relsed

admin can set sorting order via affiliates admin
admin can set diply desc or asc
admin will be notyified of affiliates waiting for aproval
admin will be notified of reported affilioates
members will be notified when there affiliat is approved
no you can veiw affiliates on there own ie http://sleepy-arcade.ath.cx/sleepy/index.php?action=affiliates;sa=veiwaff;id=168

option to disable/enable reported affiliates pm
option to disable/enable affiliates request pm
option to disable/enable notify members if ther affiliates are approved
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Shades. on May 15, 2009, 10:18:39 PM
Just installed the latest version and everything seemed to work fine but IE8 says at bottom left "Done, but errors on page". Any idea what would cause that?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 16, 2009, 08:16:41 AM
i suspect it the image resizer thats causing it it noting majar
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Shades. on May 16, 2009, 01:54:35 PM
i suspect it the image resizer thats causing it it noting majar
Is there a fix for the image resizer? Browser is showing the error for every page of my forum.

Code: [Select]
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; Alexa Toolbar; .NET CLR 3.5.30729; .NET CLR 3.0.30618)
Timestamp: Sat, 16 May 2009 17:44:26 UTC


Message: 'ImageResizer' is undefined
Line: 87
Char: 2
Code: 0
URI: http://www.auctzilla.com/index.php?action=affiliates

Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 16, 2009, 02:40:02 PM
ill look into it for next relese
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: FlashUK1983 on May 18, 2009, 04:10:32 PM
Keep getting the following error everytime a page is loaded.....
Code: [Select]
8: Undefined index: naffiliatessn
File: MY FORUM URL/Themes/default/languages/index.english.php (eval?)
Line: 132

I managed to trace it back to this mod, but don't know how to fix it. Any suggestions?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on May 18, 2009, 07:55:05 PM
looks like you pasted something into the english file incorrectly...     get rid of the n's around that
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: FlashUK1983 on May 19, 2009, 02:26:43 AM
I really didn't see how that would work, seeing as I didn't paste anything, I just installed the mod, but I tried it anyway.

All that did was change the arror to:
8: Undefined index: affiliates
File: MY SITE URL/Themes/default/languages/index.english.php (eval?)
Line: 132
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on May 19, 2009, 06:44:11 AM
please display your lines 125-135 from that file?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: FlashUK1983 on May 19, 2009, 07:35:38 AM
Is there an easier way tpo get those lines, without attempting to sit and count them all?
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: Kindred on May 19, 2009, 07:40:27 AM
get a real text editor with line numbering?

UltraEdit, TextEdit Plus, notpad++, ConText
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: FlashUK1983 on May 19, 2009, 09:04:53 AM
Thanks

Code: [Select]
$txt['affiliatesid'] = 'ID';
$txt['affiliatesname'] = 'Website Name';
$txt['affiliatesurl'] = 'Website URL';
$txt['affiliatesurldesc'] = 'Description:';
$txt['affiliatesurlbann'] = 'URL of Banner:';
$txt['affiliatesemail'] = 'Contact EMAIL';
$txt['affiliatesconfir'] = 'Confirmed';
for ($cnum = 1; $cnum < ($modSettings['naffiliatessn'] + 1); $cnum++)
{
$txt['affiliatesname'.$cnum.''] = $txt['affiliatesname'].':';
$txt['affiliatesid'.$cnum.''] = $txt['affiliatesid'].':';
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 19, 2009, 11:54:13 AM
that is correct the way it is you will get errors like that cos it not configard proply

Undefined index: naffiliatessn  mean you havent set  number of affiliates you want propaly so if you have 2 affiliates you put 2 in the box
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: FlashUK1983 on May 19, 2009, 12:18:47 PM
Thanks,
It seems to have brought on a few more errors, but I'm thinking that they might iron out when I get my affiliates on board.

I'll come back if the problem persists.
Title: Re: compleat affiliates system [with stats] RC2 relesed
Post by: SA™ on May 19, 2009, 12:24:02 PM
yeah thats the proplem with the 118 version if its not configard right or at all you get errors i dont use 118 i use smf 2 version wich is different but if fi rember correctly if you add an affiliate the error should go?
Title: Re: smf affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 03:47:18 PM
For those who wish to use the code on SimplePortal:

Using a "php" block:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
   if (!empty($modSettings['enable_marquee']) && (!empty($modSettings['affiliates'])))
                     echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';


It will use whatever code you have in the "Board" box.
You can use this with the board enabled or not.

I tried using this and I have affiliates but when I enable this on SP it shows the Affiliates box but it doesn't have the affiliates in it. Why?
Title: Re: SA affiliates
Post by: TheListener on May 28, 2009, 03:49:38 PM
I tried the affiliates in an html block.

 :D Didn't realise there were so many on the forum.
Title: Re: smf affiliates
Post by: TheListener on May 28, 2009, 03:54:13 PM
For those who wish to use the code on SimplePortal:

Using a "php" block:

Code: [Select]
global $context, $settings, $options, $txt, $scripturl, $modSettings;
   if (!empty($modSettings['enable_marquee']) && (!empty($modSettings['affiliates'])))
                     echo '<marquee behavior="scroll" onmouseover="this.stop()" onmouseout="this.start()"><span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span></marquee>';


It will use whatever code you have in the "Board" box.
You can use this with the board enabled or not.

I tried using this and I have affiliates but when I enable this on SP it shows the Affiliates box but it doesn't have the affiliates in it. Why?

I should imagine we have to add the affiliates ourselves. Ok if theres only a few otherwise......
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 04:13:10 PM
So what should I do to get the affiliates to show in the SP? (I already have affiliates in the normal affiliate section)
Title: Re: SA affiliates
Post by: SA™ on May 28, 2009, 04:20:07 PM
tyhe code you tryed using is for ealyer versions will not work with the latest version if sp alowes you to use ssi the you can use

ssi_affiliates()

or

ssi_random_affiliate()

id odnt know sp well so i dont know if you can use ssi in block ill have a look at the week end


or you can just try use thi code in a phpox maybe

Code: [Select]
global $smcFunc, $context, $settings, $modSettings, $txt, $scripturl;

$result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC'
);

$affiliates = array();
while ($row = $smcFunc['db_fetch_assoc']($result))
{
$affiliates[] = array(
'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
);
}
$smcFunc['db_free_result']($result);

echo '
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

foreach ($affiliates as $item)
echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $item['id'],'" target="_blank">
<img src="', $item['image'],'"  onload="ImageResizer.createOn(this);"  title="', $item['description'],'" alt="', $item['description'],'" /></a>';

echo '
</marquee>';

works with portamx
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 04:45:45 PM
Ok that code works but can we get it to scroll like the SA Affiliates does?
Title: Re: SA affiliates
Post by: SA™ on May 28, 2009, 05:03:14 PM
it allrady should if you set up the scroll ammount and that in admin
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 05:24:05 PM
Ok I see where to set it. But when I set the numbers like I have setup for the SA Affiliates in the admin panel 3 for scroll without mouse over and 1 for scroll with mose over. I set that for this and 3 is super fast and 1 is the speed of like 3 in the admin panel. How can this be adjusted, also how can I change it to scroll in the other direction?

Here is my code I set it up for the scroll part.
Code: [Select]
   echo '   
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=1', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=3', $modSettings['How_Fast_To_Scroll'],'">';
Title: Re: SA affiliates
Post by: SA™ on May 28, 2009, 05:32:58 PM
ok setting from my site

Marque Scroll Speed =10
Marque Scroll Speed On Mouse Over =1

Marque Scroll Direction = default is set to left you can switch it scroll right
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 05:42:01 PM
If I set it to 10 that would be so fast you couldn't read it my 2 is about your 10 speed (for the SP). I set onmouseover = 0 and that still scrolls at about the mouse over speed I want. But with my notmouseover speed set to 1 it still is half as fast as I want.

And I don't see where to change this
Quote
Marque Scroll Direction = default is set to left you can switch it scroll right
Title: Re: SA affiliates
Post by: SA™ on May 28, 2009, 05:47:05 PM
hmm i dont fully understand what you are saying i have my setting like i showed you and it doesnt go fast see at my site


Quote
And I don't see where to change this

it in affiliates admin under Marque Scroll Speed On Mouse Over

Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 05:59:15 PM
Ok I fixed the scroll problem (I was adding the numbers in the code not relizing it picked it up from the admin settings for the SP).
But my problem I still am having is how I add the Direction string to the affiliate code for the SP.

I mean do I add this
Code: [Select]
marquee direction="', $modSettings['scrolldirection'],'" scrolldirection="direction=',To this
Code: [Select]
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';And if so how?
Title: Re: SA affiliates
Post by: SA™ on May 28, 2009, 06:59:27 PM
replace

Code: [Select]
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">
with

Code: [Select]
<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 08:32:53 PM
Thanks Works!

One quick question. When you go to others affiliates and it says copy the "code" into your site and it shows the code, where exactly do you put that whole code? I have been just adding it manually all the fields for like Title, Url of banner, Url of link and description.
Title: Re: SA affiliates
Post by: SA™ on May 28, 2009, 10:54:15 PM
well tecnicly that code works stand alon like in a html block 


you only realy need the  the linking url cos that what updats the inhits 
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 28, 2009, 11:54:20 PM
So like this is all(as far as the URLs)?
EXAMPLE
The whole code:
Code: [Select]
<a href="http://sleepy-arcade.ath.cx/sleepy/index.php"><img src="http://sleepy-arcade.ath.cx/sleepy/banner3.gif"  alt="SLEEPY ARCADE" ></a>
This is what you get out of the code.

URL of Banner:
Code: [Select]
http://sleepy-arcade.ath.cx/sleepy/banner3.gif
URL for link:
Code: [Select]
http://sleepy-arcade.ath.cx/index.php
Title: Re: SA affiliates
Post by: SA™ on May 29, 2009, 12:05:32 AM
no link us banners are different

gotto your affiliate on my site and click edit [wee man with pencil]


and you will see your code for you to use

the url

http://sleepy-arcade.ath.cx/sleepy/index.php?action=affiliates;sa=in;idaff=171

notice the different ??

click it it will update the database +1 for in hits th redirect to the boardindex

then look at the affiliates amd you will see inhits 1 :)

so bascly where you added the url for my site in your affiliates on your site

replace it with the above url it hard for me to explain lol im trying

Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 29, 2009, 12:16:19 AM
So where exactly do I put this code on my site (I manually added all the info for Add Affiliate)
Code: [Select]
<a href="http://sleepy-arcade.ath.cx/sleepy/index.php?action=affiliates;sa=in;idaff=171"><img src="http://sleepy-arcade.ath.cx/sleepy/banner3.gif" alt="SLEEPY ARCADE" ></a>
Title
URL for link
URL of Banner
Description
Title: Re: SA affiliates
Post by: SA™ on May 29, 2009, 12:33:25 AM
 that is a stand alone code to be used for html pages or html portal blocks but seem as your using the affiliates mod you only need the url and the banner to put in the correct feilds

Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 29, 2009, 12:42:16 AM
Ok that's what I thought originally. Thanks bro! Great Mod and Great Help!
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 05:34:28 AM
When ever someone tries to rate a affiliate they get the 404 error:

Quote
Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SA affiliates
Post by: SA™ on May 31, 2009, 01:27:24 PM
is there any thing in the error logs regarding that when i get home ill go do some testing on my other sever see whats causing that
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 02:22:27 PM
No I copied over my main sites files and database to the test one. And that is happening thats why I am wondering if it is looking for the smilies images somewhere and it doesn't see it due to the transfer.
Title: Re: SA affiliates
Post by: SA™ on May 31, 2009, 02:27:14 PM
huh smilys ? this mod use smilys ???? first i knew :P

have you tryed running repair settings.php?
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on May 31, 2009, 02:44:44 PM
 :-[ wow I am retarded and when I first asked I was tired and posted in wrong one (I was meaning to ask in Ajaxchat integration) and then I was tired again this morning and just replied  :-[ yup I am a moron but I will give that a try.
Title: Re: SA affiliates
Post by: SA™ on May 31, 2009, 02:50:04 PM
lol np we all make silly mistack like that one time or another  :D
Title: Re: SA affiliates
Post by: [unplugged] on June 06, 2009, 10:24:26 PM
Sorry if this has already been addressed, but how would I go about displaying all of my affiliate banners in a random order (like on each new page or page refresh). I have used ssi_random_affiliate(); but only get a single banner to show. I have tried several different ways to get it to show a set number of banners like 10 or 12. It's probably a simple answer, but it escapes me. :P

Thanks in advance.
Title: Re: SA affiliates
Post by: dzinerfusion on June 07, 2009, 09:17:07 AM
HI how do I approve an afflitiate? There is no options when i go to my waiting aprovval menu
Title: Re: SA affiliates
Post by: SA™ on June 07, 2009, 05:13:20 PM
@ SunKing do you want the ssi_random_affiliate(); to show more than one ?


@ bluesinjid  goto affiliates and click on Waiting Approval
Title: Re: SA affiliates
Post by: [unplugged] on June 07, 2009, 05:47:05 PM
Yes please. I thought it would be something like ssi_random_affiliate(10);  I tried a few different ways and nothing worked.
Title: Re: SA affiliates
Post by: SA™ on June 07, 2009, 07:03:58 PM
try ssi.php

find

Code: [Select]
unction ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
");

$random = array();
$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);

$random[] = array(
'title' => '<a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'">'.$row['title'].'</a>',
);
$smcFunc['db_free_result']($request);

foreach ($random as $affiliate)
echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}

replace with

Code: [Select]
function ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
LIMIT 6");

$random = array();
$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);

$random[] = array(
'title' => '<a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'">'.$row['title'].'</a>',
);
$smcFunc['db_free_result']($request);

foreach ($random as $affiliate)
echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}

in that code find

LIMIT 6

and chnage the 6 to how many you want
Title: Re: SA affiliates
Post by: [unplugged] on June 07, 2009, 07:17:39 PM
That was one of the ways I had tried and could only ever get a single, but random, banner to show. No matter the number I set for the LIMIT, it would always just show one. I tried again just to make sure and it is the same result. Thank you very much for your time. I really appreciate it.
Title: Re: SA affiliates
Post by: SA™ on June 07, 2009, 08:07:22 PM
try this one

Code: [Select]
function ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$muliplayer_rrequest = $smcFunc['db_query']('', '
SELECT title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
LIMIT 6',
array(

)
);

$content = array();

while ($row = $smcFunc['db_fetch_assoc']($muliplayer_rrequest))
{
$content[] = array(
'title' => $row['title'],
'image' => $row['image'],
'id_affiliates' => $row['id_affiliates'],
'approved' => $row['approved'],
);
}
//return $content;

foreach ($content as $row)

echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}
Title: Re: SA affiliates
Post by: [unplugged] on June 07, 2009, 08:49:33 PM
Now it shows nothing at all.
Title: Re: SA affiliates
Post by: SA™ on June 07, 2009, 10:35:49 PM
sry this one works jsut tested it

Code: [Select]
//random affiliates
function ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$muliplayer_rrequest = $smcFunc['db_query']('', '
SELECT title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
LIMIT 6',
array(

)
);

$content = array();

while ($row = $smcFunc['db_fetch_assoc']($muliplayer_rrequest))
{
$content[] = array(
'title' => $row['title'],
'image' => $row['image'],
'id_affiliates' => $row['id_affiliates'],
'approved' => $row['approved'],
);
}
//return $content;

foreach ($content as $row)

echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';

}
Title: Re: SA affiliates
Post by: [unplugged] on June 07, 2009, 10:44:18 PM
Spot on bud. Thanks so much for your time! To make it easier to control the number of banners shown you can do it like this:

Code: [Select]
//random affiliates
function ssi_random_affiliate($limit)
{
   global $scripturl, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT $limit",
   array(
   
   )
);

   $content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
   
}

then just put how many banners you want showing inside the function like ssi_random_affiliate(12).
Title: Re: SA affiliates
Post by: SA™ on June 07, 2009, 10:45:37 PM
thanbks for the tip i was trying to figar that out but couldent thanks  ;)
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 11:14:11 PM
Great work SunKing and sleepy ..... I might actually use this little trick you two figured out!

P.S.
Sorry I haven't been on your two sites lately I have been very busy with work, family ..... and now I got addicted to my old time MMORPG game again  ::) plus updating my site with a few things. I will be getting over to both your sites very soon!
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 07, 2009, 11:32:35 PM
Actually I just tried it on mine .... used the above code but its doing same exact as what it did before using that code... no change it isn't random any ideas?
Title: Re: SA affiliates
Post by: SA™ on June 08, 2009, 12:19:48 AM
try ssi.php

find

Code: [Select]
unction ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
");

$random = array();
$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);

$random[] = array(
'title' => '<a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'">'.$row['title'].'</a>',
);
$smcFunc['db_free_result']($request);

foreach ($random as $affiliate)
echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}

replace with

Code: [Select]
//random affiliates
function ssi_random_affiliate($limit)
{
   global $scripturl, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT $limit",
   array(
   
   )
);

   $content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
   
}

and call it like so

ssi_random_affiliate(12);

repalce twelve with how many you want


Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 12:59:00 AM
Right now I have this.

Code: [Select]
// Affiliates SSI Function
function ssi_affiliates()
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;

loadLanguage('Stats');

$result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC',
      array(
      )
   );
   $context['aff'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($result))
   {
      $context['aff'][] = array(
        'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
      );
   }
   $smcFunc['db_free_result']($result);
   
echo'<table border="0" width="100%" align="center" class="smfNews">
<tr><td><marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

foreach ( $context['aff'] as $aff)
echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $aff['id'],'" target="_blank">
<img src="', $aff['image'],'"  width="88" height="31" alt="', $aff['description'],'" />';

echo'</marquee></td>
</tr>
</table>';
}
//random affiliates
function ssi_random_affiliate($limit)
{
   global $scripturl, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT $limit",
   array(
   
   )
);

   $content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
   
}
Title: Re: SA affiliates
Post by: SA™ on June 08, 2009, 01:52:51 AM
yes thats correct
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 01:57:59 AM
It isn't changing anything all of it is showing as the same ..... they aren't scrolling in a random order ..... maybe I am stupid and thats not what it was supposed to do?
Title: Re: SA affiliates
Post by: SA™ on June 08, 2009, 03:31:10 AM
to use the random affilite like i said im my other post

where ever you want it to display just add

 ssi_random_affiliate(10);


you are using the
ssi_affiliates(); i guess ?

Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 05:31:15 AM
to use the random affilite like i said im my other post

where ever you want it to display just add

 ssi_random_affiliate(10);


you are using the
ssi_affiliates(); i guess ?

oh i have to go into the other sa affiliate files and whereever it is ssi_affiliates(); I have to change to  ssi_random_affiliate(10); ..... I want it to work on the boardindex scroll and SP so I will go edit them.

/me feels retarded for not doing that before  :-[

~Edit
Only file I see ssi_affiliates();  in is  ./ssi_examples.php
Title: Re: SA affiliates
Post by: SA™ on June 08, 2009, 05:23:06 PM
hmm chit lol im confused now what are  you trying to acomplesh lol

you dont need to touch ssi_examples.php all you need to do is add the aboe code to ssi.php then where you want it to be diplayed you just put

ssi_random_affiliate(10);

so if you wanted it in a portal block you add ssi_random_affiliate(10); to a php block
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 08:41:36 PM
ah yes ok ... I wanted it to scroll ... where i having it scrolling on the boardindex and SP pages in a random order not always scrolling the same way everytime
Title: Re: SA affiliates
Post by: [unplugged] on June 08, 2009, 08:51:33 PM
I have this code placed in the infocenter section of my BoardIndex.template.php and it scrolls and displays in random order (on each page refresh):

Code: [Select]
echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
ssi_random_affiliate(12);
echo '</marquee>';

As sleepy said, the 12 can be changed to any number of banners you want displayed. You can see it working here (http://www.empireofthesun.net/forum/index.php#bottom). (Refresh to see a random order.)
Title: Re: SA affiliates
Post by: SA™ on June 08, 2009, 09:04:34 PM
thanks sunking
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 08, 2009, 09:27:23 PM
Thanks!
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 04:40:34 PM
I have been trying to play with this now for a few days for the SP php block code. How would I get this random to work on that?

Code: [Select]
global $smcFunc, $context, $settings, $modSettings, $txt, $scripturl;

$result = $smcFunc['db_query']('', '
   SELECT a.id_affiliates, a.image, a.description
   FROM {db_prefix}affiliates AS a
   WHERE  approved = 1
   ORDER BY a.id_affiliates DESC'
   );

$affiliates = array();
while ($row = $smcFunc['db_fetch_assoc']($result))
{
   $affiliates[] = array(
      'id' => $row['id_affiliates'],
      'image' => $row['image'],
      'description' => $row['description'],
   );
}
$smcFunc['db_free_result']($result);

   echo '   
<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

   foreach ($affiliates as $item)
      echo '
      <a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $item['id'],'" target="_blank">
   <img src="', $item['image'],'"  onload="ImageResizer.createOn(this);"  title="', $item['description'],'" alt="', $item['description'],'" /></a>';

   echo '
</marquee>';
Title: Re: SA affiliates
Post by: [unplugged] on June 13, 2009, 05:26:35 PM
Add the ssi_random_affiliates() block of code to your SSI.php as described earlier in this thread. Then you would simply add ssi_random_affiliates(12); to the SP block, where would be whatever number of banners you want to be displayed.
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 05:41:35 PM
Add the ssi_random_affiliates() block of code to your SSI.php as described earlier in this thread. Then you would simply add ssi_random_affiliates(12); to the SP block, where would be whatever number of banners you want to be displayed.
It already is in there ... and I added that to the SP block and it made it random just it kept none stop sending affiliates in random order never restarted just steady flow of affiliates.

This is in SSI
Code: [Select]
function ssi_random_affiliate($limit)
{
   global $scripturl, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT $limit",
   array(
   
   )
);

   $content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'"  onload="ImageResizer.createOn(this);" alt="'.$row['title'].'"></a>';
   
}
Title: Re: SA affiliates
Post by: SA™ on June 13, 2009, 05:45:25 PM
post up you ssi.php please
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 05:52:09 PM
This random add works fine on the board index of the affiliates banners just the SP is giving problems.

Title: Re: SA affiliates
Post by: SA™ on June 13, 2009, 05:57:36 PM
hmm never tried it with sp try just creating a php block and just add this

Code: [Select]
global $scripturl, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT 10",
   array(
   
   )
);
$content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
   
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 06:07:26 PM
Now it isn't scrolling or anything they just sit there in a display. (But they do change random display order on refresh)

Currently my working (non random) SP Block is this.
Code: [Select]
global $smcFunc, $context, $settings, $modSettings, $txt, $scripturl;

$result = $smcFunc['db_query']('', '
   SELECT a.id_affiliates, a.image, a.description
   FROM {db_prefix}affiliates AS a
   WHERE  approved = 1
   ORDER BY a.id_affiliates DESC'
   );

$affiliates = array();
while ($row = $smcFunc['db_fetch_assoc']($result))
{
   $affiliates[] = array(
      'id' => $row['id_affiliates'],
      'image' => $row['image'],
      'description' => $row['description'],
   );
}
$smcFunc['db_free_result']($result);

   echo '   
<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

   foreach ($affiliates as $item)
      echo '
      <a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $item['id'],'" target="_blank">
   <img src="', $item['image'],'"  onload="ImageResizer.createOn(this);"  title="', $item['description'],'" alt="', $item['description'],'" /></a>';

   echo '
</marquee>';
Title: Re: SA affiliates
Post by: SA™ on June 13, 2009, 06:33:02 PM
try this

Code: [Select]
function random_affiliate_block($limit)
{
   global $scripturl, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT $limit",
   array(
   
   )
);
$content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
   
}

echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

random_affiliate_block(10);

echo '</marquee>';


Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 07:00:51 PM
Now it lists it in the line as if it was going to scroll just ins't scrolling

nevermind it took a little while to load its scrolling .... just the wrong way and wrong speed ... its not picking up my set stuff in the setting ... i will try to play with the code on that end thanks!

Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 07:30:00 PM
I cant seem to adjust it to pick up the affiliates settings for direction and speed. also I am now getting this error

Code: [Select]
8: Undefined variable: modSettings
Apply Filter: Only show the errors from this file
File: /public_html/Test_Site/Sources/SPortal2.php(3147) : eval()'d code
Line: 34
Title: Re: SA affiliates
Post by: SA™ on June 13, 2009, 08:28:25 PM
replace

 global $scripturl, $smcFunc;


with

 global $scripturl, $modSettings,  $smcFunc;
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 10:29:35 PM
Still pushing the same error =/
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 13, 2009, 10:57:00 PM
I appeared to have fixed it  :D I don't know if its correct or not but I got it to work.

Code: [Select]
global $scripturl, $modSettings, $smcFunc;
function random_affiliate_block($limit)
{
   global $scripturl, $modSettings, $smcFunc;
   
   $rand_aff = $smcFunc['db_query']('', "
      SELECT title, approved, id_affiliates, image
      FROM {db_prefix}affiliates
      WHERE  approved = 1
   ORDER BY RAND()
    LIMIT $limit",
   array(
   
   )
);
$content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($rand_aff))
   {     
      $content[] = array(
      'title' => $row['title'],
      'image' => $row['image'],
      'id_affiliates' => $row['id_affiliates'],
      'approved' => $row['approved'],
      );   
   }
      //return $content;
     
      foreach ($content as $row)
     
      echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" onload="ImageResizer.createOn(this);" alt="'.$row['title'].'"></a>';
   
}

echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

random_affiliate_block(7);

echo '</marquee>';

When I changed the image size part to this
Code: [Select]
onload="ImageResizer.createOn(this);"
And changed
Code: [Select]
function random_affiliate_block($limit)
{
   global $scripturl, $modSettings, $smcFunc;
To this
Code: [Select]
global $scripturl, $modSettings, $smcFunc;
function random_affiliate_block($limit)
{
   global $scripturl, $modSettings, $smcFunc;
It seemed to work. I added the same global string to the outside of the function for the lines that are being called below the function closing. That is where the errors were coming from because there was no global string for them.

Let me know if I did something wrong but now since I edited it, it is reading the scroll direct and image size from the affiliates settings in the admin section and is not pushing anymore errors.
Title: Re: SA affiliates
Post by: SA™ on June 14, 2009, 05:12:09 PM
that looks ok so is it working now ?
Title: Re: SA affiliates
Post by: Chit-Chat ChatterBox Boss on June 14, 2009, 08:01:19 PM
Yup with my edits combined with yours that I showed in my post before it is working just like the main display on the forum works! Thanks!
Title: Re: SA affiliates
Post by: TheListener on June 17, 2009, 10:08:09 PM
Installed the mod and received this error

Unknown column 'id_affiliates' in 'field list'
File: /home/visionar/public_html/Sources/Affiliates db.php
Line: 25
Title: Re: SA affiliates
Post by: SA™ on June 17, 2009, 11:06:18 PM
i guess you had the other affiliates mod install in that caser you will need to drop all the tables belonging to the other affiliates mod then reinstal
Title: Re: SA affiliates
Post by: n00dle on June 18, 2009, 05:13:11 PM
Which version am I supposed to use if I have 1.1.9 installed?  I tried both.  The 2.0 doesn't let me apply it when I click apply, nothing happens it just reloads the page and shows the apply link still there.  The other one doesn't give me an option to apply it just says list files and delete.
Title: Re: SA affiliates
Post by: SA™ on June 19, 2009, 03:07:02 AM
this is the one for 1.1.9

http://custom.simplemachines.org/mods/index.php?action=download;mod=1511;id=97024
Title: Re: SA affiliates
Post by: asifnur on June 21, 2009, 12:33:39 PM
yo after i installed the mod i tried tryn myslef
i regustered a test user just to test
and i send affilate request then i logged in my email bit  id ont see any request why???
Title: Re: SA affiliates
Post by: SA™ on June 24, 2009, 04:28:58 AM
idk is it will send to the saem addresse that you set smf up with
Title: Re: SA affiliates
Post by: dzinerfusion on June 30, 2009, 11:55:28 AM
Code: [Select]
<script type="text/javascript" src="http://modernopolis.simgames.net/forum/Themes/Prof/imageresizer.js"></script>
101 <script language="JavaScript" type="text/javascript"><!-- // -->
102 ImageResizer.MAXWIDTH = "88";
103 ImageResizer.MAXHEIGHT = "31";
104 </script></head>

I get error this code that imageresizer. is not defined. How to define it

*EDIT* I included my imagerezsier.js
Title: Re: SA affiliates
Post by: SA™ on July 02, 2009, 12:51:23 AM
did you set the size in admin ?
Title: Re: SA affiliates
Post by: SA™ on July 15, 2009, 11:20:14 PM
SA Affiliates System 3.3 Realsed
Title: Re: SA affiliates
Post by: JeremyB. on July 16, 2009, 12:19:05 AM
Thanks for the info.
Title: Re: SA affiliates
Post by: TheListener on July 22, 2009, 10:04:12 AM
so did you copy smf affiliates or did they copy you? Because they are both the exact same ******ing code. Same with your SA Shop..... same ******ing thing as smf shop. Maybe im missing something here but if you did copy them, you are a ******en loser.

They would be a similar code being the same type of subject.

Would you say the same to the people who started smf being a forum similar  to phbb or vbulletin?

If you don't like the mod then don't use it.
Title: Re: SA affiliates
Post by: erealmz on July 22, 2009, 11:30:49 AM
So SA wrote the code and SMF got it from him. I guess I was wrong but Im glad it is cleared up. Now back to reinstalling my whole damn site from scratch.
Title: Re: SA affiliates
Post by: erealmz on July 22, 2009, 02:33:43 PM
Better yet, I apologize to the author of this code. I didnt really get deep enough into it to see just how good it really is. After seeing it on some sites, I decided to take a closer look at it and it is pretty awesome.
Title: Re: SA affiliates
Post by: SA™ on July 22, 2009, 03:59:01 PM
thank you listener for clearing that up this miod has nothing to do with the othe affiliates mod this mod was about beforthhe other affailates mod

and thank you erealmz for appoligizing to me i appretiate it

and yes you ae right about the shop it is based on smf shop mod sothat does use code from the smf shop but i have permission to do so im not a thef
Title: Re: SA affiliates
Post by: asifnur on July 27, 2009, 03:10:57 PM
doesnt work for 1.1.10 :(
Title: Re: SA affiliates
Post by: SA™ on July 27, 2009, 10:24:07 PM
there is two packages there one for smf 1 other for smf 2 tho the smf 1 version is no way asgood as the 2 version
Title: Re: SA affiliates
Post by: ArkServer on July 31, 2009, 07:21:14 PM
doesnt work for 1.1.10 :(

same problem here, it redirects back to the package page. :(
Title: Re: SA affiliates
Post by: SA™ on August 02, 2009, 04:11:44 AM
thankas found the problems ill rease a fix tomorrow hopfully
Title: Re: SA affiliates
Post by: ArkServer on August 03, 2009, 10:20:23 AM
thankas found the problems ill rease a fix tomorrow hopfully

Awesome, looking forward to it. i like the mod a lot  ;)
Title: Re: SA affiliates
Post by: ArkServer on August 05, 2009, 12:46:23 PM
any news on an updated release for 1.1.10?
Title: Re: SA affiliates
Post by: SA™ on August 05, 2009, 03:39:00 PM
sry not yet i have had a lot todo this week i got nothing to do thursday and friday so ill do it then for you sry bout the wait :)
Title: Re: SA affiliates
Post by: ArkServer on August 05, 2009, 03:53:20 PM
sry not yet i have had a lot todo this week i got nothing to do thursday and friday so ill do it then for you sry bout the wait :)

np, take your time. I was just making sure if the mod was going to be updated  O:)
Title: Re: SA affiliates
Post by: SA™ on August 05, 2009, 03:58:24 PM
oh yes it will be updated  ;)
Title: Re: SA affiliates
Post by: TheListener on August 05, 2009, 09:28:07 PM
Am on smf 2.0 rc1-2

Installing my SA affiliate mod was clean with no errors however above the forums banner was this:

//Affiliates Start function affiliatesboard() { global $context, $smcFunc, $txt, $db_prefix, $scripturl, $modSettings; // Newest members top 10 $result = $smcFunc['db_query']('', ' SELECT a.id_affiliates, a.image, a.description FROM {db_prefix}affiliates AS a WHERE approved = 1 ORDER BY a.id_affiliates DESC', array( ) ); $context['aff'] = array(); while ($row = $smcFunc['db_fetch_assoc']($result)) { $context['aff'][] = array( 'id' => $row['id_affiliates'], 'image' => $row['image'], 'description' => $row['description'], ); } $smcFunc['db_free_result']($result); } //Affiliates End ?>

When I look in permissions there is a large blank area which I presume the affiliate permissions should be.
Title: Re: SA affiliates
Post by: Kindred on August 06, 2009, 12:53:35 AM
your installation had issues (obviously)

looks like something was installed after the closing ?> of one of the files.
Title: Re: SA affiliates
Post by: SA™ on August 06, 2009, 12:17:03 PM
cani see your boadindex.php?
Title: Re: SA affiliates
Post by: TheListener on August 06, 2009, 12:43:27 PM
Attachment as requested
Title: Re: SA affiliates
Post by: SA™ on August 06, 2009, 12:49:31 PM
try this
Title: Re: SA affiliates
Post by: TheListener on August 06, 2009, 01:20:30 PM
Had this error on install.

Fatal error: Cannot redeclare affiliatesboard() (previously declared in /Sources/BoardIndex.php:272) in /Sources/BoardIndex.php on line 318
Title: Re: SA affiliates
Post by: SA™ on August 06, 2009, 01:23:15 PM
thats cos it allready in that file


find and remove one of these from boardindex.php

Code: [Select]
//Affiliates Start
function affiliatesboard()
{
     global $context, $smcFunc, $txt, $db_prefix, $scripturl, $modSettings;
         // Newest members top 10
    $result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC',
      array(
      )
   );
   $context['aff'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($result))
   {
      $context['aff'][] = array(
        'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
      );
   }
   $smcFunc['db_free_result']($result);
}
//Affiliates End
Title: Re: SA affiliates
Post by: TheListener on August 06, 2009, 01:33:49 PM
Wahey. Everything seems ok so far.

With affiliate banners should I save the banner images and make a folder for them?

Title: Re: SA affiliates
Post by: SA™ on August 06, 2009, 01:38:14 PM
what do you mean your affiliate banners or you actual affiliates
Title: Re: SA affiliates
Post by: TheListener on August 06, 2009, 01:42:39 PM
The banners themselves.
Title: Re: SA affiliates
Post by: SA™ on August 06, 2009, 01:53:21 PM
it up to realy u can if you want to
Title: Re: SA affiliates
Post by: TheListener on August 06, 2009, 01:54:53 PM
The reason I ask is due to some saying the banners have to be on our own servers OR some banners sonly showing as links and not as the actual banner itself.
Title: Re: SA affiliates
Post by: SA™ on August 06, 2009, 01:56:19 PM
i dont do it like that my babnners are all over the place lol and they all show
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 12:23:14 AM
affiliates 2.1 for smf 1 released :D
Title: Re: SA affiliates
Post by: TheListener on August 13, 2009, 12:24:21 AM
Am getting used to adding banners now. Don't require a wig just yet.
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 12:47:42 AM
lol
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 05:14:04 AM
Hi, i've installed it for 1.1.10 but when i go to the admin page and click the smf affiliate link it returns to the forum index. and idea how to fix this>?
Title: Re: SA affiliates
Post by: TheListener on August 13, 2009, 05:27:16 AM
Can we see the link to your forum please.
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 01:17:03 PM
Can we see the link to your forum please.

www.javaforums.net
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 03:30:39 PM
sound like it didnt install properly can i see your index.php and subs.php please

or check to see if the edits are there

index.php

Code: [Select]
'.xml' => array('News.php', 'ShowXmlFeed'),add
Code: [Select]
'affiliatesadmin' => array('smf_affiliates_admin.php','Affiliates_admin'),
subs.php
find
Code: [Select]
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',
after add
Code: [Select]
'affiliates_admin' => '<a href="' . $scripturl . '?action=affiliatesadmin;sesc=' . $sc . '">' . $txt['affiliates_smf'] . '
find
Code: [Select]
$context['in_maintenance'] = !empty($maintenance);
add
Code: [Select]
$context['affiliates_admin'] = allowedTo('affiliates_admin');
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 03:55:18 PM
see attachment
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 04:06:14 PM
hmm all the edits are there is there any errors in error logs ?
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 04:09:33 PM
isee the actual addlink dont work neither

why are your links like this

http://www.javaforums.net/forum/affiliates.html;sa=addlink
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 04:12:41 PM
isee the actual addlink dont work neither

why are your links like this

http://www.javaforums.net/forum/affiliates.html;sa=addlink

seo4smf
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 04:15:10 PM
hmm so ther is no errors in logs ?
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 04:18:55 PM
hmm so ther is no errors in logs ?

actually, there are now i looked at it:

/index.php?dummy=1;action=affiliates;;sa=addlink
8: Undefined index: affiliatesid4
File: /home/arksvr/public_html/forum/Themes/default/languages/MGallery.english.php (main sub template - eval?)
Line: 660

 http://www.javaforums.net/forum/index.php?dummy=1;action=affiliates;;sa=addlink
8: Undefined variable: txt
File: /home/arksvr/public_html/forum/Themes/default/BoardIndex.template.php (main sub template - eval?)
Line: 364

http://www.javaforums.net/forum/index.php?dummy=1;action=affiliates;;sa=addlink
8: Use of undefined constant mgallery_gallery - assumed 'mgallery_gallery'
File: /home/arksvr/public_html/forum/Themes/default/BoardIndex.template.php (main_above sub template - eval?)
Line: 490
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 04:24:50 PM
do you know how to disable eval? to see where the errors are coming
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 04:27:12 PM
do you know how to disable eval? to see where the errors are coming

No idea, im no smf/php expert.
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 04:30:48 PM
try this mod

http://custom.simplemachines.org/mods/index.php?mod=2054
Title: Re: SA affiliates
Post by: ArkServer on August 13, 2009, 04:38:22 PM
try this mod

http://custom.simplemachines.org/mods/index.php?mod=2054

Thanks


http://www.javaforums.net/forum/index.php?dummy=1;action=affiliates;;sa=addlink
Apply Filter: Only show the errors with the same message
8: Undefined index: affiliatesid4
File: /home/arksvr/public_html/forum/Themes/default/BoardIndex.template.php
Line: 660



 http://www.javaforums.net/forum/index.php?dummy=1;action=affiliates;;sa=addlink
Apply Filter: Only show the errors with the same message
8: Undefined variable: txt
File: /home/arksvr/public_html/forum/Themes/ds-natural115/index.template.php
Line: 364


Apply Filter: Only show the errors with the same message
8: Use of undefined constant mgallery_gallery - assumed 'mgallery_gallery'
File: /home/arksvr/public_html/forum/Themes/ds-natural115/index.template.php
Line: 490


i guess you need the templates files?
Title: Re: SA affiliates
Post by: SA™ on August 13, 2009, 04:39:37 PM
please tho i dont think it will solve the other errors i think it the seo urls
Title: Re: SA affiliates
Post by: dkharp on August 18, 2009, 02:13:26 AM
Hello,

I have Affiliates      1.4 installed and it shows up just fine.  However when I add more than one they are on top of each other instead of side by side.  How do you get them to show side by side instead of on top of each other?

Thanks!
Title: Re: SA affiliates
Post by: SA™ on August 18, 2009, 02:19:27 AM
in admin you can set that

look for

Affiliates per Line:
Title: Re: SA affiliates
Post by: dkharp on August 18, 2009, 02:29:16 AM
Thank you. However, I do not have that. It's just a box that says add html. I added one but when I add two it goes on top.

This is what it is.

Quote
Affiliates
   Enable Affiliates Mod    
   Affiliates Title
You can have your custom title for affiliates.
You can leave this in blank.    
   Affiliates
Is neccesary the use of html or bbcode.    <!--- START GAMESERVERS.COM BANNER --> <a href="http://www.gameservers.com/?ref=1631112"> <img src="http://images.gameservers.com/image_3.gif?ref=1631112" width="120" height="60"></a> <!--- END GAMESERVERS.COM BANNER -->
   Marquee Effect
This is a text with marquee.    
Title: Re: SA affiliates
Post by: SA™ on August 18, 2009, 02:33:03 AM
the you are not using my affiliates mod are you using this one

http://custom.simplemachines.org/mods/index.php?mod=1297 ?
Title: Re: SA affiliates
Post by: dkharp on August 18, 2009, 02:35:25 AM
No Sir I am not using that one.
Title: Re: SA affiliates
Post by: SA™ on August 18, 2009, 02:39:01 AM
can you take screenie of the afiliates admin so i can see cos if them ioption are not nthere then it eaither didnt install properly or you are using the other affiliates mod
Title: Re: SA affiliates
Post by: dkharp on August 18, 2009, 03:51:14 AM
Ok, yes.. I need to completely delete this and re-do it.  Being I uploaded this threw the package manager and tehre is no uninstall link how can I delete this mod?
Title: Re: SA affiliates
Post by: Pinball Nation on August 18, 2009, 03:55:12 AM
Hello everyone,This looks like a cool mod but a little unsure how to use it.Im somewhat a newbie.First of all i don't have a banner for my site.So is that a problem.Also am unsure how to go about adding affiliates.Thanks
Title: Re: SA affiliates
Post by: Kindred on August 18, 2009, 08:10:09 AM
dkharp:   You will either have to use version_emulate or manually uninstall the mod.

pinball..   
1- without your own banner, how can other sites reciprocate with links back to your site?
2- once the mod is installed and configured, there should be a link on the affiliates page for people to submit their own sites into your list for approval.
Title: Re: SA affiliates
Post by: Pinball Nation on September 13, 2009, 03:56:39 PM
I have a flash banner now and i know how to add it.But im still unsure how to get the email info an such to send to other sites?
Title: Re: SA affiliates
Post by: Kindred on September 13, 2009, 06:02:32 PM
ick... flash?  bleh...

anyway... why do you need to send anything to the other sites?

install this mod
using the admin, set up your banner, your linkback, and your affiliates requirements.
allow users (or guests, if you are trusting) to add new affiliates....   approve affiliates who follow your requirements (typically by posting a linkback to your site)
Title: Re: SA affiliates
Post by: Pinball Nation on September 13, 2009, 06:30:25 PM
Are flash banners bad Kindred?Install what mod i don't see one.When i get to the part of adding the email an stuff.Im like where do you get this info.I look around on the sites i would like to affiliate with but don't see the info.
Title: Re: SA affiliates
Post by: TheListener on September 13, 2009, 06:32:32 PM
click on a sites banner and go to properties.
Title: Re: SA affiliates
Post by: Kindred on September 13, 2009, 11:37:56 PM
I dislike flash on my sites... just a personal preference.

However, I think you are missing the point of this mod.
This mod will not automatically affiliate you with other sites... what it does is make the affiliation available for others to add their own banners to your site's list (usually in return for placing your banner on their site)
Title: Re: SA affiliates
Post by: MATTEK on September 17, 2009, 07:41:02 PM
Ok, when I click on my affiliates I get a fatal Error. Any idea why?
Title: Re: SA affiliates
Post by: TheListener on September 17, 2009, 09:41:55 PM
What does the error say?
Title: Re: SA affiliates
Post by: SA™ on September 18, 2009, 06:20:53 AM
little more info will be good ? any erro in erro logs dioes the fatal Error say anything?
Title: Re: SA affiliates
Post by: shadowcrews on October 01, 2009, 03:21:05 AM
i have the following error in log after installed

Apply Filter: Only show the errors with the same message
Database Error: Unknown column 'a.id_affiliates' in 'field list'


SELECT a.id_affiliates, a.image, a.description
FROM smf_affiliates AS a
WHERE approved = 1
ORDER BY a.id_affiliates DESC
Apply Filter: Only show the errors from this file
File: /home/rcgroups/public_html/Sources/BoardIndex.php
Line: 214

please advise
Title: Re: SA affiliates
Post by: Kindred on October 01, 2009, 02:20:29 PM
Please try READING the thread before posting a question?
This has been asked at least 5 times.

It means that your database edits did not get made. Probably because you had an old version installed and never removed the database tables.   You will need to extract the DB edits (see the manual install instructions) and rerun them after making sure that there are no existing awards tables in the db.
Title: Re: SA affiliates
Post by: snakemannva on October 02, 2009, 10:04:42 PM
Ok here is my issue i downloaded this mod everything is fine there i go to load it good deal it pasted all the test then as soon as i apply this mod it goes to redirct then nothing at all i am using this verison of SMF 2.0 RC1.2 can someone explain to me how i can make this mod work i really need it thank you so much i am willing to pay someone if need to be to make this work for me
Title: Re: SA affiliates
Post by: Kindred on October 02, 2009, 11:07:18 PM
well, some punctuation and grammar would help.....

From your description, we have no clue at all what you are trying to say.
You applied the mod....   and what?
Title: Re: SA affiliates
Post by: snakemannva on October 03, 2009, 12:21:21 AM
well i am so sorry for not using grammer to describe my issue, Well as stated before when i load this mod it goes in fine but then there is nothing like it has never been installed when it says it has and it has passed all the test
Title: Re: SA affiliates
Post by: Kindred on October 03, 2009, 12:24:22 AM
are you using English and the default theme?
(do note that English UTF-8 is *NOT* the same as English.
 
(and the request for proper English is not just me being a jerk, if I can not understand your question/problem, I can not help)

Title: Re: SA affiliates
Post by: snakemannva on October 03, 2009, 09:11:44 AM
Oh i know and i am sorry if i sounded like a jerk about it, Ok this is going to sound stupid, But how do i find out what i am using? English or UTF-8 that is. And what should i be using maybe this is my issue god i really hope so.
Title: Re: SA affiliates
Post by: Kindred on October 03, 2009, 09:35:45 AM
admin > configuration > languages

see what your default is...

The reason is Most mods only auto-install into english
Title: Re: SA affiliates
Post by: snakemannva on October 03, 2009, 02:29:38 PM
OK it is English, And it is not showing up after installed, Like it passes all the test and goes to redirect and when I hit that it goes back to main Admin. It seems like it was nevered installed at all but it says it is installed.
Title: Re: SA affiliates
Post by: Kindred on October 03, 2009, 04:21:35 PM
so, two further questions then... are you using the default theme?   and although it goes back to the main admin page, is the affiliates link added in the admin?


Are the files actually edited?
Does the package show "installed"?
Title: Re: SA affiliates
Post by: SA™ on October 06, 2009, 09:42:41 AM
check in sources/admin.php for

Code: [Select]
//Affiliates Start
'affiliates' => array(
'label' => $txt['Affiliates'],
'file' => 'Affiliates Admin.php',
'function' => 'affiliates_admin',
'custom_url' => $scripturl . '?action=admin;area=affiliates;sa=config',
'icon' => 'server.gif',
'subsections' => array(
'config' => array($txt['affiliatesconfig']),
'affiliates' => array($txt['affiliatesad']),
'add' => array($txt['AddAffiliates']),
//'affiliatesalist' => array($txt['ApproveAffiliates']),
'affiliatesyb' => array($txt['YourBanners']),


),
),
//Affiliates End

if it not there add it before

Code: [Select]
'current_theme' => array(
'label' => $txt['theme_current_settings'],
Title: Re: SA affiliates
Post by: sure36 on October 10, 2009, 09:47:42 AM
FRIENDS, i have installed SA affiliate, after configured, when i click the banner it says "Affiliates is disabled by Admin" but i have already enabled it.... pls help me..
Title: Re: SA affiliates
Post by: n00b3r on October 20, 2009, 11:17:15 AM
Hi there,

I just installed SA Affiliates for SMF 1.1.10 and I got it working at it's HALF.
What doesn't work is the permissions tab, when I click it, I get an instant blank page.
I did not edit the file and the installer said everything was completed 100 % succesfully.
I use the PSBlack theme.
There is no error message at all, only a blank page when I click on permissions on the "Admin" page.

How to fix this?

Also, where can I make the title fit the titlebar?

Thanks in advance  :P
Title: Re: SA affiliates
Post by: SA™ on October 20, 2009, 12:20:37 PM
can i see your manage permissions.php please?
Title: Re: SA affiliates
Post by: n00b3r on October 21, 2009, 07:10:00 AM
Check the attachment ;)
Title: Re: SA affiliates
Post by: SA™ on October 22, 2009, 12:14:22 AM
that looks ok to me is there nay erro in error logs?
Title: Re: SA affiliates
Post by: n00b3r on October 22, 2009, 09:46:32 AM
Yep, there are lots of these errors:

Code: [Select]
8: Undefined index: affiliatesid9
File: /var/www/vhosts/n3t0wn.co.cc/httpdocs/Themes/Ps_Black/BoardIndex.template.php (main sub template - eval?)
Line: 755

When I look at line 755, I don't really know how to fix that as the 1.1.10 instructions don't want to parse.
Thus I am now uploading the default BoardIndex.template.php file and the BoardIndex.template.php file from the theme I use (PsBlack).
The PsBlack file I have added as attachment with the name "BoardIndex.template(custom).php". That is the one you should take a look at ;)
Maybe you can find the error?

Thanks in advance.  :o
Title: Re: SA affiliates
Post by: n00b3r on October 24, 2009, 04:16:55 PM
Bumping this thread as no one replied in 2 days :(
Title: Re: SA affiliates
Post by: ReVoKe on October 24, 2009, 06:26:03 PM
Okays, here is a few things

1. you should add the options for adding descriptions under Affiliate info

2. you have a spelling mistake in the primissions

3. under the primissions for Regular members under the affiliate tab at the bottom there is like 5-6 blank primissions with no descriptions but like 3 of them are checked... wtf?
Title: Re: SA affiliates
Post by: Kindred on October 24, 2009, 06:48:05 PM
wow... talking about spelling mistakes....

And, if there are blank items in the PERmissions section, then not all of the text strings were installed on your system. I have the mod installed with no missing text.
Title: Re: SA affiliates
Post by: n00b3r on October 25, 2009, 12:53:15 PM
Okays, here is a few things

1. you should add the options for adding descriptions under Affiliate info

2. you have a spelling mistake in the primissions

3. under the primissions for Regular members under the affiliate tab at the bottom there is like 5-6 blank primissions with no descriptions but like 3 of them are checked... wtf?

Whats 1 & 3 about?
Title: Re: SA affiliates
Post by: ReVoKe on October 29, 2009, 11:06:16 PM
1. is that he should add the description under affiliates, which i was thinking of doing my self anyways.

3. is my mistake. old affiliate system got mixed up with new one....

2. still...... your getting your " view "mixed up with " veiw "   ***too me forever to fix cause there is so damn many!!!***
Title: Re: SA affiliates
Post by: kingkingston on November 08, 2009, 10:39:41 PM
just as a test i made a test affiliate up and added my own site but the scroller down the bottom does not show  even when i have it enabled,just wondering what i need to do ?
Title: Re: SA affiliates
Post by: Kindred on November 08, 2009, 11:14:00 PM
if you are using smf 1.1.x and not the default theme, you will have to make the code changes to your custom theme files
Title: Re: SA affiliates
Post by: kingkingston on November 08, 2009, 11:20:36 PM
if you are using smf 1.1.x and not the default theme, you will have to make the code changes to your custom theme files
nope using the latest but about to upgrade the the new latest smf with curve
Title: Re: SA affiliates
Post by: SA™ on November 09, 2009, 01:59:37 PM
if you gonna upgrade to rc2 then your have to wait fr affiliates to be compatable with it i started converting the templates last night and it has a slitly better look to it now aswell

http://sa-mods.ath.cx/battle2/index.php?action=affiliates

rc2 demo
Title: Re: SA affiliates
Post by: SA™ on November 09, 2009, 11:50:55 PM
3.3.1 relased added support for rc2
Title: Re: SA affiliates
Post by: kingkingston on November 11, 2009, 04:41:44 AM
just letting you know i got this error after adding this mod on the latest smf

Unknown column 'id_affiliates' in 'field list'
File: /home/wewantsp/public_html/Sources/Affiliates db.php
Line: 25

i have no other mods added
Title: Re: SA affiliates
Post by: SA™ on November 11, 2009, 05:16:52 AM
did you have the other affiliates mod installed befor ? if so you will need to drop them tables this is not backwards compatable withthe other affiliatyes mod
Title: Re: SA affiliates
Post by: kingkingston on November 11, 2009, 05:39:09 AM
did you have the other affiliates mod installed befor ? if so you will need to drop them tables this is not backwards compatable withthe other affiliatyes mod
well it was this mod i had before and when i went to use it(the latest version) on the new smf that's when i got that message,your quite welcome to check it out :),i still have sleepy arcade as a admin :D
Title: Re: SA affiliates
Post by: SA™ on November 11, 2009, 01:33:04 PM
ill drop by later and take a look for you
Title: Re: SA affiliates
Post by: Eclipse16V on November 23, 2009, 04:05:34 AM
What Version is for SMF 2.0 RC2

SA_Affiliates_3.3_SMF2.zip

or

SA_Affiliates_3.3.2.zip
Title: Re: SA affiliates
Post by: SA™ on November 23, 2009, 02:31:05 PM
3.3.2 is latest smf 2 verson
Title: Re: SA affiliates
Post by: Eclipse16V on November 24, 2009, 12:35:32 AM
thx

nice Mod.
In the next days you become from me the german lang.
Title: Re: SA affiliates
Post by: SISPro on November 29, 2009, 02:22:05 PM
ok i have installed this mod and it all went great did a manual installed but this part after i put it in i get error on site and telling me this line something and i have to undo to get the site back up.

the only file i have having a problem with is the
./Themes/default/index.template.php

Code: [Select]
//Affiliates Start
echo '
<script type="text/javascript" src="', $settings['theme_url'], '/imageresizer.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // -->
ImageResizer.MAXWIDTH = "', empty($modSettings['imageresizer_max_width']) ? 0 : (int) $modSettings['imageresizer_max_width'], '";
ImageResizer.MAXHEIGHT = "', empty($modSettings['imageresizer_max_height']) ? 0 : (int) $modSettings['imageresizer_max_height'], '";
</script>';
//Affiliates End
echo '</head>

Title: Re: SA affiliates
Post by: Kindred on November 29, 2009, 03:22:52 PM
it would help if you could tell use the EXACT error...
Title: Re: SA affiliates
Post by: lush on December 31, 2009, 05:42:32 PM
Hello, happy new year.
Great mod, installed fine works very well. I would like though to stop the scroll on board index as i only have one banner and i dont really want it scrolling across the page. Any help with that would be great. The only options I see for scrolling are in the screen shot.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.img4.earthcreations.org%2Fimages%2F11295293716645018553.png&hash=4486a730ae303f0397c44cac8156df61)

Also I would like to move it from the top of the info center to the bottem, any hints there would be appreciated.
Cheers.
Title: Re: SA affiliates
Post by: SA™ on December 31, 2009, 08:08:43 PM
i thinkif you set scroll speed to 0 it wont scroll

to mmove the affiliates boardindex.template.php

find

Code: [Select]
if (!empty($modSettings['enable_affiliatesboard'])) {
$addaffiliates = allowedTo('add_affiliates');
echo '
<h4 class="titlebg"><span class="left"></span>
<a href="', $scripturl, '?action=calendar' . '"><img class="icon" src="', $settings['images_url'], '/star.png', '" alt="'.$txt['Our_Affiliates'].'" /></a>
<span>',$txt['Our_Affiliates'],' [ <a href="', $scripturl, '?action=affiliates">',$txt['vall'],'</a>';
if($addaffiliates)
                {
echo ' | <a href="', $scripturl, '?action=affiliates;sa=addafflink">', $txt['Addlink'], '</a>]';}echo'</span>
</h4>
<p class="smalltext">';

  if (empty($context['aff']))
echo '
           <div align="center">', $txt['affempty'],'</div>';
         else
          {
           echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
         foreach ($context['aff'] as $row)
     {
   echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $row['id'],'" target="_blank">
  <img src="', $row['image'],'"  onload="ImageResizer.createOn(this);" alt="', $row['description'],'" /></a>';
      }
echo '
</marquee>';
          }
echo '
</p>';
}

echo '
</div>
</div></div>
<span class="lowerframe"><span></span></span>';

and move below

Code: [Select]
if ($context['user']['is_logged'] && !$settings['show_stats_index'])
{
echo '
<h4 class="titlebg"><span class="left"></span>
', $context['allow_pm'] ? '<a href="' . $scripturl . '?action=pm">' : '', '<img class="icon" src="', $settings['images_url'], '/message_sm.gif" alt="', $txt['personal_message'], '" />', $context['allow_pm'] ? '</a>' : '', '
<span>', $txt['personal_message'], '</span>
</h4>
<p class="pminfo">
<strong><a href="', $scripturl, '?action=pm">', $txt['personal_message'], '</a></strong>
<span class="smalltext">
', $txt['you_have'], ' ', comma_format($context['user']['messages']), ' ', $context['user']['messages'] == 1 ? $txt['message_lowercase'] : $txt['msg_alert_messages'], '.... ', $txt['click'], ' <a href="', $scripturl, '?action=pm">', $txt['here'], '</a> ', $txt['to_view'], '
</span>
</p>';
}
Title: Re: SA affiliates
Post by: lush on January 01, 2010, 04:19:53 PM
Thanks though setting the scroll to 0 it still scrolls. looks better at the bottem of the info center.
Title: Re: SA affiliates
Post by: SA™ on January 01, 2010, 04:24:46 PM
you can just remove the maque tag if you want

find and remove

Code: [Select]
echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
and

Code: [Select]
echo '</marquee>';
Title: Re: SA affiliates
Post by: lush on January 01, 2010, 04:31:06 PM
Cheers that worked great, and i can just add the tags if i want to use it at some point in the future.
Great mod.
Title: Re: SA affiliates
Post by: darubillah on January 03, 2010, 05:58:51 AM
it is having problem with Ad management MOD

see my link http://forum.mypostworth.com/index.php?action=affiliates

see the Twitter image It should be in Right but It is showing it in bottom

It working fine on other links.
Title: Re: SA affiliates
Post by: NukeGaming on January 03, 2010, 11:08:09 AM
you can just remove the maque tag if you want

find and remove

Code: [Select]
echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
and

Code: [Select]
echo '</marquee>';

Nicely done m8 i also am using latest version of afiliate mod and it works perfectly.


Happy new year guys  and i hope 2010 will be better then 2009.
Title: Re: SA affiliates
Post by: SA™ on January 03, 2010, 03:41:01 PM
it is having problem with Ad management MOD

see my link http://forum.mypostworth.com/index.php?action=affiliates

see the Twitter image It should be in Right but It is showing it in bottom

It working fine on other links.

you got a test account so i can see what you mean ?
Title: Re: SA affiliates
Post by: ReVoKe on January 13, 2010, 12:12:32 AM
This system is full of errors........I've had to go threw the entire code and fix several problems (LOTS of issues with your spelling and the functions.........) You really need to go threw and debug this as i did .__.
Title: Re: SA affiliates
Post by: Kindred on January 13, 2010, 12:13:53 AM
wow, revoke... really helpful (NOT!)

if you pan to critique other's work, then I suggest that you give details....   or write your own and stop complaining.  The mod works just fine on my site.
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on January 13, 2010, 12:43:28 AM
The mod works just fine on my site.

Could you PM me a link to your site? I'd like to see it but you don't have a link to it in your stuff anywhere that I can see. Need some ideas on how to improve traffic to my own site so I'm registering on as many SMF sites as I can find to see what others are doing, shoulda done this a long time ago.
Title: Re: SA affiliates
Post by: Kindred on January 13, 2010, 12:57:48 AM
http://www.40konline.com
http://askawitchcommunity.org
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on January 13, 2010, 01:36:59 AM
http://www.40konline.com
http://askawitchcommunity.org

Thanks, registered at the 40k site but still waiting on confirmation email, is the reason it's so slow because you have SO many users online right now? Do you have bandwidth spikes? I've not run across an SMF site with that many users before, can't wait to get my email. Hope I didn't screw up my email address when I registered but pretty sure its good.
Title: Re: SA affiliates
Post by: Kindred on January 13, 2010, 02:55:17 AM
yes, the cycle is fairly slow...   but I just manually activated your account
Title: Re: SA affiliates
Post by: Paracelsus on January 13, 2010, 03:58:02 AM
Hi,

I'm pretty sure I've seen a few people in this topic talking about install on 1.1.10, although I can't seem to find any version of this MOD compatible with SMF 1.1.x. Is there a legacy version somewhere that can still be used on 1.1.x or am I missing something here?
Title: Re: SA affiliates
Post by: SA™ on January 13, 2010, 01:07:27 PM
no 1.1.11 version sry
Title: Re: SA affiliates
Post by: SA™ on February 05, 2010, 03:47:19 AM
3.3.3 Realsed

some template fixes
fixed undefined index rating error
spelling corretions [thanks skhilled]
added live sa mod news
Title: Re: SA affiliates
Post by: kingkingston on February 06, 2010, 12:01:48 AM
3.3.3 Realsed

some template fixes
fixed undefined index rating error
spelling corretions [thanks skhilled]
added live sa mod news
Corrections lol
Title: Re: SA affiliates
Post by: rd on February 15, 2010, 06:19:17 PM
I have a problem with the new release.

I don't see the settings for this in the admin CP. There is nothing in the configuration that says affiliates management.

How do I add the "Link-Us Banners " banners?


Title: Re: SA affiliates
Post by: TheListener on March 03, 2010, 02:07:04 PM
I have a problem with the new release.

I don't see the settings for this in the admin CP. There is nothing in the configuration that says affiliates management.

How do I add the "Link-Us Banners " banners?

Do you still need help with this?
Title: Re: SA affiliates
Post by: SA™ on March 08, 2010, 09:27:08 PM
3.3.4 reased

updated for rc3
some template tweeks
Title: Re: SA affiliates
Post by: neilbombd on March 30, 2010, 09:46:17 AM
I'm not sure I understand this, despite reading through the topic at the moment.  Will this let me automatically add my affiliate tag to Amazon links that are posted?  That's all I really need.
Title: Re: SA affiliates
Post by: TheListener on March 30, 2010, 09:49:05 AM
I'm not sure I understand this, despite reading through the topic at the moment.  Will this let me automatically add my affiliate tag to Amazon links that are posted?  That's all I really need.

can you try and explain in more detail please bud.
Title: Re: SA affiliates
Post by: neilbombd on March 30, 2010, 11:55:45 AM
can you try and explain in more detail please bud.

Yes, sorry...I am an Amazon affiliate now, and I want to add my amazon affiliate ID to any amazon links that are posted on my forum.  There was an old mod (http://custom.simplemachines.org/mods/index.php?mod=893) that did this, but it is no longer being supported.  From the thread about it, I was directed to this mod, but I'm not sure if it will do what I want. 
Title: Re: SA affiliates
Post by: TheListener on March 30, 2010, 12:00:21 PM
Have a look at the ad management mod.

That would suit your needs more appropriately.
Title: Re: SA affiliates
Post by: neilbombd on March 30, 2010, 01:06:23 PM
Nope, don't think that's what I'm after, it's not adverts I'm trying to place, I want the forum software to change links so they have an affiliate IS added.

Say someone posts a link to a DVD on amazon, then when they post it, the link should have my amazon id added to it so I get commission.

I'll check ad management mod anyway, thanks.
Title: Re: SA affiliates
Post by: Kindred on March 30, 2010, 01:22:37 PM
neil,

that is not what this mod does....   this mod creates an affiliates list page where other sites can list themselves and you can specify link-backs to your own site.
Title: Re: SA affiliates
Post by: SA™ on March 30, 2010, 02:40:26 PM
i took over that mod ages ago i can update it for you if you want when i have time

http://custom.simplemachines.org/mods/index.php?mod=1303
Title: Re: SA affiliates
Post by: neilbombd on March 30, 2010, 03:53:35 PM
neil,

that is not what this mod does....   this mod creates an affiliates list page where other sites can list themselves and you can specify link-backs to your own site.

I see!  Thank you for the explanation, I even looked at the demo sites yet still couldn't grasp it.  That may be handy for something else then :-)


i took over that mod ages ago i can update it for you if you want when i have time

http://custom.simplemachines.org/mods/index.php?mod=1303

Can't find that old version of the mod on there, but...YES PLEASE!  I'm sure there must be tons of SMF users who could use it.  Anyway, sorry for taking this a bit off-topic.
Title: Re: SA affiliates
Post by: SA™ on March 30, 2010, 04:09:30 PM
np im away from friday to the following sunday so it wont be untill then is that ok?
Title: Re: SA affiliates
Post by: neilbombd on March 30, 2010, 07:24:34 PM
Sure, whenever you have time!  Thank you very much!
Title: Re: SA affiliates
Post by: SA™ on March 31, 2010, 02:15:44 AM
3.3.5 realsed

added option to enable disable capacha on add affiliates page
added ifferent rate images
fixed description input wasnt sanatised properly
now you can chosse from 44 pagerank buttons
fixed missing globals
fixed some hardcoded text strings
now has better unapproval system
added my affiliates page
fixed adding affiliate not giving correct code
added option to use text links or image links when adding a affiliate or veing my affiliates page
fixed stats page not displayong properly
fixed undefined varible $file in affiliates_db.php
fixed erros on new instales
more template chnages
Title: Re: SA affiliates
Post by: Eclipse16V on March 31, 2010, 08:07:16 AM
Thanks for update.

In the install.php is this a error?

Quote
array(
       array ('affsort' ,'date'),
      array ('enable_affiliates' ,'1'),
      array ('enable_noptify' ,'1'),
      array ('enable_noptify2' ,'1'),
      array ('enable_noptify3' ,'1'),
      array ('enable_affiliatesboard' ,'0'),
      array ('How_Fast_To_Scroll' ,'1'),
      array ('How_Fast_To_Scrollmo' ,'1'),
      array ('enable_date_submitted' ,'1'),
      array ('affsort' ,'0'),
      array ('enable_submittedby' ,'1'),
      array ('enable_last_updated' ,'1'),
      array ('enable_Googlerank' ,'1'),
      array ('enable_Rating' ,'1'),
      array ('enable_in_Clicks' ,'1'),
      array ('enable_out_Clicks' ,'1'),
      array ('imageresizer_max_width' ,'250'),
      array ('imageresizer_max_height' ,'250'),
      array ('affiliates_reqirments' ,'- You must be a member in good standing.
- Our banner must be displayed on your site.
- In order for the in/out stats to work our code must be used.


Please note your link will not be approved untill we can see our link on your site.
'),
Title: Re: SA affiliates
Post by: butchs on March 31, 2010, 09:36:15 AM
It will be nice for compatibility if you can replace the
Code: [Select]
<search position="after"><![CDATA[
?>]]></search>
in both english files in the "xml" file with
Code: [Select]
<search position="end" /> that way I do not have to uninstall a mess of mods to update.  Maybe on the next version?

Not sure if you fixed it or not since but with my older version on line but I have been getting a bunch of XHTML validator (http://validator.w3.org/) errors with the scrolling banners.
Title: Re: SA affiliates
Post by: SA™ on March 31, 2010, 01:59:12 PM
@Eclipse16V thanks ill fix these soon

@butchs oh my bad i neglected to acrtualy check this whn i chnaged the templates:(
Title: Re: SA affiliates
Post by: butchs on March 31, 2010, 06:11:43 PM
No big deal.  I only mentioned it since you are doing such a great job with the mod.
 8)
Title: Re: SA affiliates
Post by: Eclipse16V on April 07, 2010, 06:48:51 AM
@ Sleepy Arcade

With me I cannot change the order. On the left of that the latter left at the end appears always so indicated. All the same which I adjust in the ACP.

Bug?
Title: Re: SA affiliates
Post by: SA™ on April 07, 2010, 11:37:00 AM
left to right? you mean affiliates on boardindex? does it produce any errors at all?
Title: Re: SA affiliates
Post by: Eclipse16V on April 07, 2010, 03:41:49 PM
No in the overview I cannot sort it in such a way for example of the banners right at the top stand at most OUT Klicks got.
Title: Re: SA affiliates
Post by: tanshin on April 11, 2010, 07:07:22 PM
Hi there!

Based on some observations from personal use, I've noticed that the ranking link does not get shown to the person applying to affiliate (you know, the link with the ID in it). Is there a way to have that link shown to them after submitting their request? Has this been asked before?
Title: Re: SA affiliates
Post by: Eclipse16V on April 13, 2010, 12:56:28 PM
@ Sleepy Arcade
Any news for my error?
Title: Re: SA affiliates
Post by: SA™ on April 14, 2010, 02:19:28 PM
@tanshin it allready does that no?

@Eclipse16V sry not yet havent had much time hopfully this weekend :)

Title: Re: SA affiliates
Post by: tanshin on April 14, 2010, 03:17:30 PM
@tanshin it allready does that no?

Perhaps the people who affiliate just don't notice :P On all the sites that I check they have the link to the home page, not the special "ID" link. I'll have to test it.
Title: Re: SA affiliates
Post by: Eclipse16V on April 20, 2010, 07:12:55 AM
Any news?

There is an error on the page where the own banners displayed. This page and the page in the ACP show only 10 Banners but i have make 16 in.
Title: Re: SA affiliates
Post by: SA™ on April 22, 2010, 03:04:32 AM
no sry not yet havent had the time todo much :/ im pretty busy till next week now so it probaly wont get sorted till then maybe wednesday cos i have that day of work my banner will only show ten cos that uses a limit of ten cos i dint see the point in doing page indexes cos i didt think that anybody will have nno more than 10 affiliates at one time :/ you proved me wrong lol the acp should have page index tho?
Title: Re: SA affiliates
Post by: butchs on May 01, 2010, 11:40:29 AM
I just noticed the following errors in my browser debugger:


The seem to show up when I sent the affiliates scroll on in my front page.
 :o
Title: Re: SA affiliates
Post by: tanshin on May 03, 2010, 06:08:15 PM
So, you know the setting "Notify the admin..."? Is there a way to change who this is sent to? Our original admin (id1) from our old Proboards forum long abandoned us and I took over.

I could just use the password that the converter set for him, however I'd rather not even go into his profile and make him look active again (if you know some of the stuff he did, you'd know why).
Title: Re: SA affiliates
Post by: pointalk on May 07, 2010, 02:13:40 AM
Please compatible with smf 1.1.11
Title: Re: SA affiliates
Post by: jaisi on May 21, 2010, 05:20:57 AM
i have just install this mod now i'am geting this Error

Affiliates.template.php

Code: [Select]
http://i.com/index.php?action=affiliates8: Undefined index: affiliates_pagerankFile: /home/forum/public_html/Themes/default/Affiliates.template.php
Line: 99
Title: Re: SA affiliates
Post by: jaisi on May 25, 2010, 10:43:00 AM
need help please reply
Title: Re: SA affiliates
Post by: sattninja on June 29, 2010, 06:25:12 PM
hi i need some help here i have got this working with some manual edits however i am confused on this edit can someone take a look at this and make the edit for me i need it done in both index.template.php for the default theme and my custom theme i will attach the files

./Themes/default/index.template.php
Find:
echo '
</head>

Replace With:

         //Affiliates Start
         echo '
   <script type="text/javascript" src="', $settings['theme_url'], '/imageresizer.js"></script>
   <script language="JavaScript" type="text/javascript"><!-- // -->
   ImageResizer.MAXWIDTH = "', empty($modSettings['imageresizer_max_width']) ? 0 : (int) $modSettings['imageresizer_max_width'], '";
   ImageResizer.MAXHEIGHT = "', empty($modSettings['imageresizer_max_height']) ? 0 : (int) $modSettings['imageresizer_max_height'], '";
   </script>';
   //Affiliates End
   echo '
</head>

this needs to be done in both my index files i have attached

thanks
Title: Re: SA affiliates
Post by: sattninja on June 29, 2010, 06:31:17 PM
see i have made the edits and there are no errors but it made all my text huge in the forum

i really dont understand what this edit does anyway i seems like everything is working
Title: Re: SA affiliates
Post by: SA™ on June 30, 2010, 01:08:48 AM
that resizes images try theese
Title: Re: SA affiliates
Post by: sattninja on June 30, 2010, 11:24:27 AM
thank you very much i added the files and no big text so everything appears to be working fine

thanks again!!!
Title: Re: SA affiliates
Post by: Eclipse16V on June 30, 2010, 02:36:44 PM
Hi, gives already it to news because of my problem? Thus I mean with indicate the affiliates e.g. after the number of In/Hits.
Title: Re: SA affiliates
Post by: SA™ on July 02, 2010, 03:24:18 PM
explain again pls? i dont get hat you mean?
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on July 14, 2010, 06:25:53 AM
My pagerank doesnt work. It shows that the code is changed.
Title: Re: SA affiliates
Post by: Eclipse16V on July 14, 2010, 04:04:57 PM
explain again pls? i dont get hat you mean?
How can I sort the displayed list?
Title: Re: SA affiliates
Post by: Eclipse16V on July 14, 2010, 04:06:18 PM
Why can i not post attachments here?
Title: Re: SA affiliates
Post by: SA™ on July 16, 2010, 06:01:14 PM
you cant sort it
Title: Re: SA affiliates
Post by: Eclipse16V on July 17, 2010, 05:17:51 AM
and what is this?
Title: Re: SA affiliates
Post by: PurpleCrow on July 21, 2010, 10:24:36 AM
Is there a way to get it to display on the board index differently? I'd like it to display, say two at a time and change to a different banner each time the page is refreshed.

Is this possible on SMF 2.0 RC3?

Fantastic Mod btw :D
Title: Re: SA affiliates
Post by: Kindred on July 21, 2010, 11:07:35 AM
lol... just about anything is POSSIBLE with code.  The trick is writing the code to do it. :P
Title: Re: SA affiliates
Post by: PurpleCrow on July 21, 2010, 11:28:07 AM
lol... just about anything is POSSIBLE with code.  The trick is writing the code to do it. :P

Fancy a challenge? ;)
Title: Re: SA affiliates
Post by: SA™ on July 21, 2010, 01:53:20 PM

and what is this?

what version of the mod are you using? it should work on the latest version
Is there a way to get it to display on the board index differently? I'd like it to display, say two at a time and change to a different banner each time the page is refreshed.

Is this possible on SMF 2.0 RC3?

Fantastic Mod btw :D

sure is possible but i dont have too much time at the moment to do this
Title: Re: SA affiliates
Post by: Eclipse16V on July 21, 2010, 10:59:07 PM
SA_Affiliates3.3.5_rev318.zip

is the version that I use.
Title: Re: SA affiliates
Post by: SA™ on July 22, 2010, 01:57:49 PM
it should work then ill check it out the weekend
Title: Re: SA affiliates
Post by: Eclipse16V on July 22, 2010, 04:25:23 PM
OK
Thanks
Title: Re: SA affiliates
Post by: venex on July 23, 2010, 08:38:42 PM
One question...

There is a problem in the page where u can approve new sites.. It's a really small problem but it's bugging me lol... I usually keep sites unapproved because they don't meet the requirements. I leave them there because I want to talk to the people so they can fix something in their website so it can be affiliated with mine... but! sometimes I have more than 10 websites sitting there and when somebody send another one (11) I can't see that one cuz the page only displays 10 websites per page and when there are 11 there is no link to go to the second page, so I have to erase one of them or I have to go to the admin center to approve it or not and it bugs me. Any solution?
Title: Re: SA affiliates
Post by: SA™ on July 25, 2010, 10:42:45 AM
lol it should already use page indexes there i guess i missed that :)
Title: Re: SA affiliates
Post by: Eclipse16V on July 25, 2010, 03:18:43 PM
it should work then ill check it out the weekend
Any news?
Title: Re: SA affiliates
Post by: SA™ on July 26, 2010, 12:25:39 AM
3.3.5.1 realesed

fixed page rank
added page indexto approve affiliates page
fixed admin affiliates sort ing options
Title: Re: SA affiliates
Post by: Eclipse16V on July 26, 2010, 03:26:45 AM
Thanks for Update.

It runs.
Title: Re: SA affiliates
Post by: venex on July 27, 2010, 11:29:41 AM
I have to uninstall the MOD and install it again?
Title: Re: SA affiliates
Post by: SA™ on July 27, 2010, 02:17:49 PM
yes
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on August 03, 2010, 05:26:15 AM
i get the following error from this mod in my error log. I get it at line 99 also.


http://www.ilnika.com/index.php?action=affiliates;sort=10;start=0;PHPSESSID=7lql2051be4d6327p63vmbri65
8: Undefined index: affiliates_pagerank
File: ***/cache/lang_TPShout_english_default.php (main sub template - eval?)
Line: 97
Title: Re: SA affiliates
Post by: SA™ on August 03, 2010, 08:50:24 PM
find and remove from affiliates.template.php

if ($modSettings['affiliates_pagerank'] == '0') {$modSettings['affiliates_pagerank'] = '1';   }
Title: Re: SA affiliates
Post by: venex on August 07, 2010, 02:03:11 AM
mmmm

Well... I upgraded the mod and now i have the second page (THANKS!) but... the affiliate's banners are all different size... I know that it's how they sent it... but, before they resized themself... but now they just don't do it anymore... :/.
Title: Re: SA affiliates
Post by: SA™ on August 07, 2010, 04:57:47 PM
are you using a custom theme? if so are the edits there? does it work on the default theme?
Title: Re: SA affiliates
Post by: venex on August 09, 2010, 11:44:51 AM
are you using a custom theme? if so are the edits there? does it work on the default theme?
My situation is weird...

My other admin created a custom theme for my forum. We install every single MOD in that one theme... and he made something so that the theme he created is now the default theme... so we wouldn't have to install in the default theme and our theme...
Title: Re: SA affiliates
Post by: SA™ on August 09, 2010, 12:02:08 PM
i does sound to me like the edit to index.template.php is missing?

is this in index.template.php

Code: [Select]
//Affiliates Start
echo '
<script type="text/javascript" src="', $settings['theme_url'], '/imageresizer.js"></script>
<script language="JavaScript" type="text/javascript"><!-- // -->
ImageResizer.MAXWIDTH = "', empty($modSettings['imageresizer_max_width']) ? 0 : (int) $modSettings['imageresizer_max_width'], '";
ImageResizer.MAXHEIGHT = "', empty($modSettings['imageresizer_max_height']) ? 0 : (int) $modSettings['imageresizer_max_height'], '";
</script>';
//Affiliates End
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on August 10, 2010, 11:33:01 AM
I removed that ans still get the same error.
Title: Re: SA affiliates
Post by: SA™ on August 10, 2010, 02:37:44 PM
what did you remove this

if ($modSettings['affiliates_pagerank'] == '0') {$modSettings['affiliates_pagerank'] = '1';   }
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on August 11, 2010, 01:14:36 AM
yes
Title: Re: SA affiliates
Post by: SA™ on August 11, 2010, 12:12:44 PM
ok read this and do it then tell me the error again

http://www.catskilltech.com/freeSW/SMF/faqs/#eval
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on August 31, 2010, 05:30:56 AM
Hey there. I have a few problems. First is that i cant uninstall the 3.3.5. It gives me errors.
I wanted to install 3.3.5.1

Then my pagerank doesnt work.
And also my totals go off. Image attached.
Title: Re: SA affiliates
Post by: SA™ on August 31, 2010, 01:02:45 PM
ive fixed the totals things in 3.3.5.2 not realsed yet tho

did you install any mods after you installed this? cos you might have to uninstall them first what is the errors anyway?
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on September 01, 2010, 01:48:48 AM
It gets an error on almost all files it wants to uninstall from.
Title: Re: SA affiliates
Post by: Kindred on September 01, 2010, 07:02:00 AM
which means that you probably have other mods installed after this one and you will have to manually remove this mod.
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on September 01, 2010, 08:21:53 AM
ok i will try
Title: Re: SA affiliates
Post by: The Great OZ on September 14, 2010, 01:04:42 PM
Love the mod and  it seems to work great except I cant get it to show the affiliates on the index page,  I have it enabled in the admin panel but it just doesnt show up.  I uninstalled and reinstalled it,  after some work with the file edits,  but it still doesnt work,  any ideas on what I might be missing?

ETA: forgot to say Im running 2.0 RC3 and version 3.3.5
Title: Re: SA affiliates
Post by: dkharp on September 14, 2010, 10:40:06 PM
Hello I love the mod!  has any one mad a tp block for this?
Title: Re: SA affiliates
Post by: SA™ on September 15, 2010, 02:08:44 PM
@ The Great OZ  are you using a custom theme that has its own boardindex.template.php?

@ dkharp no but there is an affiliate ssi function
ssi_affiliates();
or
ssi_random_affiliate();
Title: Re: SA affiliates
Post by: dkharp on September 15, 2010, 09:32:44 PM
so how do I put that in a php block?
Title: Re: SA affiliates
Post by: SA™ on September 18, 2010, 12:07:37 PM
just make a php block like usal

and add
Code: [Select]
ssi_affiliates();
function ssi_affiliates()
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;

loadLanguage('Stats');

$result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC',
      array(
      )
   );
   $context['aff'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($result))
   {
      $context['aff'][] = array(
        'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
      );
   }
   $smcFunc['db_free_result']($result);
   
echo'<table border="0" width="100%" align="center" class="smfNews">
<tr><td><marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

foreach ( $context['aff'] as $aff)
echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $aff['id'],'" target="_blank">
<img src="', $aff['image'],'"  width="88" height="31" alt="', $aff['description'],'" />';

echo'</marquee></td>
</tr>
</table>';
}
or
Code: [Select]
ssi_random_affiliate();
//random affiliates
function ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
");

$random = array();
$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);

$random[] = array(
'title' => '<a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'">'.$row['title'].'</a>',
);
$smcFunc['db_free_result']($request);

foreach ($random as $affiliate)
echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}
Title: Re: SA affiliates
Post by: Deaks on September 26, 2010, 01:45:47 PM
Sleepy Arcade are you ever gonna make this mod generate proper coding right now the img tags of code your mod creates isnt closed
Title: Re: SA affiliates
Post by: SA™ on September 26, 2010, 01:54:44 PM
yes i know i got a new version in  the works but havent had a great deal of time to code
Title: Re: SA affiliates
Post by: SA™ on September 29, 2010, 12:47:50 PM
3.3.5.2 realsed

fixed image resizer problems
now there is no edits for custom themes
fixed being able to see affiliates button of no permission
fixed img tags not closed
Title: Re: SA affiliates
Post by: EL GATO on October 16, 2010, 05:16:51 AM
 :) :) :)

Hola que tal les tengo una excelente traducción
Del mod

SA Afifiliates   en Español!!!  8)

http://teveo.net/internet-y-computadores/sa-affiliates-espanol-smf/?action=dlattach;attach=18
también esta adjunto en este post

Saludos y disfrútenlo!!


EL GATO
TEVEO.NET
Title: Re: SA affiliates
Post by: SA™ on October 17, 2010, 01:49:48 PM
thanks for the translation :)
Title: Re: SA affiliates
Post by: EL GATO on October 19, 2010, 11:46:56 PM
De nada ;)
Title: Re: SA affiliates
Post by: NoFeaR / NFSMW on October 25, 2010, 04:29:12 PM
http://www.bosveldboerbokklub.com/index.php?action=affiliates;sa=stats.

My stat bar gets cut off.
Title: Re: SA affiliates
Post by: SA™ on October 26, 2010, 10:29:08 PM
3.3.5.3 relased

fixed stats bar cutting off
added spanish translation
Title: Re: SA affiliates
Post by: dkharp on October 28, 2010, 12:34:13 AM
just make a php block like usal

and add
Code: [Select]
ssi_affiliates();
function ssi_affiliates()
{
global $scripturl, $smcFunc, $txt, $settings, $modSettings, $context;

loadLanguage('Stats');

$result = $smcFunc['db_query']('', '
SELECT a.id_affiliates, a.image, a.description
FROM {db_prefix}affiliates AS a
WHERE  approved = 1
ORDER BY a.id_affiliates DESC',
      array(
      )
   );
   $context['aff'] = array();
   while ($row = $smcFunc['db_fetch_assoc']($result))
   {
      $context['aff'][] = array(
        'id' => $row['id_affiliates'],
'image' => $row['image'],
'description' => $row['description'],
      );
   }
   $smcFunc['db_free_result']($result);
   
echo'<table border="0" width="100%" align="center" class="smfNews">
<tr><td><marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';

foreach ( $context['aff'] as $aff)
echo '
<a href="', $scripturl, '?action=affiliates;sa=out;idaff=', $aff['id'],'" target="_blank">
<img src="', $aff['image'],'"  width="88" height="31" alt="', $aff['description'],'" />';

echo'</marquee></td>
</tr>
</table>';
}
or
Code: [Select]
ssi_random_affiliate();
//random affiliates
function ssi_random_affiliate()
{
   global $scripturl, $smcFunc;

$request = $smcFunc['db_query']('', "
SELECT
title, approved, id_affiliates, image
FROM {db_prefix}affiliates
WHERE  approved = 1
ORDER BY RAND()
");

$random = array();
$row = $smcFunc['db_fetch_assoc']($request);
censorText($row['title']);

$random[] = array(
'title' => '<a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'">'.$row['title'].'</a>',
);
$smcFunc['db_free_result']($request);

foreach ($random as $affiliate)
echo' <a href="' . $scripturl . '?action=affiliates;sa=out;idaff=', $row['id_affiliates'],'"><img src="'.$row['image'].'" width="88" height="31" alt="'.$row['title'].'"></a>';
}

tried both and got this:

annot redeclare ssi_random_affiliate() (previously declared in /home/content/j/o/h/johnnyskid/html/SSI.php:2013) in /home/content/j/o/h/johnnyskid/html/Sources/Load.php(2157) : eval()'d code(48) : eval()'d code on line 26
Title: Re: SA affiliates
Post by: SA™ on October 28, 2010, 01:19:34 PM
try just using
ssi_random_affiliate();
or
ssi_affiliates();
Title: Re: SA affiliates
Post by: SA™ on November 01, 2010, 05:46:36 PM
package updated for rc4
Title: Re: SA affiliates
Post by: zzuzu on February 06, 2011, 04:31:12 PM
Hello, can you help me out? I have more than 10 own banners but it won't let me to add more. Is there way how to change it?
Title: Re: SA affiliates
Post by: SA™ on February 08, 2011, 12:49:34 PM
yup in sources/affiliates db.php

find

Quote
function Affiliates_banners() {

global $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

   $request = $smcFunc['db_query']('', '
      SELECT image, id
      FROM {db_prefix}affiliates_banners
      ORDER BY id
      LIMIT 10',
         array(
            
            )
         );
      
      $content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($request))
   {      
      $content[] = array(
      'image' => $row['image'],
      'id' => $row['id'],
      );   
   }
      return $content;   
}

and

Quote
function Affiliates_thanks() {

global $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

   $request = $smcFunc['db_query']('', '
      SELECT image, id
      FROM {db_prefix}affiliates_banners
      ORDER BY id
      LIMIT 10',
         array(
            
            )
         );
      
      $content = array();
   
   while ($row = $smcFunc['db_fetch_assoc']($request))
   {      
      $content[] = array(
      'image' => $row['image'],
      'id' => $row['id'],
      );   
   }
      return $content;   
}

and

Quote
function Affiliates_banners1() {

global  $yb_request, $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

// Get the data.
   $yb_request = $smcFunc['db_query']('', '
      SELECT id, image
      FROM {db_prefix}affiliates_banners
      ORDER BY id
      LIMIT 10',
                array(
                   
                )
          );

}

just chnage the numbers in red to what you want
Title: Re: SA affiliates
Post by: zzuzu on February 10, 2011, 06:50:58 PM
Are you sure I should change that numbers? I mean, I tried to change them to 20 but affs page always stays blank. When I use original numbers, it works fine.
Title: Re: SA affiliates
Post by: ʟink on February 19, 2011, 04:13:11 PM
Hey, when I put the affiliates page on my forum through the W3 validator (http://validator.w3.org/check?uri=http%3A%2F%2Fwhatninja.com%2Findex.php%3Faction%3Daffiliates&charset=%28detect+automatically%29&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.2), it came up with a couple of errors. One was that you didn't close a span tag on the template, but the other is something I don't know how to fix.
Code: [Select]
Line 217, Column 152: there is no attribute "onload"The code in the template matching that is:
Code: [Select]
<img src="', $row['image'],'"  title="', $row['description'],'" alt="', $row['description'],'" id="aff_image_', $row['idaff'],'" onload="resize(\'aff_image_', $row['idaff'],'\')" /></a>Should I just remove that onload entry or could that cause problems?
Title: Re: SA affiliates
Post by: SA™ on February 20, 2011, 12:01:13 PM
the onload attribute is for the image resizer you can remove it if you dont want images resized i dont know another way of doing this
Title: Re: SA affiliates
Post by: SA™ on March 02, 2011, 09:01:50 AM
SA Affiliates 3.3.5.6 relased

fixed missing permissions checks
fixed naming of some files
fixed images not resizing on boardindex
added core theme supprt
fixed stat errors if nothing to display
now uses integration hooks for less edit
fixed broken links
fixed template broken on boardindex
added some caching
fixed imafe resizer not resizing all images
Title: Re: SA affiliates
Post by: PAPABEAR on May 05, 2011, 10:40:20 AM
Thank you. I will try this out.
Title: Re: SA affiliates
Post by: Joomlamz on June 03, 2011, 10:36:44 PM
Update portuguese files


Modifications.portuguese_pt.phpModifications.portuguese_pt-utf8.php

Modifications.portuguese_brazillian.phpModifications.portuguese_brazillian-utf8.php

Code: [Select]
<file name="$languagedir/Modifications.portuguese_pt.php" error="skip">
    <operation>
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
$txt['core_settings_item_affiliate_desc'] = 'Activar o Mod Afiliados';
$txt['core_settings_item_affiliate'] = 'Mod Afiliados';
$txt['affiliates_None_you'] = 'Voc&ecirc; n&atilde;o tem Afiliados';
$txt['affiliates_You_have'] = 'Voc&ecirc; tem';
$txt['affiliates_Apprved'] = 'Aprovado';
$txt['affiliates_Apprved2'] = 'N&atilde;o Aprovado';
$txt['affiliates_Apprved3'] = 'Esperando Aprova&ccedil;&atilde;o';
$txt['affiliates_image_link_code'] = 'Imagem do c&oacute;digo para o Link';
$txt['affiliates_text_link_code'] = 'Texto do c&oacute;digo para o Link';
$txt['aff_vistit_affiliates_link'] = 'Visite o Link';
$txt['link_aff_not_approved'] = 'Afiliada N&atilde;o Aprovado';
$txt['link_already_exists'] = 'link j&aacute; existe';
$txt['affiliates_pagerank'] = 'Defina um número de estilo de bot&atilde;o, todos os estilos e c&oacute;digos de estilo s&atilde;o vis&iacute;veis <a href="http://pr.proxin.cn" target="blank">Aqui</a>.';
$txt['enable_capacha_affiliates'] = 'Ativar Captcha ao adicionar p&aacute;gina do Afiliados';
$txt['permissiongroup_simple_affiliates'] = 'Afiliados';
$txt['Our_Affiliates'] = 'Nossos Afiliados';
$txt['vall'] = 'Ver Todos';
$txt['Addlink'] = "Adicionar os afiliado";
$txt['Affiliates'] = "SA Affiliates";
$txt['saAffiliates'] = "Afiliados";
$txt['affiliatesad'] ='Afiliados';

$txt['Affiliatesconfig'] = "Config os Afiliados";
$txt['Affiliatesconfig2'] = "Afiliados";
$txt['affiliatesconfig'] = 'Configura&ccedil;&atilde;o';
$txt['AddAffiliates'] = 'Adicionar Afiliados';
$txt['ApproveAffiliates'] = 'Aprovar os Afiliados';
$txt['YourBanners'] = 'Seu Banners';

$txt['approve_affiliates'] = 'Aprovar os Afiliados';
$txt['permissionhelp_approve_affiliates'] = 'Se o utilizador tem permiss&atilde;o para aprovar afiliados';
$txt['permissionname_approve_affiliates'] = 'Aprovar Afiliados';
$txt['permissionhelp_unapprove_afflinks_any'] = 'Se o utilizador tem permiss&atilde;o para aprovar qualquer Afiliados';
$txt['permissionhelp_unapprove_afflinks'] = 'Se o utilizador tem permiss&atilde;o para desaprovar os Afiliados';
$txt['permissionname_unapprove_afflinks_any'] = 'Desaprovar Afiliados';
$txt['permissionname_unapprove_afflinks'] = 'Desaprovar Afiliados';
$txt['permissionhelp_delete_afflinks_any'] = 'Se o utilizador tem permiss&atilde;o para apagar qualquer Afiliados';
$txt['permissionhelp_delete_afflinks'] = 'Se o utilizador tem permiss&atilde;o para excluir Afiliado';
$txt['permissionname_delete_afflinks_any'] = 'Apagar Afiliados';
$txt['permissionname_edit_afflinks'] = 'Editar pr&oacute;prio afiliados';
$txt['permissionname_edit_afflinks_any'] = 'Editar Qualquer Afiliados';
$txt['permissionhelp_edit_afflinks_any'] = 'Se o utilizador tem permiss&atilde;o para editar qualquer Afiliados';
$txt['permissionhelp_edit_afflinks'] = 'Se o utilizador tem permiss&atilde;o para editar afiliados';
$txt['cannot_edit_afflinks'] = 'Voc&ecirc; n&atilde;o pode editar Afiliados.';
$txt['cannot_edit_afflinks_any'] = 'Voc&ecirc; n&atilde;o pode editar Afiliados.';
$txt['cannot_rate_affiliates'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a classificar os Afiliados.';
$txt['cannot_add_affiliates'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para adicionar Afiliados.';
$txt['cannot_view_affiliates'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar Afiliados.';
$txt['permissiongroup_affiliates'] = 'Afiliados';
$txt['permissionname_view_affiliates'] = 'Ver Afiliados';
$txt['permissionhelp_view_affiliates'] = 'Definir que o utilizador pode visualizar a p&aacute;gina dos afiliados.';
$txt['permissionname_add_affiliates'] = 'Adicionar Afiliados';
$txt['permissionhelp_add_affiliates'] = 'Se o utilizador tem permiss&atilde;o para apresentar os Afiliados';
$txt['permissionname_affiliates_auto_approve'] = 'Afiliados aprovados Autom&aacute;ticamente';
$txt['permissionhelp_affiliates_auto_approve'] = 'Se os utilizadores est&atilde;o afiliadas para auto aprovarem se quando submetidos.';
$txt['permissionname_rate_affiliates'] = 'Classifique os afiliados';
$txt['permissionhelp_rate_affiliates'] = 'Se o utilizador est&aacute; autorizado a classifcar os afiliados';
$txt['permissionname_veiwreport_affiliates'] = 'Ver os afiliados reportados';
$txt['permissionname_report_affiliates'] = 'Relat&oacute;rio de afiliados';
$txt['permissionhelp_report_affiliates'] = 'Se o utilizador tem permiss&atilde;o para reportar afiliados';
$txt['permissionhelp_veiwreport_affiliates'] = 'Se o usu&aacute;rio tem permiss&atilde;o para ver afiliadas reportados';
$txt['a_info'] = 'SA Informa&ccedil;&otilde;es da loja';
$txt['a_info2'] = 'SA Mods Live';
$txt['a_info3'] = 'Informa&ccedil;&otilde;es Gerais';
$txt['a_info4'] = 'Créditos';
//Affiliates End
]]></add>
    </operation>
</file>
Code: [Select]
<file name="$languagedir/Modifications.portuguese_brazillian.php" error="skip">
    <operation>
        <search position="after"><![CDATA[
?>]]></search>
        <add><![CDATA[
$txt['core_settings_item_affiliate_desc'] = 'Activar o Mod Afiliados';
$txt['core_settings_item_affiliate'] = 'Mod Afiliados';
$txt['affiliates_None_you'] = 'Voc&ecirc; n&atilde;o tem Afiliados';
$txt['affiliates_You_have'] = 'Voc&ecirc; tem';
$txt['affiliates_Apprved'] = 'Aprovado';
$txt['affiliates_Apprved2'] = 'N&atilde;o Aprovado';
$txt['affiliates_Apprved3'] = 'Esperando Aprova&ccedil;&atilde;o';
$txt['affiliates_image_link_code'] = 'Imagem do c&oacute;digo para o Link';
$txt['affiliates_text_link_code'] = 'Texto do c&oacute;digo para o Link';
$txt['aff_vistit_affiliates_link'] = 'Visite o Link';
$txt['link_aff_not_approved'] = 'Afiliada N&atilde;o Aprovado';
$txt['link_already_exists'] = 'link j&aacute; existe';
$txt['affiliates_pagerank'] = 'Defina um número de estilo de bot&atilde;o, todos os estilos e c&oacute;digos de estilo s&atilde;o vis&iacute;veis <a href="http://pr.proxin.cn" target="blank">Aqui</a>.';
$txt['enable_capacha_affiliates'] = 'Ativar Captcha ao adicionar p&aacute;gina do Afiliados';
$txt['permissiongroup_simple_affiliates'] = 'Afiliados';
$txt['Our_Affiliates'] = 'Nossos Afiliados';
$txt['vall'] = 'Ver Todos';
$txt['Addlink'] = "Adicionar os afiliado";
$txt['Affiliates'] = "SA Affiliates";
$txt['saAffiliates'] = "Afiliados";
$txt['affiliatesad'] ='Afiliados';

$txt['Affiliatesconfig'] = "Config os Afiliados";
$txt['Affiliatesconfig2'] = "Afiliados";
$txt['affiliatesconfig'] = 'Configura&ccedil;&atilde;o';
$txt['AddAffiliates'] = 'Adicionar Afiliados';
$txt['ApproveAffiliates'] = 'Aprovar os Afiliados';
$txt['YourBanners'] = 'Seu Banners';

$txt['approve_affiliates'] = 'Aprovar os Afiliados';
$txt['permissionhelp_approve_affiliates'] = 'Se o utilizador tem permiss&atilde;o para aprovar afiliados';
$txt['permissionname_approve_affiliates'] = 'Aprovar Afiliados';
$txt['permissionhelp_unapprove_afflinks_any'] = 'Se o utilizador tem permiss&atilde;o para aprovar qualquer Afiliados';
$txt['permissionhelp_unapprove_afflinks'] = 'Se o utilizador tem permiss&atilde;o para desaprovar os Afiliados';
$txt['permissionname_unapprove_afflinks_any'] = 'Desaprovar Afiliados';
$txt['permissionname_unapprove_afflinks'] = 'Desaprovar Afiliados';
$txt['permissionhelp_delete_afflinks_any'] = 'Se o utilizador tem permiss&atilde;o para apagar qualquer Afiliados';
$txt['permissionhelp_delete_afflinks'] = 'Se o utilizador tem permiss&atilde;o para excluir Afiliado';
$txt['permissionname_delete_afflinks_any'] = 'Apagar Afiliados';
$txt['permissionname_edit_afflinks'] = 'Editar pr&oacute;prio afiliados';
$txt['permissionname_edit_afflinks_any'] = 'Editar Qualquer Afiliados';
$txt['permissionhelp_edit_afflinks_any'] = 'Se o utilizador tem permiss&atilde;o para editar qualquer Afiliados';
$txt['permissionhelp_edit_afflinks'] = 'Se o utilizador tem permiss&atilde;o para editar afiliados';
$txt['cannot_edit_afflinks'] = 'Voc&ecirc; n&atilde;o pode editar Afiliados.';
$txt['cannot_edit_afflinks_any'] = 'Voc&ecirc; n&atilde;o pode editar Afiliados.';
$txt['cannot_rate_affiliates'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a classificar os Afiliados.';
$txt['cannot_add_affiliates'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para adicionar Afiliados.';
$txt['cannot_view_affiliates'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para acessar Afiliados.';
$txt['permissiongroup_affiliates'] = 'Afiliados';
$txt['permissionname_view_affiliates'] = 'Ver Afiliados';
$txt['permissionhelp_view_affiliates'] = 'Definir que o utilizador pode visualizar a p&aacute;gina dos afiliados.';
$txt['permissionname_add_affiliates'] = 'Adicionar Afiliados';
$txt['permissionhelp_add_affiliates'] = 'Se o utilizador tem permiss&atilde;o para apresentar os Afiliados';
$txt['permissionname_affiliates_auto_approve'] = 'Afiliados aprovados Autom&aacute;ticamente';
$txt['permissionhelp_affiliates_auto_approve'] = 'Se os utilizadores est&atilde;o afiliadas para auto aprovarem se quando submetidos.';
$txt['permissionname_rate_affiliates'] = 'Classifique os afiliados';
$txt['permissionhelp_rate_affiliates'] = 'Se o utilizador est&aacute; autorizado a classifcar os afiliados';
$txt['permissionname_veiwreport_affiliates'] = 'Ver os afiliados reportados';
$txt['permissionname_report_affiliates'] = 'Relat&oacute;rio de afiliados';
$txt['permissionhelp_report_affiliates'] = 'Se o utilizador tem permiss&atilde;o para reportar afiliados';
$txt['permissionhelp_veiwreport_affiliates'] = 'Se o usu&aacute;rio tem permiss&atilde;o para ver afiliadas reportados';
$txt['a_info'] = 'SA Informa&ccedil;&otilde;es da loja';
$txt['a_info2'] = 'SA Mods Live';
$txt['a_info3'] = 'Informa&ccedil;&otilde;es Gerais';
$txt['a_info4'] = 'Créditos';
//Affiliates End
]]></add>
    </operation>
</file>
Title: Re: SA affiliates
Post by: rubix123 on June 14, 2011, 01:29:57 AM
why does mine have Google page rank with a link to a site"search marketing sales"?

http://metal-mecca.com/index.php?action=affiliates
Title: Re: SA affiliates
Post by: SA™ on June 14, 2011, 12:50:48 PM
guest cant see affiluates
Title: Re: SA affiliates
Post by: rubix123 on June 15, 2011, 12:25:05 AM
You have to set the permissions for guest
Title: Re: SA affiliates
Post by: samurai-lupin on June 26, 2011, 10:08:30 PM
Hello, I have an earlier vesion of this mod installed on my SMF 1.1 Board. However I need to fix an error but unfortunately no longer have the package. Could someone please send it to me or post here?

My problem is that in the members permission management page I do not get the text next to the check boxes to appear (the text is there in my language files ... so I assume it needs to be declared somewhere?)

Thanks!
Title: Re: SA affiliates
Post by: SA™ on June 29, 2011, 03:48:05 PM
sry i dont have the 1.1x versiobn any more
Title: Re: SA affiliates
Post by: phantomm on July 02, 2011, 01:03:34 PM
Terrific mod, but i have a few questions:
1st:
I translate this mod to polish language, but i have no idea where can i change this lines:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg4.imageshack.us%2Fimg4%2F7341%2Fcaptureguq.png&hash=31ffb31c332dba73e81fa322165fd7f3)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg718.imageshack.us%2Fimg718%2F852%2Fcapturebpd.png&hash=a090af9937c8b13493b41f20746671ac)

2nd:
Why i have error:
Code: [Select]
http://xxx.net.pl/index.php?
8: Undefined index: affempty
File: /home/xxx/public_html/xxx.net.pl/Themes/default/BoardIndex.template.php
Line: 537
When in this line i have only:
Code: [Select]
            <div align="center">', $txt['affempty'],'</div>';
It only happens when i have enabled  "Enable Affiliates on Boardindex"

3rd:
How can i remove button from menu ? I can't find it in Subs.php
Title: Re: SA affiliates
Post by: SA™ on July 03, 2011, 12:49:16 AM
pls redownload the mod i just fixed a few hard coded text strings and that affempty error
Title: Re: SA affiliates
Post by: phantomm on July 03, 2011, 07:49:34 AM
Thanks for fast update ;)

But i think i found few other bugs:
If marquee is enabled - animation is speeding, after mouseover it slows down to speed which i set up in admin center.
Next bug is in "My Affiliates". If my site has 2 or more banners mod show only first one and text link.
In (english) translation you have doubled lines for "$txt['AddYourBanners']" , "$txt['YourBanners']" and "$txt['Affiliatesconfig']" maybe there is more...
Title: Re: SA affiliates
Post by: SA™ on July 03, 2011, 01:53:58 PM
thanks ill look into these soon for ya
Title: Re: SA affiliates
Post by: phantomm on July 09, 2011, 02:48:38 PM
thx, in the meantime - what i need to change to have possibility to add text link in affiliates table at the bottom of forum ?
Title: Re: SA affiliates
Post by: Ruediger63 on August 01, 2011, 02:18:36 AM
Nice Mod works fine ....

I need the german lang files !

Thanks
Title: Re: SA affiliates
Post by: Eclipse16V on August 02, 2011, 06:33:44 AM
@ Ruediger63
Habe nicht alles übersetzt aber so das wichtigste.
Wenn Du sie haben willst, PM an mich.
Title: Re: SA affiliates
Post by: Sci-Fi_Fan on August 11, 2011, 02:21:49 PM
Hi, first off I love this mod and I hope you keep supporting it with updates and what not.

One thing, I have uploaded 10 banners to the affiliates mod for other people to use on their site but I can't add anymore. Is this the maximum? If so, is there a way to change this so I can upload more of my banners?

Thanks in advance!
Title: Re: SA affiliates
Post by: SA™ on August 11, 2011, 11:25:46 PM
in affiliates_db.php

Code: [Select]
function Affiliates_thanks() {

global $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT image, id
FROM {db_prefix}affiliates_banners
ORDER BY id
LIMIT 10',
array(

)
);

$content = array();

while ($row = $smcFunc['db_fetch_assoc']($request))
{
$content[] = array(
'image' => $row['image'],
'id' => $row['id'],
);
}
return $content;
}
Code: [Select]
function Affiliates_banners() {

global $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT image, id
FROM {db_prefix}affiliates_banners
ORDER BY id
LIMIT 10',
array(

)
);

$content = array();

while ($row = $smcFunc['db_fetch_assoc']($request))
{
$content[] = array(
'image' => $row['image'],
'id' => $row['id'],
);
}
return $content;
}
Code: [Select]
function Affiliates_banners1() {

global  $yb_request, $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

// Get the data.
$yb_request = $smcFunc['db_query']('', '
SELECT id, image
FROM {db_prefix}affiliates_banners
ORDER BY id
LIMIT 10',
                array(
                   
                )
          );

}

in them 3 functions chnage the LIMIT 10 to what you wanted
Title: Re: SA affiliates
Post by: Sci-Fi_Fan on August 12, 2011, 07:55:35 AM
in affiliates_db.php

Code: [Select]
function Affiliates_thanks() {

global $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT image, id
FROM {db_prefix}affiliates_banners
ORDER BY id
LIMIT 10',
array(

)
);

$content = array();

while ($row = $smcFunc['db_fetch_assoc']($request))
{
$content[] = array(
'image' => $row['image'],
'id' => $row['id'],
);
}
return $content;
}
Code: [Select]
function Affiliates_banners() {

global $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

$request = $smcFunc['db_query']('', '
SELECT image, id
FROM {db_prefix}affiliates_banners
ORDER BY id
LIMIT 10',
array(

)
);

$content = array();

while ($row = $smcFunc['db_fetch_assoc']($request))
{
$content[] = array(
'image' => $row['image'],
'id' => $row['id'],
);
}
return $content;
}
Code: [Select]
function Affiliates_banners1() {

global  $yb_request, $user_info, $scripturl, $context, $affiliates_request, $smcFunc;

// Get the data.
$yb_request = $smcFunc['db_query']('', '
SELECT id, image
FROM {db_prefix}affiliates_banners
ORDER BY id
LIMIT 10',
                array(
                   
                )
          );

}

in them 3 functions chnage the LIMIT 10 to what you wanted

Thanks for your help!
Title: Re: SA affiliates
Post by: Ruediger63 on August 13, 2011, 02:38:21 PM
Thanks ... work well
Title: Re: SA affiliates
Post by: Sci-Fi_Fan on August 17, 2011, 01:59:45 PM
I just noticed another small, tiny, almost insignificant thing but it's one of those that just eats away at me everytime I see it.

When viewing the "Who's Online" list, there's a spelling mistake when it says "veiwing the Affiliates." It should read "Viewing the Affiliates."

Like I said, just a small thing and nothing that affects the function of the mod in anyway. If you could correct it in a future update then that would be great. Otherwise, it doesn't matter.

Great mod!
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on October 31, 2011, 10:53:51 PM
PageRank icon hasn't worked for a LONG time now, suprised someone hasn't mentioned it before now because its that way for DJScrappy's site too. It just shows the "alt=" tag not the pagerank icon
Title: Re: SA affiliates
Post by: Eclipse16V on November 15, 2011, 06:36:48 AM
Hi,

how can i fix this problem?

Thanks
Title: Re: SA affiliates
Post by: SA™ on November 17, 2011, 02:40:59 AM
in that file chnage that line of code to

$id = (int) (isset($_REQUEST['aff']) ? $_REQUEST['aff'] ? '');
Title: Re: SA affiliates
Post by: Eclipse16V on November 18, 2011, 06:58:23 AM
Error

Parse error: syntax error, unexpected ')' in /homepages/......./Sources/Affiliates.php on line 114
Title: Re: SA affiliates
Post by: SA™ on November 18, 2011, 07:32:24 PM
$id = (int) isset($_REQUEST['aff']) ? $_REQUEST['aff'] : '';

try that
Title: Re: SA affiliates
Post by: Eclipse16V on November 19, 2011, 01:58:05 AM
Hi, thanks for the reply but this code is not. Although there is no PHP error message but now again the SMF error messages as before. Is there another way to solve this problem? Thank you
Title: Re: SA affiliates
Post by: SA™ on November 19, 2011, 03:51:35 AM
post up the file?
Title: Re: SA affiliates
Post by: Eclipse16V on November 19, 2011, 07:39:01 AM
Without the edit.
Title: Re: SA affiliates
Post by: SA™ on November 19, 2011, 03:31:09 PM
this should do it
Title: Re: SA affiliates
Post by: Eclipse16V on November 20, 2011, 02:57:30 AM
Hmmmmm

Now I get these error messages and I get this even before that, and seen only now. Can you at the first error message so that it does not make this error message instead of the index.php?action=affiliates will be forwarded. Then there are ever fewer messages that are in the error log. For the other error I now know no further. May be they are now gone with the new code. Let's wait a few days.
Title: Re: SA affiliates
Post by: SA™ on November 20, 2011, 03:03:50 AM
for the no affiliate selected error

affiliates.php
fatal_error($txt['aff_error_a']);
replace with
fatal_error($txt['aff_error_a'],false);

for the other error
add
$txt['cannot_report_affiliates'] = 'You cannot report Affiliates';
to you modifactions.english.php
Title: Re: SA affiliates
Post by: Eclipse16V on November 20, 2011, 03:20:52 AM
OK

Thank i will test it few days.
Title: Re: SA affiliates
Post by: Draffi on February 15, 2012, 07:18:07 PM
Great Mod. Workks like a charm...

Install without any problems.

But i have a question:

It is possible to show a partner banner with a little code inside? something like this:

Code: [Select]
<script type="text/javascript">
document.write('<scr'+'ipt src="http://anexampleadress.com/servlet/view/banner/javascript/zone?zid=10323&pid=21432&random='+Math.floor(89999999*Math.random()+10000000)+'&millis='+new Date().getTime()+'&referrer='+encodeURIComponent(document.location)+'" type="text/javascript"></scr'+'ipt>');
</script>

(yes, this is the partner-banner-url !!!)
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on August 02, 2012, 12:56:46 AM
A note to loyal mod users, I've discovered a win-win, multipurpose, SEO friendly, & painless hack to make the pagerank display function properly for this module, just pop in to my website for a demonstration & pm me and I will direct you on the procedure to either set up on your own picture showing in the icon display which may take you a little while to do, or if you don't mind my IBOtoolbox account showing there instead for simple swap out of the affiliate.template.php file (after you rename the live one you are currently using of course) in your default theme directory, you could just swap mine for yours for an instant result (this method should work perfectly for all IF you have not made any previous custom coding changes to this particular file), just let me know which way you want it, the long way you do have to sign up for another (free) service, but it's well worth the effort, trust me.
Title: Re: SA affiliates
Post by: isl30fvi3w on August 12, 2012, 02:20:39 PM
Page Rank image is not working?
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on November 24, 2012, 07:31:35 PM
Page Rank image is not working?

Yes, in its default install, the pagerank image will most likely not function properly (unless you know something I don't?)
Title: Re: SA affiliates
Post by: Kindred on November 24, 2012, 09:15:31 PM
do you mean the thumbs up and thumbs down?   They work just fine for me with no additional edits.
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on November 24, 2012, 11:40:19 PM
do you mean the thumbs up and thumbs down?   They work just fine for me with no additional edits.

Visit my site and look at the page listing under "Recommended Sites" menu option, it will be the icon displayed all the way to the right side of the entries, my rating thumbs work fine too...
Title: Re: SA affiliates
Post by: Kindred on November 25, 2012, 08:54:03 AM
I still have no idea what you mean by "page rank image" - to me the icon on the far right looks like a user's avatar....
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on November 25, 2012, 11:14:42 PM
I still have no idea what you mean by "page rank image" - to me the icon on the far right looks like a user's avatar....


I still have no idea what you mean by "page rank image" - to me the icon on the far right looks like a user's avatar....


Trust me, it's a Google pagerank icon,  some support specialist you are if you can't distinguish the difference...
Title: Re: SA affiliates
Post by: Kindred on November 26, 2012, 12:05:35 AM
ummm....   wow. rude much?

Looks like an avatar to me, with some silly person's headshot...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ibotoolbox.com%2Fdynamicbanner.ashx%3Fuserid%3D30421%26amp%3Bbannerid%3D5%26amp%3Burl%3Dhttp%3A%2F%2Fprojectcamelotportal.com%2520alt%3D&hash=d14b687ad21ad2b3f2b4a1fd7ff36a1c)

yup...   looking at the url, it is not generated by or from google.
In other words... you have made an image which fills in a supposed page rank, but is your own image.

So you will excuse me if I had a hard time understanding that some tiny text with your headshot was what you were referring to as a page rank icon... for one thing, it's not an icon, it's a banner
Title: Re: SA affiliates
Post by: butchs on December 02, 2012, 07:59:50 PM
Can I get one too?  I am not greedy I will take a page rank of three?   :)
Title: Re: SA affiliates
Post by: Howard43Willard on December 03, 2012, 03:05:34 AM
Ok, I'm an idiot. I didn't see the enable up marquee. Hahahaha
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.rlgf.info%2F14.jpg&hash=5c26216273ebfa0576a94c55bcedfdf0)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.rlgf.info%2F17.jpg&hash=24b5445016031ed9faf69b2871d81f7c)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sbqg.info%2F19.jpg&hash=bfb1b855c483e2933d7388e42e566069)
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 03, 2012, 05:11:55 AM
getting notice that this mod is outdated???
where exactly will all the affiliate links appear, can i create a page for it???
Title: Re: SA affiliates
Post by: Kindred on December 03, 2012, 09:04:30 AM
more specifically, the mod is no longer officially supported by its author.
it works fine with 2.0.2.

the affiliate link is added to the main menu through the use of the code-hooks...  you don't need to create a page for it, action=affiliates is a page for it..
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 03, 2012, 12:11:42 PM
it is working thanks . now i think i will use this as an alternative to SHOP MOD :P
but i still have 2 questions

1. i will like to make the Affiliate Main menu Link to be somehow Big and move it to where people can see it easily??
2. with the way i am seeing the "add affiliate" . it's like people can add theirs , then wait for you to approve right??
Title: Re: SA affiliates
Post by: Kindred on December 03, 2012, 12:44:35 PM
in order to move the affiliate menu link, you would have to adjust the hook code in Sources/Affiliates.php to target a different insertion point.

Yes, assuming you have the permissions set up correctly, people will be able to add affiliate links and then you can approve them to make them display in the list.

(although I do not quite understand how this could be an alternative for a shop mod.... this is completely different from the shop mod)
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 03, 2012, 02:04:08 PM
well, maybe because i cannot afford the shop mod from smfhack anyway :P
please help me with the full code to search for it on Sources/Affiliates.php because there are so many "affiliates" words there. in order not to mistake, help me with the hook code i must.

also do i need to move around in the same "Sources/Affiliates.php" so to place it in the position i like ??? if not, please tell me the place that will enable me to move where i prefer. thanks
Title: Re: SA affiliates
Post by: SA™ on December 03, 2012, 02:12:35 PM
adjust the hook code in Sources/Affiliates.php to target a different insertion point
its in

Sources/AffiliatesHooks.php

well, maybe because i cannot afford the shop mod from smfhack anyway :P
please help me with the full code to search for it on Sources/Affiliates.php because there are so many "affiliates" words there. in order not to mistake, help me with the hook code i must.

also do i need to move around in the same "Sources/Affiliates.php" so to place it in the position i like ??? if not, please tell me the place that will enable me to move where i prefer. thanks

in Sources/AffiliatesHooks.php

just change the par in red

aff_array_insert($menu_buttons, 'search',

where do you want the menu button to show?

i am consodering updating and recoding this mod if anyone is interested?
Title: Re: SA affiliates
Post by: Kindred on December 03, 2012, 02:26:29 PM
thanks SA. I forgot you had a separate hooks file. :)
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 03, 2012, 03:39:30 PM
there is something about this mod we really need to look into. the description is "only' when you placed your cursor on the banner. is there any way for some people to see the details under a particular  banner. i believe with that. the affiliate arena will be more friendly
Title: Re: SA affiliates
Post by: Kindred on December 03, 2012, 03:42:09 PM
you are correct. The description is shown as the title text of the banner image.   What's wrong with that?

If you really insist on displaying the text all the time (personally, I think it looks crappy and cluttered) then you can alter the display code in Affiliates.template.php to add the call for the description after the display of the banner image.
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 03, 2012, 05:17:35 PM
you are correct. The description is shown as the title text of the banner image.   What's wrong with that?

If you really insist on displaying the text all the time (personally, I think it looks crappy and cluttered) then you can alter the display code in Affiliates.template.php to add the call for the description after the display of the banner image.
thanks alot , please one more thing. how can i increase the description character. mine seems to be too small
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 04, 2012, 09:13:02 AM
adjust the hook code in Sources/Affiliates.php to target a different insertion point
its in

Sources/AffiliatesHooks.php

well, maybe because i cannot afford the shop mod from smfhack anyway :P
please help me with the full code to search for it on Sources/Affiliates.php because there are so many "affiliates" words there. in order not to mistake, help me with the hook code i must.

also do i need to move around in the same "Sources/Affiliates.php" so to place it in the position i like ??? if not, please tell me the place that will enable me to move where i prefer. thanks

in Sources/AffiliatesHooks.php

just change the par in red

aff_array_insert($menu_buttons, 'search',

where do you want the menu button to show?

i am consodering updating and recoding this mod if anyone is interested?

lemme forget about moving it. all i need now is to rename it.
where can i rename the  Affiliate Menu Name ???
Title: Re: SA affiliates
Post by: Kindred on December 04, 2012, 09:16:26 AM
either modifications.english.php or affiliates.english.php (don't recall which one is used here)
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 04, 2012, 09:31:37 AM
sorry but where exactly can i find either of the two.  i couldn't see them under "source"
Title: Re: SA affiliates
Post by: Kindred on December 04, 2012, 09:49:38 AM
Themes/default/languages
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 04, 2012, 10:05:49 AM
Themes/default/languages
i was able to find "affiliates' only on modifications.english.php  but there are many "affiliates" i tried adding one word in some of them so to get the exact one but i couldn't just get it. please help any similar code to identify the particular "affiliates" . thank my boss
Title: Re: SA affiliates
Post by: Kindred on December 04, 2012, 10:21:52 AM
there are many strings which are JUST
...  = 'Affiliates';
?

if so, then you possibly installed the mod multiple times...
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 04, 2012, 11:00:10 AM
there were JUST two............i tried editing them one by one, save and preview

the same. nothing changes
Title: Re: SA affiliates
Post by: Kindred on December 04, 2012, 11:07:17 AM
cache?   server and local
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 04, 2012, 11:11:58 AM
cpanel... yes server
Title: Re: SA affiliates
Post by: Kindred on December 04, 2012, 11:13:30 AM
no....    your smf cache (smf caches the language strings - go to maintenance, clear cache) and your browser cache (ctrl-f5)
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 04, 2012, 04:20:10 PM
still didn't work Sir.
Title: Re: SA affiliates
Post by: Kindred on December 04, 2012, 05:01:12 PM
no... I was right the first time.

the file is Affiliates.english.php
$txt['Affiliates'] = "Affiliates";
around line 76
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on December 05, 2012, 03:56:59 AM
ummm....   wow. rude much?

Looks like an avatar to me, with some silly person's headshot...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.ibotoolbox.com%2Fdynamicbanner.ashx%3Fuserid%3D30421%26amp%3Bbannerid%3D5%26amp%3Burl%3Dhttp%3A%2F%2Fprojectcamelotportal.com%2520alt%3D&hash=d14b687ad21ad2b3f2b4a1fd7ff36a1c)

yup...   looking at the url, it is not generated by or from google.
In other words... you have made an image which fills in a supposed page rank, but is your own image.

So you will excuse me if I had a hard time understanding that some tiny text with your headshot was what you were referring to as a page rank icon... for one thing, it's not an icon, it's a banner


You actually do have some valid points about that ICON, but did you even bother to verify whether the page rank indicated in my icon is accurate and jives with the actual Google one? I doubt it...
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 05, 2012, 07:08:01 AM
adjust the hook code in Sources/Affiliates.php to target a different insertion point
its in

Sources/AffiliatesHooks.php

well, maybe because i cannot afford the shop mod from smfhack anyway :P
please help me with the full code to search for it on Sources/Affiliates.php because there are so many "affiliates" words there. in order not to mistake, help me with the hook code i must.

also do i need to move around in the same "Sources/Affiliates.php" so to place it in the position i like ??? if not, please tell me the place that will enable me to move where i prefer. thanks

in Sources/AffiliatesHooks.php

just change the par in red

aff_array_insert($menu_buttons, 'search',

where do you want the menu button to show?

i am consodering updating and recoding this mod if anyone is interested?

if you will work on this mod, please consider the followings

1. let it have GRID view(s)
2. if possible, make it HTML code enabled for Live Adverts and Widgets
3. Categories like health, business and co
no... I was right the first time.

the file is Affiliates.english.php
$txt['Affiliates'] = "Affiliates";
around line 76
i have done that. yet not working even now, i have edited it to "MARKET PALCE"

i have attached the file
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 06, 2012, 01:57:12 AM
please no... I was right the first time.

the file is Affiliates.english.php
$txt['Affiliates'] = "Affiliates";
around line 76
[/quote]it has not worked for me. i attached my "Affiliates.english.php" so you can help me to edit it. please help me
Title: Re: SA affiliates
Post by: Kindred on December 06, 2012, 07:38:26 AM
are you using English or English-utf-8?
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 06, 2012, 08:10:50 AM
are you using English or English-utf-8?

top of my Affiliates.english.php
(https://lh4.googleusercontent.com/-4Lux8BOhXWM/UMCWEli_GqI/AAAAAAAAAW4/RX-7HKVOczw/s860/Capture.PNG)


secondly , i added the utf-8 html code on my theme
(https://lh6.googleusercontent.com/-TneP2qSajRk/UMCWE24WAwI/AAAAAAAAAW0/OIB2drXic5M/s752/Capture2.PNG)


I just finished trying English-utf-8 yet no way
Title: Re: SA affiliates
Post by: Kindred on December 06, 2012, 08:40:22 AM
ummmm.... no. Look in your SMF settings.  What language is your forum set to?  English is a DIFFERENT language from English-UTF-8 as far as SMF is concerned

Title: Re: SA affiliates
Post by: johnpaul2k2 on December 06, 2012, 08:58:16 AM
while checking my site with some different online website analytic , they were all saying my site doesn't have "language code' so i have to add "en" html code. the same with "UTF-8" ( complaining of character encoding)

my question now is .should i remove them?? or any of them?
Title: Re: SA affiliates
Post by: Kindred on December 06, 2012, 09:41:37 AM
John,

you are not reading what I type.   I don't care what the analytics say. I don't care what the web page displays as. I don't care what the file saves as.

WHAT IS YOUR LANGUAGE SET TO IN SMF'S ADMIN SETTINGS?
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 06, 2012, 10:43:08 AM
1.this is my first time of visit this side  :D
(https://lh5.googleusercontent.com/-rYqgJlXyDvw/UMC7l-pFPjI/AAAAAAAAAXU/coHnQl5uAoA/s989/Capture.PNG)







2 i went to "add language" , searched for "English" and i saw the following. should i removed the "utf-8" tag and install the one from SMF
(https://lh3.googleusercontent.com/-M11cFKLDsfA/UMC7lbSlzeI/AAAAAAAAAXQ/wA9ROxeUyXs/s987/Capture2.PNG)


Hope i am not running faster than my shadow
Title: Re: SA affiliates
Post by: Kindred on December 06, 2012, 10:54:18 AM
argh....

/me slaps head

sorry... my mistake. Looking at the actual code would actually help me once in a while...

$txt['saAffiliates']

in Modifications.english.php
Title: Re: SA affiliates
Post by: johnpaul2k2 on December 06, 2012, 11:21:21 AM
don't slap anymore .......never an easy task to solve hundreds of people's problem

it is working now :D
Title: Re: SA affiliates
Post by: Alexa Lynne on December 07, 2012, 12:20:51 PM
I'm using the SA Affiliates mod, but i'm running into a problem. I have "Enable Affiliates on Boardindex" checked, but it's not showing up. I've tried uninstalling, and reinstalling the mod. Can anyone help me fix this?  This is the only problem i'm having.
Title: Re: SA affiliates
Post by: Kindred on December 07, 2012, 01:54:03 PM
are you running smf 1.1.x or did you add a theme to 2.0.x after installing the mod? (or did you misss the "apply this mod to additional themes checkboxes?)

If yes to any of that... you will have to manually apply the mod to your custom themes if you have them
Title: Re: SA affiliates
Post by: Alexa Lynne on December 07, 2012, 02:09:27 PM
are you running smf 1.1.x or did you add a theme to 2.0.x after installing the mod? (or did you misss the "apply this mod to additional themes checkboxes?)

If yes to any of that... you will have to manually apply the mod to your custom themes if you have them

I changed themes. . . So, now i have uninstalled the mod. Trouble is now, it won't re-install back. The page keeps timing out, so i'm not sure if it's the ISP or what. It doesn't matter right now. I can do it when i get off work in 4 hours. I'm just bored to death and need something to do. . lol
Title: Re: SA affiliates
Post by: hcfwesker on December 10, 2012, 10:40:19 AM
Seems like it's working, you get it figured out?
Title: Re: SA affiliates
Post by: Alexa Lynne on December 10, 2012, 11:04:58 AM
Seems like it's working, you get it figured out?


Yeah, it's workin now. . Not sure for how long. . lol
Title: Re: SA affiliates
Post by: Sulfur on December 10, 2012, 11:29:10 AM
hi,

I have a problem with this mod, I have 2 SMF foruns and in 1 of then the mod works really nice without problem, but in the 2, when someone clicks on a banner the link of my forum stays first...

Exemple:

My forum: www.atuamaede4.com

My affiliate: www.electroground.org

when anyone click on the banner the link goes http://atuamaede4.com/www.electroground.org

I have no ideia whats wrong cuz its working fine in one of then
Title: Re: SA affiliates
Post by: Kindred on December 10, 2012, 12:08:11 PM
you did not enter the full URL for the affiliate
Title: Re: SA affiliates
Post by: hcfwesker on December 10, 2012, 12:20:38 PM
when anyone click on the banner the link goes http://atuamaede4.com/www.electroground.org

Take a second look at that URL, you'll see the problem right there.  You added both yours and the affiliates link in the same box when adding their URL.
Title: Re: SA affiliates
Post by: Kindred on December 10, 2012, 12:21:49 PM
actually, I think he added the affiliate's url without the http - so the system is trying to interpret it as an internal/relative link.
Title: Re: SA affiliates
Post by: Sulfur on December 11, 2012, 09:34:39 AM
it resolve by itself... just added again, the same way and it worked... wierd but, yeah, it works now :)
Title: Re: SA affiliates
Post by: johnpaul2k2 on February 27, 2013, 05:19:16 AM


in Sources/AffiliatesHooks.php

just change the par in red

aff_array_insert($menu_buttons, 'search',

where do you want the menu button to show?

i am consodering updating and recoding this mod if anyone is interested?

Sorry for repeating this , incase you have forgotten

this is what i did with   the mod on my forum here (http://www.topnichez.com/index.php?action=affiliates)

if you will work on this mod, please consider the followings

1. let it have GRID view(s)
2. if possible, make it HTML code enabled for Live Adverts and Widgets
3. Categories like health, business and co
4. Add prices and payment module in front of every products

because i cannot afford SMFhack Smf Store mod

thanks

Title: Re: SA affiliates
Post by: Kindred on February 27, 2013, 07:37:13 AM
johnpaul2k2,

this is an affiliates mod, not an advert mod.
affiliates don't pay - they match banner for banner.

neither is this a "links" mod, so, why categories?
Title: Re: SA affiliates
Post by: johnpaul2k2 on February 27, 2013, 01:17:26 PM
Kindred ( aka Smf War Lord),

i was only looking for something similar to SMFhack Smf Store mod (except you can assist me to buy it bcos i am broke  :-[ )

that's all
Title: Re: SA affiliates
Post by: Kindred on February 27, 2013, 01:33:39 PM
lol...

The problem/point is - don't try and "squeeze" a mod into doing something that it's not intended for. That direction is sure to lead to  certain destruction...   well, maybe not destruction, but problems. :)

Mods and features are fairly specific in what they do and what they can be used for.
I'm not exactly sure what the store mod does... but maybe you could request someone to make a free version which does something similar?
Title: Re: SA affiliates
Post by: Arantor on February 27, 2013, 01:41:41 PM
The store mod is a storefront. Sort of like ZenCart but directly integrated. At least, that's my understanding. I don't exactly have a copy to play with.
Title: Re: SA affiliates
Post by: AllanD on May 27, 2013, 07:28:55 PM
I know this mod is outdated but  anyone How I would change the display name in the menu to something other then Affiliates?
Title: Re: SA affiliates
Post by: Kindred on May 27, 2013, 07:57:42 PM
Either affiliates.english.php or modifications.english.php
Title: Re: SA affiliates
Post by: AllanD on May 27, 2013, 08:41:00 PM
Thank you , would you have any idea what I would look for lol
Title: Re: SA affiliates
Post by: SA™ on May 27, 2013, 09:14:10 PM
well you want to change Affiliates 

so looking for Affiliates would be a good start :P
Title: Re: SA affiliates
Post by: AllanD on May 27, 2013, 09:36:20 PM
Thank you I will look into this a little more.
Title: Re: SA affiliates
Post by: AllanD on May 28, 2013, 05:33:27 AM
Can I get a little hint please, I have looked and can't seem to find where to change.
Title: Re: SA affiliates
Post by: Kindred on May 28, 2013, 07:35:18 AM
Change the text 'Affiliates' to whatever you want...
Title: Re: SA affiliates
Post by: AllanD on May 28, 2013, 03:48:24 PM
Sorry not good at coding would I change all the text that says affiliates. I really just wanted in changed in them menu.
Title: Re: SA affiliates
Post by: Kindred on May 28, 2013, 03:50:13 PM
Change the text 'Affiliates' to whatever you want...


the one listing itself as  ...   ='Affiliates';
Title: Re: SA affiliates
Post by: AllanD on May 28, 2013, 04:55:46 PM
Finally got it thank you so very much.
Title: Re: SA affiliates
Post by: Dhayzon on June 22, 2013, 11:55:00 PM
as disable capcha?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FlOLXY2y.png&hash=3fbdc4da8eaac1b82c3e7121471ab37b)
Title: Re: SA affiliates
Post by: Kindred on June 23, 2013, 07:50:53 AM
if you have an issue, you need to use more than a 3 word sentence to describe the issue
Title: Re: SA affiliates
Post by: johnpaul2k2 on September 28, 2013, 10:56:43 AM
i was told to drop this question here. sorry for duplicate :(

Please

I will Love to do some customizations on my forum and i urge for your assistance .....

i want to add add this code

Code: [Select]
<iframe src="http://astore.amazon.com/mgbenkaifeany-20" width="90%" height="4000" frameborder="0" scrolling="no"></iframe>

Demo
http://www.topnichez.com/index.php/page,reciprocal.html

on top of this  page
http://www.topnichez.com/index.php?action=affiliates

i am using SA affiliate mod
http://custom.simplemachines.org/mods/index.php?mod=1511

where will i add the code

thanks
Title: Re: SA affiliates
Post by: Kindred on September 28, 2013, 03:19:31 PM
I don't think that this mod supports iframe code in the affiliates section/banner
Title: Re: SA affiliates
Post by: johnpaul2k2 on September 28, 2013, 05:03:29 PM
i know, i mean adding it through cpanel :)
Title: Re: SA affiliates
Post by: hcfwesker on September 28, 2013, 06:55:43 PM
i know, i mean adding it through cpanel :)

You're gonna wanna trim that "height" value down, but try this.

Themes/default/Affiliates.template.php

Find
Code: [Select]
template_affiliates_menu();
echo'<div class="cat_bar">

Add BEFORE
Code: [Select]
        echo'<iframe src="http://astore.amazon.com/mgbenkaifeany-20" width="90%" height="4000" frameborder="0" scrolling="no"></iframe>';
Title: Re: SA affiliates
Post by: johnpaul2k2 on September 29, 2013, 01:39:55 AM
 :)

work perfectly. sorry i added height 4000. been reduced to 1000 (normal size)
Title: Re: SA affiliates
Post by: Diego Andrés on December 30, 2014, 10:13:27 PM
Hey there, any suggestions for a new version of this mod?
Title: Re: SA affiliates
Post by: Bob Perry of Web Presence Consulting on January 18, 2015, 04:24:01 AM
Hi everyone... cool mod aint it? Even though banner exchange marketing (or however you'd care to term it) is a fading fad of sorts, I like dabbling with it still...

I'm needing some assistance getting the marquee to display on the board index for 2.1, any hints appreciated...



Title: Re: SA affiliates
Post by: hcfwesker on April 18, 2015, 03:46:35 AM
I'm needing some assistance getting the marquee to display on the board index for 2.1, any hints appreciated...

You'll need to use html to make your own marquee table and such, but the php code to use for the affiliates I gto from SA a few years back is ...

Code: [Select]
loads_aff();
Just place that code somewhere in your Info center and test around with it.
Title: Re: SA affiliates
Post by: Kindred on October 15, 2015, 01:16:12 PM
hrmm.....

Code: [Select]
index.php?action=affiliates;sa=veiwaff
8: Undefined index: aff
File: /.../Sources/Affiliates.php
Line: 114
[code]

[code]
108: function Affiliates_veiwaff() {
109:
110: // Must global it otherwise we get erros
111:    global $txt, $context, $smcFunc, $scripturl, $request;
112:    
113: //TODO: change id to somthing else
==>114: $id = (int) $_REQUEST['aff'];
115:
116: if (empty($id))
117: fatal_error($txt['aff_error_a']);
118:
119: $context['sub_template']  = 'affveiw';
Title: Re: SA affiliates
Post by: matthewfever on March 16, 2017, 10:24:17 AM
Hello, can someone help me with my affiliate. for some reason the image is not showing, and im clueless why. Also it shows my site as insecure after posting this link, all other pages are secure except the page with the link.

Quote
<!--- START GTXGAMING.CO.UK BANNER --> <a href="http://www.gtxgaming.co.uk/clientarea/aff.php?aff=3" target="_blank"><img src="http://www.gtxgaming.co.uk/images/gtxgamingbanner.jpg" alt="Game Servers" border="0"></a><br> <!--- END GTXGAMING.CO.UK BANNER -->

Title: Re: SA affiliates
Post by: Kindred on March 16, 2017, 10:56:26 AM
well... look at the link... it is http.  Since that is http, and your site is https, it will indeed show as insecure


that also probably explains why it is not displaying
Title: Re: SMF Affiliates System
Post by: StarredSkies on January 17, 2019, 11:03:12 PM
Perhaps this is just me? Duplicated affiliate boxes after reinstall. (https://www.simplemachines.org/community/index.php?topic=564560.msg4003352#msg4003352)
Title: Re: SMF Affiliates System
Post by: Kindred on January 19, 2019, 11:49:34 AM
You did not fully uninstall...  therefore, the code was duplicated when you reinstalled.

You will have to manully remove the duplicated code (and there may be additional, non-visible spots where code was duplicated)