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
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.
Ok, I'm an idiot. I didn't see the enable up marquee. Hahahaha
lol i was just about to say it all in admin
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
what a nice mod!!!! really nice wolk!!
i changed the affiliates web version for this one, it works really cool!!!!!!
thanks
For those who wish to use the code on SimplePortal:
Using a "php" block:
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.
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.
you probalh missed an edit can you post up you ModSettings.php please
Hi,
installed manually but sorry I did not understand how does it work...
its pretty simple what version did you use ???
advanced
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
Quote from: dwd2000 on December 05, 2008, 12:00:42 AM
For those who wish to use the code on SimplePortal:
Using a "php" block:
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
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?
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
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...
I also note that Addlink verification picture does not change!
Quote from: jossanaijr on December 05, 2008, 01:58:11 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.
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 :)
Quote from: wdm2005 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
Okay.
Another question: Affiliate box is not showing to guest. Is there permissions to see it?
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
Quote from: wdm2005 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
Yes, I use a mod to not show info center to guest...
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
Okay, thanks but I cannot do it today. I'll post it tomorrow.
Quote from: 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.
Attached, thanks.
try this
Perfect I appreciate your help and mod thank you
your welcome ;)
Quote from: 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.
do you have another Afffiliate mod installed?
i did but uninstalled it before attempting to install this one
I still have both installed, did the modsettings when uninstalling failed, or manual edits?
I uninstalled completely first but then had the ModSettings fail on installing this. Not sure what wdm2005 did to the file but it worked.
@ 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',
Quote from: wdm2005 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',
I found that out earlier, I just replace Functionaffiliate, wth yours.
thanks for this mod too!
Hi, great Mod. I have a problem, the code for TP doesn't work. I'm using TP 0.9.8
make sure you have affiliates in the boardindex block in admin
ok, it works. I had forgotten to enable that the members were shown in the forum. My mistake. :-[
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
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(' ', ' ', '"3" ' . $txt['to_display'] . ': <b>1 ... 4 [5] 6 ... 9</b>') . '<br />' . str_replace(' ', ' ', '"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
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
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?
you need to edit your ~ Boardindex.template.php in the themes folder
@taha116
go ahead and install it and post up you
ManageSettings.php please
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
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)
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
Fatal error: Call to undefined function ModifyAffiliatesSettings() in /home/playnow/public_html/Sources/ManageSettings.php on line 152
files with ~ at the end are back ups ever time you install a mods and it edits a files it makes a backup
try this
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 :'( )
ok doing it! Should i just copy paste it into it or delete and upload (I know i ask stupid questions)
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
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 ;)
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?
ill look into that one but you can ask sp still i guess
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
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.
hmm im not sure bout that i dont use mk portal what happens when you add it to mk portal ??
The block is just empty.
Here is what it says to do when creating a php block.
<?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";
?>
did you have affiliates in board index block there two boxes affiliates page and affiliates on boardindex
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.
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
No worries, I will keep this thread bookmarked. :)
ok bump this to morrow night to remind me case i forget lol ;)
Hey wdm2005 have you had a chance to look at this yet?
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
@cleanfiles no i havent yet
@ke4obt that fixed in the next version
@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
do you mean where your affiliates banners are ??
if so smf_affiliates.template.php
find
<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
Great mod,thanx!!
http://www.chevyavalancheclub.com/index.php?action=affiliates
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?
Quote from: 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?
Whenever you get the email with the details from whoever. You add the details manually.
i didnt get no e-mail it would be nice if a message [PM] gets send to moderator about the new affiliate
Quote from: 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
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.
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
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
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?
Quote from: 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
BUMP
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
@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
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
haveyou tryed this block code
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>';
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
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.
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
baeta 4 added
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 :-[ ...
it is compatable with 1.1.7
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
Quote from: wdm2005 on January 08, 2009, 05:49:09 PM
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.??
theres an option to enable disable banners in admin
noth packages work with 1.1.7 the rc one is the new version :P)
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
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
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.
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
Quote from: wdm2005 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
Thanks. I have 10 affiliates but i selected 15 affiliates. thanks =)
Quote from: wdm2005 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
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
try this
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>';
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. :)
your welcome plaeas no thumps lol
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?
its a but hard to see anything when guest dont have permissions
lol my bad! let me try to fix you up...have you thought of signing up ;).....ok you should be good to go
hey nm forget about it...im nuking my site and putting SMF 2.0 on it
lol ok have fun nuking 1.1.7 heheh
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...
does it work with registration page ?? any errors in error logs
is it enaled in admin/Security and Moderation/Anti-Spam
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 .
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
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=6b21521e5199a65e4b96d84ffd564bc4ecbe46ff)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fcrazygirlsdesign.com%2Fpspboard%2Fgallery%2F1_23_01_09_6_57_38.jpg&hash=c81e38deb65a96ee399d0bda65ddd1d41a6813cb)
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
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
ok, I'm back with another quick (?) question.
Here's the code you gave to get the block to scroll up instead of sideways:
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
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
is there a way i can stop this code from scrolling.
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>';
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '<span style="text-align:center;" class="smalltext">' . parse_bbc($modSettings['affiliates']) . '</span>';
try that
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.
hmm idk whats causing that maybe a server issue ??
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 :'(
hmmm... on 2.0RC1, several errors:
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]
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
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)
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
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?
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
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
QuoteSide 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
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! =|
most excellent!
Quote from: dwd2000 on December 05, 2008, 12:00:42 AM
For those who wish to use the code on SimplePortal:
Using a "php" block:
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?
sry not this version
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
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 want to add web site desc and web site name in affiliates section (action=affi..)
Etc : please look attachment
How can i do this ?
wait for the next version
i have the first package of v3 ready anyone wanna test it for me ?? pm me and ill send them the package
Quote from: wdm2005 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
I guess u are right ... but i am confiused because there are alot of codes in that .... whihc code should i remove ....
sry in admin you can disalbe the marque feature
Quote from: wmd5002 on February 18, 2009, 06:00:15 PM
sry in admin you can disalbe the marque feature
Thanks worked ...
chears
Hello..! Thanks for this mod..! Great works...!
Anyway, may I know where should I paste the code that you are talking about...?
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.
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
Thanks bro wmd5002...! Files attached on my previous post...! Thanks...!
ysNoi... Just a side note: You really should learn how to manage and install mods in your own system/files.
Quote from: 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.
Yes bro..! Thanks...! Just want to observe how it will be added on the template between different themes..!
try these
I tried the and uploaded the file to both of my themes but the same result I got bro...!
Thank you so much...!
so did they work or not ??
any errors what didnt work
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=3e422a1c18ce3603fa541cbbc4311eb126839159)
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=c4ccbd599bcc99f00b49e13ade9433dc090181ef)
oh i see that theme has it own boardindex.template.php
can you post it up and ill make the edits for you ??
Bro, I attached two files.
For Outline_Omega and Outline_Blue respectively.
Thank you very much...! :) :)
try
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=577bf8eb6b7a608e5229d72521486846010e7ba7)
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
Quote from: wayne83 on February 26, 2009, 01:08:58 PM
you have to set the permissions
DoNe bro...!
Quote from: wayne83 on February 26, 2009, 01:08:58 PM
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...!
boardindex.template.php
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'].''])) ? ' '.$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
Can I get some help with dilber Mc theme...otherwise, in core theme it worsk perfectly...I attached files from DilberMC!
THX!
try these
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.. ;)
you trying the beta one on i posted on your site or the one here ??
here.. lol.. >:( ;)
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
will do proveit.. lol.. working on the site now.. trying to.. :P
yeah i see
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 ?
if you had a portal, you could add the affiliates tags in a side block ;)
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?
Yeah Sandman is my coder (I only maintain my forums and Sandman does all the modifications).
hmm strange i was using this and yshout befor had no problems like that
SMF Affiliates System 3 RC1 For SMF2 Only relesed
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
thansk bro :)
SMF Affiliates System RC2 relesed
Have you completely dropped all support for SMF 1.1?
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=5b5d9f78cc95ea12edf003b81839e00770d0d5dc)
Thanks to MAD Coder..! I love it..!
Quote from: ysNoi on March 15, 2009, 09:20:37 PM
It's all working on my SMF 1.1.8..!
If I might ask, what version of this mod are you using?
theres two packages there v2 wich works with smf 2 and smf1
3rc2 i only working with smf 2 for now
Quote from: Sandmansa on March 15, 2009, 09:31:57 PM
If I might ask, what version of this mod are you using?
SMF Affiliates v2...
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.
Quote from: 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.
try these
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..
try these plaese backup befor hande cos i dont know how it gonna turn out
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.
looks ok to me ?
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=4967cb41c2bd8c510384034cf9240630ad3df11d)
i see what you mean now try this
hmm no change
its to do with that theme just tryed it on a test site and it does it with out the affiliates mod installed
Thanks for all your help man. I'll go bug the coder Lil...
np
call me a idiot but its not showng up at the top if it helps my site uses cpanel
hmm not showing up the top ?? i dont understand ??
Quote from: 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
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.
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
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
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
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
tr admin/registarion/seting
what you got capacha set to ?? you shoudent get those error
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
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?
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.
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
The site is www.treasuredigging.com I have no other captcha mods
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
Quote from: MAD Coder 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
So I need to add an affiliate and the errors will go away?
thats correct yes
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.
what did you put in the banners url feild?
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.
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
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.
here are the screenshots, I add text in these fields and they show up as alt text next to the banners
your banner url is incorect just use
http://www.nyfirestore.com/banners/nyf468x60flag.gif
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
you welcome :)
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
the url you want the bnner to pint to goes in the url feild
Quote from: MAD Coder on March 24, 2009, 08:23:16 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
can we change affiliate user form sent to anothe email, not an admin?
@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
Quote from: MAD Coder 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
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
thats it you got it :)
Quote from: MAD Coder on March 25, 2009, 02:31:08 PM
thats it you got it :)
Thanks again, great mod, great support.
TD
your welcome hopfully ill have v3 rc3 ready for 118 by the end of the weekend
SMF Affiliates System RC3 Relesed
still no 118 support having problems with one funtion lol
Quote from: MAD Coder on March 29, 2009, 05:21:47 PM
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
lol thanks it nearly there now one more db query to sort :)
Quote from: MAD Coder on April 02, 2009, 04:08:46 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.
Can lbanners with javascript be used?
Been having problems adding some to my site.
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.
it looks like the SQL portion of the install was not run.
did you istall it via the package manager or manually?
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.
@ 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
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.
have you check you data base for the affiliates tables there is 4 of them
affiliates
affiliates_rating
affiliates_banners
affiliate_report
They are all there
Should something be modified in the theme?
Should something be set to 777
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.
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?
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)
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?
id_affiliate should be id_affiliates
did you have the other affiliates mod installed that proberly why delete all affiliates tables and reinstall
Fantastic!
Now it works.
Thanks guys!
Now all I have to do is figure out how to use it. ;)
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
for staters that block code is not for this version this one is for your version
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
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.
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]
OK..
Now it is better.
Quote from: MAD Coder on April 28, 2009, 05:54:13 AM
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?
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
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?
When i install this on my 1.1.x forum i get an "Unable to find package file!" error. any help?
hmm try it now
Quote from: sleepy-arcade.ath.cx on May 02, 2009, 09:59:32 AM
hmm try it now
I'm not sure what you have changed but it works. thanks! :D
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
can you post up your index.template.php please?
Quote from: sleepy-arcade.ath.cx on May 12, 2009, 01:23:32 PM
can you post up your index.template.php please?
Here you go, thanks for looking.
TD
in that file find
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
replace with
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'affiliates')))
Quote from: sleepy-arcade.ath.cx on May 12, 2009, 06:48:24 PM
in that file find
if (in_array($context['current_action'], array('search', 'arcade', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm')))
replace with
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
no not on that version sry
Quote from: sleepy-arcade.ath.cx on May 12, 2009, 07:23:07 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?
hmm yes and no i habent worked on the 118 version for some time now
Quote from: sleepy-arcade.ath.cx on May 12, 2009, 07:43:16 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
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
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?
i suspect it the image resizer thats causing it it noting majar
Quote from: sleepy-arcade.ath.cx on May 16, 2009, 08:16:41 AM
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.
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
ill look into it for next relese
Keep getting the following error everytime a page is loaded.....
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?
looks like you pasted something into the english file incorrectly... get rid of the n's around that
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
please display your lines 125-135 from that file?
Is there an easier way tpo get those lines, without attempting to sit and count them all?
get a real text editor with line numbering?
UltraEdit, TextEdit Plus, notpad++, ConText
Thanks
$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'].':';
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
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.
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?
Quote from: dwd2000 on December 05, 2008, 12:00:42 AM
For those who wish to use the code on SimplePortal:
Using a "php" block:
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 tried the affiliates in an html block.
:D Didn't realise there were so many on the forum.
Quote from: Chit-Chat ChatterBox Boss on May 28, 2009, 03:47:18 PM
Quote from: dwd2000 on December 05, 2008, 12:00:42 AM
For those who wish to use the code on SimplePortal:
Using a "php" block:
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......
So what should I do to get the affiliates to show in the SP? (I already have affiliates in the normal affiliate section)
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
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
Ok that code works but can we get it to scroll like the SA Affiliates does?
it allrady should if you set up the scroll ammount and that in admin
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.
echo '
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=1', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=3', $modSettings['How_Fast_To_Scroll'],'">';
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
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
QuoteMarque Scroll Direction = default is set to left you can switch it scroll right
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
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
marquee direction="', $modSettings['scrolldirection'],'" scrolldirection="direction=',
To this
<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?
replace
<marquee scrollamount="', $modSettings['How_Fast_To_Scroll'],'" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">
with
<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">
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.
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
So like this is all(as far as the URLs)?
EXAMPLE
The whole code:
<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:
http://sleepy-arcade.ath.cx/sleepy/banner3.gif
URL for link:
http://sleepy-arcade.ath.cx/index.php
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
So where exactly do I put this code on my site (I manually added all the info for Add Affiliate)
<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
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
Ok that's what I thought originally. Thanks bro! Great Mod and Great Help!
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.
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
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.
huh smilys ? this mod use smilys ???? first i knew :P
have you tryed running repair settings.php?
:-[ 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.
lol np we all make silly mistack like that one time or another :D
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.
HI how do I approve an afflitiate? There is no options when i go to my waiting aprovval menu
@ SunKing do you want the ssi_random_affiliate(); to show more than one ?
@ bluesinjid goto affiliates and click on Waiting Approval
Yes please. I thought it would be something like ssi_random_affiliate(10); I tried a few different ways and nothing worked.
try ssi.php
find
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
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
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.
try this one
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>';
}
Now it shows nothing at all.
sry this one works jsut tested it
//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>';
}
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:
//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).
thanbks for the tip i was trying to figar that out but couldent thanks ;)
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!
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?
try ssi.php
find
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
//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
Right now I have this.
// 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>';
}
yes thats correct
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?
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 ?
Quote from: sleepy-arcade.ath.cx 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 ?
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
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
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
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):
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.)
thanks sunking
Thanks!
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?
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>';
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.
Quote from: SunKing 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.
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
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>';
}
post up you ssi.php please
This random add works fine on the board index of the affiliates banners just the SP is giving problems.
hmm never tried it with sp try just creating a php block and just add this
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>';
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.
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>';
try this
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>';
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!
I cant seem to adjust it to pick up the affiliates settings for direction and speed. also I am now getting this error
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
replace
global $scripturl, $smcFunc;
with
global $scripturl, $modSettings, $smcFunc;
Still pushing the same error =/
I appeared to have fixed it :D I don't know if its correct or not but I got it to work.
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
onload="ImageResizer.createOn(this);"
And changed
function random_affiliate_block($limit)
{
global $scripturl, $modSettings, $smcFunc;
To this
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.
that looks ok so is it working now ?
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!
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
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
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.
this is the one for 1.1.9
http://custom.simplemachines.org/mods/index.php?action=download;mod=1511;id=97024
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???
idk is it will send to the saem addresse that you set smf up with
<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
did you set the size in admin ?
SA Affiliates System 3.3 Realsed
Thanks for the info.
Quote from: erealmz on July 22, 2009, 09:02:11 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.
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.
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.
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
doesnt work for 1.1.10 :(
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
Quote from: asifnur on July 27, 2009, 03:10:57 PM
doesnt work for 1.1.10 :(
same problem here, it redirects back to the package page. :(
thankas found the problems ill rease a fix tomorrow hopfully
Quote from: Sleepy Arcade on August 02, 2009, 04:11:44 AM
thankas found the problems ill rease a fix tomorrow hopfully
Awesome, looking forward to it. i like the mod a lot ;)
any news on an updated release for 1.1.10?
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 :)
Quote from: Sleepy Arcade 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 :)
np, take your time. I was just making sure if the mod was going to be updated O:)
oh yes it will be updated ;)
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.
your installation had issues (obviously)
looks like something was installed after the closing ?> of one of the files.
cani see your boadindex.php?
Attachment as requested
try this
Had this error on install.
Fatal error: Cannot redeclare affiliatesboard() (previously declared in /Sources/BoardIndex.php:272) in /Sources/BoardIndex.php on line 318
thats cos it allready in that file
find and remove one of these from boardindex.php
//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
Wahey. Everything seems ok so far.
With affiliate banners should I save the banner images and make a folder for them?
what do you mean your affiliate banners or you actual affiliates
The banners themselves.
it up to realy u can if you want to
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.
i dont do it like that my babnners are all over the place lol and they all show
affiliates 2.1 for smf 1 released :D
Am getting used to adding banners now. Don't require a wig just yet.
lol
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>?
Can we see the link to your forum please.
Quote from: TheListener on August 13, 2009, 05:27:16 AM
Can we see the link to your forum please.
www.javaforums.net
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
'.xml' => array('News.php', 'ShowXmlFeed'),
add
'affiliatesadmin' => array('smf_affiliates_admin.php','Affiliates_admin'),
subs.php
find
'edit_settings' => '<a href="' . $scripturl . '?action=serversettings;sesc=' . $sc . '">' . $txt[222] . '</a>',
after add
'affiliates_admin' => '<a href="' . $scripturl . '?action=affiliatesadmin;sesc=' . $sc . '">' . $txt['affiliates_smf'] . '
find
$context['in_maintenance'] = !empty($maintenance);
add
$context['affiliates_admin'] = allowedTo('affiliates_admin');
see attachment
hmm all the edits are there is there any errors in error logs ?
isee the actual addlink dont work neither
why are your links like this
http://www.javaforums.net/forum/affiliates.html;sa=addlink
Quote from: Sleepy Arcade 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
seo4smf
hmm so ther is no errors in logs ?
Quote from: Sleepy Arcade on August 13, 2009, 04:15:10 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
do you know how to disable eval? to see where the errors are coming
Quote from: Sleepy Arcade on August 13, 2009, 04:24:50 PM
do you know how to disable eval? to see where the errors are coming
No idea, im no smf/php expert.
try this mod
http://custom.simplemachines.org/mods/index.php?mod=2054
Quote from: Sleepy Arcade on August 13, 2009, 04:30:48 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?
please tho i dont think it will solve the other errors i think it the seo urls
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!
in admin you can set that
look for
Affiliates per Line:
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.
QuoteAffiliates
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.
the you are not using my affiliates mod are you using this one
http://custom.simplemachines.org/mods/index.php?mod=1297 ?
No Sir I am not using that one.
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
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?
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
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.
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?
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)
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.
click on a sites banner and go to properties.
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)
Ok, when I click on my affiliates I get a fatal Error. Any idea why?
What does the error say?
little more info will be good ? any erro in erro logs dioes the fatal Error say anything?
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
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.
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
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?
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
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)
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.
admin > configuration > languages
see what your default is...
The reason is Most mods only auto-install into english
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.
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"?
check in sources/admin.php for
//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
'current_theme' => array(
'label' => $txt['theme_current_settings'],
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..
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
can i see your manage permissions.php please?
Check the attachment ;)
that looks ok to me is there nay erro in error logs?
Yep, there are lots of these errors:
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
Bumping this thread as no one replied in 2 days :(
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?
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.
Quote from: 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?
Whats 1 & 3 about?
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!!!***
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 ?
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
Quote from: 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
nope using the latest but about to upgrade the the new latest smf with curve
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
3.3.1 relased added support for rc2
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
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
Quote from: Sleepy Arcade 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
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
ill drop by later and take a look for you
What Version is for SMF 2.0 RC2
SA_Affiliates_3.3_SMF2.zip
or
SA_Affiliates_3.3.2.zip
3.3.2 is latest smf 2 verson
thx
nice Mod.
In the next days you become from me the german lang.
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
//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>
it would help if you could tell use the EXACT error...
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=850d54cdecae1abde1e5caefb938cf4ef4f53cf9)
Also I would like to move it from the top of the info center to the bottem, any hints there would be appreciated.
Cheers.
i thinkif you set scroll speed to 0 it wont scroll
to mmove the affiliates boardindex.template.php
find
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
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>';
}
Thanks though setting the scroll to 0 it still scrolls. looks better at the bottem of the info center.
you can just remove the maque tag if you want
find and remove
echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
and
echo '</marquee>';
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.
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.
Quote from: Sleepy Arcade on January 01, 2010, 04:24:46 PM
you can just remove the maque tag if you want
find and remove
echo '<marquee direction="', empty($modSettings['scrolldirection']) ? 'left' : 'right', '" onmouseover="scrollAmount=', $modSettings['How_Fast_To_Scrollmo'],'" onmouseout="scrollAmount=', $modSettings['How_Fast_To_Scroll'],'">';
and
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.
Quote from: 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.
you got a test account so i can see what you mean ?
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 .__.
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.
Quote from: Kindred on January 13, 2010, 12:13:53 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.
http://www.40konline.com
http://askawitchcommunity.org
Quote from: Kindred on January 13, 2010, 12:57:48 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.
yes, the cycle is fairly slow... but I just manually activated your account
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?
no 1.1.11 version sry
3.3.3 Realsed
some template fixes
fixed undefined index rating error
spelling corretions [thanks skhilled]
added live sa mod news
Quote from: Sleepy Arcade 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
Corrections lol
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?
Quote from: Royalduke 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?
Do you still need help with this?
3.3.4 reased
updated for rc3
some template tweeks
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.
Quote from: 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.
can you try and explain in more detail please bud.
Quote from: Brack1 on March 30, 2010, 09:49:05 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.
Have a look at the ad management mod.
That would suit your needs more appropriately.
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.
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 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
Quote from: 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.
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 :-)
Quote from: Sleepy Arcade 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
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.
np im away from friday to the following sunday so it wont be untill then is that ok?
Sure, whenever you have time! Thank you very much!
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
Thanks for update.
In the install.php is this a error?
Quotearray(
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.
'),
It will be nice for compatibility if you can replace the <search position="after"><![CDATA[
?>]]></search>
in both english files in the "xml" file with <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.
@Eclipse16V thanks ill fix these soon
@butchs oh my bad i neglected to acrtualy check this whn i chnaged the templates:(
No big deal. I only mentioned it since you are doing such a great job with the mod.
8)
@ 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?
left to right? you mean affiliates on boardindex? does it produce any errors at all?
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.
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?
@ Sleepy Arcade
Any news for my error?
@tanshin it allready does that no?
@Eclipse16V sry not yet havent had much time hopfully this weekend :)
Quote from: Sleepy Arcade on April 14, 2010, 02:19:28 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.
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.
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?
I just noticed the following errors in my browser debugger:
- Unmatched </p> encountered. Converting </p> into <p></p>.
- imageresizer.js:169ReferenceError: Can't find variable: vbphrase
The seem to show up when I sent the affiliates scroll on in my front page.
:o
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).
Please compatible with smf 1.1.11
i have just install this mod now i'am geting this Error
Affiliates.template.php
http://i.com/index.php?action=affiliates8: Undefined index: affiliates_pagerankFile: /home/forum/public_html/Themes/default/Affiliates.template.php
Line: 99
need help please reply
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
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
that resizes images try theese
thank you very much i added the files and no big text so everything appears to be working fine
thanks again!!!
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.
explain again pls? i dont get hat you mean?
My pagerank doesnt work. It shows that the code is changed.
Quote from: Sleepy Arcade on July 02, 2010, 03:24:18 PM
explain again pls? i dont get hat you mean?
How can I sort the displayed list?
Why can i not post attachments here?
you cant sort it
and what is this?
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
lol... just about anything is POSSIBLE with code. The trick is writing the code to do it. :P
Quote from: 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
Fancy a challenge? ;)
Quote from: Eclipse16V on July 17, 2010, 05:17:51 AM
and what is this?
what version of the mod are you using? it should work on the latest version
Quote from: 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
sure is possible but i dont have too much time at the moment to do this
SA_Affiliates3.3.5_rev318.zip
is the version that I use.
it should work then ill check it out the weekend
OK
Thanks
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?
lol it should already use page indexes there i guess i missed that :)
Quote from: Sleepy Arcade on July 22, 2010, 01:57:49 PM
it should work then ill check it out the weekend
Any news?
3.3.5.1 realesed
fixed page rank
added page indexto approve affiliates page
fixed admin affiliates sort ing options
Thanks for Update.
It runs.
I have to uninstall the MOD and install it again?
yes
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
find and remove from affiliates.template.php
if ($modSettings['affiliates_pagerank'] == '0') {$modSettings['affiliates_pagerank'] = '1'; }
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... :/.
are you using a custom theme? if so are the edits there? does it work on the default theme?
Quote from: Sleepy Arcade 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?
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...
i does sound to me like the edit to index.template.php is missing?
is this in index.template.php
//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
I removed that ans still get the same error.
what did you remove this
if ($modSettings['affiliates_pagerank'] == '0') {$modSettings['affiliates_pagerank'] = '1'; }
yes
ok read this and do it then tell me the error again
http://www.catskilltech.com/freeSW/SMF/faqs/#eval
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.
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?
It gets an error on almost all files it wants to uninstall from.
which means that you probably have other mods installed after this one and you will have to manually remove this mod.
ok i will try
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
Hello I love the mod! has any one mad a tp block for this?
@ 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();
so how do I put that in a php block?
just make a php block like usal
and add
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
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>';
}
Sleepy Arcade are you ever gonna make this mod generate proper coding right now the img tags of code your mod creates isnt closed
yes i know i got a new version in the works but havent had a great deal of time to code
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
:) :) :)
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
thanks for the translation :)
De nada ;)
http://www.bosveldboerbokklub.com/index.php?action=affiliates;sa=stats.
My stat bar gets cut off.
3.3.5.3 relased
fixed stats bar cutting off
added spanish translation
Quote from: Sleepy Arcade on September 18, 2010, 12:07:37 PM
just make a php block like usal
and add
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
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
try just using
ssi_random_affiliate();
or
ssi_affiliates();
package updated for rc4
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?
yup in sources/affiliates db.php
find
Quotefunction 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
Quotefunction 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
Quotefunction 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
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.
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.
Line 217, Column 152: there is no attribute "onload"
The code in the template matching that is:
<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?
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
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
Thank you. I will try this out.
Update portuguese files
Modifications.portuguese_pt.phpModifications.portuguese_pt-utf8.php
Modifications.portuguese_brazillian.phpModifications.portuguese_brazillian-utf8.php
<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ê não tem Afiliados';
$txt['affiliates_You_have'] = 'Você tem';
$txt['affiliates_Apprved'] = 'Aprovado';
$txt['affiliates_Apprved2'] = 'Não Aprovado';
$txt['affiliates_Apprved3'] = 'Esperando Aprovação';
$txt['affiliates_image_link_code'] = 'Imagem do código para o Link';
$txt['affiliates_text_link_code'] = 'Texto do código para o Link';
$txt['aff_vistit_affiliates_link'] = 'Visite o Link';
$txt['link_aff_not_approved'] = 'Afiliada Não Aprovado';
$txt['link_already_exists'] = 'link já existe';
$txt['affiliates_pagerank'] = 'Defina um número de estilo de botão, todos os estilos e códigos de estilo são visíveis <a href="http://pr.proxin.cn" target="blank">Aqui</a>.';
$txt['enable_capacha_affiliates'] = 'Ativar Captcha ao adicionar pá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çã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ão para aprovar afiliados';
$txt['permissionname_approve_affiliates'] = 'Aprovar Afiliados';
$txt['permissionhelp_unapprove_afflinks_any'] = 'Se o utilizador tem permissão para aprovar qualquer Afiliados';
$txt['permissionhelp_unapprove_afflinks'] = 'Se o utilizador tem permissã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ão para apagar qualquer Afiliados';
$txt['permissionhelp_delete_afflinks'] = 'Se o utilizador tem permissão para excluir Afiliado';
$txt['permissionname_delete_afflinks_any'] = 'Apagar Afiliados';
$txt['permissionname_edit_afflinks'] = 'Editar próprio afiliados';
$txt['permissionname_edit_afflinks_any'] = 'Editar Qualquer Afiliados';
$txt['permissionhelp_edit_afflinks_any'] = 'Se o utilizador tem permissão para editar qualquer Afiliados';
$txt['permissionhelp_edit_afflinks'] = 'Se o utilizador tem permissão para editar afiliados';
$txt['cannot_edit_afflinks'] = 'Você não pode editar Afiliados.';
$txt['cannot_edit_afflinks_any'] = 'Você não pode editar Afiliados.';
$txt['cannot_rate_affiliates'] = 'Você não está autorizado a classificar os Afiliados.';
$txt['cannot_add_affiliates'] = 'Você não tem permissão para adicionar Afiliados.';
$txt['cannot_view_affiliates'] = 'Você não tem permissã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ágina dos afiliados.';
$txt['permissionname_add_affiliates'] = 'Adicionar Afiliados';
$txt['permissionhelp_add_affiliates'] = 'Se o utilizador tem permissão para apresentar os Afiliados';
$txt['permissionname_affiliates_auto_approve'] = 'Afiliados aprovados Automáticamente';
$txt['permissionhelp_affiliates_auto_approve'] = 'Se os utilizadores estão afiliadas para auto aprovarem se quando submetidos.';
$txt['permissionname_rate_affiliates'] = 'Classifique os afiliados';
$txt['permissionhelp_rate_affiliates'] = 'Se o utilizador está autorizado a classifcar os afiliados';
$txt['permissionname_veiwreport_affiliates'] = 'Ver os afiliados reportados';
$txt['permissionname_report_affiliates'] = 'Relatório de afiliados';
$txt['permissionhelp_report_affiliates'] = 'Se o utilizador tem permissão para reportar afiliados';
$txt['permissionhelp_veiwreport_affiliates'] = 'Se o usuário tem permissão para ver afiliadas reportados';
$txt['a_info'] = 'SA Informações da loja';
$txt['a_info2'] = 'SA Mods Live';
$txt['a_info3'] = 'Informações Gerais';
$txt['a_info4'] = 'Créditos';
//Affiliates End
]]></add>
</operation>
</file>
<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ê não tem Afiliados';
$txt['affiliates_You_have'] = 'Você tem';
$txt['affiliates_Apprved'] = 'Aprovado';
$txt['affiliates_Apprved2'] = 'Não Aprovado';
$txt['affiliates_Apprved3'] = 'Esperando Aprovação';
$txt['affiliates_image_link_code'] = 'Imagem do código para o Link';
$txt['affiliates_text_link_code'] = 'Texto do código para o Link';
$txt['aff_vistit_affiliates_link'] = 'Visite o Link';
$txt['link_aff_not_approved'] = 'Afiliada Não Aprovado';
$txt['link_already_exists'] = 'link já existe';
$txt['affiliates_pagerank'] = 'Defina um número de estilo de botão, todos os estilos e códigos de estilo são visíveis <a href="http://pr.proxin.cn" target="blank">Aqui</a>.';
$txt['enable_capacha_affiliates'] = 'Ativar Captcha ao adicionar pá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çã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ão para aprovar afiliados';
$txt['permissionname_approve_affiliates'] = 'Aprovar Afiliados';
$txt['permissionhelp_unapprove_afflinks_any'] = 'Se o utilizador tem permissão para aprovar qualquer Afiliados';
$txt['permissionhelp_unapprove_afflinks'] = 'Se o utilizador tem permissã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ão para apagar qualquer Afiliados';
$txt['permissionhelp_delete_afflinks'] = 'Se o utilizador tem permissão para excluir Afiliado';
$txt['permissionname_delete_afflinks_any'] = 'Apagar Afiliados';
$txt['permissionname_edit_afflinks'] = 'Editar próprio afiliados';
$txt['permissionname_edit_afflinks_any'] = 'Editar Qualquer Afiliados';
$txt['permissionhelp_edit_afflinks_any'] = 'Se o utilizador tem permissão para editar qualquer Afiliados';
$txt['permissionhelp_edit_afflinks'] = 'Se o utilizador tem permissão para editar afiliados';
$txt['cannot_edit_afflinks'] = 'Você não pode editar Afiliados.';
$txt['cannot_edit_afflinks_any'] = 'Você não pode editar Afiliados.';
$txt['cannot_rate_affiliates'] = 'Você não está autorizado a classificar os Afiliados.';
$txt['cannot_add_affiliates'] = 'Você não tem permissão para adicionar Afiliados.';
$txt['cannot_view_affiliates'] = 'Você não tem permissã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ágina dos afiliados.';
$txt['permissionname_add_affiliates'] = 'Adicionar Afiliados';
$txt['permissionhelp_add_affiliates'] = 'Se o utilizador tem permissão para apresentar os Afiliados';
$txt['permissionname_affiliates_auto_approve'] = 'Afiliados aprovados Automáticamente';
$txt['permissionhelp_affiliates_auto_approve'] = 'Se os utilizadores estão afiliadas para auto aprovarem se quando submetidos.';
$txt['permissionname_rate_affiliates'] = 'Classifique os afiliados';
$txt['permissionhelp_rate_affiliates'] = 'Se o utilizador está autorizado a classifcar os afiliados';
$txt['permissionname_veiwreport_affiliates'] = 'Ver os afiliados reportados';
$txt['permissionname_report_affiliates'] = 'Relatório de afiliados';
$txt['permissionhelp_report_affiliates'] = 'Se o utilizador tem permissão para reportar afiliados';
$txt['permissionhelp_veiwreport_affiliates'] = 'Se o usuário tem permissão para ver afiliadas reportados';
$txt['a_info'] = 'SA Informações da loja';
$txt['a_info2'] = 'SA Mods Live';
$txt['a_info3'] = 'Informações Gerais';
$txt['a_info4'] = 'Créditos';
//Affiliates End
]]></add>
</operation>
</file>
why does mine have Google page rank with a link to a site"search marketing sales"?
http://metal-mecca.com/index.php?action=affiliates
guest cant see affiluates
You have to set the permissions for guest
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!
sry i dont have the 1.1x versiobn any more
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=8a968a21fa203f558c00d33570f75847f721cc44)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg718.imageshack.us%2Fimg718%2F852%2Fcapturebpd.png&hash=01dbaa56ba3782c6d6ee0487af3e4f461049972b)
2nd:
Why i have error:
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:
<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
pls redownload the mod i just fixed a few hard coded text strings and that affempty error
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...
thanks ill look into these soon for ya
thx, in the meantime - what i need to change to have possibility to add text link in affiliates table at the bottom of forum ?
Nice Mod works fine ....
I need the german lang files !
Thanks
@ Ruediger63
Habe nicht alles übersetzt aber so das wichtigste.
Wenn Du sie haben willst, PM an mich.
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!
in affiliates_db.php
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;
}
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;
}
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
Quote from: SA™ on August 11, 2011, 11:25:46 PM
in affiliates_db.php
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;
}
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;
}
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!
Thanks ... work well
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!
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
Hi,
how can i fix this problem?
Thanks
in that file chnage that line of code to
$id = (int) (isset($_REQUEST['aff']) ? $_REQUEST['aff'] ? '');
Error
Parse error: syntax error, unexpected ')' in /homepages/......./Sources/Affiliates.php on line 114
$id = (int) isset($_REQUEST['aff']) ? $_REQUEST['aff'] : '';
try that
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
post up the file?
Without the edit.
this should do it
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.
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
OK
Thank i will test it few days.
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:
<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 !!!)
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.
Page Rank image is not working?
Quote from: isl30fvi3w on August 12, 2012, 02:20:39 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?)
do you mean the thumbs up and thumbs down? They work just fine for me with no additional edits.
Quote from: 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.
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...
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....
Quote from: 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....
Quote from: 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....
Trust me, it's a Google pagerank icon, some support specialist you are if you can't distinguish the difference...
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=0c3daa1b68402188d46052fcdb1792b8ed7b3699)
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
Can I get one too? I am not greedy I will take a page rank of three? :)
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=b55391ed50bdeeb3258c73135a6fdc9bdfdeeb52)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.rlgf.info%2F17.jpg&hash=6bd8e002f3b435f402ebd5e93b968f23f0096687)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.sbqg.info%2F19.jpg&hash=89f25dba014d830dd4240c0b33d6c05e813258df)
getting notice that this mod is outdated???
where exactly will all the affiliate links appear, can i create a page for it???
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..
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??
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)
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
Quote from: Kindred on December 03, 2012, 12:44:35 PM
adjust the hook code in Sources/Affiliates.php to target a different insertion point
its in
Sources/AffiliatesHooks.php
Quote from: 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
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?
thanks SA. I forgot you had a separate hooks file. :)
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
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.
Quote from: 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.
thanks alot , please one more thing. how can i increase the description character. mine seems to be too small
Quote from: SA™ on December 03, 2012, 02:12:35 PM
Quote from: Kindred on December 03, 2012, 12:44:35 PM
adjust the hook code in Sources/Affiliates.php to target a different insertion point
its in
Sources/AffiliatesHooks.php
Quote from: 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
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 ???
either modifications.english.php or affiliates.english.php (don't recall which one is used here)
sorry but where exactly can i find either of the two. i couldn't see them under "source"
Themes/default/languages
Quote from: Kindred on December 04, 2012, 09:49:38 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
there are many strings which are JUST
... = 'Affiliates';
?
if so, then you possibly installed the mod multiple times...
there were JUST two............i tried editing them one by one, save and preview
the same. nothing changes
cache? server and local
cpanel... yes server
no.... your smf cache (smf caches the language strings - go to maintenance, clear cache) and your browser cache (ctrl-f5)
still didn't work Sir.
no... I was right the first time.
the file is Affiliates.english.php
$txt['Affiliates'] = "Affiliates";
around line 76
Quote from: 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=0c3daa1b68402188d46052fcdb1792b8ed7b3699)
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...
Quote from: SA™ on December 03, 2012, 02:12:35 PM
Quote from: Kindred on December 03, 2012, 12:44:35 PM
adjust the hook code in Sources/Affiliates.php to target a different insertion point
its in
Sources/AffiliatesHooks.php
Quote from: 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
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
Quote from: 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
i have done that. yet not working even now, i have edited it to "MARKET PALCE"
i have attached the file
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
are you using English or English-utf-8?
Quote from: Kindred on December 06, 2012, 07:38:26 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
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
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?
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?
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
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
don't slap anymore .......never an easy task to solve hundreds of people's problem
it is working now :D
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.
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
Quote from: 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
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
Seems like it's working, you get it figured out?
Quote from: hcfwesker on December 10, 2012, 10:40:19 AM
Seems like it's working, you get it figured out?
Yeah, it's workin now. . Not sure for how long. . lol
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
you did not enter the full URL for the affiliate
Quote from: Sulfur on December 10, 2012, 11:29:10 AMwhen 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.
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.
it resolve by itself... just added again, the same way and it worked... wierd but, yeah, it works now :)
Quote from: SA™ on December 03, 2012, 02:12:35 PM
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
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?
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
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?
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.
I know this mod is outdated but anyone How I would change the display name in the menu to something other then Affiliates?
Either affiliates.english.php or modifications.english.php
Thank you , would you have any idea what I would look for lol
well you want to change Affiliates
so looking for Affiliates would be a good start :P
Thank you I will look into this a little more.
Can I get a little hint please, I have looked and can't seem to find where to change.
Change the text 'Affiliates' to whatever you want...
Sorry not good at coding would I change all the text that says affiliates. I really just wanted in changed in them menu.
Quote from: Kindred on May 28, 2013, 07:35:18 AM
Change the text 'Affiliates' to whatever you want...
the one listing itself as ... ='Affiliates';
Finally got it thank you so very much.
as disable capcha?
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FlOLXY2y.png&hash=a080721a4c1b90333f88cebd77ea609604b5d3bb)
if you have an issue, you need to use more than a 3 word sentence to describe the issue
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
<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
I don't think that this mod supports iframe code in the affiliates section/banner
i know, i mean adding it through cpanel :)
Quote from: johnpaul2k2 on September 28, 2013, 05:03:29 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.phpFind
template_affiliates_menu();
echo'<div class="cat_bar">
Add BEFORE
echo'<iframe src="http://astore.amazon.com/mgbenkaifeany-20" width="90%" height="4000" frameborder="0" scrolling="no"></iframe>';
:)
work perfectly. sorry i added height 4000. been reduced to 1000 (normal size)
Hey there, any suggestions for a new version of this mod?
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...
Quote from: Bob Perry on January 18, 2015, 04:24:01 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 ...
loads_aff();
Just place that code somewhere in your Info center and test around with it.
hrmm.....
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';
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 -->
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
Perhaps this is just me? Duplicated affiliate boxes after reinstall. (https://www.simplemachines.org/community/index.php?topic=564560.msg4003352#msg4003352)
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)