![]() |
can anyone tell me how to make it show more than 1 banner?
i changed the LIMIT 1 but it still shows 1 |
im having a really big prob adding anything to my database via phpmyadmin
eg try adding: INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES (32,'vBaffiliates','99') Get: Error SQL-query : [Edit] INSERT INTO settinggroup (settinggroupid,title,displayorder) VALUES (32,\'vBaffiliates\',\'99\') MySQL said: You have an error in your SQL syntax near '\'vBaffiliates\',\'99\')' at line 1 Try: CREATE TABLE `vbaffiliates` ( `linkid` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(100) NOT NULL, `link` VARCHAR(150) NOT NULL, `b_link` VARCHAR(150) NOT NULL, `moderated` smallint(6) DEFAULT '0' NOT NULL, `height` smallint(6) NOT NULL, `width` smallint(6) NOT NULL, `hits` smallint(6) DEFAULT '0' NOT NULL, `userid` smallint(6) NOT NULL ) TYPE = MYISAM; Get: Error SQL-query : [Edit] CREATE TABLE `vbaffiliates` ( `linkid` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(100) NOT NULL, `link` VARCHAR(150) NOT NULL, `b_link` VARCHAR(150) NOT NULL, `moderated` smallint(6) DEFAULT \'0\' NOT NULL, `height` smallint(6) NOT NULL, `width` smallint(6) NOT NULL, `hits` smallint(6) DEFAULT \'0\' NOT NULL, `userid` smallint(6) NOT NULL ) TYPE = MYISAM; MySQL said: You have an error in your SQL syntax near '\'0\' NOT NULL, `height` smallint(6) NOT NULL, `width` smallint(6) NOT NULL, ' at line 6 can someone help its doing it for almost everything i try that needs database work but it never used to :( |
Hmmm...
Perhaps you should install FireFly's "SQL Query via Admin CP" Hack... All I can say is that the queries worked for me, but it looks like your phpmyadmin may have a problem... Is it just this hack, or does it do it for others? @DarkDraco07 - I am sure that changing the LIMIT value should work... Satan |
i changed the limit to 99 and it still only shows 1 banner
|
btw, i put the $affiliate var on the myvbindex page. does that have anything to do with my prob?
|
Indeed...
I shall look into it... Satan |
i tried puttin it on my forumhome template but it still shows 1
|
@DarkDraco07 - I am releasing v4 soon, which has the option for this and much more:)
Satan |
v4 Released!
vBaffiliates4 has been released! It includes a Banner List Page (with randomnly generated banners), a Limit to the Number of Banners to List on the page, and the Support for an Admin Options controlled Number of Banners to show:) Satan |
::clicks install::.. This looks great.. Is there going to be any other future versions?
|
*lol* A version a day it seems hellsatan is going for ;)
|
Database error in vBulletin 2.2.9:
Invalid SQL: SELECT * FROM vbaffiliates ORDER BY linkid LIMIT mysql error: You have an error in your SQL syntax near '' at line 1 mysql error number: 1064 Date: Sunday 29th of December 2002 05:22:53 PM Script: http://www.enactive.net/forums/forum...hp?action=list Referer: http://www.enactive.net/forums/ I get this error. Any help? |
Quote:
|
@kevo - Yup...There should be at least one more version;)
That file you've got looks wrong:( Send it to me in a PM;) Satan |
works now :)
|
Goody good:)
Satan |
Quote:
|
Hmmm...
I'm glad that it worked, but you don;t usually get an SQL Syntax error for a duplicate Setting:confused: Ah well...As long as it worked for you:) Satan |
I'm getting an error now too:
Invalid SQL: SELECT linkid,name,link,b_link,height,width,hits,userid FROM vbaffiliates WHERE moderated='1' ORDER BY RAND() LIMIT mysql error: You have an error in your SQL syntax near '' at line 1 I restored a backup Global.php :) |
Quote:
|
@cklaszlo - The upgrade script only works from v3 to v4 - Any prior versions to v3, such as for v2 or v1, you should use the New Install file for instructions;)
@NTLDR - Good idea:) Satan |
i got somethin for ya to do, instead of having someone go through the whole registering process, have them go through a quick register. like user name, password, email, site link, banner link
|
Hmmmm...
But g-force made a Quick Register hack;) Satan |
can u make the quick register just for this though :p
|
I suppose I could;)
Satan |
would it poss to make this into a self installing script :p so that folk dont need to install it manually (i.e adding sql queries etc)
|
Sure:)
I've been trying to work a script to do this, and I reckon I can get it to:) Gimme till next weekend to sort it;) (Knowing me it will be done tomorrow:p) Satan |
lol kool cause im really wantin to use this hack on me site :D
also how would i go about displaying say 5 links on my home (vbindex) is there a way to do it and can i have them listed horizontally? I think also this would be kool (dont mean to sound rude its already an excellent hack) If u can set it up so its displayed on a page in categories with maybe the top ten (maybe set in admin) of each showing a banner (in rows) and the rest in just plain link form :D thnx again lol |
You mean all of them?
I can do a page with the "Top 10 visited" banners, and then others ordered by number of Hits:) Satan |
i just thought it may be good to display certain links as text as if its a high amount of images it may be upsetting for 56k users :p
Tho for the text links it may be a good idea to show a random set amount :S |
I see:)
Maybe the Top 5 should be Images (the banners), the 6-10 should be Bolded links, and the rest are randomnly generated?:) Satan |
That would be great. but what i think hes saying is. On his forum home. VBINDEX.. He wants to have the top 5 displayed on there in text.. I believe thats what hes saying.
|
That is doable:)
As long as it is vBindex not vBhome - I'm not sure how to integrate it now... Satan |
no i just need say a random 5 on my home :D and its vbindex ;)
|
Ok:)
Let me check the file and post a modification for you:) Satan |
great dude thnx hey add me on msn if u got it :)
|
Added you:)
Satan |
how come this is adding 2 queries per page? how can i make it only add queries to my homepage, not all
|
@DarkDraco07 - It depends where you want it to show...;)
By default, I made it globalised, so you can add it to your header template:) If you want it to only add to index, revert the global.php change, remove the variable from the header template, and add it to the forumhome template... Then open forum/index.php (this is untested) Find: Code:
// if user is know, then welcome Code:
// ###################### vBaffiliates Stuff ######################### Satan |
there was a variable in the header template??
|
All times are GMT. The time now is 08:11 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|