News:

Wondering if this will always be free?  See why free is better.

Main Menu

Affiliates System

Started by Diego Andrés, December 04, 2008, 07:29:28 AM

Previous topic - Next topic

Adrek

#560
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:
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
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Adrek

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

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Adrek

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

Ruediger63

Nice Mod works fine ....

I need the german lang files !

Thanks

Eclipse16V

@ Ruediger63
Habe nicht alles übersetzt aber so das wichtigste.
Wenn Du sie haben willst, PM an mich.
I worked with:
SMF 2 in German

Shop:
SID Giessen

Sci-Fi_Fan

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!

SA™

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
http://samods.github.io/SAChatBar/

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

Sci-Fi_Fan

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!
ShadowFleet.org - more than just a Star Trek RPG!

Ruediger63


Sci-Fi_Fan

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!

Bob Perry of Web Presence Consulting

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

Eclipse16V

Hi,

how can i fix this problem?

Thanks
I worked with:
SMF 2 in German

Shop:
SID Giessen

SA™

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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Eclipse16V

Error

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

Shop:
SID Giessen

SA™

$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
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Eclipse16V

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

Shop:
SID Giessen

SA™

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

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

Eclipse16V

I worked with:
SMF 2 in German

Shop:
SID Giessen

Advertisement: