Advertisement:

Author Topic: Affiliates System  (Read 178535 times)

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #120 on: February 14, 2009, 01:31:20 AM »
if youv filled in all the info for affiliates and configard it properly there should be no error

in admin see where it says

Number of Affiliates?

how many have you put in the box

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

if you have 3 affiliates and you put say 6 in the box you will get error cos there not defined untill you add them
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 Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,316
  • Gender: Male
    • Kindred-999 on GitHub
Re: smf affiliates
« Reply #121 on: February 14, 2009, 07:40:45 AM »
hmmmm.... so the system doesn't do a count of the approved list and then automatically determine how many?   I have to manually set the number each time I approve a new one?


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

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

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

5- somehow, $context[$context['admin_menu_name']]['tab_data']
(admin_menu_name) is not being set... It looks like that is related to the empty permissions tab
« Last Edit: February 14, 2009, 08:09:14 AM by Kindred »
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #122 on: February 14, 2009, 01:51:36 PM »
Quote
Side note: $txt['cannot_affiliate_view'] needs to be added to the text strings. (Guests can not add affiliates)

thaks ill add that in the next update


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

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

3 not used in v3

4 noty used in v3

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

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 Özgür

  • SMF Hero
  • ******
  • Posts: 3,926
  • Gender: Male
  • Özgür | jQuery Lover
    • ozgurce on Facebook
    • @ozgurce on Twitter
    • Özgür Yalçın
Re: smf affiliates
« Reply #123 on: February 14, 2009, 02:08:46 PM »
Quote
1 there is an aproval system in v3 admin can set permission wheather to auto approve links or have them apoproved via admin

Great! =|
So Long

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,316
  • Gender: Male
    • Kindred-999 on GitHub
Re: smf affiliates
« Reply #124 on: February 14, 2009, 04:26:37 PM »
most excellent!
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline qubbah

  • Full Member
  • ***
  • Posts: 556
Re: smf affiliates
« Reply #125 on: February 15, 2009, 01:33:07 PM »
For those who wish to use the code on SimplePortal:

Using a "php" block:

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


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

can we call it randomly?

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #126 on: February 15, 2009, 03:11:00 PM »
sry not this version
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 assam_siddibapa

  • Full Member
  • ***
  • Posts: 429
Re: smf affiliates
« Reply #127 on: February 16, 2009, 07:54:31 AM »
One small help .
I was wondering if i could remove the marque of /index.php?action=affiliates and make the inner layout not a fixed size

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #128 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
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 Özgür

  • SMF Hero
  • ******
  • Posts: 3,926
  • Gender: Male
  • Özgür | jQuery Lover
    • ozgurce on Facebook
    • @ozgurce on Twitter
    • Özgür Yalçın
Re: smf affiliates
« Reply #129 on: February 17, 2009, 02:49:51 PM »
I want to add web site desc and web site name in affiliates section (action=affi..)
Etc : please look attachment

How can i do this ?
So Long

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,316
  • Gender: Male
    • Kindred-999 on GitHub
Re: smf affiliates
« Reply #130 on: February 17, 2009, 07:38:35 PM »
wait for the next version
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #131 on: February 18, 2009, 12:51:24 AM »
i have the first package of v3 ready anyone wanna test it for me ?? pm me and ill send them the package
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 assam_siddibapa

  • Full Member
  • ***
  • Posts: 429
Re: smf affiliates
« Reply #132 on: February 18, 2009, 03:58:50 AM »
you can remove the marque in smf_affiliates.template.php


and make the inner layout not a fixed size

not shore wht you mean by that one sry
I guess u are right ... but i am confiused because there are alot of codes in that .... whihc code should i remove ....

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #133 on: February 18, 2009, 06:00:15 PM »
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
Quote
My allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Offline assam_siddibapa

  • Full Member
  • ***
  • Posts: 429
Re: smf affiliates
« Reply #134 on: February 20, 2009, 12:38:06 PM »
sry in admin you can disalbe the marque feature
Thanks worked ...
chears

Offline ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #135 on: February 22, 2009, 10:55:30 AM »
Hello..! Thanks for this mod..! Great works...!

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

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

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

Thanks in advanced...!  :) :)

Edit : Index.template.php attached for my  OutlineBlue and OutlineOmega themes.
« Last Edit: February 22, 2009, 11:13:20 PM by ysNoi »
"Don't fix it if it ain't broken, don't break it if you can't fix it."

Offline SA™

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,954
  • (T)ogether (E)veryone (A)chieves (M)ore
    • DenotsNiaga on Facebook
    • SAChatBar
Re: smf affiliates
« Reply #136 on: February 22, 2009, 01:38:05 PM »
that code is for a block maybe tp block portamx block simle portal block


if you can post up you inderx.template.php from the outline theme i can add the tab for you if you want
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 ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #137 on: February 22, 2009, 11:14:23 PM »
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."

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 59,316
  • Gender: Male
    • Kindred-999 on GitHub
Re: smf affiliates
« Reply #138 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.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline ysNoi

  • Jr. Member
  • **
  • Posts: 139
  • Gender: Male
  • I'm For DeMolay Alone
    • pHForums™
Re: smf affiliates
« Reply #139 on: February 23, 2009, 12:11:53 AM »
ysNoi...  Just a side note:   You really should learn how to manage and install mods in your own system/files.

Yes bro..! Thanks...! Just want to observe how it will be added on the template between different themes..!
"Don't fix it if it ain't broken, don't break it if you can't fix it."