Advertisement:

Author Topic: Affiliates System  (Read 178528 times)

Offline Adrek

  • Sophist Member
  • *****
  • Posts: 1,081
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Adrek.pl
Re: SA affiliates
« Reply #560 on: July 02, 2011, 01:03:34 PM »
Terrific mod, but i have a few questions:
1st:
I translate this mod to polish language, but i have no idea where can i change this lines:




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

3rd:
How can i remove button from menu ? I can't find it in Subs.php
« Last Edit: July 02, 2011, 01:36:01 PM by ph4ntom »
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #561 on: July 03, 2011, 12:49:16 AM »
pls redownload the mod i just fixed a few hard coded text strings and that affempty error
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Adrek

  • Sophist Member
  • *****
  • Posts: 1,081
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Adrek.pl
Re: SA affiliates
« Reply #562 on: July 03, 2011, 07:49:34 AM »
Thanks for fast update ;)

But i think i found few other bugs:
If marquee is enabled - animation is speeding, after mouseover it slows down to speed which i set up in admin center.
Next bug is in "My Affiliates". If my site has 2 or more banners mod show only first one and text link.
In (english) translation you have doubled lines for "$txt['AddYourBanners']" , "$txt['YourBanners']" and "$txt['Affiliatesconfig']" maybe there is more...
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #563 on: July 03, 2011, 01:53:58 PM »
thanks ill look into these soon for ya
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Adrek

  • Sophist Member
  • *****
  • Posts: 1,081
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Adrek.pl
Re: SA affiliates
« Reply #564 on: July 09, 2011, 02:48:38 PM »
thx, in the meantime - what i need to change to have possibility to add text link in affiliates table at the bottom of forum ?
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Offline Ruediger63

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
    • SMFPortal.de
Re: SA affiliates
« Reply #565 on: August 01, 2011, 02:18:36 AM »
Nice Mod works fine ....

I need the german lang files !

Thanks

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: SA affiliates
« Reply #566 on: August 02, 2011, 06:33:44 AM »
@ Ruediger63
Habe nicht alles übersetzt aber so das wichtigste.
Wenn Du sie haben willst, PM an mich.
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline Sci-Fi_Fan

  • Semi-Newbie
  • *
  • Posts: 88
Re: SA affiliates
« Reply #567 on: August 11, 2011, 02:21:49 PM »
Hi, first off I love this mod and I hope you keep supporting it with updates and what not.

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

Thanks in advance!
ShadowFleet.org - more than just a Star Trek RPG!

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #568 on: August 11, 2011, 11:25:46 PM »
in affiliates_db.php

Code: [Select]
function Affiliates_thanks() {

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

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

)
);

$content = array();

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

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

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

)
);

$content = array();

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

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

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

}

in them 3 functions chnage the LIMIT 10 to what you wanted
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Sci-Fi_Fan

  • Semi-Newbie
  • *
  • Posts: 88
Re: SA affiliates
« Reply #569 on: August 12, 2011, 07:55:35 AM »
in affiliates_db.php

Code: [Select]
function Affiliates_thanks() {

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

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

)
);

$content = array();

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

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

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

)
);

$content = array();

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

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

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

}

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

Thanks for your help!
ShadowFleet.org - more than just a Star Trek RPG!

Offline Ruediger63

  • Semi-Newbie
  • *
  • Posts: 24
  • Gender: Male
    • SMFPortal.de
Re: SA affiliates
« Reply #570 on: August 13, 2011, 02:38:21 PM »
Thanks ... work well

Offline Sci-Fi_Fan

  • Semi-Newbie
  • *
  • Posts: 88
Re: SA affiliates
« Reply #571 on: August 17, 2011, 01:59:45 PM »
I just noticed another small, tiny, almost insignificant thing but it's one of those that just eats away at me everytime I see it.

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

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

Great mod!
ShadowFleet.org - more than just a Star Trek RPG!

Offline Bob Perry of Web Presence Consulting

  • Sophist Member
  • *****
  • Posts: 1,024
  • Gender: Male
  • (T)ogether (E)veryone (A)chieves (M)ore
    • Bobert921 on Facebook
    • https://www.linkedin.com/in/bperry921/ on LinkedIn
    • @bperry921 on Twitter
    • Web Presence Consulting
Re: SA affiliates
« Reply #572 on: October 31, 2011, 10:53:51 PM »
PageRank icon hasn't worked for a LONG time now, suprised someone hasn't mentioned it before now because its that way for DJScrappy's site too. It just shows the "alt=" tag not the pagerank icon
Best Regards,
Bob Perry



"The world is moving so fast these days that the man who says it can't be done is generally interrupted by someone doing it." Elbert Hubbard

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: SA affiliates
« Reply #573 on: November 15, 2011, 06:36:48 AM »
Hi,

how can i fix this problem?

Thanks
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #574 on: November 17, 2011, 02:40:59 AM »
in that file chnage that line of code to

$id = (int) (isset($_REQUEST['aff']) ? $_REQUEST['aff'] ? '');
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: SA affiliates
« Reply #575 on: November 18, 2011, 06:58:23 AM »
Error

Parse error: syntax error, unexpected ')' in /homepages/......./Sources/Affiliates.php on line 114
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #576 on: November 18, 2011, 07:32:24 PM »
$id = (int) isset($_REQUEST['aff']) ? $_REQUEST['aff'] : '';

try that
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: SA affiliates
« Reply #577 on: November 19, 2011, 01:58:05 AM »
Hi, thanks for the reply but this code is not. Although there is no PHP error message but now again the SMF error messages as before. Is there another way to solve this problem? Thank you
I worked with:
SMF 2 in German

My Shop:
Das Lieschen

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: SA affiliates
« Reply #578 on: November 19, 2011, 03:51:35 AM »
post up the file?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline Eclipse16V

  • Sophist Member
  • *****
  • Posts: 1,070
  • Gender: Male
  • Tornado Map
    • Eclipse16V on Facebook
    • @Eclipse16V on Twitter
    • Tornado Map
Re: SA affiliates
« Reply #579 on: November 19, 2011, 07:39:01 AM »
Without the edit.
I worked with:
SMF 2 in German

My Shop:
Das Lieschen