vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - vB Ad Management 4 (https://vborg.vbsupport.ru/showthread.php?t=131150)

Smiry Kin's 09-25-2007 10:08 PM

Nope, i thought it was <script> but it wasnt, it was infact the column being put below the footer.

i moved the code into the header.. and now i get this
http://www.resellerclubtalk.com/ot/advert-placement.gif

:s

kyokushin4life 09-26-2007 02:59 AM

Ah I fixed it. I happned to have only 6 php files uploaded to /includes/.

There are 7 files. cheers.

MDK-Indy 09-28-2007 10:01 AM

Salü,

her is the german language for the vB Ad Management 3.1 (Ad Sharing Edition).

If you find any error, tell me and i fix it...
For Donation the Translation look at GWars.de.

Have fun.

greetings Indy

RedTyger 09-28-2007 10:32 AM

Thanks for that. :) Phrases are completely separate in the next version, so you can distribute translation files on your own website or wherever you want.

AFemaleProdigy 10-01-2007 07:02 PM

Hey RedTyger! I have seen other people asking for this throughout this site, but no one has been answered or no one knows an answer.

I have created my custom field that will allow the user to insert just their Google Id. I have set up the usergroups that I want to have access to it in vB Ad control panel. However, what I really need to do is set that custom field to only be accessable by certain usergroups. I know that you can disable the ad sharing through the admin cp, but the custom field will still be displayed while nonfunctional... thus confusing members who see it and don't why it isn't working for them.

I am thinking there would be some way to set up some sort of conditional statement to make that custom field viewable by certain usergroups, but I don't know how to write that stuff or where to put it. Any ideas?

Also, I used your instructions to create a new custom block (displayed with the header/footer admin section) and it worked, but one small issue. Everything is functional with this new block, but there is no text showing up telling you what you are looking at in the admin area. The text areas and checkboxes are there, but no labels or descriptions. Did I miss something? Thanks!

https://vborg.vbsupport.ru/external/2007/10/36.jpg

AFemaleProdigy 10-02-2007 01:34 PM

Hmm... I hate to say this, and maybe I am just missing something, but I think part of the description of this mod is a little misleading. You explain how ad sharing can be enabled/disabled per usergroup, but I think the wording is confusing. The way I read it, I assumed this meant that by disabling certain usergroups, you were preventing that group from inserting their own ad code. However, what actually happens when you enter a usergroup to be disabled, it completely turns off the option for that group to view the shared ads. This is a big problem for me and for others, I am sure.

I want ALL usergroups to be able to view the shared ads at all times. But, I want to only allow my "Ad Sharing" usergroup to enter and display their ad code. So if I try to enter only my "Ad Sharing" group in the "enable ad sharing" section of the cp, then only that group is able to view the shared ads. It blocks every other group from viewing the shared ads. So, then I ad the other groups to the "enable ad sharing" section of the cp and now they can all see the ads, but also anyone will be able to insert their own ad code which is a whole new problem.

This is what's happening....

Scenario 1:

IF ONLY "Ad Sharing" usergroup enabled = all access (viewing and inserting code)
THEN All other usergroups disabled = cannot insert code OR VIEW (need to be able to view)

Scenario 2:

IF ALL usergroups enabled = all access (viewing AND inserting code)

So this is the desired result which I can't seem to get...

"Ad Sharing" usergroup enabled = all access (viewing and inserting code)
All other usergroups = only access to viewing (no option to insert code)

I hope I explained that ok. Forgive me if I just completely missed something that would eliminate this problem. This is why I believe it would be a really good solution to figure out how to make the custom user fields viewable only by set usergroups.

RedTyger 10-02-2007 02:35 PM

Quote:

Originally Posted by AFemaleProdigy (Post 1350910)
Hey RedTyger! I have seen other people asking for this throughout this site, but no one has been answered or no one knows an answer.

I have created my custom field that will allow the user to insert just their Google Id. I have set up the usergroups that I want to have access to it in vB Ad control panel. However, what I really need to do is set that custom field to only be accessable by certain usergroups. I know that you can disable the ad sharing through the admin cp, but the custom field will still be displayed while nonfunctional... thus confusing members who see it and don't why it isn't working for them.

I am thinking there would be some way to set up some sort of conditional statement to make that custom field viewable by certain usergroups, but I don't know how to write that stuff or where to put it. Any ideas?

That ability is missing from vBulletin. Originally I wrote an FAQ entry about ad sharing for ad sharing forums using the modification, but I can't use conditionals and it would be unfair to advertise adsharing on forums that have disabled it, so I never included it. A suggestion for Jelsoft I guess, although I think it's already been asked for.

I'd suggest just explaining in the custom field description. Even if conditionals were used, inevitably someone will ask on the forum about it and much the same explanation will have to be put forward anyway for everyone else. It's a comparatively sizable job for a very small change, not something I want to do I'm afraid.


Quote:

Originally Posted by AFemaleProdigy (Post 1350910)
Also, I used your instructions to create a new custom block (displayed with the header/footer admin section) and it worked, but one small issue. Everything is functional with this new block, but there is no text showing up telling you what you are looking at in the admin area. The text areas and checkboxes are there, but no labels or descriptions. Did I miss something? Thanks!

http://www.jessicabolin.com/temp/vb-...re-problem.jpg


Oops, it's been missing from the instructions all this time and nobody ever said! Sorry.

In vb_ad_management_314.xml
FIND:
Code:

<phrase name="setting_adintegrate_footer_adcode_rand_desc"><![CDATA[If you want to use random rotations, enter your Adcodes here separated by your delimiter. You can put each set of code on a new line to organise them better as long as each line (except the last!) has a | at the end.]]></phrase>
ADD BELOW:
Code:

                <phrase name="setting_adintegrate_custom_onoff_title"><![CDATA[Enable custom advertisements in main forum?]]></phrase>
                <phrase name="setting_adintegrate_custom_onoff_desc"><![CDATA[Choose Yes to enable custom advertisements in your main forum]]></phrase>
                <phrase name="setting_adintegrate_custom_archives_onoff_title"><![CDATA[Enable custom advertisements in the archives?]]></phrase>
                <phrase name="setting_adintegrate_custom_archives_onoff_desc"><![CDATA[Choose Yes to enable custom advertisements in your archives.]]></phrase>
                <phrase name="setting_adintegrate_custom_adcode_title"><![CDATA[custom static advertisement code]]></phrase>
                <phrase name="setting_adintegrate_custom_adcode_desc"><![CDATA[Paste the code for your advertisement here. If you wish to use random code you must leave this blank, you cannot mix the two.]]></phrase>
                <phrase name="setting_adintegrate_custom_adcode_rand_title"><![CDATA[custom random advertisement code]]></phrase>
                <phrase name="setting_adintegrate_custom_adcode_rand_desc"><![CDATA[If you want to use random rotations, enter your Adcodes here separated by your delimiter. You can put each set of code on a new line to organise them better as long as each line (except the last!) has a | at the end.]]></phrase>



Quote:

Originally Posted by AFemaleProdigy (Post 1351428)
Hmm... I hate to say this, and maybe I am just missing something, but I think part of the description of this mod is a little misleading. You explain how ad sharing can be enabled/disabled per usergroup, but I think the wording is confusing. The way I read it, I assumed this meant that by disabling certain usergroups, you were preventing that group from inserting their own ad code. However, what actually happens when you enter a usergroup to be disabled, it completely turns off the option for that group to view the shared ads. This is a big problem for me and for others, I am sure.

I want ALL usergroups to be able to view the shared ads at all times. But, I want to only allow my "Ad Sharing" usergroup to enter and display their ad code. So if I try to enter only my "Ad Sharing" group in the "enable ad sharing" section of the cp, then only that group is able to view the shared ads. It blocks every other group from viewing the shared ads. So, then I ad the other groups to the "enable ad sharing" section of the cp and now they can all see the ads, but also anyone will be able to insert their own ad code which is a whole new problem.

This is what's happening....

Scenario 1:

IF ONLY "Ad Sharing" usergroup enabled = all access (viewing and inserting code)
THEN All other usergroups disabled = cannot insert code OR VIEW (need to be able to view)

Scenario 2:

IF ALL usergroups enabled = all access (viewing AND inserting code)

So this is the desired result which I can't seem to get...

"Ad Sharing" usergroup enabled = all access (viewing and inserting code)
All other usergroups = only access to viewing (no option to insert code)

I hope I explained that ok. Forgive me if I just completely missed something that would eliminate this problem. This is why I believe it would be a really good solution to figure out how to make the custom user fields viewable only by set usergroups.

Can anyone else confirm this? Originally that is how I mistakenly wrote it to work, but I thought that this fix in the changelog changed it to function properly: v3.1 Fixed usergroup and userid banning for shared adcode, again now they actually work. What should be happening is that users banned from sharing will see the admin's default code at all times. If that's what's not happening, that's what will happen when I've fixed it.

AFemaleProdigy 10-02-2007 03:23 PM

Quote:

It's a comparatively sizable job for a very small change, not something I want to do I'm afraid.
That is depressing, but I understand. Thanks. I will have to figure out something.

Quote:

Oops, it's been missing from the instructions all this time and nobody ever said!
Haha! No problem. You have done a lot of work here so I won't hold it against you. ;)

Quote:

What should be happening is that users banned from sharing will see the admin's default code at all times.
My bad... I worded that wrong. Yes, it is showing the default admin code when the group is disabled. The problem is that I was trying to make the disabled group only unable to add their own code (make use of the ad sharing), but still be able to view ALL other's shared code (not just the admin's). SO, I thought disabled would mean that group had no abillity to insert shared code, but still the abillity to view SHARED ads... not just admin's ads only. Does that make more sense? Sorry.

By the way, I love this mod! Don't want you to think I was complaining too much! Haha! :D

AFemaleProdigy 10-02-2007 03:33 PM

Also, I just made the changes to vb_ad_management_314.xml
and ran the import with the "Allow Overwrite" set to yes, but I am not seeing any changes to the custom block. Do I need to completely reinstall everything for this to work or should just importing do the trick?

RedTyger 10-02-2007 07:56 PM

Quote:

Originally Posted by AFemaleProdigy (Post 1351492)
That is depressing, but I understand. Thanks. I will have to figure out something.

I take it back, I thought of a way to do it and it seems to work OK. It'll be in the next release.


Quote:

Originally Posted by AFemaleProdigy (Post 1351492)
My bad... I worded that wrong. Yes, it is showing the default admin code when the group is disabled. The problem is that I was trying to make the disabled group only unable to add their own code (make use of the ad sharing), but still be able to view ALL other's shared code (not just the admin's). SO, I thought disabled would mean that group had no abillity to insert shared code, but still the abillity to view SHARED ads... not just admin's ads only. Does that make more sense? Sorry.

I was getting confused between versions, the perils of using a version that's completely different to the one I'm supporting! How you described is how it should work, if it doesn't then it's a bug. I'll take a look.




Quote:

Originally Posted by AFemaleProdigy (Post 1351501)
Also, I just made the changes to vb_ad_management_314.xml
and ran the import with the "Allow Overwrite" set to yes, but I am not seeing any changes to the custom block. Do I need to completely reinstall everything for this to work or should just importing do the trick?

I can't test it as I'm working on the next version and can't easily roll back, but it should work. All it does is add a label, as long as you can remember what it's for...

The next version does not require editing the code to add new adcode blocks, so I'd be obliged if you could wait for the easier solution please!


All times are GMT. The time now is 06:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03302 seconds
  • Memory Usage 1,798KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete