vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   [Adv] banners Hack (https://vborg.vbsupport.ru/showthread.php?t=73847)

yinyang 01-11-2005 07:32 PM

here's a noob question... does this work with google ads?

Elfo King 01-11-2005 08:25 PM

Quote:

Originally Posted by erratic assasin
Ok I have sorted the problem of looped login in admincp just upload the php file to you /forum/ directory and then run the file www.yoursite.com/forum/fix_login.php
thats it all done. .
And im not taking any credit for the php file just letting you know it fix's problem :banana:

I have fixed...very , very very THX at all for HAck and support !!! :up:

apfparadise 01-12-2005 02:07 AM

ok, tell me why this is not working on my server.

I created a new secondary group, contributors, and put all contributors in that group as a sec. group. then in Forumhome, where your code is below the $navbar, I changed it to this code below, what is wrong with it why is it not showing (23 is the code for the Contributors user group):

Code:

<if condition="!is_member_of($bbuserinfo, 23)">
<center>$shir</center><br></if>


Creative Suite 01-12-2005 02:54 AM

lanc3lot

:)

apfparadise

Quote:

CS, will this work if I need to do that to 12 Groups? Dont ask why
yes it's ,

replace

Quote:

$bbuserinfo[usergroupid]==??
with :

Quote:

$bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==?? OR $bbuserinfo[usergroupid]==??
with changing the "??" marks to the groups id

& if you want use that! :

<if condition="$bbuserinfo[usergroupid]==??">
<center>$shir</center><br>
</if>

with changing the "??" marks to the group id :)

PuntoPower

nope :)

we_scooter

replace ' " ' mark with ' * ' : ex : *1* or *index* :)

J-TEK

this one :) > https://vborg.vbsupport.ru/attachmen...chmentid=22919

yinyang

what did mean with "google ads" ? :)

best wishes :up:

absoluthum 01-12-2005 09:52 PM

After uploading the global.php the function "Mark forums read" doesn´t work.

Has any other this problem?

apfparadise 01-13-2005 07:44 PM

well what I was trying to do is show it to the members who are NOT part of the usergroups, so if the member was, it would NOT show the banner, Like an ad banner to NOT be shown to the contributing members.

What is the correct code for that then?

apfparadise 01-13-2005 07:47 PM

also, how do I put a line of text under the banner that says: Remove this ad by becoming a Contributor

This way if the above question is answered, I can have a banner that goes away as soon as the member donates and is added to the Contributor group.

Creative Suite 01-14-2005 04:19 PM

apfparadise

<if condition="$bbuserinfo[userid]==0">
<center>$shir<br><b>Remove this ad by becoming a Contributor</b></center><br>
</if>

with this code , the banners will be not display to the users , "only for the visitors"

apfparadise 01-14-2005 04:23 PM

No, I want it to display to all the users, including members, except for ONE USERGROUP, number 23, for example.

I thougth this below was the way to do it (from another example on another site):

<if condition="!is_member_of($bbuserinfo, 23)">
<center>$shir</center><br></if>

Creative Suite 01-14-2005 05:02 PM

apfparadise

i hadn't test your code , but this one should be work as you want it :)

<if condition="$bbuserinfo[usergroupid]!=23">
<center>$shir<br><b>Remove this ad by becoming a Contributor</b></center><br>
</if>

apfparadise 01-15-2005 05:45 PM

No, it still shows. What I did was make every member who contributes go into a group called Contributor (secondary group), then I put your code in, instead of the regular $shir code, and it still shows for both contributors and non-contributors

http://aquatic-photography.com

You can log in as username: test password: test, a member of : Registered Users as a Primary, and Contributors as a secondary.

apfparadise 01-15-2005 06:10 PM

nvm, I fixed it, it did work with the original code I showed you, but not the one you did:

<if condition="!is_member_of($bbuserinfo, 23)">
<center>$shir</center><br></if>

This one tells to show anyone who iS NOT the member of group 23. That is exactly what I needed. It totally works now.

Elfo King 01-20-2005 09:53 PM

I need to insert adv into all forum created, i supponse to insert *forumdisplay*(or "forumdisplay.php) into The box "Script name"...but i dont view.
The solution ? :-P
Thx ;)

Elfo King 01-22-2005 01:04 PM

UP !
I can set to view the ban into all forum ?
i dont want to set 150 forum id's manually....

thx

Elfo King 01-24-2005 04:40 PM

RE-UP
Pls i need a fast solution.....:(

Bolas 01-24-2005 10:08 PM

If you need an help by programmer you can ask here: https://vborg.vbsupport.ru/forumdisplay.php?f=30

Maybe someone has resolved it in his vb experiment ;)

futureye 01-27-2005 05:33 AM

Nice Hack...
i will install it in Forum Sites i got.

thanks again Creative Suite
and we shell met in ++++++

C U

Creative Suite 01-27-2005 12:05 PM

Elfo King

the hack don't support that :)

futureye

thanks 4 replying

TunerNetwork 01-28-2005 03:14 PM

This looks like a great hack, I got it all installed, and I think it's working properly, but I cant get the banners to show. Can someone please help me out, I really need this for my board. tunernetwork.com

Thank you, either pm me on here or email me: zazza_ceo@TunerNetwork.com
or TN ZAZZA CEO on AIM

Rastus 01-30-2005 03:56 AM

I get this error:

Database error in vBulletin 3.0.6:

Invalid SQL: select * from adv where main ='1' order by RAND() limit 1
mysql error: Unknown column 'main' in 'where clause'

mysql error number: 1054

Raitsa 01-30-2005 03:56 PM

Sort of same lookin prob here as Rastus above:

Database error in vBulletin 3.0.1:

Invalid SQL: select * from adv where script LIKE '%*index*%' order by 'id' desc
mysql error: Table 'vbulletin**namecensoredbyRaitsa**.adv' doesn't exist

mysql error number: 1146

iSpanish 01-30-2005 07:38 PM

Nice hack

Good job Creative Suite

i will install it soon.

Marboosh

duhaas88 02-01-2005 09:02 PM

I installed the above and I get the error when trying to go to the forum index page. any suggestions?? I'm using 3.0.6

thanks

Eagle Creek 02-01-2005 09:07 PM

Quote:

Originally Posted by NuclioN
This is a nice addon creative :) Is it possible to add code so that the logo is replaced with the adv image in forumdisplay and showthread? In this case the header image/logo will stay present in forumhome but is variable as adv image. Now the adv image is placed under or above the header image.

Does it work on 3.0.6?

Seems nice to me

Eagle Creek 02-01-2005 09:09 PM

Quote:

Originally Posted by duhaas88
I would like to install this in my forum, so I have completed all steps but # 2 where you have to create a template and name it, then include the code. I'm a complete newbie to this.(I bought vbulletin last night)version 3.0.6

Can someone point me to where I can find out this information ragarding how to create the template? I have looked over the manual and haven't found a solution.

Thanks

Go to ACP
Go te styles templates
Select your style, choose "add template"

Does this do the trick for you?

duhaas88 02-01-2005 09:38 PM

Quote:

Originally Posted by Eagle Creek
Go to ACP
Go te styles templates
Select your style, choose "add template"

Does this do the trick for you?

I got the template done, but now I can't get the banner to show up in the forum. What could I be forgetting? Here is a screen shot of my ads "add Ads"

Thanks for the help:)

Fallonme 02-09-2005 01:33 AM

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in adv.php on line 34
No banner had been detected

TunerNetwork 02-09-2005 04:39 AM

I need help with getting this hack to work, pm me if you can help

agrajeda 02-09-2005 05:20 AM

I added this hack and it really looks good from what I see on other sites. This may be a dumb question, but I dont understand the:

Forum /s id ( Forumdisplay,
Thread /s id ( Showthread
Script name

So I did *2* *1* and then index

so I figured it would show an add on the second forum and first thread but it does not show on my site.

can someone please help me. I reall would like to use this hack on my site.

lifesourcerec 02-09-2005 06:45 PM

Just installed this hack and now whenever a user clicks "Mark Forums Read", this comes up:

Quote:

No Forum specified. If you followed a valid link, please notify the webmaster
IT's the code that you add to global.php. Once I add it, "Mark Forum Read" doesn't work. When I remove it, it works. Anyone else has this problem?

b00k 02-10-2005 01:30 AM

So I installed the hack according to the .txt file to a Tee, but the adv-admincp.php doesn't showup in the adminCP...

any ideas?

if i load the adv-admincp.php file directly in the browser it works..

lifesourcerec 02-13-2005 09:17 AM

Anyone figured out how to fix the "Mark Forums Read" problem?

KanyeWest 02-13-2005 09:22 PM

i need help i followed directions of the banner hack but it wont work where in admin cp do i find it i installed but it i dont see it anywhere :mad: help me :mad:

lifesourcerec 02-14-2005 05:13 AM

Quote:

Originally Posted by KanyeWest
i need help i followed directions of the banner hack but it wont work where in admin cp do i find it i installed but it i dont see it anywhere :mad: help me :mad:

Double check step #3 which goes in admincp/index.php

kall 02-14-2005 04:18 PM

Quote:

Originally Posted by KanyeWest
i need help i followed directions of the banner hack but it wont work where in admin cp do i find it i installed but it i dont see it anywhere :mad: help me :mad:

I'd advise against helping this guy with anything.

He likes to release other people's hacks on pirate sites.

Barakat 02-15-2005 12:02 AM

مشكور حبيبي والله هاك حلو ويعطيك العافيه ويجعله ربي في ميزان حسناتك
thanks for this nice hack

TunerNetwork 02-15-2005 01:14 AM

hack works great, finally figured it out. One questiong, any way to have it so the banners will rotate?

agrajeda 02-15-2005 01:14 AM

Will no one help me?

iSpanish 02-15-2005 07:27 AM

nice hack Creative Suite....

Marboosh Clicks Install*

- Thanks Bro

Crank 02-15-2005 12:26 PM

Quote:

Originally Posted by erratic assasin
Ok I have sorted the problem of looped login in admincp just upload the php file to you /forum/ directory and then run the file www.yoursite.com/forum/fix_login.php
thats it all done. .
And im not taking any credit for the php file just letting you know it fix's problem :banana:


thank you very much for the fix it is greatly appreciated.


All times are GMT. The time now is 04:14 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.01346 seconds
  • Memory Usage 1,820KB
  • 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_code_printable
  • (11)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