vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add "Sponsored by" banners to your forum categories (https://vborg.vbsupport.ru/showthread.php?t=26818)

LuBi 12-06-2001 12:28 AM

Quote:

Originally posted by amykhar
Firefly's first post.

Amy

I did that, and nothing happened. No errors but nothing showed up..

http://www.suprascene.com/supraforums

Lionel 12-18-2001 01:51 PM

Quote:

Originally posted by amykhar
I extended this hack a bit to put a sponsor ad in a particular forum.

and forumdisplay_sponsoredby was included in the list of required templates.
Amy

I tried that, it does not show... Please where do you include the required templates? I placed them twice in forumdisplay.php with all others.

I got it to work on the main page. It is the forumdisplay that does not show. I am using 2.21

Lionel 12-20-2001 04:07 PM

I tried to extend the hack so image shows in forumdisplay but it does not work. The only thing that I am not sure is where to include the template in what list?

amykhar 12-20-2001 05:03 PM

I put mine in the forum display template, right above the $forumslist variable.

Amy

Lionel 12-20-2001 05:17 PM

I meant
forumdisplay_sponsoredby
you said that you placed it in the list of required templates.

Where is that list?

amykhar 12-20-2001 05:25 PM

Ah gotcha!

There is a link to add new templates. Click the link, pick the template set that you want to use it in, and then paste in the code that I supplied.

Amy

Lionel 12-20-2001 05:30 PM

I did all that before. I thought you meant to place it in forumdisplay.php templatesused=

Any way I can't get it to work on forum display. On main page it is fine...

Lionel 12-20-2001 05:47 PM

I got it to work but it is not what I was hoping. Maybe you can help?

Look here and you will see image. Click on main category. This is where I wanted to show it also. Yours shows in Forum 1 which is even great.

amykhar 12-20-2001 06:15 PM

I fixed that on mine as well.

Right now, you placed the code somewhere beneath this

PHP Code:

if ($foruminfo['allowposting']==1

Cut out the code that you added, and paste it right below this instead.

PHP Code:

unset($imodcache); 

Right now, the code is placed only in forums that allow posting. Moving it up a bit gets it on the category pages as well. I don't have the exact code for you because I am no longer running this exact hack.

Amy

hypedave 12-25-2001 05:58 PM

can someone edit my forum.php file. I have tryed and still can get it to work, thanks

bira 12-26-2001 11:19 AM

hypedave,

Please note that posting entire vBulletin scripts is not allowed.

Thanks,

Bira

hypedave 12-26-2001 11:30 AM

yeah I forgot about that, oops sorry, well can someone still help me out, oh yeah, I hate it when people call me hyperdave

if I wanted an r in hype I would add one, thanks :)

Okiewan 01-10-2002 10:21 PM

First of all... great hack firefly... nice mods too amykhar!

Got it working great on forum home and forum display... now trying to get it to show-up on threads, ie; if a forum is sponsored, the threads within that forum inherit the sponsor and display it on each thread.

tried building duplicate template called sponsoredby_thread, with the following:

PHP Code:

<a href="$foruminfo[sponsorurl]target="_blank"><img src="{imagesfolder}/$foruminfo[sponsorimg]border="1" alt="This Forum Made Possible by $foruminfo[sponsorname]"></a

Modified showthread per iinstructions found here, calling that new template.

Added "$sponsoredby" in the template showthread...

Seems to be some kind of path issue? Picks up a holdedr for the image (including alt text), but no sponsor image and no link.

Any ideas? Am I doing this all wrong?

Thanks in advance for any assistance and thanks again for the hack. VERY useful.

rawnet 01-11-2002 08:00 PM

Hello,

I have followed the steps and added some sponsors in my admin system.

Unfortunately, they are not showing up on my Forums homepage where they should be. When I go to edit the admin, it does not pre-fill in the form fields for sponsor information.

Can anybody shed any light on this?

All the best,

Kind Regards,

Ross Williams

rawnet 01-12-2002 12:05 PM

PLEASE - can anybody help? I know this hack has been around for a while, and I've been looking forward to installing it, but for some reason no sponsors are appearing on my forums homepage (http://www.servicepals.com/forums). I'm running vBulletin 2.2.1 and vbPortal.

I can add visitors in the backend, but when I go to edit that forum again, the input fields are not pre-filled with the info I just entered. Is this normal?

The forums are not showing up on my front end, but I would like to clarify the backend first to diagnose what the problem is...sniff sniff... :(

Cheers for now,

Ross

Admin 01-12-2002 12:19 PM

Start with the original forum.php file, and re-install the hack on it.

rawnet 01-12-2002 12:32 PM

Hi Firefly,

Will do - how likely is this to solve the problem? Has my phenomena been seen before?

Ross

rawnet 01-12-2002 12:50 PM

SUCCESS.

I suspect that I'd missed one of the queries out on the forum.php part of the hack.

All working now.

Anybody know how I can incorporate a Commission Junction Smartzone into this code? Reason being that I'd like to rotate the sponsors of each forums without input on my part (I is a lazy bugger).

Cheers for now,

Ross

rawnet 01-12-2002 01:45 PM

Hello,

I've been trying to incorporate Amy's addition, allowing us to display the sponsor at the top of the forum. Have modified forumdisplay.php, created the new template, but am having problems with this bit :

Quote:

and forumdisplay_sponsoredby was included in the list of required templates.
Where do I define this?

Hugely impressed with this hack guys,

Cheers,

Ross

Okiewan 01-12-2002 07:54 PM

add it to the section "$templatesused="

Now if I could get some help with my problem above I would be most thankful! Gotta have it! :)

DiSS Troya 01-12-2002 09:23 PM

appreciate the hack!

Okiewan 01-14-2002 05:11 PM

Anyone ? Purdy Please?



First of all... great hack firefly... nice mods too amykhar!

Got it working great on forum home and forum display... now trying to get it to show-up on threads, ie; if a forum is sponsored, the threads within that forum inherit the sponsor and display it on each thread.

tried building duplicate template called sponsoredby_thread, with the following:

PHP Code:

<a href="$foruminfo[sponsorurl]target="_blank"><img src="{imagesfolder}/$foruminfo[sponsorimg]border="1" alt="This Forum Made Possible by $foruminfo[sponsorname]"></a


Modified showthread per iinstructions found here, calling that new template.

Added "$sponsoredby" in the template showthread...

Seems to be some kind of path issue? Picks up a holdedr for the image (including alt text), but no sponsor image and no link.

Any ideas? Am I doing this all wrong?

Thanks in advance for any assistance and thanks again for the hack. VERY useful.

Okiewan 01-16-2002 01:36 PM

Okay, I'm guessing one of the following:

1) No one cares
2) No one has time
3) It can't be done
4) I'm invisable

It would be cool to at least find out why the "sponsor in threads" question isn't being answered... I'd know rather to give-up on it or not.

?

Admin 01-16-2002 01:39 PM

Try using the $forum array instead of $foruminfo in your sponsoredby_thread template. :)

Okiewan 01-16-2002 01:56 PM

AH HA!
Thanks a lot FireFly... that worked.

Admin 01-16-2002 02:12 PM

[QUOTE]Originally posted by Okiewan
AH HA!
Thanks a lot FireFly... that worked.

Ninth Dimension 01-24-2002 09:34 AM

Cool hack, worked fantasticly first time, thank you.

X-Fan 01-28-2002 11:35 AM

Quote:

Originally posted by FireFly
[B][Currently it only supports categories from level 1, and only on forum index. -if you want more please tell and I'll see what I can do.
Great hack, firefly, especially for my forum which, when it goes live, will be sponsored by an online store.

It would be fantastic if you could make it so that sponsored by graphics can show up on forums as well - perhaps by inheriting the sponsor info from the parent category?

I have no idea how to do that, though, so could you possibly create a new step-by-step hack to do that?

Airwaves 02-04-2002 09:26 AM

working with vb2.2.2 ?

http://www.mobile-forum.com - just upgraded to 2.2.2

I have the bg image from the sitepoint forums sponsor cells and it should go lovely with my colour scheme, how do i have it as the bg image in the sponser cells on my site??

also, how do I get the image to be to the RIGHT instead of the left?

importmix 02-04-2002 02:30 PM

great hack fly!

i also added amy's hack, but it didn't seem to work. i want the same ad from fly's hack to show on the corresponding threads, sub-forums....so on.

Airwaves 02-05-2002 05:32 PM

finally, i get the button the right, and the image in the background, but the bg image 'tiles' and i do not want it to, you can see the banner on the forums at http://www.airwavescomms.co.uk/forums

here is the code I am using, can someone please modify it to not get the image to tile, I think CSS is my answer, but, i am defo no good at that.. so i beg you please help me!

PHP Code:

<tr id="cat">
    <
td bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif" colspan="2"><a href="forumdisplay.php?s=$session[sessionhash]&forumid=$forum[forumid]"><normalfont color="#000000"><b>$forum[title]</b></normalfont></a>
    <
br><smallfont color="#000000">$forum[description]</smallfont></td>
    <
td colspan="4" background="http://www.airwavescomms.co.uk/forum/images/spsback.gif"><a href="$forum[sponsorurl]target="_blank"><img src="http://www.airwavescomms.co.uk/forum/images/$forum[sponsorimg]border="0" align="right" width="88" height="31" alt="Proudly sponsored by $forum[sponsorname]"></a></td>
</
tr

i use {imagesfolder } instead of the full URL however, but vb.org decided to parse that and put its own link there.... :confused:

extreme_old 02-06-2002 01:58 PM

Great hack!!

I have installed the hack now, but how do I then decided what banner to show in each catagories? What's the size of the banners?

Ninth Dimension 02-06-2002 03:08 PM

All customisation and design of the banners is up to you, you set them up as you see fit, however I personally have gone for 210x37 images

extreme_old 02-06-2002 07:26 PM

ok, but where do I set which banner for with catagory. I mean I what .php site or template and how? I want to use a difference banner for all catagories and how to I set the url too?? Please help, or paste some code that shows me what to do?

Thanks

Airwaves 02-06-2002 07:34 PM

the banners can be set up in the forum category properties in admin cp.

each category can have a differnet banner this way

extreme_old 02-07-2002 02:08 PM

What's wrong here:

Database error in vBulletin Control Panel 2.2.1:

Invalid SQL: UPDATE forum
SET
styleid='1', title='General', description='',
active='1', displayorder='1', parentid='-1', parentlist='10,-1',
allowposting='1', cancontainthreads='0',
sponsorname='2pass',sponsorimg='2pass.gif',
sponsorurl='http://www.mysponsor.com/cgi-bin/tts-in.cgi?1020207-0',daysprune='30',
newpostemail='', newthreademail='',
moderatenew='0', allowhtml='0', allowbbcode='1',
allowimages='0', allowsmilies='1', allowicons='1',
styleoverride='0', allowratings='1', countposts='1',
moderateattach='0'
WHERE forumid='10'
mysql error: Unknown column 'sponsorname' in 'field list'

mysql error number: 1054

I have made all the changes that Firefly describes and. I'am running version 2.2.1

freehtml 03-10-2002 01:48 PM

will this work on version 2.2.3 also?

Admin 03-10-2002 04:37 PM

Yup it should.

Floris 03-14-2002 08:35 PM

and 2.2.4 ?

trainer 03-15-2002 04:08 AM

could one of the pros help explain how to add-on the specific sponsor for each forum so it carries over to the threads in that forum.


All times are GMT. The time now is 10:27 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.01589 seconds
  • Memory Usage 1,843KB
  • 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
  • (5)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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