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)
-   -   >>--ARROW ADS---> Hack (https://vborg.vbsupport.ru/showthread.php?t=51380)

trafix 04-11-2003 12:00 AM

Quote:

Today at 11:01 AM AViO 07 said this in Post #40
wow very nice and useful hack, keep it up!

Thanks for your kind words, i have been getting heaps of great feedback on this one :) I used to use phpadsnew, fantastic software but was sort of confusing and took me ages to add a new banner and I couldnt put up with it anymore.
Its a shame that they are not doing "hack of the month" at the moment :(

trafix 04-11-2003 10:55 AM

Don't forget to click on INSTALL

ricoche 04-11-2003 01:00 PM

Wow, another excellent hack!! Actually I've been interested in something like this for a long time.

Everything installed perfectly too.

Thanks Trafix for yet another wonderful hack! I must say your choice of projects has been excellent.

Take it easy,

Ricoche

NuclioN 04-11-2003 01:45 PM

Great addition ;) Clicks install

When you add a banner on forum id, i see that the banner shows up in each forum but with just the 'Please support our sponsors' text. How you make it so this banner will only show up in the forum that is specified?

--oops-- i've found it. Just don't add it to the bannerbank. :)

NuclioN 04-11-2003 08:11 PM

--edit-- problem solved. I shall now reply after counting to 10 :p

trafix 04-11-2003 11:34 PM

oh you are funny

PurpleCow 04-12-2003 02:41 AM

hello,

Does this work only for banner ??

Can I also run HTML ads using this hack ??

Thanks

trafix 04-12-2003 02:49 AM

ummm, at the moment it only displays images of any size...

PurpleCow 04-12-2003 03:30 AM

could you come up with a addon for handling HTML ads also ??

Thanks much

dirtymerc 04-12-2003 02:57 PM

I have had the worst expierence I have ever had installing a hack with yours. For the first time I forgot to back things up and now my whole site has been down for about 15 hours. For my users, thats terrible.

I cant figure out how to fix this error in my mysql.

Database error in vBulletin 2.3.0:

Invalid SQL: SELECT * FROM ads WHERE pagename='index.php'
mysql error: Unknown column 'pagename' in 'where clause'

mysql error number: 1054

Date: Saturday 12th of April 2003 11:48:16 AM
Script: http://www.wrxyz.com/forums/forums/
Referer: http://www.wrxyz.com/

I even tried upgrading to vbulletin2.3.0 from 2.2.9 to try and see if it would work. But to my luck it didnt. I have no clue what to do, im not sure why the script is going to wrxyz.com/forums/forums/ Thats not even a directory. Please help me.

dirtymerc 04-12-2003 02:59 PM

Trafix or anyone if you have aim please im me at: x1nsaneity . I am having the worst time right now, my marketing ad companies are emailing me asking where the site is, and I dont know what to say.

trafix 04-12-2003 03:10 PM

Have you run the qury from the admin folder,
This performs database changes required by the addow hack

trafix 04-12-2003 03:14 PM

sorry i dont have aim

dirtymerc 04-12-2003 03:17 PM

Yeah I did, but I was already karatekids hack and had banners and an ads in my db. So I dropped the existing one to add yours, and then thats when all the problems started.

dirtymerc 04-12-2003 03:31 PM

trafix, is there anyone I can contact without vb.org?? I really need some help

dirtymerc 04-12-2003 09:42 PM

................................................no thing......................... .............. bump

trafix 04-12-2003 11:35 PM

Although it's based on karate kids hack, all the coding and data base tables are different. Try dropping the banner tables again and make sure that karate kids has been dropped as well. I am really not sure what else to suggest. Try this and see how it goes. Just double check the coding has been added correctly to the files and templates.
Regards
Trafix.

Imprezer 04-13-2003 12:02 AM

Installed and so far so good.

Can I have 2 diff banners rotating in one forum?

Thank you!

trafix 04-13-2003 12:22 AM

As you add banners, to make them rotate within "unsponsored" forums, you must add them to the banner bank.
If you are wanting "2" sponsored banners to rotate in one forum, no, it's not set up for that. Just the one banner will be displayed for sponsored areas.
Regards
Trafix.

Imprezer 04-13-2003 07:43 AM

Arg!

Too bad. This is a great hack but I think that to make it the ultimate hack, single forum banner rotation is needed.

Since this hack can already rotate random banners throughout the whole site, it cannot be too hard to set it up to rotate selected banners in selected forums.

trafix 04-13-2003 07:56 AM

hmmm....your right, it should be easy...let me put it together (soon)

GoTTi 04-14-2003 06:34 AM

dunno if it matters much but:

in template modifiy in your instructions, you have:

PHP Code:

**********************************
OPEN Forum Home Page Templatesforumhome_forumbit_level2_post
**********************************

------------------
Find
------------------

<
normalfont><b>$forum[title]</b></normalfont></a>

------------------
REPLACE with
------------------

<
normalfont><b>$forum[title]</b></normalfont></a><br><smallfont$showsponsorforumbit</smallfont>

**********************************
OPEN Forum Home Page Templatesforumhome_forumbit_level2_post
********************************** 

this code:

]</b></normalfont></a><br><smallfont> $showsponsorforumbit</smallfont>

has a spacr in:

<smallfont> $showsponsorforumbit

should be: <smallfont>$showsponsorforumbit

GoTTi 04-14-2003 06:35 AM

how do i take that extra space out of the forum again? I 4got lol

GoTTi 04-14-2003 07:53 AM

im having a problem with the rotation of the banners...

its like...only showing 1 banner instead of going threw the list...even when i click refresh...

any ideas?

Imprezer 04-14-2003 06:54 PM

Read back a page.

Only one banner will show in a selected forum unless you place them in the banner bank, but then they will randomly rotate in random "unsponsored" forums.

GoTTi 04-14-2003 07:34 PM

yea i got them all in teh banner bank, but only like 1 is showing out of 5 or 6

Imprezer 04-15-2003 12:36 AM

Oh, nm, then. Sorry. Can't help ya here. ;)

solent 04-18-2003 09:54 AM

everything worked liked a charm except this problem see attchament.

well i dont know which template to edit to fix it so if you could please tell me where to look and what to fix in order to get the margins right i will really appricate it.

By the way that is one excellent hack. very good job trafix. keep it up :D :D :D

kingd 04-19-2003 06:17 AM

Is it possible to show two different banners simultaneous with this hack?

trafix 04-19-2003 06:28 AM

ummm, probibly yes would require some further modification. Are you looking for another banner in the footer???? obviously spocered forums and files would have to be the same banner. I will look into it for you, it shouldnt be too dificult though

kingd 04-19-2003 06:33 AM

I was looking in having 2 banners in the header

thanks a million

SpeedStreet 04-20-2003 08:12 PM

Trafix,

I got it installed, and it is working great. I'm not running the 'Sponsored By' link in the main index, for fear of mass query buildup.

However, the ads only appear to be showing up in my Forumhome...nowhere else. I have $showthisad2 in my header, and $showthisad in the appropriate places. I'd like all ads that are in my bannerbank to rotate throughout my entire forum, am I going about it the right way?

http://www.speedstreet.org/forums

trafix 04-21-2003 02:52 AM

Ok the banner is showing on all pages except the forums. I checked your search, who online page etc and the banner is there but not in the forums.....ummmm you said that you feft out coding to avoid excess quiries.. this is your problem as the templates are there in the forums its just not showing the banner.. I suggest that you replace the code to the forumdisplay.php and showthread.php. Please see earlier posts (maybe first page) I made a suggestion to USODJA on what to remove to avoid the quiries.

SpeedStreet 04-21-2003 01:37 PM

Right-o.

I do in fact have the code for showthread and forumdisplay added...I only removed said code for index.php.

I'll check again, to be sure, but I am pretty sure it is there.

Does $showthisad overide $showthisad2?

GoTTi 04-23-2003 11:07 PM

got a problem pal....

I noticed today that Guest users can see the userreport.php threw the site, and can reset all the stats on each banner.

That is no good dude and needs to be fixed. I removed the 0 from the User Group, and it puts it right back in.

trafix 04-24-2003 07:22 AM

thanks Da_GoTTi,

Bug fixed, see first post

GoTTi 04-30-2003 02:08 AM

noticed another problem....

when a sponsor is placed on a forum...the forum is accessed, the banner displays in the forum...

now the problem:

it doesnt hold in the threads! it shows the random banners in the threads inside the sponsored forum. It should have the sponsored forum inside the threads where the forum is placed right?

trafix 04-30-2003 04:19 AM

I have had a surf around my site and noticed that when you click on the "goto last post" go button on the forum list, the banner does not show when you get there......

The ulr link os correct when i look at the source code of the forum home, here is an example of complete source code from http://www.atmyparty.com/network/for...php?forumid=20

The code in blue is the thread title and contains the forumid no. and displays the sponsorship banner at the top when clicked on.

However the red code is the lastpost title / go button link and also contains the forumid no. BUT when clicked on the forumis part of the link is not in the ulr address when the page is displayed ........ Something somewhere is stripping it thus a random banner is displayed instead of the sponsorship banner.

I cant find where this stripping is taking place or why .... can anyone assist?

Quote:

<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top"><img src="images_party/off.gif" border="0" alt=""></td>
<td><img src="images_party/clear.gif" width="9" height="1" alt=""></td>
<td> <a href="forumdisplay.php?forumid=27"><font face="verdana, arial, helvetica" size="2" ><b>Crowd Con. - Questions & Support</b></font></a> (0 users browsing)<br><a href="http://www.atmyparty.com/network/click.php?bannerid=6" target="_blank"><font face="verdana,arial,helvetica" size="1" color="#FF0000" ><b>Sponsored by Wizid Pty Ltd</b></font></a><font face="verdana,arial,helvetica" size="1" > </font><br>
<font face="verdana,arial,helvetica" size="1" ></font></td>
</tr>
</table>
</td>
<td bgcolor="#CCFFFF"><font face="verdana, arial, helvetica" size="2" >3</font></td>
<td bgcolor="#FFFFCC"><font face="verdana, arial, helvetica" size="2" >1</font></td>
<td bgcolor="#CCFFFF"><font face="verdana,arial,helvetica" size="1" > <table cellpadding="0" cellspacing="0" border="0" width="100%" id="ltlink"><tr align="right">
<td nowrap><font face="verdana,arial,helvetica" size="1" ><b> <a href="showthread.php?forumid=27&goto=lastpost">Any Questions Or Queries, Pl...</a></b><br>10-04-2003 <font color="#000088">01:31 AM</font><br>
by <a href="member.php?action=getinfo&find=lastposter">< b>The4Gotton1</b></a></font></td>
<td nowrap>&nbsp;<a href="showthread.php?forumid=27&goto=lastpost"><im g src="images_party/lastpost.gif" border="0" alt="Go to last post"></a></td>
</tr></table>
Other reasons for the sponsorship banner not being displayed would be due to the links in the templates

Suggestion:

Do a template search for
Quote:

threadid=$thread
and make sure that
Quote:

&forumid=$forumid
has been included in the link.
you might have to use
Quote:

&forumid=$XXX[forumid]
Depending on the template and the db variables ...i am currently going through me site to fix the bugs and will update file then they are ironed out.

All input is welcome!

Greivog 05-02-2003 12:22 PM

How do i get the Banners to be displayed at random on the pages?

I have them added to the banner bank, but it only displayes one of the banners no matter how many times i visit the page?

Any suggestions

You can View it at

Http://www.uk-muscle.co.uk

Cheers

Paul

trafix 05-02-2003 01:42 PM

Paul ... the banners currently showing at the top of pages are not produces by arrow ads .... remove your current banners to start with.

add the $showthisadd and $showthisadd2 as instructed in the directions ....

this should fix your problem

PS i love the pig


All times are GMT. The time now is 04:10 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.01360 seconds
  • Memory Usage 1,830KB
  • 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
  • (1)bbcode_php_printable
  • (5)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