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.Sponsors - Forum and Category Sponsorship Ads with Statistics (https://vborg.vbsupport.ru/showthread.php?t=131512)

Deviation 11-21-2006 04:55 PM

Quote:

Originally Posted by John1uk (Post 1121615)
is there a way i can have the text "forum sponsored by:" above the small banners on my forum

thanx

john

In forumhome_forumbit_level1_nopost look for:
HTML Code:

$vbphrase[sponsored_by] <a href="vB.Sponsors/link.php?f=$forum[forumid]" title="$forum[sponsor_name]" target="_blank">

                                <if condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">

Add a line break (<br/> tag) after:
HTML Code:

<a href="vB.Sponsors/link.php?f=$forum[forumid]" title="$forum[sponsor_name]" target="_blank">
That should do it. I'm not able to verify that right now though.

John1uk 11-21-2006 06:47 PM

what does "tag" mean plz?

i copied and pasted <br/> tag but no joy......sorry me being a newbie..

Deviation 11-21-2006 07:06 PM

Quote:

Originally Posted by John1uk (Post 1122414)
what does "tag" mean plz?

i copied and pasted <br/> tag but no joy......sorry me being a newbie..

HTMAL tags refer to web page layouts. See http://www.w3schools.com/html/html_primary.asp

popowich 11-21-2006 10:28 PM

Quote:

-Supports large banners for the top of the sponsored forum and small banners for the forum listing
Hello,

Before installing...

Will this support having banners display in the forums but not in the main web page?

I think this might be "enabled small banner - no" and "enable big banner - yes"?

-Raymond

Deviation 11-21-2006 11:19 PM

Quote:

Originally Posted by popowich (Post 1122551)
Hello,

Before installing...

Will this support having banners display in the forums but not in the main web page?

I think this might be "enabled small banner - no" and "enable big banner - yes"?

-Raymond

Hmm. Do you mean not display any sponsors in the main forum listing? Can you clarify this for me?

popowich 11-21-2006 11:38 PM

Quote:

Originally Posted by Deviation (Post 1122597)
Hmm. Do you mean not display any sponsors in the main forum listing? Can you clarify this for me?



Yes, if I go to my site I would not want the main forum listing cluttered with ads,
but if you click into a forum then show the big add in there above the thread listing.

-Raymond

rezapci 11-21-2006 11:48 PM

cool hack, thank you

Deviation 11-22-2006 10:13 AM

Quote:

Originally Posted by popowich (Post 1122616)
Yes, if I go to my site I would not want the main forum listing cluttered with ads,
but if you click into a forum then show the big add in there above the thread listing.

-Raymond

Well no. Not yet anyhow. This seems like an interesting feature. You can, however, specify not to use a sponsor's banner image. This will create a text link with the sponsor's name. This can be done globally or via forum settings.

Screenshot: https://vborg.vbsupport.ru/attachmen...1&d=1164197175

Quote:

Originally Posted by rezapci (Post 1122620)
cool hack, thank you

Glad you like it. If you use it, be sure to click the install link at the top. That way you will be notfied of any updates.

AWJunkies 11-26-2006 11:59 PM

Can you view this mod and use its code to make other sections like posts and pms and so on able to have the same features as you mod?

https://vborg.vbsupport.ru/showthrea...=131150&page=8

Would be nice to have counters and reports etc for all areas of advertisement. Thanks.

irishblacknight 11-27-2006 12:20 AM

The link to the documentation is broken (two x http instead of one :) )

cam2 - old 11-27-2006 12:33 AM

I cannot figure out the correct path. here are the errors i am receiving when I click on the sponsor image...

Warning: chdir(): No such file or directory (errno 2) in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 30

Warning: main(./global.php): failed to open stream: No such file or directory in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/php/include') in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 32


Thanks, any help would be great.

Deviation 11-27-2006 01:01 AM

Quote:

Originally Posted by AWJunkies (Post 1126013)
Can you view this mod and use its code to make other sections like posts and pms and so on able to have the same features as you mod?

https://vborg.vbsupport.ru/showthrea...=131150&page=8

Would be nice to have counters and reports etc for all areas of advertisement. Thanks.

Interesting idea. I saw this mod not to long ago. So are you saying add the ability to have ads appear as posts?

Quote:

Originally Posted by irishblacknight (Post 1126021)
The link to the documentation is broken (two x http instead of one :) )

Fixed; thanks.

Quote:

Originally Posted by cam2 (Post 1126029)
I cannot figure out the correct path. here are the errors i am receiving when I click on the sponsor image...

Warning: chdir(): No such file or directory (errno 2) in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 30

Warning: main(./global.php): failed to open stream: No such file or directory in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/php/include') in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 32


Thanks, any help would be great.

Line 30 in the vB.Sponsors\link.php. Check the path.

TheWhite 11-27-2006 03:28 PM

Can someone post a working link for the guide?

Regards

Deviation 11-27-2006 04:14 PM

Quote:

Originally Posted by TheWhite (Post 1126462)
Can someone post a working link for the guide?

Regards

Its fixed. Kept missing the ":".

thumbsucker 11-27-2006 09:44 PM

Hi,

I have this installed (as well as the VBAdManagement mod).

The sponsorship is displaying in the main category page, but not displaying on the following pages (it just says "Sponsored by" followed by a blank):

http://www.mysite.com/vbulletin/forumdisplay.php?f=31

Also, I'd like the Sponsorship to show on every page of the threads themselves after the Vbulletin navigation bar (e.g. http://www.mysite.com/vbulletin/showthread.php?t=57).

Can someone help? I double-checked the templates and I seem to have made all the appropriate additions.

Here's the code for my forumdisplay template...looks ok no?

<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>

<!-- vBSponsors -->
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
$vboptions[sponsor_global_default_text] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
<if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<if condition="!empty($foruminfo[sponsor_banner_big])">
<if condition="$vboptions[sponsor_global_enable_big_banners] == 1">
<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
<else />
<img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
</if>
<else />
$foruminfo[sponsor_name]
</if>
</if></a>
</if>
<!-- / vBSponsors -->

</tr>
</table>

thumbsucker 11-27-2006 11:05 PM

Do affiliate links work properly with the sponsor links by the way?

AWJunkies 11-27-2006 11:33 PM

Quote:

Originally Posted by cam2 (Post 1126029)
I cannot figure out the correct path. here are the errors i am receiving when I click on the sponsor image...

Warning: chdir(): No such file or directory (errno 2) in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 30

Warning: main(./global.php): failed to open stream: No such file or directory in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/php/include') in /nfs/cust/2/98/81/718892/web/forum/vB.Sponsors/link.php on line 32


Thanks, any help would be great.

I had to change the link.php file to my root. SO in your case you need to move link.php into the forum/ (root) not the forum/vB.Sponsors/ . After you do this though you need to change two snippits of code that show to look at vB.Sponsors/link.php and change those to link.php . I forgot the areas at the moment I did it real fast as a fix. You do it in database directly or unistal the mod and change the vB.Sponsors/link.php to link.php and re-upload and you should be perfectly fine. MAKE sure you move link.php to root forum directory after the changes and works like a charm.

AWJunkies 11-27-2006 11:38 PM

Quote:

Originally Posted by Deviation (Post 1126054)
Interesting idea. I saw this mod not to long ago. So are you saying add the ability to have ads appear as posts?

Download the other mod and test it out and you will see what I mean. The other mod has HUGE functionality and settings but no reporting. The other mod needs reporting. Your mod could use a couple more locations or features. Combine both of yours and you have an ultimate VadMOD.

His allows you to put ads in header/footer/sides of forum/withinposts/within forum (like yours)/ etc with huge functionality to limit by usergroup or posts or this that and other for viewing. There is no reporting though of links for stats purposes for advertisers.

krazycivik 11-28-2006 12:37 AM

yah the instructions dont work

Deviation 11-28-2006 10:06 AM

Quote:

Originally Posted by AWJunkies (Post 1126844)
Download the other mod and test it out and you will see what I mean.

I'll check it out.

Quote:

Originally Posted by krazycivik (Post 1126882)
yah the instructions dont work

They work fine for me. Anyone else having issues?

Quote:

Originally Posted by thumbsucker (Post 1126767)
Hi,

I have this installed (as well as the VBAdManagement mod).

The sponsorship is displaying in the main category page, but not displaying on the following pages (it just says "Sponsored by" followed by a blank):

http://www.mysite.com/vbulletin/forumdisplay.php?f=31

Also, I'd like the Sponsorship to show on every page of the threads themselves after the Vbulletin navigation bar (e.g. http://www.mysite.com/vbulletin/showthread.php?t=57).

Can someone help? I double-checked the templates and I seem to have made all the appropriate additions.

Check the URL for the banner image (in the forum settings). You must specify one or set the option to not display the banner ad.

thumbsucker 11-28-2006 10:45 AM

Quote:

Originally Posted by Deviation (Post 1127138)
I'll check it out.


They work fine for me. Anyone else having issues?


Check the URL for the banner image (in the forum settings). You must specify one or set the option to not display the banner ad.


Yup, I did that but it's still not displaying in the forumdisplay page.

Can you take a look at let me know what might be the problem? Would hate to not use the mod because it works at the main cat level, just not forumdisplay.

cam2 - old 11-28-2006 12:29 PM

Quote:

Originally Posted by AWJunkies (Post 1126836)
I had to change the link.php file to my root. SO in your case you need to move link.php into the forum/ (root) not the forum/vB.Sponsors/ . After you do this though you need to change two snippits of code that show to look at vB.Sponsors/link.php and change those to link.php . I forgot the areas at the moment I did it real fast as a fix. You do it in database directly or unistal the mod and change the vB.Sponsors/link.php to link.php and re-upload and you should be perfectly fine. MAKE sure you move link.php to root forum directory after the changes and works like a charm.

Thanks for the response. Do I make these changes in the XML file and then re upload?

Deviation 11-28-2006 12:35 PM

Quote:

Originally Posted by AWJunkies (Post 1126836)
I had to change the link.php file to my root. SO in your case you need to move link.php into the forum/ (root) not the forum/vB.Sponsors/ . After you do this though you need to change two snippits of code that show to look at vB.Sponsors/link.php and change those to link.php . I forgot the areas at the moment I did it real fast as a fix. You do it in database directly or unistal the mod and change the vB.Sponsors/link.php to link.php and re-upload and you should be perfectly fine. MAKE sure you move link.php to root forum directory after the changes and works like a charm.

Quote:

Originally Posted by cam2 (Post 1127228)
Thanks for the response. Do I make these changes in the XML file and then re upload?

I'd be hesitant of making code changes and file location changes. When updates come out you could end up broken again.

There's no reason it shouldn't work with the forum path specified correctly in the link.php file. Keep in mind the vB.Sponsors directory is case sensitive. There is a file included that you can use to get the correct path. See the documentation for details.

cam2 - old 11-28-2006 01:34 PM

Basically I need to get the right path on the link file right?

Deviation 11-28-2006 02:24 PM

Quote:

Originally Posted by cam2 (Post 1127261)
Basically I need to get the right path on the link file right?

Yes. If your forum is located in /usr/com/userid/forums/, the path would be /usr/com/userid/forums/vB.Sponsors/.

See http://www.digitaldeviation.com/content/view/57/20/ for more info.

cam2 - old 11-28-2006 03:56 PM

I appreciate your help. It works perfectly...

PossumX 11-30-2006 01:37 AM

How do I go about centering the large banners in the actual forum view?

lifesourcerec 12-03-2006 08:19 AM

I get this error trying to add a sponsor:

Fatal error: Field sponsor_enabled is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485

MrPHD 12-03-2006 09:08 AM

Installed, rnning and nice a 100%. Thanks

MrPHD 12-03-2006 09:25 AM

To Edit FORUM DISPLAY and FORUM HOME
----------------------------------------
Installation guide for vB.Sponsors 2.0.
Product Installation
Extract the contents of vB.Sponsors.zip to your computer
Open upload/vB.Sponsors/link.php in notepad, wordpad or similar editor.
On line 30, enter the path to your forum. This is the physical path not the URL. If your forum is located in /usr/com/userid/forums/, the path would be /usr/com/userid/forums/vB.Sponsors/
You can find the physical path to your forum directory by uploading and running the settings-check.php file that is in the do not upload/vB.Sponsors directory to the vB.Sponsors directory on your web server. Please delete this file when you are done.

Upload the files in the upload directory to the corresponding directory on the web server under the forum directory.
Open the Admin CP of your board. On the left hand side scroll down to Plugins & Products.
Click on Manage Products.
Click on Add/Import Product.
Click on Browse... and choose the vB.Sponsors-product.xml file.
Click Import.

Template Installation

You will need to modify the templates of your style(s). Sample template code is included with the download. This is for the default vBulletin style only. I highly recommend that you create a test style to apply template changes before you commit them to your regular styles.

forumhome_forumbit_level1_nopost
FIND:
Code:

<if condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
ADD, AFTER:
Code:

<!-- vBSponsors -->
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<div style="float:$stylevar[right]">
$vboptions[sponsor_global_default_text] <a href="vB.Sponsors/link.php?f=$forum[forumid]" title="$forum[sponsor_name]" target="_blank">
<if condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<img src="$forum[sponsor_banner]" alt="$forum[sponsor_name]" border="0" />
<else />
$forum[sponsor_name]
</if></a>
</div>
</if>
<!-- / vBSponsors -->

forumhome_forumbit_level2_post
FIND:
Code:

<div>
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
</div>

ADD, AFTER:
Code:

<!-- vBSponsors -->
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<div style="float:$stylevar[right]">
$vboptions[sponsor_global_default_text] <a href="vB.Sponsors/link.php?f=$forum[forumid]" title="$forum[sponsor_name]" target="_blank">
<if condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<img src="$forum[sponsor_banner]" alt="$forum[sponsor_name]" border="0" />
<else />
$forum[sponsor_name]
</if>
</a>
</div>
</if>
<!-- / vBSponsors -->

FORUMDISPLAY
FIND:
Code:

<if condition="$pagenav"><td align="$stylevar[right]">$pagenav</td></if>
ADD, AFTER:
Code:

<!-- vBSponsors -->
<if condition="$foruminfo[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
$vboptions[sponsor_global_default_text] <a href="vB.Sponsors/link.php?f=$foruminfo[forumid]" title="$foruminfo[sponsor_name]" target="_blank">
<if condition="$foruminfo[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<if condition="!empty($foruminfo[sponsor_banner_big])">
<if condition="$vboptions[sponsor_global_enable_big_banners] == 1">
<img src="$foruminfo[sponsor_banner_big]" alt="$foruminfo[sponsor_name]" border="0" />
<else />
<img src="$foruminfo[sponsor_banner]" alt="$foruminfo[sponsor_name]" border="0" />
</if>
<else />
$foruminfo[sponsor_name]
</if>
</if></a>
</if>
<!-- / vBSponsors -->

forumhome_forumbit_level1_post
FIND:
Code:

<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
</td>
</tr>
</table>

ADD, AFTER:
Code:

<!-- vBSponsors -->
<if condition="$forum[sponsor_enabled] == 1 AND $vboptions[sponsor_global_enable_sponsorship] == 1">
<div style="float:$stylevar[right]">
$vboptions[sponsor_global_default_text] <a href="vB.Sponsors/link.php?f=$forum[forumid]" title="$forum[sponsor_name]" target="_blank">
<if condition="$forum[sponsor_banner_enabled] == 1 AND $vboptions[sponsor_global_enable_banners] == 1">
<img src="$forum[sponsor_banner]" alt="$forum[sponsor_name]" border="0" />
<else />
$forum[sponsor_name]
</if>
</a>
</div>
</if>
<!-- / vBSponsors -->

Best Regards.

Deviation 12-04-2006 01:21 AM

Quote:

Originally Posted by lifesourcerec (Post 1130595)
I get this error trying to add a sponsor:

Fatal error: Field sponsor_enabled is not defined in $validfields in class vb_datamanager_forum in /includes/class_dm.php on line 485

The install likely failed. It didn't add the fields to the table. Rerun the install. Be sure to check the "Allow Overwrite" option.

Quote:

Originally Posted by MrPHD (Post 1130626)
Best Regards.

Why did you post the install instructions?:confused: The link is provided at the top. I use the website since its easier to maintain changes (easier than uploading a new file everytime).

TheWhite 12-06-2006 01:17 AM

Warning: main(./global.php): failed to open stream: No such file or directory in /home/content/a/c/2/ddddddd/html/vB.Sponsors/link.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/content/a/c/2/dddddd/html/vB.Sponsors/link.php on line 32

Deviation 12-06-2006 01:21 AM

Quote:

Originally Posted by TheWhite (Post 1132909)
Warning: main(./global.php): failed to open stream: No such file or directory in /home/content/a/c/2/ddddddd/html/vB.Sponsors/link.php on line 32

Fatal error: main(): Failed opening required './global.php' (include_path='.:/usr/local/lib/php') in /home/content/a/c/2/dddddd/html/vB.Sponsors/link.php on line 32

Check line 30 in link.php. Please see: http://www.digitaldeviation.com/content/view/57/20/

DeeperImage 12-08-2006 03:42 AM

How the heck do I get the large rotating banners to show up? The small ones are working like a charm, but i've added the URLs for the large ones and nothig shows, am I missing something?

Deviation 12-08-2006 11:06 AM

Quote:

Originally Posted by DeeperImage (Post 1134301)
How the heck do I get the large rotating banners to show up? The small ones are working like a charm, but i've added the URLs for the large ones and nothig shows, am I missing something?

Check your FORUMDISPLAY template. Be sure you made the required changes.

DeeperImage 12-08-2006 03:56 PM

Quote:

Originally Posted by Deviation (Post 1134459)
Check your FORUMDISPLAY template. Be sure you made the required changes.

I'm just a fool, I thought the big banners would rotate on the top header also, I was looking at a few hacks and must of gotten them confused. Is there any way to have the large banners rotate on the top header?

Deviation 12-08-2006 03:59 PM

Quote:

Originally Posted by DeeperImage (Post 1134619)
I'm just a fool, I thought the big banners would rotate on the top header also, I was looking at a few hacks and must of gotten them confused. Is there any way to have the large banners rotate on the top header?

Banner rotation isn't supported yet. Unless you mean using animated banners.

Banner rotation is in the works though.

00stanggt 12-13-2006 09:49 AM

[13-Dec-2006 06:46:12] PHP Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/ec7f/public_html/vb/vB.Sponsors/link.php on line 32 [13-Dec-2006 06:46:12] PHP Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ec7f/public_html/vb/vB.Sponsors/link.php on line 32

I know ur going to say to check line 30 so here is line 30

chdir('/home/ec7f/public_html/vb/vB.Sponsors/');

I believe that is exactly how settings-check.php says to put it still having the global.php error.

Please PM me with a solution.

Deviation 12-13-2006 10:43 AM

Quote:

Originally Posted by 00stanggt (Post 1137666)
I know ur going to say to check line 30 so here is line 30

chdir('/home/ec7f/public_html/vb/vB.Sponsors/');

I believe that is exactly how settings-check.php says to put it still having the global.php error.

It should be /home/ec7f/public_html/vb/. There was a misprint in the install guide. Sorry about that. settings-check.php would have given you the correct path.

00stanggt 12-13-2006 08:42 PM

well ty sir it works great now. I saw it did give me both and i thought i tried them both but i guess not. I appriciate the help.


All times are GMT. The time now is 01:58 AM.

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.01563 seconds
  • Memory Usage 1,884KB
  • 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
  • (8)bbcode_code_printable
  • (2)bbcode_html_printable
  • (28)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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