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)

retinax 02-14-2003 10:27 PM

Amy,
Thanks for posting.. Well I am under the assumption that the "categories" are the five "all white" (not gray on the left) forums and then the others are the the level 2 forums.. ? There is also another "test" category at the bottom that I just added.
James

amykhar 02-15-2003 01:38 AM

No. Categories won't have the Posts, Threads, Last Posts information. They are a single row all the way across. Look at my board. An example of a category is "Epinions"

You need to set your categories to not act as forums.

Amy

retinax 02-15-2003 08:05 AM

Amy,
YOU ARE A LIFESAVER!!! I spent 3 hours trying different things this morning......... and just from your post I was able to figure it out in 2 minutes! I had no idea that "act as a forum" was even an option in the control panel.. I set it to "no" and the banner shows up! Great!
Thanks a LOT!
James

amykhar 02-15-2003 02:02 PM

No problem :)

Lexserv 03-14-2003 08:48 AM

Does this hack work with vBulletin version 2.3.0; can someone confirm, please?

SVTBlackLight01 03-15-2003 12:19 AM

Quote:

02-11-03 at 05:26 PM cymru2000 said this in Post #278


In
PHP Code:

forumhome_forumbit_level1_nopost_sponsor 

I Put
PHP Code:

<img src="$forum[sponsorimg]border="0" alt="Proudly sponsored by  $forum[sponsorname]"

in relace of
PHP Code:

<img src="https://vborg.vbsupport.ru/images/$forum[sponsorimg]border="0" alt="Proudly sponsored by $forum[sponsorname]"



And then in the admin panel just put in the full URL to the image, instead of a partial URL. This image URL can be those given by CJ.

Just make sure you use a small sponsorship image!


I just got around to making this change. The only problem I'm having is that the text field isn't long enough for the entire URL.

nissanpower 03-16-2003 04:47 AM

Yes, I just installed it on vbulletin version 2.3.0 and it works fine! Feel free to give it a try. It works fine.

The hack refers users to specific lines in forum.php to replace information, but the lines do not match the number indicated. Just use your "find" and search for the wording instead of looking for the exact line in the file.

Other then that, works like a charm!!

Regards,
Gabriel

ehask 05-01-2003 03:06 AM

Error:
Parse error: parse error, unexpected ')' in {edited}admin/forum.php on line 143

Line 143:
(NULL,'$styleset','".$title)."','".$description)." ','$isactive','$displayorder', '$parentid',

I would guess it doesnt like .$title).'" and $description).'" Is there a work around for this???

Thx

Eric

GunsNetwork 05-08-2003 03:56 AM

OK, I understand this and I have installed it and works. Now then how do you get this installed on the forumdisplay.php to work correctly.

I tried replacing the same info like on the index.php page. Well I got a surprise when I refreshed my forums, BIG BLUE SCREEN with little folders, lol

Can someone make this happen not on the index page but on the forums CATAGORY areas???

This would be nice if I could get some help on this ...

thank you

midnightz 05-18-2003 10:51 PM

Hi I Love this hack, but I am looking for a heads up on how they do the sponsered by at graphic-forums.com. Its a simple

sponsered by: blah - blah- blah (link) i wanted to maybe place a graphical badge there 88*100. I tried doing it in HTML but I ran out of room in the forum descriptions section.

I have seen this once before and I would like to use it isolated not with fireflys hack... any leads or help...

Thanks,

midz

SVTBlackLight01 05-18-2003 11:39 PM

Try this:

https://vborg.vbsupport.ru/showthrea...ht=description

bgray 06-01-2003 02:29 PM

I've already got my main page tables altered. Does anyone know if this hack/template change will work out of the box for me with the way I have the forum at about 80% and on the left side?

www.sportscardforum.com

Thanks,

BGray

monstergamer 07-01-2003 08:40 AM

i have moded forum 2.3 with the store hack in it
so i moded it a little
and now i get a database error

PHP Code:

   Database error in vBulletin Control Panel 2.3.0:

Invalid SQLUPDATE forum 
                   SET 
                     styleid
='1'title='General'description=''
                     
active='1'displayorder='1'parentid='-1'parentlist='1,-1'
                     
allowposting='0'cancontainthreads='0'
                     
sponsorname='test',sponsorimg='88x31-1.gif'
                     
sponsorurl='www.monstergamer.net',daysprune='0'
                     
newpostemail=''newthreademail=''
                     
moderatenew='0'allowhtml='0'allowbbcode='1'
                     
allowimages='1'allowsmilies='1'allowicons='1'
                     
styleoverride='0'allowratings='1'countposts='1'
                     
moderateattach='0'storereply='0'storethread='0
                   WHERE forumid='
1'
mysql error: You have an error in your SQL syntax near '
1'' at line 12

mysql error number
1064

Date
Tuesday 01st of July 2003 05:33:44 AM
Script
: [url]http://www.monstergamer.net/vb/vb/admin/forum.php[/url]
Referer: [url]http://www.monstergamer.net/vb/admin/forum.php?action=edit&forumid=1[/url] 

can some one help me

Ninth Dimension 07-01-2003 08:59 AM

you are missing a single quote mark off the end of this line
Code:

moderateattach='0', storereply='0', storethread='0
Just change it to this to fix it
Code:

moderateattach='0', storereply='0', storethread='0'

monstergamer 07-01-2003 09:51 AM

Quote:

Today at 05:59 AM Ninth Dimension said this in Post #294
you are missing a single quote mark off the end of this line
Code:

moderateattach='0', storereply='0', storethread='0
Just change it to this to fix it
Code:

moderateattach='0', storereply='0', storethread='0'

i must have been blind lol
cause that was it
thanx

clamcrusher 08-17-2003 07:28 PM

i got it to work finally. vb 2.2.8

2 things-the proudly sponsered by text doesnt show up. if the page hesitates to load, you can see the text does show up, but when the image loads it gets placed on top of the text, making it not visable.

i dont really care too much about the text though.

this is my problem:

when i click the banner images, it doesnt take me to the sponser url. it tries to goto http://my board url/sponser url and then redirects to the file not found error page.

for example my board is http://www.anabolic-alchemy.com

it tries to goto http://www.anabolic-alchemy.com/www.gearboxinc.com

gearboxinc is my sponser url

how do i make it so that it doesnt add my boards url first?

Drowned 10-04-2003 03:23 AM

Please, somebody make this hack work on VB3... I love it...

Richard Tafoya 12-12-2003 07:07 AM

Has anyone tried this on vb3 Gamma? Sitepoint seems to have licked it. Anyone else?

himerus 12-13-2003 03:17 AM

I love the way it looks on sitepoint, and I'm waiting also for a vb3 release of the hack that is stable...

I'm still working on getting my VB set up for the first time, so I have a while to wait until I get my site customized the way I want anyway. :)

midnightz 01-06-2004 05:10 PM

Hi -

Is there away to have two banners from different sponsers side by side. I have tried and gotten really close but no cigar.

Thanks,

Midz

jluerken 01-07-2004 07:23 PM

It would be nice to get this hack for vb3. Do you will rewrite it for this version?

Richard Tafoya 01-07-2004 07:28 PM

I've requested it in the Vb3 Mod Requests forum. Perhaps anyone else interested can express that there so the coders know there's support.

https://vborg.vbsupport.ru/showthread.php?t=59714

basskiller 01-26-2004 12:30 PM

[QUOTE}

and forumdisplay_sponsoredby was included in the list of required templates.

Finally, I added $sponsoredby to my forumdisplay template.

Sorry for the clumsy explanation. It took a bit of putzing around for me to get this to work, but it does. :)
Amy[/QUOTE]



Finally added $sponsoredby to where in the formdisplay template?

basskiller 01-27-2004 10:21 AM

nevermind.. I got it ..LOL

Quote:

Originally Posted by basskiller
[QUOTE}

and forumdisplay_sponsoredby was included in the list of required templates.

Finally, I added $sponsoredby to my forumdisplay template.

Sorry for the clumsy explanation. It took a bit of putzing around for me to get this to work, but it does. :)
Amy



Finally added $sponsoredby to where in the formdisplay template?[/QUOTE]

armani1072 01-31-2004 07:12 AM

you guys are my heros :D

fgh 03-14-2004 01:38 AM

ok I will try it out :)

patvdv 04-11-2004 08:48 PM

The 'sponsory categories' hack can be very simply implemented in vb3 if you do not mind not having fancy GUI options to manage your sponsor options. The way I did it is by using the new vb3template conditionals. Note that I am assuming that you already have the old solution installed, ie your 'forum' table has the 3 additional sponsorimg, sponsorurl and sponsorname columns added to it. If that's the case all you need to do is to edit 1 template:

Add following to your forumhome_forumbit_level1_nopost template:

Code:

<if condition="!empty($forum[sponsorimg])">
  <a style="float:$stylevar[right]; margin-right:10px" href="$forum[sponsorurl]" target="_blank"><img src="$stylevar[imgdir_misc]/$forum[sponsorimg]" border="0" alt="Proudly sponsored by $forum[sponsorname]"></a>
</if>

If you then make sure that the sponsorimg column only contains an image reference for the right forums, the conditional statement will make sure it is only displayed for that particular forum. Note: you will need a tool like phpmyadmin to edit the sponsors values in your forum table!

norvo 12-27-2004 11:32 AM

I tried this but it did not work. Nothing is shown.

I would love to have something like Sitepoint have on their site.

Any help highly appreciated :)



PS I am using VB3.0.3 and only added the template-edit (described in the post above) and the tables to the forum-table.

norvo 12-27-2004 12:58 PM

Okay, I seem to have it more or less working. I used this code in the template-edit, maybe somebody can use it:

<!-- Begin Hack Sponsor -->
<if condition="!empty($forum[sponsorimg])">
<table cellpadding="0" cellspacing="0" border="0" class="tborder" width="100%" align="center"><tr><td>
<table cellpadding="6" cellspacing="1" border="0" width="100%">
<tr><td class="alt2">
<a href="$forum[sponsorurl]"><img src="$stylevar[imgdir_misc]/$forum[sponsorimg]" alt="$forum[sponsorname]" title="Proudly sponsored by $forum[sponsorname]" align="right" /></a>
<div style="padding: 6px; text-align: center;">Today's forum discussions are proudly sponsored by <a href="$forum[sponsorurl]">$forum[sponsorname]</a>.</div></td></tr>
</table></td></tr></table>
</if>
<!-- End Hack Sponsor -->

bdjncox 01-06-2005 09:13 PM

Norvo - where did you put this in the template?

and using PhpMyAdmin, how exactly do you put your sponsor info into the three new columns created onto the "forum" table?

sorry for the stupid questions but I had the old hack installed on V2 with the nice, easy GUI and this method is a little foreign to me.

norvo 01-06-2005 10:49 PM

I've added the code at the top of the forumhome_forumbit_level1_nopost template. And I've insert the info into the three new columns using PhpMyAdmin by editing the database-records. If anyone where to write a good-looking hack for this so the GUI is nice and embedded into the administration, I would like to hear about that :)

Hope this helps.

bdjncox 01-07-2005 06:43 PM

Quote:

Originally Posted by norvo
I've added the code at the top of the forumhome_forumbit_level1_nopost template. And I've insert the info into the three new columns using PhpMyAdmin by editing the database-records. If anyone where to write a good-looking hack for this so the GUI is nice and embedded into the administration, I would like to hear about that :)

Hope this helps.

got the template part down... guess I'm doing something wrong in phpmyadmin. I've changed the information in the tables in the sponsorimg, sponsorname and sponsorurl fields but it isn't updating on the site. Its still showing what was inthe fields originally. I feel like maybe I'm changing the wrong information or doing the process incorrectly. Anyone mind just walking me through exactly what to do in phpmyadmin to popular my sponsor fields correctly?

thanks!

bdjncox 01-10-2005 03:34 PM

i'm stumped on this --- I've made the template changes and then updated the database records but the information being displayed is still from the last time I ran this script on VB2.3.0

I've changed the sponsorurl, sponsorimg and sponsorname columns in the forum table but the information being displayed does not match this information.

Anyone have a clue where I messed this up?

bdjncox 01-11-2005 02:03 PM

not sure if anyone is even checking this thread, but here's one curious thing that could be leading to my problem.

In the datastore table and the forumcache column, the information seems to be outdated. It contains the exact "old" sponsorurl, sponsorname and sponsorimg references that are showing up on my board despite the changes I made to the forum table.

Should the forumcache be updating automatically and is this the source of my display problems?


All times are GMT. The time now is 04:17 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.01481 seconds
  • Memory Usage 1,838KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (34)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