Affiliates System

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

Previous topic - Next topic

SA™

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
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 -___-

Kindred

#121
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
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SA™

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

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 -___-

Özgür

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! =|
So Long

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

qubbah

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?

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 -___-

assam_siddibapa

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

SA™

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
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 -___-

Özgür

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 ?
So Long

Kindred

wait for the next version
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SA™

i have the first package of v3 ready anyone wanna test it for me ?? pm me and ill send them the package
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 -___-

assam_siddibapa

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 ....

SA™

sry in admin you can disalbe the marque feature
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 -___-

assam_siddibapa

Quote from: wmd5002 on February 18, 2009, 06:00:15 PM
sry in admin you can disalbe the marque feature
Thanks worked ...
chears

ysNoi

#135
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.
"Don't fix it if it ain't broken, don't break it if you can't fix it."

SA™

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
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 -___-

ysNoi

Thanks bro wmd5002...! Files attached on my previous post...! Thanks...!
"Don't fix it if it ain't broken, don't break it if you can't fix it."

Kindred

ysNoi...  Just a side note:   You really should learn how to manage and install mods in your own system/files.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

ysNoi

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..!
"Don't fix it if it ain't broken, don't break it if you can't fix it."

Advertisement: