News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ad Revenue Sharing Mod (Beta)

Started by karlbenson, March 31, 2007, 08:52:37 PM

Previous topic - Next topic

karlbenson

Its not currently possible

But I've already got per-board, AND per-theme permissions worked into 2.0

GazOutEast

Quote from: karlbenson on September 23, 2007, 02:27:18 PM
Its not currently possible

But I've already got per-board, AND per-theme permissions worked into 2.0

That sounds great, but what about the utf file updates?
Remember I said the only other mod installed is your "Buy me a beer" mod - that still remains true - I really want a fix for this that I can implement - I'm in no way confident when it comes to extracting code from one language structure to hack it into a different one.

Thanks
Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

Where you have
<!-- // ADMIN.ENGLISH.PHP  //-->
<file name="$languagedir/Admin.english.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>

The bit you try to find in your file is BETWEEN
<search position="before"><![CDATA[ <-- -->   ]]></search>

So you look for
$txt['theme_admin'] = 'Themes and Layout';

According to the above, where it says BEFORE, you place it AFTER.
eg
$txt['theme_admin'] = 'Themes and Layout';
$txt['managears_admin'] = 'Ad Revenue Sharing';

For more info see
http://docs.simplemachines.org/index.php?topic=402.msg531

GazOutEast

#163
Quote from: karlbenson on September 23, 2007, 02:45:46 PM
Where you have
<!-- // ADMIN.ENGLISH.PHP  //-->
<file name="$languagedir/Admin.english.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>

The bit you try to find in your file is BETWEEN
<search position="before"><![CDATA[ <-- -->   ]]></search>

So you look for
$txt['theme_admin'] = 'Themes and Layout';

According to the above, where it says BEFORE, you place it AFTER.
eg
$txt['theme_admin'] = 'Themes and Layout';
$txt['managears_admin'] = 'Ad Revenue Sharing';

For more info see
http://docs.simplemachines.org/index.php?topic=402.msg531

Would it work if I simply changed the xml file to show the names with utf8 extended names and deleted anything that doesn't apply to those 4 files (from inside the xml file)?
e.g.
<!-- // ADMIN.ENGLISH-UTF8.PHP  //-->
<file name="$languagedir/Admin.english-utf8.php">
<!-- adds the txt string for use on the manage admin area -->
<operation>
   <search position="before"><![CDATA[$txt['theme_admin'] = 'Themes and Layout';]]></search>
<add><![CDATA[
$txt['managears_admin'] = 'Ad Revenue Sharing';
]]></add>
</operation>
</file>


I don't have the time or experience (or patience) to be mucking around translating one set of coding language into another

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson


GazOutEast

Did do, still no further forward

Never mind - thanks anyway - will remove SMF and switch to phpBB

Shame as I liked the look of this one and it seemed to have a better range of add-ins

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

:(

If you leave SMF, I'd recommend anything but PHPBB.

GazOutEast

Quote from: karlbenson on September 24, 2007, 11:20:52 AM
:(

If you leave SMF, I'd recommend anything but PHPBB.

Why's that then?  (PM me if you don't want to post it publicly)
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

Because PHPBB is insecure.  Their software is a bug-ridden pile of ****.  Their software has more exploits than a celebrity in a tabloid newspaper.

Basically. You could create a nice forum, until the second sometimes decides to hack it via any of the million and one exploits than can be found via Google.

Unlike PHPBB, SMF takes security very seriously.

GazOutEast

OK - appreciate your frankness

Lets go around this a different way then.....

Does anyone have the english-utf8 files from a clean install of SMF 1.1.3 WITH the manual edits for ARS done, and could they zip and email them to me so I can use them as an overwrite after removing ARS & Buy-me-a-beer from an otherwise clean install?

then I can add back the buy me a beer add-in.

I want to move on quickly from this as there are 30+ other mods to do before putting it live
Simultaneously with this is an osC and a WordPress build to do in this domain, then it has to be cloned to another 16 domains, then the individualising graphics and other stuff has to be done.  I really can't afford too much time to be wasted on any one mod on any one package.

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

you could ask in this forum http://www.simplemachines.org/community/index.php?board=50.0
for someone to do the manual edits/mod installing for you.

GazOutEast

 ;D
PMSL LOL
Funny that ..... let me tell you a story .....
I live in a country that is not my own, many years ago I was trying to extend my work permit so that I wasn't restricted to working in just the town where I live - have wheels can travel - can travel can work - right?
Not in this country.  The response from the foreign employment officer was "No can do, you have to pay one of us to do the work for you"
On the osCommerce forum, I have a similar problem to this one with a PayPal IPN contribution, except that the contribution matches your opinion of phpBB and the developers have swanned off to form their own support forum and basically held the entire osC user base, using that contribution, to ransom - "pay us for support or we won't support it" sort of attitude.
Bit like Microsoft releasing a bug ridden OS, then demanding $150 paid up front by credit card for every support call, even if the question has a one word answer (like what they did regularly between 1995 and 2000)
..... can you see where my line of thinking is going here?
Don't take it personally - I talk bluntly and directly.
Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

It doesn't have to be a [paid] request.  Some people do it for [free].

Its not a bug that its not working.  Manual edits are required by most forum software for mods.

Most people are able to follow the documentation to be able to make the edits.
No offense, but in fact you're the only person I've come across unable to follow the simple well explained instructions how to make the manual edits.

GazOutEast

OK - I'll have another look at them - time is my biggest curse, I literally have a thousand things on the go right now and they all have overlapping deadlines - I'm robbing time from Peter to use for Paul so to speak, and getting nothing finished.

And like everyone else, I have to find time to make a daily crust as well.
I have 20:20 vision - I can see anything bigger than 20" x 20"

Niteblade

Karl,

I have a demo forum to help you test out v2.0 of the revenue sharing mod.  O:)
affiliate blog

GazOutEast

Karl - if you're still there (and speaking to me)

The code line -

  <search position="after"><![CDATA[?>]]></search>

Do I interpret this as meaning
"scroll to bottom of file and click in front of the ?>
hit return to create an empty line above the ?>
copy all the strings (following the code line above) from the xml file and paste them into the empty line just created"

??????

(If so, I think I can manage it  ;) )

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

@nite ~ lol

@GazOutEast

Yes, you are correct

FIND
?>

After means put it before.

so it should look like

insertedstuff
?>

GazOutEast

OOOOh - it's a lot easier than I thought then

If you want, I can even spare the 40 seconds needed to make a " manual-mods-readme.txt " file for you to add into the zip package, using plain language instructions for those of us that can't speak squiggly-bracket-square-bracket-slash-dot-chevronese ;)

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

karlbenson

Gaz,don't bother.

The reason I haven't typed them out is that I'm 70% through a complete re-write.
So everything will change.

GazOutEast

Too late - it's done (you just need to add the usual top of file credits and burblings)

Where do I send it?

Gaz
I have 20:20 vision - I can see anything bigger than 20" x 20"

Advertisement: